Forum Discussion

mpartyka's avatar
mpartyka
Contributor
7 years ago

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 adva...
  • groovyguy's avatar
    7 years ago

    Try this:

     

    def ProjectName= testRunner.testCase.testSuite.project.getName();