rokitoker
rokitoker

Reputation: 101

Add setup steps for all tests in directory without adding in each suite

I'd like to add some common keywords in every test suite setup. But as for me, it is not good practice to write same things in each suite.

I tried to use pre-run modifier, but not sure that it's possible to use it in that situation.

Upvotes: 0

Views: 42

Answers (1)

Crama
Crama

Reputation: 141

You can use an initialization file. In this file you can specify your Suite Setup. It will be applied to all the testsuites in the same folder where the initialization file is placed. See documentation for more details.

Upvotes: 2

Related Questions