Class: Inferno::Entities::TestRun
- Includes:
- Attributes, HasRunnable
- Defined in:
- lib/inferno/entities/test_run.rb
Overview
A ‘TestRun` represents a request to execute an executable set of tests.
Constant Summary collapse
- STATUS_OPTIONS =
['queued', 'running', 'waiting', 'cancelling', 'done'].freeze
- ATTRIBUTES =
[ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Creation timestamp.
-
#id ⇒ String
Id of the test run.
-
#identifier ⇒ String?
Identfier for a waiting ‘TestRun`.
- #inputs ⇒ Array<Hash>
- #results ⇒ Array<Inferno::Entities::Result>
- #status ⇒ String
-
#test ⇒ Test?
The ‘Test` this result belongs to.
-
#test_group ⇒ TestGroup?
The ‘TestGroup` this result belongs to.
-
#test_group_id ⇒ String?
Id of the ‘TestGroup` this result belongs to.
-
#test_id ⇒ String?
Id of the ‘Test` this result belongs to.
-
#test_session ⇒ Object
Returns the value of attribute test_session.
- #test_session_id ⇒ String
-
#test_suite ⇒ TestSuite?
The ‘TestSuite` this result belongs to.
-
#test_suite_id ⇒ String?
Id of the ‘TestSuite` this result belongs to.
-
#updated_at ⇒ Time
Update timestamp.
-
#wait_timeout ⇒ Object
A ‘TestRun` represents a request to execute an executable set of tests.
Instance Method Summary collapse
-
#initialize(params) ⇒ TestRun
constructor
How to define test run inputs? Class in this file? Separate Entity?.
- #test_count(selected_suite_options = []) ⇒ Object
- #to_hash ⇒ Object
Methods included from HasRunnable
Methods included from Attributes
Constructor Details
#initialize(params) ⇒ TestRun
How to define test run inputs? Class in this file? Separate Entity?
61 62 63 64 65 |
# File 'lib/inferno/entities/test_run.rb', line 61 def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end |
Instance Attribute Details
#created_at ⇒ Time
Returns creation timestamp.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#id ⇒ String
Returns id of the test run.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#identifier ⇒ String?
Returns identfier for a waiting ‘TestRun`.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#inputs ⇒ Array<Hash>
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#results ⇒ Array<Inferno::Entities::Result>
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#status ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test ⇒ Test?
Returns the ‘Test` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_group ⇒ TestGroup?
Returns the ‘TestGroup` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_group_id ⇒ String?
Returns id of the ‘TestGroup` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_id ⇒ String?
Returns id of the ‘Test` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_session ⇒ Object
Returns the value of attribute test_session.
57 58 59 |
# File 'lib/inferno/entities/test_run.rb', line 57 def test_session @test_session end |
#test_session_id ⇒ String
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_suite ⇒ TestSuite?
Returns the ‘TestSuite` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#test_suite_id ⇒ String?
Returns id of the ‘TestSuite` this result belongs to.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#updated_at ⇒ Time
Returns update timestamp.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
#wait_timeout ⇒ Object
A ‘TestRun` represents a request to execute an executable set of tests.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/inferno/entities/test_run.rb', line 34 class TestRun < Entity STATUS_OPTIONS = ['queued', 'running', 'waiting', 'cancelling', 'done'].freeze ATTRIBUTES = [ :id, :test_session_id, :status, :test_suite_id, :test_group_id, :test_id, :test, :test_group, :test_suite, :inputs, :results, :identifier, :wait_timeout, :created_at, :updated_at ].freeze include Inferno::Entities::Attributes include Inferno::Entities::HasRunnable attr_accessor :test_session # How to define test run inputs? Class in this file? Separate Entity? def initialize(params) super(params, ATTRIBUTES) @test_session = params[:test_session] end def to_hash super.merge(test_session:).compact end def test_count( = []) @test_count ||= runnable.test_count() end end |
Instance Method Details
#test_count(selected_suite_options = []) ⇒ Object
71 72 73 |
# File 'lib/inferno/entities/test_run.rb', line 71 def test_count( = []) @test_count ||= runnable.test_count() end |
#to_hash ⇒ Object
67 68 69 |
# File 'lib/inferno/entities/test_run.rb', line 67 def to_hash super.merge(test_session:).compact end |