Run a test before other tests in a suite?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Run a test before other tests in a suite?
I want to create a test suite in which the 1st test case supplies test data to the subsequent test cases via its custom properties. I want the first test case to run only once before any other test case in the suite. It should run only once when I run all the tests in the suite, or when I run only one test in the suite. How do I do this in ReadyAPI? Is it a good idea to implement my test data setup like this?
PS - This is similar to TestNg @BeforSuite or @BeforeClass annotations.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Community, a lot of great advice pieces in this thread.
@rajs2020 Does the latest suggestion by nmrao help?
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I gave up on this and moved to other work. So, I'll close this thread.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also use Events like TestSuiteRunListener.beforeRun
I use it for example to add the Testsuite to Testrail before starting the tests.

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »