Package step.plugins.cypress
Class CypressSessionManager
- java.lang.Object
-
- step.plugins.cypress.CypressSessionManager
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CypressSessionManager extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description CypressSessionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FilegetCypressRunnerPath()CypressSessiongetSession(String id)CypressSessionnewSession(boolean takeScreenshots, boolean headless, String baseUrl, File projectFile)
-
-
-
Method Detail
-
getCypressRunnerPath
public File getCypressRunnerPath()
-
newSession
public CypressSession newSession(boolean takeScreenshots, boolean headless, String baseUrl, File projectFile) throws ch.exense.commons.processes.ManagedProcess.ManagedProcessException, InterruptedException, IOException
- Throws:
ch.exense.commons.processes.ManagedProcess.ManagedProcessExceptionInterruptedExceptionIOException
-
getSession
public CypressSession getSession(String id)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-