Forum Discussion
I don't see where you running step, I think you miss those string:
runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false)
And you don't need this:
runner = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner( testCase,null )
This is really useful. Any idea if it's possible to make this work through the maven plugin?
Calling testRunner.getTestCase().getTestSuite().getProject().getWorkspace() returns null, I assume because the maven plugin is set-up to just run a single project. Is there a property to set the workspace location?
- nmrao8 years agoChampion Level 3
That mentioned code works only from within SoapUI tool.
Because, there is workspace and user can have multiple projects.
However, when running from other commandline tools, it would get null as there is no workspace.
What you are trying to achieve can be done using 2nd sample of JUnit open source integration
- danielmbanks8 years agoOccasional Contributor
nmrao Ok, so you're suggesting I run the tests via JUnit using WorkspaceImpl and WsdlProjectPro. Is it possible to get surefire test reports when running the tests this way?
EDIT: Without writing 1 JUnit test per ReadyAPI TestCase I mean. I'm expecting to get my workspace, loop over all projects in the workspace, loop over each testsuite in the projects, run each testcase in the testsuites.
- nmrao8 years agoChampion Level 3Do not use whole junit test. Just suggest you to use the code that is inside of the test where you can pass the project and run test case.
You can extract the code and put it in groovy script like what you have currently and that should work as it is.
Related Content
- 2 years ago
Recent Discussions
- 2 days ago