Data Driven Functional Tests - WebdriverIO Wednesdays
Автор: Front-end Testing with Kevin
Загружено: 2018-04-18
Просмотров: 7249
Learn WebdriverIO: https://learn.webdriver.io
Sometimes you need to test the same flow with various inputs.
While you can write multiple it statements, one for each input, you can simplify this by using some JavaScript looping functionality.
In this video, I talk about how to do this, so that we can test out a password input validator.
Code for this episode:
https://github.com/wdio-wed/data-driv...
Links:
Array forEach Method:
https://developer.mozilla.org/en-US/d...
String/Template Literals:
https://developer.mozilla.org/en-US/d...
Data-Driven Tests in JavaScript Using Mocha
https://booker.codes/data-driven-test...
Codepen Password Validator
https://codepen.io/klamping/full/RMmqvq/
Demo WebdriverIO Code
http://try.learnwebdriverio.com/share...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: