Forum Discussion
Can you use a TestSuite Setup Script instead of the Project load script?
16:10:10,702 INFO [log] Project Load Script: abc 16:10:10,705 INFO [SoapUITestCaseRunner] Setting project property [environment] to [def] 16:10:10,706 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [Proje ct 1] 16:10:10,707 INFO [SoapUITestCaseRunner] Running Project [Project 1], runType = SEQUENTIAL 16:10:10,729 INFO [log] Setup Script: def 16:10:10,733 INFO [SoapUITestCaseRunner] Running SoapUI testcase [TestCase 1] 16:10:10,762 INFO [SoapUITestCaseRunner] running step [asd] 16:10:10,786 INFO [log] Groovy Script TestStep: def
- andrewlaser7 years agoOccasional Contributor
As a workaround I added test suite "Precondtitions" with test case "Preconditions" containing Groovy script at the beginning of the test project
def env = context.testCase.getProject().getPropertyValue("environment")
... using variable env
It reads a correct parameter value.
You suggestion may work, but it's just a workaround as well.
I'd need to keep this test suite at the beginning of the project.
- andrewlaser6 years agoOccasional Contributor
Any plans to fix this issue?
With my (the only working) workaround it's impossible to run a particular test case from command line, because TestRunner Command-Line Arguments c/s : accept only 1 test/suite name. And I need at least two names to run a particular test suite (Precondition test/suite + desired test/suite)
Related Content
- 6 years ago
- 7 years ago
- 6 years ago
- 6 years ago
- 8 years ago
Recent Discussions
- 2 days ago
- 2 days ago