Forum Discussion
- zdzichukowalskiOccasional ContributorAnd how to run test step from another project? I've tried something like this(Pro 3.0):
project =testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("ProjectName")
testSuite = project.getTestSuiteByName("TestSuiteName")
testCase = testSuite.getTestCaseByName("TestCaseName")
runner = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner( testCase,null )
runner.gotoStepByName("FolderGetDetail")
but it didn't work... - rahOccasional Contributorproject = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName(project_name)
testSuite = project.getTestSuiteByName(suite_name);
testCase = testSuite.getTestCaseByName(testcase_name);
// run test case
runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) // objectMap, async - tom_13Contributorthanks for help
- tom_13ContributorHi,
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 )
- danielmbanksOccasional Contributor
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?
- nmraoChampion 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
Related Content
- 9 years ago