Selenium 中如何自动记录测试结果
来源:互联网 发布:linux apache下载安装 编辑:程序博客网 时间:2024/04/29 14:00
虽然 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
- 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进行测试
- 善待自己 20070402
- 别因为工作不好而辞职
- 集中笑一下 ^_^
- 复出后第一次上场,脚崴了 :-(
- 胡说胡有理
- Selenium 中如何自动记录测试结果
- 北京海辉高科-招聘 高级测试工程师
- 喜添新丁 ^_^
- 《钢之炼金术士》中值得回忆的台词
- 〔转〕春晚传说--这年头有创意的人还真多
- [转]山东酒文化
- 假如给我三天光明——海伦·凯勒
- 菊花台
- 〔转〕美F-22推迟赴日竟因日期变更线 电脑日历乱了“猛禽”战机傻了