streamerd
7 years agoOccasional Contributor
TestStep is listed under WsdlTestCase on debug, however cannot be saved to project file at .saveIn()
Hi all, I've recently saved a wsdl project without any hassle, and now would like to do the similar with REST endpoints.
I've come up with a piece of code that can actually working up to a poin...
- 7 years ago
Hi there,
There's a problem here:
WsdlTestSuite wsdlTestSuite = wsdlProject.addNewTestSuite("Suite"); wsdlTestSuite.addNewTestCase("Case"); WsdlTestCase wsdlTestCase = new WsdlTestCase(wsdlTestSuite, testCaseConfig, false);
Looks like the test case assigned to wsdlTestCase is not the same one that is added to the Test Suite.
Instead, try this:
WsdlTestSuite wsdlTestSuite = wsdlProject.addNewTestSuite("Suite");
WsdlTestCase wsdlTestCase = new WsdlTestCase(wsdlTestSuite, testCaseConfig, false);
wsdlTestCase = wsdlTestSuite.importTestCase(wsdlTestCase, "Case", -1, false, false, false);It works in the UI and I can see it in the project.xml too.