Class SocketIpsTestRunner

  • All Implemented Interfaces:
    IpsTestListener

    public class SocketIpsTestRunner
    extends AbstractIpsTestRunner
    Socket test runner. Opens a socket connection to a given socket server port and runs the given ips tests. The result will be written to the server socket.
    Author:
    Joerg Ortmann
    • Constructor Detail

      • SocketIpsTestRunner

        public SocketIpsTestRunner()
      • SocketIpsTestRunner

        public SocketIpsTestRunner​(int port,
                                   java.lang.String repositoryPackages,
                                   java.lang.String additionalRepositoryPackages)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The entry point for the socket test runner. The arguments are: args[0]: the port number to connect to args[1]: package name of the classpath repository args[2]: Name of the testsuite to run args[3]: additional classpath repositories (to find objects in the runtime environment)
        Throws:
        java.lang.Exception
      • run

        public void run​(java.lang.String name)
        Description copied from class: AbstractIpsTestRunner
        Run the all ips test cases in the given packages.
        The format of the input string is:
         {packageName in repository1}{packageName in repository2}{...}
         
        Overrides:
        run in class AbstractIpsTestRunner
      • testStarted

        public void testStarted​(IpsTest2 test)
      • testFinished

        public void testFinished​(IpsTest2 test)
      • testFailureOccured

        public void testFailureOccured​(IpsTestFailure failure)