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.String
RUNNER_SPEC_LOCATION_9
-
Fields inherited from class step.plugins.cypress.AbstractCypressSession
CYPRESS_VERSION_PATTERN, cypressSessionManager, DEFAULT_CYPRESS_VERSION, detectedCypressVersion, id, projectFile, projectPath, screenshotPath
-
-
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 void
close()
ExecutionReport
execute(java.lang.String command, long commandTimeout)
protected java.lang.String
getNextCommand()
protected void
onCypressStarted()
protected void
reportExecution(ExecutionReport report)
protected void
start(boolean takeScreenshots, boolean headless, java.lang.String baseUrl)
-
Methods inherited from class step.plugins.cypress.AbstractCypressSession
collectScreenshots, ensureCypressExeIsExecutable, getCypressExe, getId, readCypressVersion, readProcessLog, runCommand, 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.InterruptedException
ch.exense.commons.processes.ManagedProcess.ManagedProcessException
java.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
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classAbstractCypressSession
- Throws:
java.io.IOException
-
-