Class UploadTestsSubscriber
java.lang.Object
de.qytera.qtaf.testrail.event_subscriber.UploadTestsSubscriber
- All Implemented Interfaces:
IEventSubscriber
This subscriber binds to the test finished event and uploads the tests to the TestRail API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleantestRail API clientrx.SubscriptionQTAF Event SubscriptionvoidhandleScenarioFailure(TestScenarioLogCollection scenarioLog, TestRail testRailIdAnnotation) Handle scenario failurevoidhandleScenarioSuccess(TestRail testRailIdAnnotation) Handle scenario successinthashCode()voidvoidonFinishedTesting(String testingContext) Event handler for finished testing eventvoidtestRail API clientvoidsetTestFinishedSubscription(rx.Subscription testFinishedSubscription) QTAF Event SubscriptionSet up the client for the TestRail API.toString()
-
Constructor Details
-
UploadTestsSubscriber
public UploadTestsSubscriber()
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceIEventSubscriber
-
setUpClient
Set up the client for the TestRail API. -
onFinishedTesting
Event handler for finished testing event- Parameters:
testingContext- Test context event payload
-
handleScenarioSuccess
Handle scenario success- Parameters:
testRailIdAnnotation- testrail annotation of scenario
-
handleScenarioFailure
public void handleScenarioFailure(TestScenarioLogCollection scenarioLog, TestRail testRailIdAnnotation) Handle scenario failure- Parameters:
scenarioLog- step logstestRailIdAnnotation- testrail annotation of scenario
-
getTestFinishedSubscription
public rx.Subscription getTestFinishedSubscription()QTAF Event Subscription -
getClient
testRail API client -
setTestFinishedSubscription
public void setTestFinishedSubscription(rx.Subscription testFinishedSubscription) QTAF Event Subscription -
setClient
testRail API client -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-