Forum Discussion
tomaszarmata
11 years agoContributor
I mean "right-click" while writing "PPM". So that is what I mentioned and what is not satysfying me.
GillerM
Staff
11 years agoSo if you're not looking at other testcase by name, there should still be some way to reference where you want to get your property value. There's another option of browsing to a testcase by position / order in the project. Here's sample code in Groovy step to do that:
// browse up to project object
def proj = testRunner.getTestCase().getTestSuite().getProject()
// now browse to positional testcase property by name
def propValue = proj.getTestSuiteAt(0).getTestCaseAt(1).getProperty("propertyName")
// now browse to positional testcase property by position
def propPosition = proj.getTestSuiteAt(0).getTestCaseAt(1).getPropertyAt(0)
If that still does not satisfy you, then please be very explicit in what you are trying to achieve. Also in how exactly you look to impletement what you are trying to achieve.