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 Type
    Method
    Description
    void
    cleanUp(String testId)
    CleanUp To do inside implementation: - Call 'delete' on each Testagent --> testAgentWebClient.delete(..)
    void
    execute(String testId)
    Execute: This call is async.
    The of the Jira-Project, where the where the Test Reports are kept
    Name of the TestCase.
    Issue Key of the Zeypr TestCase
    void
    prepare(String testId, ch.admin.bit.jeap.testagent.api.prepare.PreparationDto preparationDto)
    Prepare To do inside implementation: - Optional: Add additional data to the preparationDto - Call 'prepare' on each TestAgent --> testAgentWebClient.prepare(..)
    void
    verify(String testId)
    Verify 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

      void prepare(String testId, ch.admin.bit.jeap.testagent.api.prepare.PreparationDto preparationDto)
      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 TestRun
      preparationDto - which you can add data (key, value)
    • execute

      @Async void execute(String testId)
      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

      void verify(String testId)
      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

      void cleanUp(String testId)
      CleanUp To do inside implementation: - Call 'delete' on each Testagent --> testAgentWebClient.delete(..)
      Parameters:
      testId - the Id of this TestRun