Forum Discussion

krogold's avatar
krogold
Regular Contributor
8 years ago

Is it possible to execute testSuite's setup script from a testCase's setup script ?

Hello,

 

I'm currently developping a testSuite which has a setup script that sets up custom properties that are used by some of the testCases under it.

When I do some fine-tuning on my testCases, I have to launch the testSuite setup script to update my properties and I wish I could automate this to avoid going back to the top of my testCase list each time (yes ... I'm a lazy man :smileyvery-happy:).

Is it possible, using groovy, to check that a setup script exists at testSuite level and to execute it ?

  • If you run the test suite, its setup script gets executed automatically. This is suitable when you want to execute the project complete automatically.

    Setup Script is also available for each test case level as well.
  • nmrao's avatar
    nmrao
    Champion Level 3
    If you run the test suite, its setup script gets executed automatically. This is suitable when you want to execute the project complete automatically.

    Setup Script is also available for each test case level as well.