使用.xml文件执行selenium ide测试用例时出错

时间:2015-03-14 09:27:13

标签: selenium-ide

  

[error]意外异常:[Exception ...“URI方案对应于未知协议处理程序”
  nsresult:“0x804b0012(NS_ERROR_UNKNOWN_PROTOCOL)”
  location:“JS frame :: chrome://selenium-ide/content/tools.js - >
  file:/// D:/SeleniumTestCases/UserExtensions/include.js?1426324803395 :: IDEIncludeCommand.prototype.getIncludeDocumentBySynchronRequest :: line 82“data:no] .toString - &gt; function toString(){[native code]},<登记/>    消息 - &gt; ,结果 - &gt; 2152398866,名称 - &gt; NS_ERROR_UNKNOWN_PROTOCOL,
  文件名 - &gt; chrome://selenium-ide/content/tools.js - &gt;
  file:/// D:/SeleniumTestCases/UserExtensions/include.js?1426324803395,
  lineNumber - &gt; 82,columnNumber - &gt; 0,内 - &gt; null,data - &gt; null,
  堆栈 - &gt; IDEIncludeCommand.prototype.getIncludeDocumentBySynchronRequest@chrome://selenium-ide/content/tools.js    - &GT;文件:/// d:/SeleniumTestCases/UserExtensions/include.js 1426324803395:82:4   xmlTestData.prototype.load@chrome://selenium-ide/content/tools.js - &gt;   文件:/// d:/SeleniumTestCases/UserExtensions/datadriven.js 1426324803392:54:21   Selenium.prototype.doLoadTestData@chrome://selenium-ide/content/tools.js
   - &GT;文件:/// d:/SeleniumTestCases/UserExtensions/datadriven.js 1426324803392:103:4   fnBind / RETVAL @铬://selenium-ide/content/selenium-core/scripts/htmlutils.js:60:11   ActionHandler.prototype.execute@chrome://selenium-ide/content/selenium-core/scripts/selenium-commandhandlers.js:314:27   ._executeCurrentCommand @铬://selenium-ide/content/selenium-runner.js:306:18   TestLoop.prototype.resume@chrome://selenium-ide/content/selenium-core/scripts/selenium-executionloop.js:78:12   fnBind / RETVAL @铬://selenium-ide/content/selenium-core/scripts/htmlutils.js:60:11   ,location - &gt; JS frame :: chrome://selenium-ide/content/tools.js - &gt;
  文件:/// d:/SeleniumTestCases/UserExtensions/include.js 1426324803395   :: IDEIncludeCommand.prototype.getIncludeDocumentBySynchronRequest ::   第82行

我在js文本框中添加了所有user-extension.js文件 比如D:\SeleniumTestCases\UserExtensions\user-extension.js, D:\SeleniumTestCases\UserExtensions\sideflow.js,D:\SeleniumTestCases\UserExtensions\datadriven.js, D:\SeleniumTestCases\UserExtensions\include.js

我通过How can I read variables from data pool with selenium IDE

提到了我的测试用例

1 个答案:

答案 0 :(得分:0)

听起来像是试图加载的不正确的xml文件。 导致这种情况的硒代码是什么?这个网址是怎么写的?