Package step.plugins.cypress
Class CypressSessionManager
- java.lang.Object
-
- step.plugins.cypress.CypressSessionManager
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class CypressSessionManager extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description CypressSessionManager(int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getActualPort()
CypressCommandRunnerSession
getCommandRunnerSession(java.lang.String id)
java.io.File
getCypressRunnerPath()
CypressSpecRunnerSession
getSpecRunnerSession(java.lang.String id)
CypressCommandRunnerSession
newCommandRunnerSession(boolean takeScreenshots, boolean headless, java.lang.String baseUrl, java.io.File projectFile)
CypressSpecRunnerSession
newSpecRunnerSession(java.io.File projectFile)
void
removeSpecRunnerSession(java.lang.String id)
-
-
-
Method Detail
-
getCypressRunnerPath
public java.io.File getCypressRunnerPath()
-
getActualPort
public int getActualPort()
-
newCommandRunnerSession
public CypressCommandRunnerSession newCommandRunnerSession(boolean takeScreenshots, boolean headless, java.lang.String baseUrl, java.io.File projectFile) throws ch.exense.commons.processes.ManagedProcess.ManagedProcessException, java.lang.InterruptedException, java.io.IOException
- Throws:
ch.exense.commons.processes.ManagedProcess.ManagedProcessException
java.lang.InterruptedException
java.io.IOException
-
newSpecRunnerSession
public CypressSpecRunnerSession newSpecRunnerSession(java.io.File projectFile)
-
getCommandRunnerSession
public CypressCommandRunnerSession getCommandRunnerSession(java.lang.String id)
-
getSpecRunnerSession
public CypressSpecRunnerSession getSpecRunnerSession(java.lang.String id)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
removeSpecRunnerSession
public void removeSpecRunnerSession(java.lang.String id)
-
-