2

我正在尝试将 qooxdoo 模拟运行作业用于这个简单的测试(当然,更改了类命名空间):

qx.Class.define("twitter.simulation.Settings", {

   extend : simulator.unit.TestCase,

   members :
   {
       testChangeLanguage : function()
           {
                this.fail("Test not implemented!");
           }
   }
});

但是,每次我尝试运行它时,都会收到这个非常神秘的错误:

js: 未捕获的 JavaScript 运行时异常:TypeError: org.mozilla.javascript.Undefined@275b35 不是函数,它是 org.mozilla.javascript.Undefined。

我将 Rhino 1.7R4 用于 Javascript 引擎。Selenium 版本是 2.25,qooxdoo 是 2.0.2。这是模拟运行作业配置:

"simulation-run" :
{
  "let" :
  {
    "SIMULATOR_CLASSPATH" : 
    [
      "../selenium/selenium-java-2.25.0.jar",
      "../selenium/libs/*",
      "../rhino/js.jar"
    ]
  },

  "environment" :
  {
    "simulator.selServer"   : "localhost",
    "simulator.selPort"     : 4444,
    "simulator.testBrowser" : "*firefox",
    "simulator.autHost"     : "http://localhost:8080",
    "simulator.autPath"     : "/application/index.html"
  }
}
4

1 回答 1

0

您需要使用 1.x Selenium 客户端驱动程序。

于 2012-11-05T09:40:07.017 回答