Forum Discussion

gordonb's avatar
gordonb
Occasional Contributor
12 years ago

[Res] How do I get project name to use test suite tear down

I've searched the internet for answers, but I can't find any.

Is it possible to get the project name to use in the test suite tear down script?

e.g. def project = context.expand('${#Project#Name}') returns null

3 Replies

  • SiKing's avatar
    SiKing
    Community Expert
    You mean something like:
    def project = testSuite.project.name
  • gordonb's avatar
    gordonb
    Occasional Contributor
    Thank you that works.

    I also found a TestSuite TearDown at project level and def project = project.name works for that.
  • SiKing's avatar
    SiKing
    Community Expert
    For extra points, see if you can figure out what
    context.expand('${#Project#Name}')
    actually does.