Interface ApiInterface

  • All Known Implementing Classes:
    DefaultApiClient

    public interface ApiInterface
    API interface for interacting with Testomat.io platform. Provides methods for test run lifecycle management and result reporting.
    • 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 identifier
        result - 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 identifier
        results - 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 identifier
        duration - test run duration in seconds
        Throws:
        IOException - if API request fails