Class PhantomJsTestRunner


  • public class PhantomJsTestRunner
    extends Object
    • Field Detail

      • LOG_LEVEL_PATTERN

        public static final Pattern LOG_LEVEL_PATTERN
    • Constructor Detail

      • PhantomJsTestRunner

        public PhantomJsTestRunner​(String phantomjs,
                                   String testPageUrl,
                                   String testResultFilename,
                                   String testRunner,
                                   int timeout,
                                   int maxRetriesOnCrashes,
                                   int phantomjsResourceTimeout,
                                   boolean phantomjsDebug,
                                   boolean phantomjsWebSecurity,
                                   org.apache.maven.plugin.logging.Log log)
        Parameters:
        phantomjs - the binary to execute
        testPageUrl - the URL of the test page to load
        testResultFilename - the file to write the test result into
        testRunner - the test bootstrap script to be loaded in phantomjs
        timeout - timeout in seconds
        maxRetriesOnCrashes - number of retries when receiving unexpected result from phantomjs (crash?)
        phantomjsResourceTimeout -
        phantomjsDebug -
        phantomjsWebSecurity -
        log - the maven log
    • Method Detail

      • execute

        public boolean execute()
                        throws org.codehaus.plexus.util.cli.CommandLineException
        Throws:
        org.codehaus.plexus.util.cli.CommandLineException
      • canRun

        public boolean canRun()