Class UploadTestsSubscriber

java.lang.Object
de.qytera.qtaf.testrail.event_subscriber.UploadTestsSubscriber
All Implemented Interfaces:
IEventSubscriber

public class UploadTestsSubscriber extends Object implements IEventSubscriber
This subscriber binds to the test finished event and uploads the tests to the TestRail API
  • Constructor Details

    • UploadTestsSubscriber

      public UploadTestsSubscriber()
  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface IEventSubscriber
    • setUpClient

      Set up the client for the TestRail API.
      Throws:
      GeneralSecurityException
      MissingConfigurationValueException
    • onFinishedTesting

      public void onFinishedTesting(String testingContext)
      Event handler for finished testing event
      Parameters:
      testingContext - Test context event payload
    • handleScenarioSuccess

      public void handleScenarioSuccess(TestRail testRailIdAnnotation)
      Handle scenario success
      Parameters:
      testRailIdAnnotation - testrail annotation of scenario
    • handleScenarioFailure

      public void handleScenarioFailure(TestScenarioLogCollection scenarioLog, TestRail testRailIdAnnotation)
      Handle scenario failure
      Parameters:
      scenarioLog - step logs
      testRailIdAnnotation - testrail annotation of scenario
    • getTestFinishedSubscription

      public rx.Subscription getTestFinishedSubscription()
      QTAF Event Subscription
    • getClient

      public APIClient getClient()
      testRail API client
    • setTestFinishedSubscription

      public void setTestFinishedSubscription(rx.Subscription testFinishedSubscription)
      QTAF Event Subscription
    • setClient

      public void setClient(APIClient client)
      testRail API client
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object