Package step.plugins.cypress
Class CypressCommandRunnerSession
- java.lang.Object
-
- step.plugins.cypress.AbstractCypressSession
-
- step.plugins.cypress.CypressCommandRunnerSession
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class CypressCommandRunnerSession extends AbstractCypressSession
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRUNNER_SPEC_LOCATION_9-
Fields inherited from class step.plugins.cypress.AbstractCypressSession
CYPRESS_VERSION_PATTERN, cypressSessionManager, DEFAULT_CYPRESS_VERSION, detectedCypressVersion, id, projectFile, projectPath
-
-
Constructor Summary
Constructors Constructor Description CypressCommandRunnerSession(CypressSessionManager cypressSessionManager, java.io.File projectFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ExecutionReportexecute(java.lang.String command, long commandTimeout)protected java.lang.StringgetNextCommand()protected voidonCypressStarted()protected voidreportExecution(ExecutionReport report)protected voidstart(boolean takeScreenshots, boolean headless, java.lang.String baseUrl)-
Methods inherited from class step.plugins.cypress.AbstractCypressSession
collectScreenshots, ensureCypressExeIsExecutable, getCypressExe, getId, readCypressVersion, readProcessLog, runCommand, runCypressInstall, runNpmInstallIfPackageJsonAvailable
-
-
-
-
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.InterruptedExceptionch.exense.commons.processes.ManagedProcess.ManagedProcessExceptionjava.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- Throws:
java.io.IOException
-
-