Contributions
[RESOLVED]how to run testsuites in multiple projects in one click from the UI?
Hi, I have a few projects with test suites, test cases, etc. At present I open the projects in SoapUI, double click the project, go to the "TestSuites" tab and run the test cases in parallel. I repeat the steps for all my projects to run the testsuites/testcases in the project. I also have a Junit testsuite in my java layer that uses SoapUITestCaseRunner to run all my SoapUI projects/testsuites/testcases. Now, is it possible to do the same thing using a Groovy script inside SoapUI? Basically I'm looking for a Groovy script code that can load another project(s) and run its testsuites/testcases and at the same time provide me the visual aspect of it. This way all I'd have to do would be to open the one project that has my groovy script and run it which will run all the other ones. I guess the easiest thing to do would be to put all the TestSuites in just one project, but we have a lot of testsuites to write and our XML is going to get very bulky - so we'd like to keep the current structure as it is but still be able to run the other project testsuites. Please help! thanks, Stephen8.1KViews0likes9CommentsRe: REST testing - how to pass path parameters from Java code
Dan, Thanks for the help. Coincidentally, I stepped on those same methods myself. But for my requirement I wanted something global so I ended up doing this: I created a properties file "test.properties" with few properties. All my Resources in the SoapUI test cases use the ${#Global#propertyName}. Now, for running the test cases from the tool I load the properties file from "File ==> Preferences ==> Global Properties" For running the same test cases from Junit I do: SoapUITestCaseRunner runner = new SoapUITestCaseRunner(); String properties[] = new String[5]; properties[0] = "propertyName0=" + propertyValue0; properties[1] = "propertyName1=" + propertyValue1; properties[2] = "propertyName2=" + propertyValue2; properties[3] = "propertyName3=" + propertyValue3; properties[4] = "propertyName4=" + propertyValue4; runner.setGlobalProperties(prop); runner.setTestCase(testCaseName); runner.run(); This is working for now. thanks, Stephen2.9KViews0likes0CommentsREST testing - how to pass path parameters from Java code
(I'm a newbie so forgive me if the question is pretty basic) Hi, I'm trying the Junit integraiton with the example at: http://www.soapui.org/userguide/command ... unner.html I see two ways to execute a particular test case from Junit - the examples are "testRunner" and "testTestCaseRunner". I got both of them working in my end to test my REST services. Now, how do I pass a PATH parameter from Junit - say my REST path looks like this: http://localhost:8080/myapp/rest/users/{userId}/purchase I want to set the value of {userId} from my Junit test case - how do I do this? thanks, Stephen4.4KViews0likes2Comments