Kathryn_O_Malle
16 years agoContributor
Generic API call to list all properties for testCase...
Hi there,
Using the following code snippet I'm able to determine all of the assertions defined for a testStep:
What I would like to be able to do now is generate a list of all properties for a testCase? And could I also use the same method for testSuite, project, or even testStep?
Many thanks.
Adam Hall
NB: If this question looks familiar it was reposted due to unfortunate forum migration issues
Using the following code snippet I'm able to determine all of the assertions defined for a testStep:
def testStep = testRunner.testCase.testSuite.project.getTestSuiteByName(testSuiteName).getTestCaseByName(testCaseName).getTestStepByName(testStepName)
for (def i=testStep.assertionCount-1; i>=0; i--)
{
... some code here
}
What I would like to be able to do now is generate a list of all properties for a testCase? And could I also use the same method for testSuite, project, or even testStep?
Many thanks.
Adam Hall
NB: If this question looks familiar it was reposted due to unfortunate forum migration issues