Class TestRuns
java.lang.Object
com.testmonitor.actions.TestRuns
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignTestCases(TestRun testRun, List<Integer> testCaseIds) Assign new test cases to a test run.assignUsers(TestRun testRun, List<Integer> userIds) Assign users to a test run.Create a test run.Create a test run using the provided name and milestone.Create a test run using the provided name and milestone ID.findByName(String name, Integer milestoneId) Find a test run using the provided name and milestone ID.findOrCreate(TestRun testRun) Find a test run using the provided test run object or create a new one.findOrCreate(String name, Milestone milestone) Find a test run using the provided name and milestone or create a new one.findOrCreate(String name, Integer milestoneId) Find a test run using the provided name and milestone ID or create a new one.list()mergeTestCases(TestRun testRun, List<Integer> testCaseIds) Merge new test cases to a test run.Search through test runs.Search through test runs within a milestone.Update a test run.
-
Constructor Details
-
TestRuns
-
-
Method Details
-
list
- Returns:
- A list of test runs
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page number- Returns:
- A list of test runs
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page numberlimit- Paging limit- Returns:
- A list of test runs
- Throws:
IOExceptionURISyntaxException
-
get
- Parameters:
id- The test run ID- Returns:
- The test run that matches the ID
- Throws:
IOExceptionURISyntaxException
-
search
Search through test runs.- Parameters:
query- The search query- Returns:
- A list of test runs
- Throws:
IOExceptionURISyntaxException
-
search
public ArrayList<TestRun> search(String query, Integer milestoneId) throws IOException, URISyntaxException Search through test runs within a milestone.- Parameters:
query- The search querymilestoneId- The milestone ID- Returns:
- A list of test runs
- Throws:
IOExceptionURISyntaxException
-
create
Create a test run.- Parameters:
testRun- The test run your want to create- Returns:
- The created test run
- Throws:
IOException
-
create
Create a test run using the provided name and milestone ID. The start and end date will be set to today.- Parameters:
name- Name of the test runmilestoneId- The milestone ID- Returns:
- The created test run
- Throws:
IOException
-
create
Create a test run using the provided name and milestone. The start and end date will be set to today.- Parameters:
name- Name of the test runmilestone- The milestone- Returns:
- The created test run
- Throws:
IOException
-
findOrCreate
Find a test run using the provided test run object or create a new one.- Parameters:
testRun- The test run- Returns:
- A test run matching the test run or a new test run.
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
public TestRun findOrCreate(String name, Milestone milestone) throws IOException, URISyntaxException Find a test run using the provided name and milestone or create a new one.- Parameters:
name- The name of the test runmilestone- The milestone- Returns:
- A test run matching the provided name and milestone or a new test run.
- Throws:
IOExceptionURISyntaxException
-
findByName
public ArrayList<TestRun> findByName(String name, Integer milestoneId) throws IOException, URISyntaxException Find a test run using the provided name and milestone ID.- Parameters:
name- The name of the test runmilestoneId- The milestone ID- Returns:
- A test run matching the name and milestone ID.
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
public TestRun findOrCreate(String name, Integer milestoneId) throws IOException, URISyntaxException Find a test run using the provided name and milestone ID or create a new one.- Parameters:
name- The namemilestoneId- The milestone ID- Returns:
- A test run matching the name and milestone ID or a new test run.
- Throws:
IOExceptionURISyntaxException
-
update
Update a test run.- Parameters:
testRun- The test run you want to update- Returns:
- The updated test run
- Throws:
IOException
-
assignUsers
Assign users to a test run.- Parameters:
testRun- The test run you want to updateuserIds- A list of users ID's- Returns:
- The updated test run
- Throws:
IOException
-
assignTestCases
Assign new test cases to a test run.- Parameters:
testRun- The test run you want to updatetestCaseIds- A list of test case ID's- Returns:
- The updated test run
- Throws:
IOException
-
mergeTestCases
Merge new test cases to a test run.- Parameters:
testRun- The test run you want to updatetestCaseIds- A list of test case ID's- Returns:
- The updated test run
- Throws:
IOException
-