Eclipse+TestNG

上一篇 / 下一篇  2010-01-14 15:21:55 / 个人分类:Selenium

1.Eclipse集成TestNG:http://testng.org/doc/eclipse.html
2.SeleniumRC的相关介绍:http://seleniumhq.org/docs/05_selenium_rc.html#reporting-results
3.Selenium RC1.0以下的版本不支持启动FIREFOX 和 SAFARI,执行时报500(internet server error),换成1.0版本就可以解决些问题.
4.当对SAFARI进行测试时,如果遇到以下错误,可以用2种方法解决:
java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Safari could not be found in the path!

  • (1)Please add the directory containing ''Safari.exe'' to your PATH environment variable
  • (2)explicitly specify a path to Safari like this: *safaric:\blah\Safari.exe {selenium = new DefaultSelenium("localhost", 4444, "*safari D:\\Program Files\\Safari\\Safari.exe", url);}

   




TAG:

 

评分:0

我来说两句

Open Toolbar