Interface TasmoTestDataGenerationController

  • All Superinterfaces:
    java.rmi.Remote, TptRemote

    public interface TasmoTestDataGenerationController
    extends TptRemote
    This interface provides access to TASMO test data generation.
    Author:
    Copyright (c) 2014-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
    • Method Detail

      • getCoverageGoals

        java.util.List<TasmoCoverageGoal> getCoverageGoals()
                                                    throws java.rmi.RemoteException
        Get the list of all coverage goals.
        Returns:
        A list of all coverage goals
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getCurrentStatus

        TasmoTestdataGenerationStatus getCurrentStatus()
                                                throws java.rmi.RemoteException
        Get the current state of the TASMO test data generation.
        Returns:
        The current state of the TASMO test data generation
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getErrorMessage

        java.lang.String getErrorMessage()
                                  throws java.rmi.RemoteException
        Get the error message in case the TASMO test data generation stopped with an error. In this case getCurrentStatus() will return TasmoTestdataGenerationStatus.ERROR. If there was no error this function will return null.
        Returns:
        The error message or null if there has not been any error
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setImportedCoverageData

        void setImportedCoverageData​(ExecutionConfigurationItem[] executionConfigItems)
                              throws java.rmi.RemoteException
        Set the execution config items from which measured coverage data from existing test cases should be imported.
        Parameters:
        executionConfigItems - The execution config items from which measured coverage data should be imported.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation is currently running.
      • start

        void start()
            throws java.rmi.RemoteException
        Start or continue the TASMO test data generation.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation is already running.
      • pause

        void pause()
            throws java.rmi.RemoteException
        Pause the TASMO test data generation.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation is not running.
      • stop

        void stop()
           throws java.rmi.RemoteException
        Stop the TASMO test data generation.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • exportGeneratedTestcases

        void exportGeneratedTestcases​(ScenarioGroup targetGroup)
                               throws java.rmi.RemoteException
        Export the generated test cases.
        Parameters:
        targetGroup - The target scenario group to export the test cases to.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • exportInputSpecificationReport

        void exportInputSpecificationReport​(java.io.File file)
                                     throws java.rmi.RemoteException
        Export the input specification overview as csv.
        Parameters:
        file - The file to export the results to. The csv extension is added to the file if not present.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • exportInputSpecificationReportByPath

        void exportInputSpecificationReportByPath​(java.lang.String file)
                                           throws java.rmi.RemoteException,
                                                  ApiException
        Export the input specification overview as csv.
        Parameters:
        file - The path to the file where to export the results to. The csv extension is added to the path if not present.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • exportCoverageResultsReport

        void exportCoverageResultsReport​(java.io.File file)
                                  throws java.rmi.RemoteException
        Export the coverage results overview as csv.
        Parameters:
        file - The file to export the results to. The csv extension is added to the file if not present.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • exportCoverageResultsReportByPath

        void exportCoverageResultsReportByPath​(java.lang.String file)
                                        throws java.rmi.RemoteException,
                                               ApiException
        Export the coverage results overview as csv.
        Parameters:
        file - The path to the file where to export the results to. The csv extension is added to the file if not present.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.
      • close

        void close()
            throws java.rmi.RemoteException
        Close and dispose this object. This will close the TASMO UI as well. After this is called all further calls to functions of this object will throw an ApiException. Can only be done if the TASMO test data generation has not yet been startet or has already stopped.
        Throws:
        java.rmi.RemoteException - remote communication problem
        ApiException - if the TASMO test data generation has not yet stopped.