Package com.testomatio.reporter.client
Interface ApiInterface
-
- All Known Implementing Classes:
DefaultApiClient
public interface ApiInterfaceAPI interface for interacting with Testomat.io platform. Provides methods for test run lifecycle management and result reporting.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateRun(String title)Creates new test run.voidfinishTestRun(String uid, float duration)Marks test run as finished.voidreportTest(String uid, TestResult result)Reports single test result.voidreportTests(String uid, List<TestResult> results)Reports multiple test results in batch.
-
-
-
Method Detail
-
createRun
String createRun(String title) throws IOException
Creates new test run.- Parameters:
title- test run title- Returns:
- unique test run identifier
- Throws:
IOException- if API request fails
-
reportTest
void reportTest(String uid, TestResult result) throws IOException
Reports single test result.- Parameters:
uid- test run identifierresult- test result to report- Throws:
IOException- if API request fails
-
reportTests
void reportTests(String uid, List<TestResult> results) throws IOException
Reports multiple test results in batch.- Parameters:
uid- test run identifierresults- test results to report- Throws:
IOException- if API request fails
-
finishTestRun
void finishTestRun(String uid, float duration) throws IOException
Marks test run as finished.- Parameters:
uid- test run identifierduration- test run duration in seconds- Throws:
IOException- if API request fails
-
-