Package com.testmonitor.actions
Class TestCases
java.lang.Object
com.testmonitor.actions.TestCases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a test case in TestMonitorCreate a test case in TestMonitorCreate a test case in TestMonitorfindOrCreate(TestCase testCase) Search or create a test case.findOrCreate(String search, TestSuite testSuite) Search or create a test case.findOrCreate(String search, Integer testSuiteId) Search or create a test case.list()Search a test caseSearch a test caseUpdate a test case
-
Constructor Details
-
TestCases
- Parameters:
connector- The TestMonitor connector to perfom HTTP requestsproject- The project you want to work on
-
-
Method Details
-
list
- Returns:
- A list of test cases
-
list
- Returns:
- A list of test cases
-
list
- Returns:
- A list of test cases
-
get
- Parameters:
id- The test case ID- Returns:
- The test case that matches the ID
-
search
Search a test case- Parameters:
search- The search string- Returns:
- A list of results
-
search
Search a test case- Parameters:
search- The search string- Returns:
- A list of results
-
create
Create a test case in TestMonitor- Parameters:
testCase- The test case your want to create- Returns:
- The created test case
-
create
Create a test case in TestMonitor- Parameters:
name- The name of the test casetestSuiteId- The ID of the test suite- Returns:
- The created test case
-
create
Create a test case in TestMonitor- Parameters:
name- The name of the test casetestSuite- The ID of the test suite- Returns:
- The created test case
-
findOrCreate
Search or create a test case. When the test case is not found there will be a test case created.- Parameters:
search- The search query- Returns:
- The first result or a fresh created test case
-
findOrCreate
Search or create a test case. When the test case is not found there will be a test case created.- Parameters:
testCase- The search query- Returns:
- The first result or a fresh created test case
-
findOrCreate
Search or create a test case. When the test case is not found there will be a test case created.- Parameters:
search- The search query- Returns:
- The first result or a fresh created test case
-
update
Update a test case- Parameters:
testCase- The test case you want to update- Returns:
- A new instance of the project
-