Class PackageClient

  • All Implemented Interfaces:
    TestClient

    public class PackageClient
    extends AbstractTestClient
    Client to execute ecu.test packages via COM interface.
    • Constructor Detail

      • PackageClient

        public PackageClient​(String testFile,
                             TestConfig testConfig,
                             PackageConfig packageConfig,
                             ExecutionConfig executionConfig)
        Instantiates a new PackageClient.
        Parameters:
        testFile - the package file
        testConfig - the test configuration
        packageConfig - the package configuration
        executionConfig - the execution configuration
    • Method Detail

      • getPackageConfig

        public PackageConfig getPackageConfig()
        Gets package config.
        Returns:
        the package config
      • getOutputParameters

        public Map<String,​String> getOutputParameters()
        Gets output parameters.
        Returns:
        the output parameters
      • setOutputParameters

        public void setOutputParameters​(Map<String,​String> outParams)
        Sets output parameters.
        Parameters:
        outParams - the out params
      • runTestCase

        public boolean runTestCase​(Run<?,​?> run,
                                   FilePath workspace,
                                   Launcher launcher,
                                   TaskListener listener)
                            throws IOException,
                                   InterruptedException
        Description copied from interface: TestClient
        Runs a test case, can be either an ecu.test package or project.
        Parameters:
        run - the run
        workspace - the workspace
        launcher - the launcher
        listener - the listener
        Returns:
        true if successful, false otherwise
        Throws:
        IOException - signals that an I/O exception has occurred
        InterruptedException - if the build gets interrupted