intern

Dojo intern set firefox profile name

江枫思渺然 提交于 2019-12-30 12:21:39
问题 Hi Iam trying to set firefox profile name in environment settings of intern config file.I have tried environments: [ { browserName: 'firefox',firefox_profile:'default' }, {firefox_profile:'default'} ], and environments: [ { browserName: 'firefox',profile:'default' }, {profile:'default'} ], as well as capabilities: { 'selenium-version': '2.42.0', firefox_profile:'default' }, as mentioned in Selenium capabilities But still firefox launches with an anonymous profile. However if I use watir, def

Dojo intern set firefox profile name

♀尐吖头ヾ 提交于 2019-12-30 12:20:09
问题 Hi Iam trying to set firefox profile name in environment settings of intern config file.I have tried environments: [ { browserName: 'firefox',firefox_profile:'default' }, {firefox_profile:'default'} ], and environments: [ { browserName: 'firefox',profile:'default' }, {profile:'default'} ], as well as capabilities: { 'selenium-version': '2.42.0', firefox_profile:'default' }, as mentioned in Selenium capabilities But still firefox launches with an anonymous profile. However if I use watir, def

How to continue the intern test once timeout for leadfoot/Session#executeAsync calls has reached

笑着哭i 提交于 2019-12-25 14:28:27
问题 There are array of URLs to load within an application. A page ready event is fired once the page load. However, when running on sauce labs, the event does not fire on a random page and test fails. Is there any way to continue the tests if the event does not fire? return remote.get(url) .setExecuteAsyncTimeout(20000) .then(function() { var pageLoadEvent = conf.get("pageLoadEvent"); console.log("waiting for " + pageLoadEvent + " event to occur"); remote.executeAsync(function(done) { window

File upload in Intern.js

怎甘沉沦 提交于 2019-12-25 04:28:27
问题 It is written in documentation that it is possible to do things like file upload using intern. Can anyone provide an example of how this can be done? I searched through examples and through LeadFoot documentation and I can't find anything. Thanks. 回答1: You interact with a file input form field, just like an end-user would, with the exception that you simply “type” the absolute path to the file you want to upload from the test machine. return this.remote.findById('fileInput').type('/path/to

How can I detect which features are supported in the remote environment?

女生的网名这么多〃 提交于 2019-12-25 04:22:23
问题 What's the API to find out "which features and APIs a remote environment supports"? In particular to find out if keyboard actions (like tabbing between form fields) are supported. Note that http://theintern.github.io/leadfoot/index.html says this is possible: Enhanced capabilities are also exposed to end-users about which features and APIs a remote environment supports, so you don’t have to browser sniff to decide whether (for example) you’re testing a touch-device or a mouse-device. Optional

Generate HTML code coverage reports with intern

一个人想着一个人 提交于 2019-12-25 02:43:31
问题 The intern testing framework (http://theintern.io) comes with built in istanbul support. Adding lcov to the reports array generates only a lcov.info file which might be converted with genhtml : define({ // .. reporters: [ 'lcov' ], //.. }); Is it possible to generate a full html report? 回答1: You can use the 'lcovhtml' (Intern 1.4–2.2) or 'LcovHtml' (Intern 3+) reporter to generate a full HTML coverage report. 来源: https://stackoverflow.com/questions/20090890/generate-html-code-coverage-reports

How to specify alternate loader for intern

人盡茶涼 提交于 2019-12-25 01:45:20
问题 Is there a way to specify an alternate AMD loader for intern? I use ESRI's ArcGIS API for JavaScript and unfortunately don't have access to their source code. So I'm stuck having to load their code from here. Their API is build on top of Dojo, so I'm thinking that I should be able to test with intern if I can point it at their loader instead of the one that comes with intern. 回答1: As of Intern 1.2, you can specify an alternate AMD loader for the browser client by changing <script src="node

Intern-cucumber plugin error: A plugin named “cucumber” has not been registered

爷,独闯天下 提交于 2019-12-24 19:14:04
问题 I'm trying to get the intern-cucumber plugin working. I get the following error: Error: A plugin named "cucumber" has not been registered at Node.BaseExecutor.getPlugin @ src\lib\executors\Executor.ts:387:12 @ tests\addition.js:6:29 at runFactory @ node_modules\dojo\dojo.js:1134:43 at execModule @ node_modules\dojo\dojo.js:1262:5 at execModule @ node_modules\dojo\dojo.js:1253:12 @ node_modules\dojo\dojo.js:1297:6 at guardCheckComplete @ node_modules\dojo\dojo.js:1277:5 at checkComplete @ node

How to start Google Chrome with custom extensions loaded using intern-runner

爷,独闯天下 提交于 2019-12-24 06:53:59
问题 The question is pretty straightforward. I'm testing a website that requires a custom extension, but intern-runner opens up a Chrome instance without any extensions loaded other than the one required for automation. I'm even willing to modify the .js source of intern if anyone can point me which files to inspect. 回答1: Extensions are passed to ChromeDriver via capabilities. define({ environments: [ { browserName: 'chrome', chromeOptions: { extensions: [ 'base64-encoded crx file' ] } } ] }); 来源:

Calling Chai plugin in Intern returns error

你说的曾经没有我的故事 提交于 2019-12-24 06:42:47
问题 I was trying to use the sinon-chai plugin within Intern but it gave me: Error {stack: (...), message: "Cannot find the Node.js require"} I had installed the plugin via npm and here's my test file: define([ 'intern!bdd', 'intern/chai!expect', 'app/functions', 'intern/chai', 'intern/dojo/node!sinon-chai' ], function (bdd, expect, myapp, chai, sinonChai) { chai.use(sinonChai); ... }); What might go wrong? 回答1: The node loader requires Node.js, so it can't be used in the browser. You'll need to