mpartyka
7 years agoContributor
simple groovy - how to get project name?
I'd like to get the project name (label) using groovy. I can get testCase Name, or Test Suite Name (see below) ... but can't seem to get project name. I must be missing something ? Thanks in advance for any help !
def TestCaseName = testRunner.testCase.getLabel()
def TestSuiteName = testRunner.testCase.testSuite.getLabel()
Try this:
def ProjectName= testRunner.testCase.testSuite.project.getName();