Contributions
Re: Unable to use Test Suite property
Here is the eclipse code WsdlProject project=new WsdlProject("E:\\IAPI\\Automation\\BookingEngineAir-soapui-project.xml"); //Grab the Test suite in the project WsdlTestSuite testsuite=project.getTestSuiteByName("TestSuite"); //Grab the testcases present in test suite //for(int i=0;i<testsuite.getTestCaseCount();i++) //{ // WsdlTestCase testCase =testsuite.getTestCaseAt(i); WsdlTestCase testCase =testsuite.getTestCaseByName("LCC Domestic Oneway Direct Flight"); WsdlTestCaseRunner runner=testCase.run(new PropertiesMap(), false);1.4KViews0likes0CommentsRe: Unable to use Test Suite property
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.1.5KViews0likes4CommentsUnable 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!1.6KViews0likes6Comments