Package com.testmonitor.actions
Class TestCases
java.lang.Object
com.testmonitor.actions.TestCases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a test case.Create a test case using the provided name and test suite.Create a test case using the provided name and test suite ID.findByName(String name, Integer testSuiteId) Find a test case using the provided name and test suite ID.findOrCreate(TestCase testCase) Find a test case using the provided test case object or create a new one.findOrCreate(String name, TestSuite testSuite) Find a test case using the provided name and test suite or create a new one.findOrCreate(String name, Integer testSuiteId) Find a test case using the provided name and test suite ID or create a new one.list()Search through test cases.Search though test cases in a test suite.Update a test case.
-
Constructor Details
-
TestCases
- Parameters:
connector- The TestMonitor connectorproject- The TestMonitor project
-
-
Method Details
-
list
- Returns:
- A list of test cases
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page number- Returns:
- A list of test cases
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page numberlimit- Paging limit- Returns:
- A list of test cases
- Throws:
IOExceptionURISyntaxException
-
get
- Parameters:
id- The test case ID- Returns:
- The test case matching the ID
- Throws:
IOExceptionURISyntaxException
-
search
Search through test cases.- Parameters:
query- The search query- Returns:
- A list of results
- Throws:
IOExceptionURISyntaxException
-
search
public ArrayList<TestCase> search(String query, Integer testSuiteId) throws IOException, URISyntaxException Search though test cases in a test suite.- Parameters:
query- The search querytestSuiteId- The test suite ID- Returns:
- A list of results
- Throws:
IOExceptionURISyntaxException
-
create
Create a test case.- Parameters:
testCase- The test case your want to create- Returns:
- The created test case
- Throws:
IOException
-
create
Create a test case using the provided name and test suite ID.- Parameters:
name- The name of the test casetestSuiteId- The test suite ID- Returns:
- The created test case
- Throws:
IOException
-
create
Create a test case using the provided name and test suite.- Parameters:
name- The name of the test casetestSuite- The test suite- Returns:
- The created test case
- Throws:
IOException
-
findOrCreate
public TestCase findOrCreate(String name, TestSuite testSuite) throws IOException, URISyntaxException Find a test case using the provided name and test suite or create a new one.- Parameters:
name- The test case nametestSuite- The test suite- Returns:
- A test case matching the provided name or a new test case.
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
Find a test case using the provided test case object or create a new one.- Parameters:
testCase- The test case- Returns:
- A test case matching the test case object or a new test case.
- Throws:
IOExceptionURISyntaxException
-
findByName
public ArrayList<TestCase> findByName(String name, Integer testSuiteId) throws IOException, URISyntaxException Find a test case using the provided name and test suite ID.- Parameters:
name- The name of the test casetestSuiteId- The test suite ID- Returns:
- Test cases matching the provided name.
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
public TestCase findOrCreate(String name, Integer testSuiteId) throws IOException, URISyntaxException Find a test case using the provided name and test suite ID or create a new one.- Parameters:
name- The name of the test casetestSuiteId- The test suite ID- Returns:
- A test case matching the name and test suite ID or a new test case.
- Throws:
IOExceptionURISyntaxException
-
update
Update a test case.- Parameters:
testCase- The test case you want to update- Returns:
- The updated test case
- Throws:
IOException
-