2012-10-24 52 views
2

我試圖用這個簡單的測試的Qooxdoo模擬運行工作(當然是有變化的類的命名空間):問題上運行的Qooxdoo模擬運行工作

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

    extend : simulator.unit.TestCase, 

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

然而,每次我嘗試運行它,我得到這個非常神祕的錯誤:

js:uncaught JavaScript運行時異常:TypeError:[email protected]不是函數,它是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" 
    } 
} 
+0

您正在使用哪個版本的qooxdoo和Selenium,以及您的模擬運行作業配置是什麼樣的? –

+0

我編輯了原始問題。 – yorick456

+0

qooxdoo不支持Rhino 1.7R4,而是使用1.7R3 –

回答

0

您需要使用1.x Selenium客戶端驅動程序。