Make your tests reusable and more maintainable and stop hard coding test values.
Learn how to write test automation that works against multiple environments in this #NightwatchJS test #automation #tutorial. Nightwatch.js allows you to use test globals instead of hardcoded values in your tests which, when paired with environment flags, lets your test work against multiple environments where the logins and data may be different.
Full article and source code for this tutorial is on https://www.davidmello.com/nightwatch...
Chapters:
0:00 Introduction to Nightwatch Test Globals
0:34 Tutorial setup
2:15 Writing basic test automation
4:50 Writing tests that work against multiple environments
5:43 Using Nightwatch environment test globals
9:00 Running tests against different environments
コメント