Forum Discussion
andrewlaser
8 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.
andrewlaser
7 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)