Class TestResults
java.lang.Object
com.testmonitor.actions.TestResults
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment(TestResult testResult, File attachment) Add an attachment to a test result.create(TestResult testResult) Create a test resultlist()Search through test results.update(TestResult testResult) Update a test result.
-
Constructor Details
-
TestResults
-
-
Method Details
-
list
- Returns:
- A list of test results
- Throws:
IOExceptionURISyntaxException
-
list
- Parameters:
page- Page number- Returns:
- A list of test results
- Throws:
IOExceptionURISyntaxException
-
list
public ArrayList<TestResult> list(Integer page, Integer limit) throws IOException, URISyntaxException - Parameters:
page- Page numberlimit- Paging limit- Returns:
- A list of test results
- Throws:
IOExceptionURISyntaxException
-
get
- Parameters:
id- The test result ID- Returns:
- The test result that matches the ID
- Throws:
IOException
-
search
Search through test results.- Parameters:
query- The search query- Returns:
- A list of results
- Throws:
IOExceptionURISyntaxException
-
create
Create a test result- Parameters:
testResult- The test result- Returns:
- The created test result
- Throws:
IOException
-
update
Update a test result.- Parameters:
testResult- The test result you want to update- Returns:
- The updated test result
- Throws:
IOException
-
addAttachment
Add an attachment to a test result.- Parameters:
testResult- The test result you want to add an attachment toattachment- The file attachment- Returns:
- The test result
- Throws:
IOException
-