Forum Discussion
Hi,
When we run the ReadyAPI test via testrunner.bat with default parameters we could see the events is triggered whereas from cucumber it does not.
testrunner.bat command used:
"C:\Program Files\SmartBear\ReadyAPI-2.6.0\bin\testrunner.bat" -sTestSuite1 "-cTestCase1" -r -a -j -f${WORKSPACE} "-RJUnit-Style HTML Report" -FXML "-EDefault environment" "C:\Users\<userID>\Soap UI\SoapUIProject"
Below are the commands that are used in cucumber to run the test cases.
WsdlProjectPro project = new WsdlProjectPro("src/test/resources/xml/SoapUIProject"); WsdlTestCase testCase = project.getTestSuiteByName("TestSuite1").getTestCaseByName("TestCase1"); WsdlTestCaseRunner runner = testCase.run(new PropertiesMap(), false);
Thank You.
What event is it that is not running? The reason I ask is that from your command line, you are running a TestSuite, but in your code for cucumber you are just running a TestCase. Thus if you are expecting a TestSuite event to run I can understand why it doesn't if you just run the TestCase.
- NewAutoTester5 years agoContributor
We are having a event TestRunListener.afterStep when the test step fails there is some logging done in that event.
- Olga_T5 years agoSmartBear Alumni (Retired)
Thanks Tanya and Radford for your replies!
NewAutoTester, have you managed to find a solution?Community, maybe is there anyone who has experience in work with Cucumber? Can you assist please?
Thanks in advance.
Related Content
- 8 years agoarupacharya1784
Recent Discussions
- 4 days agominhng