Interface TestCaseBaseInterface
- All Superinterfaces:
org.springframework.context.ApplicationListener<NotificationEvent>,EventListener
public interface TestCaseBaseInterface
extends org.springframework.context.ApplicationListener<NotificationEvent>
BaseInterface for a specific TestCase
-
Method Summary
Modifier and TypeMethodDescriptionvoidCleanUp To do inside implementation: - Call 'delete' on each Testagent --> testAgentWebClient.delete(..)voidExecute: This call is async.The of the Jira-Project, where the where the Test Reports are keptName of the TestCase.Issue Key of the Zeypr TestCasevoidPrepare To do inside implementation: - Optional: Add additional data to the preparationDto - Call 'prepare' on each TestAgent --> testAgentWebClient.prepare(..)voidVerify To do inside implementation: - Call 'verify' on each TestAgent --> testAgentWebClient.verify(Methods inherited from interface org.springframework.context.ApplicationListener
onApplicationEvent, supportsAsyncExecution
-
Method Details
-
getTestCaseName
String getTestCaseName()Name of the TestCase. Has to be exactly the same as the Classname of the specific TestCaseImplementation- Returns:
- testCaseName
-
getJiraProjectKey
String getJiraProjectKey()The of the Jira-Project, where the where the Test Reports are kept- Returns:
- jiraProjectKey
-
getZephyrTestCaseKey
String getZephyrTestCaseKey()Issue Key of the Zeypr TestCase- Returns:
- TestCase JiraIssue-key
-
prepare
Prepare To do inside implementation: - Optional: Add additional data to the preparationDto - Call 'prepare' on each TestAgent --> testAgentWebClient.prepare(..)- Parameters:
testId- the Id of this TestRunpreparationDto- which you can add data (key, value)
-
execute
Execute: This call is async. To do inside implementation: - Build your own ActionDto - Call 'act' on each TestAgent --> testAgentWebClient.act(..)- Parameters:
testId- the Id of this TestRun
-
verify
Verify To do inside implementation: - Call 'verify' on each TestAgent --> testAgentWebClient.verify(..) - Store Report to Db --> testReportService.persistTestResult(..)- Parameters:
testId- the Id of this TestRun
-
cleanUp
CleanUp To do inside implementation: - Call 'delete' on each Testagent --> testAgentWebClient.delete(..)- Parameters:
testId- the Id of this TestRun
-