Class CypressCommandRunnerSession

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class CypressCommandRunnerSession
    extends AbstractCypressSession
    • Field Detail

      • RUNNER_SPEC_LOCATION_9

        public static final java.lang.String RUNNER_SPEC_LOCATION_9
        See Also:
        Constant Field Values
    • Constructor Detail

      • CypressCommandRunnerSession

        public CypressCommandRunnerSession​(CypressSessionManager cypressSessionManager,
                                           java.io.File projectFile)
    • Method Detail

      • start

        protected void start​(boolean takeScreenshots,
                             boolean headless,
                             java.lang.String baseUrl)
                      throws java.lang.InterruptedException,
                             ch.exense.commons.processes.ManagedProcess.ManagedProcessException,
                             java.io.IOException
        Throws:
        java.lang.InterruptedException
        ch.exense.commons.processes.ManagedProcess.ManagedProcessException
        java.io.IOException
      • execute

        public ExecutionReport execute​(java.lang.String command,
                                       long commandTimeout)
                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • onCypressStarted

        protected void onCypressStarted()
      • reportExecution

        protected void reportExecution​(ExecutionReport report)
      • getNextCommand

        protected java.lang.String getNextCommand()
                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class AbstractCypressSession
        Throws:
        java.io.IOException