Running test cases sequentially in Protractor

I want to know how I can run test cases in a test suite in sequence. For example, upload a URL, log in, etc.

+5
source share
1 answer

Check out the protractor.conf.js example .

You can specify glob, which will download files in alphabetical order, or pass a list that forces the sequence in the order you specify.

specs: [ 'test/stories/login.js', 'test/stories/home/overview.js', 'test/stories/home/purchase/widget.js' ], 

etc. I would not recommend that tests be performed in the exact order between spec files, as this means that it will be difficult for you to isolate only certain parts of the tests later when they break. You will be forced to always run the entire package every time.

+8
source

Source: https://habr.com/ru/post/1206146/


All Articles