Class CypressSession

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

    public class CypressSession
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • CypressSession

        public CypressSession​(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
      • getId

        public java.lang.String getId()
      • execute

        public ExecutionReport execute​(java.lang.String command)
                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • pop

        protected java.lang.String pop()
      • 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
        Throws:
        java.io.IOException