Class ExportSender


  • public class ExportSender
    extends java.lang.Object
    Handles sending test case information to the Testomat.io API. This class builds HTTP requests containing test method bodies and metadata, then transmits them to the configured Testomat server endpoint with retry logic.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExportSender()  
      ExportSender​(io.testomat.core.propertyconfig.interf.PropertyProvider provider)
      Constructor for testing
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sendTestCases​(java.util.List<ExporterTestCase> exporterTestCases)
      Sends a list of test cases to the Testomat.io API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExportSender

        public ExportSender()
      • ExportSender

        public ExportSender​(io.testomat.core.propertyconfig.interf.PropertyProvider provider)
        Constructor for testing
        Parameters:
        provider - the property provider
    • Method Detail

      • sendTestCases

        public void sendTestCases​(java.util.List<ExporterTestCase> exporterTestCases)
        Sends a list of test cases to the Testomat.io API. Builds the request payload and transmits it to the configured endpoint with retry logic for handling temporary failures.
        Parameters:
        exporterTestCases - the test cases to send to the API
        Throws:
        MethodExporterException - if the export request fails after all retries