Class TestCases
java.lang.Object
com.testmonitor.actions.TestCases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a test case.create(String name, TestCaseFolder testCaseFolder) Create a test case using the provided name and test case folder.Create a test case using the provided name and test case folder ID.findByName(String name, Integer testCaseFolderId) Find a test case using the provided name and test folder ID.findOrCreate(TestCase testCase) Find a test case using the provided test case object or create a new one.findOrCreate(String name, TestCaseFolder testCaseFolder) Find a test case using the provided name and test case folder or create a new one.findOrCreate(String name, Integer testCaseFolderId) Find a test case using the provided name and test case folder ID or create a new one.list()move(int testCaseId, int testCaseFolderId) Move a test case to another foldermove(TestCase testCase, TestCaseFolder testCaseFolder) Move a test case to another folderSearch through test cases.Search though test cases in a folder.Update a test case.
-
Constructor Details
-
TestCases
-
-
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 testCaseFolderId) throws IOException, URISyntaxException Search though test cases in a folder.- Parameters:
query- The search querytestCaseFolderId- The test folder 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 case folder ID.- Parameters:
name- The name of the test casetestCaseFolderId- The test case folder ID- Returns:
- The created test case
- Throws:
IOException
-
create
Create a test case using the provided name and test case folder.- Parameters:
name- The name of the test casetestCaseFolder- The test case folder- Returns:
- The created test case
- Throws:
IOException
-
findOrCreate
public TestCase findOrCreate(String name, TestCaseFolder testCaseFolder) throws IOException, URISyntaxException Find a test case using the provided name and test case folder or create a new one.- Parameters:
name- The test case nametestCaseFolder- The test case folder- 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 testCaseFolderId) throws IOException, URISyntaxException Find a test case using the provided name and test folder ID.- Parameters:
name- The name of the test casetestCaseFolderId- The test folder ID- Returns:
- Test cases matching the provided name.
- Throws:
IOExceptionURISyntaxException
-
findOrCreate
public TestCase findOrCreate(String name, Integer testCaseFolderId) throws IOException, URISyntaxException Find a test case using the provided name and test case folder ID or create a new one.- Parameters:
name- The name of the test casetestCaseFolderId- The test folder ID- Returns:
- A test case matching the name and test case folder 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
-
move
Move a test case to another folder- Parameters:
testCaseId- The test case id you want to updatetestCaseFolderId- The destination test case folder id- Returns:
- The moved test case
- Throws:
IOException
-
move
Move a test case to another folder- Parameters:
testCase- The test case id you want to updatetestCaseFolder- The destination test case folder- Returns:
- The moved test case
- Throws:
IOException
-