摘要: 3.assertXpathCount的使用xpath_count一族的函数assertXpathCountstoreXpathCount...会发现在selenium-on-rails中并没有对应函数assert_xpath_count等原因是selenium-on-rails所用的selenium-core好像版本不够...没有assert_xpath_count首先需要更新selenium-c... 阅读全文
posted @ 2008-04-27 09:49 Tachikoma 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 2. selenium-on-rails 清理cache并没有提供这个功能,但是在测试开始时确实需要,方案在Align书的"基于时间的缓存失效策略"里描述了,就是删除文件夹tmp/cache这里直接清理tmp文件夹Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.co... 阅读全文
posted @ 2008-04-27 09:38 Tachikoma 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 这两天搞了一下selenium-on-rails, 作了一些讨论 0. 建议单独建立一个环境 selenium,用法见doc 0.1. 可以另开一个数据库用于selenium测试,但一般会用test库,以及测试夹具,但是有些只适合selenium测试的夹具,为了不影响其他测试,需要把这些夹具单独存放并保证不影响其他测试 举个例子[源自doc],建立空的夹具文件放在test/fixtures/bl... 阅读全文
posted @ 2008-04-27 09:29 Tachikoma 阅读(324) 评论(0) 推荐(0) 编辑