从windows batch shell启动selenium自动测试并获取report
来源:互联网 发布:淘宝订单体检清洗过期 编辑:程序博客网 时间:2024/06/04 01:04
echo "This batch shell launch auto-run selenium test"if not exist "D:\SeleniumReport\" mkdir D:\SeleniumReport\taskkill /F /FI "IMAGENAME eq firefox*"del /F /Q D:\SeleniumReport\*cd C:\Program Files\Mozilla Firefoxstart /b firefox -chrome "chrome://selenium-ide/content/sel/core/TestRunner.html?auto=true&test=file://D:/test-case/VCSuite.html&userExtensionsURL=&baseURL=http://10.224.37.124/"for /l %%i in (1,1,3) do (ping -n 11 127.0.0.1>nulif exist "D:\SeleniumReport\SeleReport.html" goto next):nexttaskkill /F /FI "IMAGENAME eq firefox*"if not exist "D:\SeleniumReport\SeleReport.html" exit 1rename D:\SeleniumReport\SeleReport.html index.htmlexit 0
需要在firefox中关闭resume_from_crash地址栏输入about:config,找到resume_from_crash,设为false。
这样就可以通过hudson实现selenium的自动测试。
- 从windows batch shell启动selenium自动测试并获取report
- shell脚本实现自动创建模拟器、启动模拟器、自动安装apk并进行monkey测试
- 使用selenium自动登录淘宝并获取cookie
- JMeter自动生成测试Report
- 创建windows服务,并自动启动
- Android自动化技术之自动monkey:shell脚本实现自动创建模拟器、启动模拟器、自动安装apk并进行monkey测试
- 【Python】学习selenium自动化测试:安装selenium+启动浏览器(windows平台、Linux Centos平台)
- Linux/Unix shell 自动发送AWR report
- Linux/Unix shell 自动发送AWR report
- 自动监控进程并启动的shell脚本
- selenium webdriver实现自动截图与Junit导出report测试报告
- Python Selenium 自动测试网页
- Selenium自动测试工具-WebDriver
- 自动化测试selenium webdriver启动
- shell脚本从网络获取文件实现自动输入密码
- mongodb安装 使用shell Windows服务自动启动
- windows batch启动java应用(设置classpath)
- Selenium实例1-自动登录小米社区并获取主题帖
- 一些iOS开源类库及工具
- cxf+spring完成webservice发布
- Linux 编程经典书籍
- Hadoop源代码分析 共41篇(收藏)
- IOS开发基础之——图像压缩成指定大小(高度/宽度)
- 从windows batch shell启动selenium自动测试并获取report
- Solaris10修改主机名
- 如何通过Makefile编译iphone的openSSL
- C语言 通过指针从函数返回一个数组
- android Preference之android:dependency
- 转别人一个样式好看的导航
- hbase开启lzo压缩
- SD controller CRC error 分析
- 我的farewell letter