public class ClientRequest extends Object
| Constructor and Description |
|---|
ClientRequest(PrintStream logger,
int apiPort,
Launcher launcher)
Constructor for REST Api calls to EXAM
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearWorkspace(String projectName)
Deletes the project configuration at EXAM and deletes the corresponding report and pcode folders
|
boolean |
connectClient(Executor executor,
int timeout)
try to connect to EXAM REST Server within a timeout
|
void |
convert(String reportProject)
Request the Api Version from EXAM Client
|
void |
createExamProject(ModelConfiguration modelConfiguration)
Creates a Exam Project on the Client.
|
void |
disconnectClient(Executor executor,
int timeout)
Try to disconnect from EXAM Client
|
void |
executeGoovyScript(GroovyConfiguration groovyConfiguration)
Executes a Groovy Script at the Exam Client.
|
void |
generateTestcases(GenerateConfiguration generateConfiguration)
Generates Testcases with the TCG at the Exam Client.
|
int |
getApiPort() |
ApiVersion |
getApiVersion()
Request the Api Version from EXAM Client
|
PrintStream |
getLogger() |
ExamStatus |
getStatus()
Request the job xxecution status from EXAM Client
|
boolean |
isApiAvailable()
Checks, if the EXAM Client ist responding
|
boolean |
isClientConnected() |
void |
setApiPort(int apiPort) |
void |
setLogger(PrintStream logger) |
void |
setTestrunFilter(FilterConfiguration filterConfig)
Setting the EXAM Client
|
void |
startTestrun(TestConfiguration testConfig)
Configure and start testrun at EXAM Client
|
void |
stopTestrun()
stops a testrun
|
void |
waitForExamIdle(Executor executor,
int wait)
Waits until EXAM is idle
|
void |
waitForExportPDFReportJob(Executor executor,
int wait)
Waits until EXAM is idle
|
void |
waitForTestrunEnds(Executor executor,
int wait)
Waits for the EXAM Testrun ends
|
public ClientRequest(PrintStream logger, int apiPort, Launcher launcher)
logger - PrintStreamapiPort - Portlauncher - Launcherpublic boolean isClientConnected()
public int getApiPort()
public void setApiPort(int apiPort)
public PrintStream getLogger()
public void setLogger(PrintStream logger)
@Nullable public ExamStatus getStatus() throws IOException, InterruptedException
InterruptedException - InterruptedExceptionIOException - IOException@Nullable public ApiVersion getApiVersion() throws IOException, InterruptedException
InterruptedException - InterruptedExceptionIOException - IOExceptionpublic boolean isApiAvailable()
throws IOException,
InterruptedException
IOException - IOExceptionInterruptedException - InterruptedExceptionpublic void createExamProject(ModelConfiguration modelConfiguration) throws IOException, InterruptedException
modelConfiguration - ModelConfigurationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void setTestrunFilter(FilterConfiguration filterConfig) throws IOException, AbortException, InterruptedException
filterConfig - FilterConfigurationAbortException - AbortExceptionInterruptedException - InterruptedExceptionIOException - IOExceptionpublic void convert(String reportProject) throws IOException, InterruptedException
reportProject - StringInterruptedException - InterruptedExceptionIOException - IOExceptionpublic void startTestrun(TestConfiguration testConfig) throws IOException, InterruptedException
testConfig - TestConfigurationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void executeGoovyScript(GroovyConfiguration groovyConfiguration) throws IOException, InterruptedException
groovyConfiguration - GroovyConfigurationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void generateTestcases(GenerateConfiguration generateConfiguration) throws IOException, InterruptedException
generateConfiguration - GenerateConfigurationIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void stopTestrun()
throws IOException,
InterruptedException
IOException - IOExceptionInterruptedException - InterruptedExceptionpublic void clearWorkspace(String projectName) throws IOException, InterruptedException
projectName - StringIOException - IOExceptionInterruptedException - InterruptedExceptionpublic boolean connectClient(Executor executor, int timeout) throws IOException, InterruptedException
executor - Executortimeout - millisIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void disconnectClient(Executor executor, int timeout) throws IOException, InterruptedException
executor - Executortimeout - millisIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void waitForTestrunEnds(Executor executor, int wait) throws IOException, InterruptedException
executor - Executorwait - time in sIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void waitForExamIdle(Executor executor, int wait) throws IOException, InterruptedException
executor - Executorwait - time in sIOException - IOExceptionInterruptedException - InterruptedExceptionpublic void waitForExportPDFReportJob(Executor executor, int wait) throws IOException, InterruptedException
executor - Executorwait - time in sIOException - IOExceptionInterruptedException - InterruptedExceptionCopyright © 2016–2023 MicroNova AG. All rights reserved.