Forum Discussion

NewAutoTester's avatar
NewAutoTester
Contributor
5 years ago
Solved

How to enable ReadyAPI Events execution from command line

Hi Team,

We are using ReadyAPI 2.6.0 along with Cucumber 4.

 

We are using events in our project. When we execute test cases from the ReadyAPI application, the events are working as expected. However, when we start the project from command line via Cucumber, we notice that the events are not triggered.

 

Could you please explain how to trigger the events in ReadyAPI project from command line. 

 

Thank you.

8 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi NewAutoTester,

     

    Could you please run the ReadyAPI test via testrunner.bat? Specify the same command line parameters that you specify in Cucumber. Do you see the same behavior? 

    • NewAutoTester's avatar
      NewAutoTester
      Contributor

      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.