Forum Discussion
pteichner
13 years agoOccasional Contributor
I've been looking around and found some ideas and found the one below, but the problem is that this is using the WsdlProject rather than the WsdlProjectPro.
Still loooking for how to Run my project. It returns the testSuites and the testCases, but I need to construct a runable object if I'm not incorrect.
Again Thanks
Still loooking for how to Run my project. It returns the testSuites and the testCases, but I need to construct a runable object if I'm not incorrect.
Again Thanks
WsdlProject project = new WsdlProject(projectFile);
for (TestSuite testSuite : project.getTestSuiteList()) {
System.out.println("TestSuiteProject size......" + project.getTestSuiteList().size());
System.out.println("TestSuiteProject......" + testSuite.getName());
for (TestCase testCase : testSuite.getTestCaseList()) {
System.out.println("TestCases........." + testCase.getName());
testCase.setPropertyValue("UserName", userName);
testCase.setPropertyValue("Password", passWord);
StringToObjectMap properties = new StringToObjectMap();
properties.put("username", userName);
properties.put("password", passWord);
properties.put("localhost", localHost);
properties.put("HttpDefaultPort", port);
List<TestStep> testSteps = testCase.getTestStepList();
WsdlTestCaseRunner wsdlTestCaseRunner = new WsdlTestCaseRunner((WsdlTestCase) testCase, properties);
WsdlTestRunContext wsdlTestRunContext = wsdlTestCaseRunner.createContext(properties);
wsdlTestCaseRunner.run();
Related Content
- 13 years ago
- 10 months ago
- 2 years ago
- 15 years ago
Recent Discussions
- 15 years ago