自动化测试尝试

1、

Selenium IDE  

Selenium IDE is a Chrome and Firefox plugin which records and plays back user interactions with the browser. Use this to either create simple scripts or assist in exploratory testing.

Selenium IDE是一个Chrome 和火狐的插件,用于记录和播放用户操作。可以用于常规性功能测试。

介绍地址:https://www.seleniumhq.org/download/  

Google浏览器自动化测试插件下载地址:https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd/related

2、安装后,可看到插件显示在浏览器的图标,单击打开

3、选择记录一个新的测试:Record a new test in a new project 链接

4、输入项目名称

5、输入项目进入的根网站路径,比如百度首页,

点击Start Recording开始记录

6、在打开的百度输入框里面输入自动化测试

 7、点击插件可以看到已经记录下了刚才我的操作:

 8、点击Stop Recording 按钮停止记录,输入测试名称,点击ok,后一个简单的测试实现了

9、测试回放:点击Run current test 按钮运行当前测试。 

原文地址:https://www.cnblogs.com/tangchun/p/10168120.html