Forum Discussion

durgapatro1's avatar
durgapatro1
New Contributor
5 years ago

Unable to use Test Suite property

We use Soap Ui for API testing. At many places we use Test Suite property to store values which needs to be passed between two tests. This works fine from the tool. However we also call the rest APIs from selenium scripts which we have developed using eclipse. Here it seems the value of Test Suite property are not being retained and scripts are failing due this reason. Kindly assist!
  • durgapatro1 :

     

    What error are you getting, could you please share soapUI error log so that it will be easier to look into the issue. 🙂

     

    • durgapatro1's avatar
      durgapatro1
      New Contributor
      Thanks for your reply Himanshu. Basically we are storing the transaction ID in test suite property which we capture from the response of first test. This will be used in the second test. This works fine when I run the tests from Soap Ui tool. But when I call them from eclipse, the second test fails with error transaction ID can't be blank. The issue seems to be, first test does store the transaction ID in test suite property but the value is not being retained. Once the first test gets executed, the value in test suite property also gets lost.
      • HimanshuTayal's avatar
        HimanshuTayal
        Community Hero

        durgapatro1 :

         

        have you checked that your 1st Test Case got passed when you are running through Selenium, this might be the reason transactionID not getting stored in your TestSuite Level Custom Property. Check the response of your 1st Test Case whether it is getting passed or not.

         

        By which way you are executing your soapui project from selenium?