class PlatformAPI::TestRun
An execution or trial of one or more tests
Public Class Methods
new(client)
click to toggle source
# File lib/platform-api/client.rb, line 3524 def initialize(client) @client = client end
Public Instance Methods
create(body = {})
click to toggle source
Create a new test-run.
@param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 3531 def create(body = {}) @client.test_run.create(body) end
info(test_run_id)
click to toggle source
Info for existing test-run.
@param test_run_id: unique identifier of a test run
# File lib/platform-api/client.rb, line 3538 def info(test_run_id) @client.test_run.info(test_run_id) end
info_by_pipeline(pipeline_id, test_run_number)
click to toggle source
Info for existing test-run by Pipeline
@param pipeline_id: unique identifier of pipeline @param test_run_number: the auto incrementing test run number
# File lib/platform-api/client.rb, line 3553 def info_by_pipeline(pipeline_id, test_run_number) @client.test_run.info_by_pipeline(pipeline_id, test_run_number) end
list(pipeline_id)
click to toggle source
List existing test-runs for a pipeline.
@param pipeline_id: unique identifier of pipeline
# File lib/platform-api/client.rb, line 3545 def list(pipeline_id) @client.test_run.list(pipeline_id) end
update(test_run_number, body = {})
click to toggle source
Update a test-run's status.
@param test_run_number: the auto incrementing test run number @param body: the object to pass as the request payload
# File lib/platform-api/client.rb, line 3561 def update(test_run_number, body = {}) @client.test_run.update(test_run_number, body) end