Package step.plugins.cypress
Class CypressSession
- java.lang.Object
-
- step.plugins.cypress.CypressSession
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class CypressSession extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description CypressSession(CypressSessionManager cypressSessionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ExecutionReport
execute(java.lang.String command)
java.lang.String
getId()
protected java.lang.String
getNextCommand()
protected void
onCypressStarted()
protected java.lang.String
pop()
protected void
reportExecution(ExecutionReport report)
protected void
start(boolean takeScreenshots, boolean headless, java.lang.String baseUrl)
-
-
-
Constructor Detail
-
CypressSession
public CypressSession(CypressSessionManager cypressSessionManager) throws ch.exense.commons.processes.ManagedProcess.ManagedProcessException, java.lang.InterruptedException
- Throws:
ch.exense.commons.processes.ManagedProcess.ManagedProcessException
java.lang.InterruptedException
-
-
Method Detail
-
start
protected void start(boolean takeScreenshots, boolean headless, java.lang.String baseUrl) throws java.lang.InterruptedException, ch.exense.commons.processes.ManagedProcess.ManagedProcessException
- Throws:
java.lang.InterruptedException
ch.exense.commons.processes.ManagedProcess.ManagedProcessException
-
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-