mardi 16 août 2016

How to run two set of tests with maven with delay in between

Our goal is to make acceptance test for a system, which can be disabled for a specified period, and ensure system gets disabled and back to enabled. Our plan is to first disable the system for X minutes from maintenance client using Selenium, then run Java based (or other) test to query the system, and assert the system is disabled. Then we should sleep for X minutes and run another test to ensure system is enabled again.

We like to keep the tests for enabled and disabled cases decoupled, thus the sleep must be introduced either in maven itself, or as some plugin type solution.

How to specify in which order the test goals are ran by maven, and add parameterized delay in between, which will be fed to Selenium?

Aucun commentaire:

Enregistrer un commentaire