23:41:41.783 INFO - Command request: getNewBrowserSession[*iexplore, http://www.
baidu.com/, ] on session null
23:41:41.783 INFO - creating new remote session
23:41:41.783 INFO - Allocated session 5084ee961cb4406c8ace6dfe01d045e7 for http:
//www.baidu.com/, launching...
23:41:41.907 INFO - Launching Embedded Internet Explorer...
23:41:42.921 INFO - Launching Internet Explorer HTA...作者: lx040114 时间: 2010-8-20 00:06 标题: 回复 1# 的帖子 将RC启动方式改为java -jar selenium-server.jar -interactive -singleWindow
之后,再运行testcase可以启动,IE提示有安全性问题,运行完成之后,junit也记录为errors.
以下是RC中的错误信息:
com.thoughtworks.selenium.SeleniumException: 对象不支持此属性或方法
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
at com.thoughtworks.selenium.DefaultSelenium.waitForPageToLoad(DefaultSelenium.java:635)
at com.example.tests.BaiduGoogle.testUntitled(BaiduGoogle.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)作者: bruce.gu 时间: 2010-8-23 10:14
录制的东西不可信。录制的东西直接转化不一定就能稳定运行。作者: ljonathan 时间: 2010-8-24 10:28
贴代码作者: 小米啊 时间: 2010-8-24 16:39
换下成别的网站。也出现同样问题吗?作者: lx040114 时间: 2010-8-26 01:39
暂时只能认为是环境问题
因为同样的代码和配置
我换回xp和ie6下面就没事了。作者: chen6_9 时间: 2010-11-8 00:26
我试过 XP IE7 也没有问题。作者: gaha 时间: 2010-12-30 18:19
我觉得用eclipse+junit的就够了,myeclipse有的地方设定不太一样,而且没有eclipse便捷。作者: Q侧耳听花开 时间: 2011-3-17 15:14
eclipse作者: qhdsfc 时间: 2011-3-21 15:04 回复 2#lx040114