Method: TestStep#initialize
- Defined in:
- lib/test_case/test_step.rb
#initialize(test_case, id, name, device, iteration, status: nil, ignore_errors: nil) ⇒ TestStep
Public: Creates a new test step.
test_case - TestCase (subclass) instance. id - Integer test step number. name - String test step name. device - Integer test device id. iteration - Integer test iteration number. status - TestStatus initial status (default: nil). ignore_errors - Boolean indicating the step should ignore any errors (default: nil).
If default, setting from test case will be used.
Returns the new TestStep instance.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/test_case/test_step.rb', line 20 def initialize(test_case, id, name, device, iteration, status: nil, ignore_errors: nil) @test_case = test_case @id = id @name = name @device = device @iteration = iteration @status = TestStatus.new(@test_case, status) @update = false @raising = !(ignore_errors.nil? ? @test_case.test_steps_ignore_errors? : ignore_errors) end |