在自动化测试中有这样一个场景,在一个输入框中输入一串字符,然后执行敲回车键,验证搜索结果,以 Google 搜索为例,代码如下:
'search nightwatch and click ENTER key': function(client) { |
在自动化测试中有这样一个场景,在一个输入框中输入一串字符,然后执行敲回车键,验证搜索结果,以 Google 搜索为例,代码如下:
'search nightwatch and click ENTER key': function(client) { |
因此,与其维护不可用的代码不如好好整理,不如在项目领导和开发的强力支持下重新开始做一套可用的 E2E 测试。
学习中发现 Nightwatch 没有比较完整的中文参考手册,因此决定学习之余翻译下官方文档,如有问题,欢迎纠正。
This automation framework was design by Java+Selenium+TestNG when I did automation test work, so I called it JST-automation.
├──JST-automation |
git clone https://github.com/shenxianpeng/JST-automation.git |
Any suggestion and questions please feel free to create issue here
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
hexo new "My New Post" #Create a new post |
hexo new "My New Post" #Create a new post |