Selenium 中如何自动记录测试结果
来源:互联网 发布:跟家里阿姨做了知乎 编辑:程序博客网 时间:2024/05/16 08:41
虽然 Selenium 的网站上说到可以通过使用 auto=true 参数来自动执行脚本,并同事记录测试结果,可是试了很多次都是不行。今天专门翻了一天的资料,终于弄明白了 Selenium 中的 postReuslts 是怎么一回事。原文如下:
Selenium can't actually write to a file directly. In "auto" mode,
Selenium will POST results to a URL, where it expects to find a "results
handler". The default URL is "/postResults". So, you need to implement
a "results handler" (typically a CGI-script, Java servlet, or similar),
and arrange for it to be "mounted" at "http://yourserver/postResults"
(see the Selenium manual for details of what data gets POSTed). Your
handler can record the result data however you wish; writing to a file
is fairly standard.
You can specifiy an alternative handler location by providing a
"resultsUrl" parameter - but beware that, unless you're using HTA, it
needs to be on the same server as Selenium, as posting of results is
subject to the same cross-site scripting restrictions as the rest of
Selenium.
原文出处:http://forums.openqa.org/thread.jspa?threadID=554&tstart=150
Selenium can't actually write to a file directly. In "auto" mode,
Selenium will POST results to a URL, where it expects to find a "results
handler". The default URL is "/postResults". So, you need to implement
a "results handler" (typically a CGI-script, Java servlet, or similar),
and arrange for it to be "mounted" at "http://yourserver/postResults"
(see the Selenium manual for details of what data gets POSTed). Your
handler can record the result data however you wish; writing to a file
is fairly standard.
You can specifiy an alternative handler location by providing a
"resultsUrl" parameter - but beware that, unless you're using HTA, it
needs to be on the same server as Selenium, as posting of results is
subject to the same cross-site scripting restrictions as the rest of
Selenium.
原文出处:http://forums.openqa.org/thread.jspa?threadID=554&tstart=150
0 0
- Selenium 中如何自动记录测试结果
- Selenium 中如何自动记录测试结果
- AutoIT+FastStone Capture自动记录测试结果
- 【Selenium学习笔记】测试中如何设置等待时间
- selenium+python关于登录的脚本代码,使用了读取excel以及向excel中写入测试结果的方法
- selenium+python关于登录的脚本代码,使用了读取excel以及向excel中写入测试结果的方法
- 解决selenium 测试结果不能重复发邮件的问题
- selenium+robot接口测试:post返回结果取值
- Web测试工具Selenium:如何选取元素
- 如何利用 Ant 构建 Selenium 测试
- Selenium-webdriver—如何定位测试元素
- Web测试工具Selenium:如何选取元素
- Web测试工具Selenium:如何选取元素
- zz:测试工具Selenium:如何选取元素
- selenium 如何加载Chrome驱动进行测试
- python selenium中如何测试360等基于chrome内核的浏览器
- 在jenkins中配置selenium测试
- JMeter中使用Selenium进行测试
- Android 自定义View学习(3)--仿IOS风格滑动按钮
- 二叉树中和为某一值的路径
- Java Web开发之详解JSP
- Java多线程编程总结
- C++类的所占内存大小计算)
- Selenium 中如何自动记录测试结果
- cygwin开发环境搭建与apt-cyg的应用
- 字符串内,大小写字符、数字字符分类有序
- 链接其它系统的数据库的写法
- 资料收集:高并发 高性能 高扩展性 Web 2.0 站点架构设计及优化策略
- monit配置文件命令学习
- Android中Activity的生命周期
- ADT plugin 的实现(一)
- Ubuntu 12.04更新源