Forum Discussion
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
5 years agoCommunity Hero
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?
- durgapatro15 years agoNew ContributorYes First test case gets passed. We are using the soap ui binaries and other jars which are present inside class folder in the soap ui installation folder. We add them all to our project in eclipse and run the service from eclipse.
- nmrao5 years agoChampion Level 3It is difficult unless there are steps to reproduce for others.
- durgapatro15 years agoNew ContributorHere 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);
Related Content
- 5 years ago
- 10 years ago
Recent Discussions
- 15 years ago