2016-05-20 14 views
0

Mein Test läuft erfolgreich für Chrom aber es schlägt für Firefox. Warum das?Timeout erreicht auf Firefox auf jeder Plattform

>> PASS: chrome on any platform - sort column (21268ms) 
>> 0/2 tests failed 
>> 0/2 tests failed 
>> FAIL: firefox on any platform - sort column (30015ms) 
CancelError: Timeout reached on firefox on any platform - sort column 
    at null._onTimeout <node_modules/intern/lib/Test.js:132:20> 
    at Timer.listOnTimeout <timers.js:119:15> 
    at Command.target.(anonymous function) [as getVisibleText] <node_modules/intern/node_modules/leadfoot/Command.js:674:11> 
    at EnhSearchTable.getTableData </home/trex/Development/Siren/kibi-integration/tests/functional/support/page/EnhSearchTable.js:32:9> 
    at Test.sort column [as test] </home/trex/Development/Siren/kibi-integration/tests/functional/community/index.js:32:11> 
    at <node_modules/intern/lib/Test.js:181:24> 
    at <node_modules/intern/browser_modules/dojo/Promise.ts:393:15> 
    at runCallbacks <node_modules/intern/browser_modules/dojo/Promise.ts:11:11> 
    at <node_modules/intern/browser_modules/dojo/Promise.ts:317:4> 
    at run <node_modules/intern/browser_modules/dojo/Promise.ts:237:7> 
    at <node_modules/intern/browser_modules/dojo/nextTick.ts:44:3> 
    at process._tickCallback <node.js:355:11> 
    at Command.then <node_modules/intern/node_modules/leadfoot/Command.js:542:10> 
    at Command <node_modules/intern/node_modules/leadfoot/Command.js:566:15> 
    at <node_modules/intern/lib/Test.js:206:37> 
    at Promise.cancel <node_modules/intern/browser_modules/dojo/Promise.ts:343:37> 
    at null._onTimeout <node_modules/intern/lib/Test.js:134:21> 
    at Timer.listOnTimeout <timers.js:119:15> 
>> 1/2 tests failed 
>> 1/2 tests failed 

Teil meiner Seite Objekt:

return this.remote 
    .setTimeout('implicit', 5000) 
    .get(require.toUrl(kibiUrl)) 
    .sleep(5000) 
    .findAllByLinkText('Dashboard') 
    .click() 
    .sleep(1000) 
    .end() 
    .findByXpath('//ul[@class="nav nav-tabs"]/li[' + tabNum + ']') 
    .click() 
    .sleep(10000) 
    .end() 
    .findByXpath('//span[@title="' + tableName + '"]/../../visualize//table/thead/tr/th[6]') 
    .moveMouseTo() 
    .sleep(1000) 
    .findByXpath('./span/i') 
    .click() 
    .sleep(1000) 
    .end() 
    .findByXpath('//span[@title="' + tableName + '"]/../../visualize//table/tbody') 
    .getVisibleText() 
    .then(function (body) { 
     return body; 
    }); 

Mein OS:

cat /proc/version 
Linux version 4.2.0-36-generic ([email protected]) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)) #42-Ubuntu SMP Thu May 12 22:05:35 UTC 2016 

Ich benutze Firefox 46.0.1 und Selen 2.53 aus diesem Paket https://www.npmjs.com/package/selenium-standalone

Antwort

0

I verwendet setFindTimeout() Methode und jetzt funktioniert es.

return this.remote 
    .get(require.toUrl(kibiUrl)) 
    .setFindTimeout(5000) 
    .findAllByLinkText('Dashboard') 
    .click() 
    .end() 
    .findByXpath('//ul[@class="nav nav-tabs"]/li[' + tabNum + ']') 
    .click() 
    .end() 
    .findByXpath('//span[@title="' + tableName + '"]/../../visualize//table/thead/tr/th[6]') 
    .moveMouseTo() 
    .findByXpath('./span/i') 
    .click() 
    .end() 
    .findByXpath('//span[@title="' + tableName + '"]/../../visualize//table/tbody') 
    .getVisibleText() 
    .then(function (body) { 
     return body; 
    });