Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Problem to define Sets. Imposible to create a new Sets

Hi!

We have installed Tarantula, and we are testing it. We have found a fail when you want create a new Set.

After enter the name of Test and the Priority, this pop up is showed with this error:
undefined method `to_i' for #undefined method `to_i' for #

Any idea, is important for mi decision to continue migrate all my test plans to this tool.

Thanks in advance
Regards
Oscar
3 people have
this problem
+1
Reply
  • Maybe the reason is the upgrade Rails to version 3.2.11. The other days was made this upgrade.

    These are the traces:

    Started POST "/test_sets" for ::1 at 2013-01-14 06:47:41 -0800
    User Load (1.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
    Processing by TestSetsController#create as JS
    Parameters: {"data"=>"{\"name\":\"uuu\",\"date\":\"2013-01-14T00:00:00\",\"priority\":\"normal\",\"tag_list\":\"\",\"test_area_ids\":[],\"cases\":[]}"}
    CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
    Project Load (0.3ms) SELECT `projects`.* FROM `projects`
    Project Load (0.2ms) SELECT `projects`.* FROM `projects` INNER JOIN `project_assignments` ON `projects`.`id` = `project_assignments`.`project_id` WHERE `project_assignments`.`user_id` = 2
    ProjectAssignment Load (0.2ms) SELECT `project_assignments`.* FROM `project_assignments` WHERE `project_assignments`.`user_id` = 2 AND `project_assignments`.`project_id` = 1 LIMIT 1
    Project Load (0.2ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 1 LIMIT 1
    CACHE (0.0ms) SELECT `projects`.* FROM `projects`
    CACHE (0.0ms) SELECT `project_assignments`.* FROM `project_assignments` WHERE `project_assignments`.`user_id` = 2 AND `project_assignments`.`project_id` = 1 LIMIT 1
    (0.1ms) BEGIN
    (3.6ms) ROLLBACK
    undefined method `to_i' for #
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.11/lib/active_model/attribute_methods.rb:407:in `method_missing'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_methods.rb:149:in `method_missing'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/column.rb:178:in `value_to_integer'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/column.rb:78:in `type_cast'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:86:in `_field_changed?'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:63:in `write_attribute'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_methods/write.rb:14:in `updated_by='
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:85:in `block in assign_attributes'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:78:in `each'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/base.rb:497:in `initialize'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/validations.rb:39:in `new'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/validations.rb:39:in `create!'
    /opt/tarantula/rails/app/models/core/test_set.rb:91:in `block in create_with_cases!'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/transactions.rb:208:in `transaction'
    /opt/tarantula/rails/app/models/core/test_set.rb:87:in `create_with_cases!'
    /opt/tarantula/rails/app/controllers/test_sets_controller.rb:37:in `create'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:167:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rendering.rb:10:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:458:in `_run__794653641__process_action__9152101__callbacks'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb:17:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rescue.rb:29:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in `block in instrument'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications.rb:123:in `instrument'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/base.rb:121:in `process'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb:45:in `process'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal.rb:203:in `dispatch'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_controller/metal.rb:246:in `block in action'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:73:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:36:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:601:in `call'
    /opt/tarantula/rails/lib/authenticator.rb:18:in `call'
    /opt/tarantula/rails/lib/authenticator.rb:44:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/rack-1.4.3/lib/rack/etag.rb:23:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/rack-1.4.3/lib/rack/conditionalget.rb:35:in `call'
    /opt/tarantula/rails/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.11/lib/action..

    Regards

    Oscar
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Hi Oscar,

    i installed yesterday Tarantula on my CentOS and i got the same issue.
    There is no way to create a test_set, i had to add the test_set manually with mysql, but even though i cant edit the test_set using tarantula.

    Hope we get the problem solved asap.

    Best regards,
    Enrique Mendivil
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned

  • I have the same issue. I didn't see this topic last night, so I created this ticket in github (probably not the right place): https://github.com/prove/tarantula/is...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned

  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned

  • I have a patch that fixes this in sets and in saving changes to executions. I'm posting the patch to the github issue: https://github.com/prove/tarantula/is...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned

  • 1
    Ok, I have a branch with it fixed, and submitted a pull request, so hopefully this gets cleared up for everyone soon.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited indifferent, undecided, unconcerned