Forum Discussion

nmowbray's avatar
nmowbray
Occasional Contributor
9 years ago

runTestStepByName for HTTP and Property Transfer is not working

When i try to run a test step by name thats a HTTP request or a property transfer request SoapUI is not running the tests.

 

I have created a groovy step to run these tests 

 

testRunner.runTestStepByName("CDI - Create Customer") //HTTP Request
testRunner.runTestStepByName("PropertyTransfer Customer Id") //PropertyTransfer Request 
testRunner.runTestStepByName("CDI - Create Account")  //HTTP Request
testRunner.runTestStepByName("PropertyTransfer Account Id") //PropertyTransfer Request
testRunner.runTestStepByName("CDI - Add to Billing")  //HTTP Request

 

There are no logs of any sort when we try to run this, the steps are not called at all either 

6 Replies

  • nmowbray's avatar
    nmowbray
    Occasional Contributor
    I am using ready api 2.0.0, i already looked at that but get the same results. The steps are not executed
    • groovyguy's avatar
      groovyguy
      Community Hero

      Are those tests in the same test case as your object trying to run them?

      • nmowbray's avatar
        nmowbray
        Occasional Contributor

        Yes its in the same test case, I create a groovy step and use the following in the step to try to run it 

         

        // Create Account in CDI
        if (context.expand('${#TestSuite#Mode}') == 'CDI'){
        testRunner.runTestStepByName("CDI - Create Customer")
        testRunner.runTestStepByName("PropertyTransfer Customer Id")
        testRunner.runTestStepByName("CDI - Create Account")
        testRunner.runTestStepByName("PropertyTransfer Account Id")
        testRunner.runTestStepByName("CDI - Add to Billing")

        }

    • nmrao's avatar
      nmrao
      Community Hero
      If you have previous version and check if that is working there?
      • nmowbray's avatar
        nmowbray
        Occasional Contributor

        I have tried on 1.7.0 and 1.9.0 and still same results