Package com.piketec.tpt.api.tasmo
Interface TasmoTestDataGenerationController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close and dispose this object.void
exportCoverageResultsReport(java.io.File file)
Export the coverage results overview as csv.void
exportGeneratedTestcases(ScenarioGroup targetGroup)
Export the generated test cases.void
exportInputSpecificationReport(java.io.File file)
Export the input specification overview as csv.java.util.List<TasmoCoverageGoal>
getCoverageGoals()
Get the list of all coverage goals.TasmoTestdataGenerationStatus
getCurrentStatus()
Get the current state of the TASMO test data generation.java.lang.String
getErrorMessage()
Get the error message in case the TASMO test data generation stopped with an error.void
pause()
Pause the TASMO test data generation.void
setImportedCoverageData(ExecutionConfigurationItem[] executionConfigItems)
Set the execution config items from which measured coverage data from existing test cases should be imported.void
start()
Start or continue the TASMO test data generation.void
stop()
Stop the TASMO test data generation.
-
-
-
Method Detail
-
getCoverageGoals
java.util.List<TasmoCoverageGoal> getCoverageGoals() throws java.rmi.RemoteException
Get the list of all coverage goals.- Returns:
- A list of all coverage goals
- Throws:
java.rmi.RemoteException
- remote communication problem
-
getCurrentStatus
TasmoTestdataGenerationStatus getCurrentStatus() throws java.rmi.RemoteException
Get the current state of the TASMO test data generation.- Returns:
- The current state of the TASMO test data generation
- Throws:
java.rmi.RemoteException
- remote communication problem
-
getErrorMessage
java.lang.String getErrorMessage() throws java.rmi.RemoteException
Get the error message in case the TASMO test data generation stopped with an error. In this casegetCurrentStatus()
will returnTasmoTestdataGenerationStatus.ERROR
. If there was no error this function will returnnull
.- Returns:
- The error message or
null
if there has not been any error - Throws:
java.rmi.RemoteException
- remote communication problem
-
setImportedCoverageData
void setImportedCoverageData(ExecutionConfigurationItem[] executionConfigItems) throws java.rmi.RemoteException
Set the execution config items from which measured coverage data from existing test cases should be imported.- Parameters:
executionConfigItems
- The execution config items from which measured coverage data should be imported.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation is currently running.
-
start
void start() throws java.rmi.RemoteException
Start or continue the TASMO test data generation.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation is already running.
-
pause
void pause() throws java.rmi.RemoteException
Pause the TASMO test data generation.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation is not running.
-
stop
void stop() throws java.rmi.RemoteException
Stop the TASMO test data generation.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation has not yet stopped.
-
exportGeneratedTestcases
void exportGeneratedTestcases(ScenarioGroup targetGroup) throws java.rmi.RemoteException
Export the generated test cases.- Parameters:
targetGroup
- The target scenario group to export the test cases to.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation has not yet stopped.
-
exportInputSpecificationReport
void exportInputSpecificationReport(java.io.File file) throws java.rmi.RemoteException
Export the input specification overview as csv.- Parameters:
file
- The file to export the results to.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation has not yet stopped.
-
exportCoverageResultsReport
void exportCoverageResultsReport(java.io.File file) throws java.rmi.RemoteException
Export the coverage results overview as csv.- Parameters:
file
- The file to export the results to.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation has not yet stopped.
-
close
void close() throws java.rmi.RemoteException
Close and dispose this object. This will close the TASMO UI as well. After this is called all further calls to functions of this object will throw anApiException
. Can only be done if the TASMO test data generation has not yet been startet or has already stopped.- Throws:
java.rmi.RemoteException
- remote communication problemApiException
- if the TASMO test data generation has not yet stopped.
-
-