Questions tagged [spectron]

Spectron is a testing framework, built upon ChromeDriver and WebdriverIO, for end to end testing Electron applications.

Spectron is built by the Electron team to make end to end testing Electron apps easy. As of 2017 it's the only e2e testing framework with native support for Electron.

It's a wrapper around WebdriverIO which their API's is almost the same, except the additional Electron parts.

123 questions
0
votes
1 answer

Import Test result to jira for cucumber tests

I have Spectron project which outputs to junit reporter as result.xml file. I want to import the test results as test execution to the corresponding Test in Jira Ticket. Some of the Jira Tests are manual and others are cucumber tests. the content of…
FarFarAway
  • 696
  • 1
  • 9
  • 26
0
votes
1 answer

creating mocha test suite to start app just once

I have following files test1.ts test2.ts test3.ts test4.ts test5.ts I want to start the tests at once with a unified before and after so that i start the application just once and run tests and close it after that every test file has its own…
FarFarAway
  • 696
  • 1
  • 9
  • 26
0
votes
1 answer

Testing Time input field with prefix

I have a Form with Time input field
FarFarAway
  • 696
  • 1
  • 9
  • 26
0
votes
1 answer

running electron app with custom main.js file. Electron rather starts the default main.js file

I have electron app with main.js which contains const electron = require('electron') const { app, BrowserWindow } = require('electron') function createWindow(){ let win = new BrowserWindow({width: 800, height: 600}) console.log("loading…
FarFarAway
  • 696
  • 1
  • 9
  • 26
0
votes
1 answer

How to test an Electron browser using Spectron

I'm trying to test my company's Electron built browser https://github.com/maidsafe/safe_browser but am meeting a few challenges which I am looking for support / guidance with. After a fair amount of research, it seems I essentially have two options…
Calum
  • 1
  • 1
0
votes
1 answer

How to get spectron tests results and pass them to outer test(for example, Ucumber-Junit test)

I have an app, that consists of two parts 1. Backend, Java Spring Boot app 2. Electron/Angular front-end I wanna test backend and frontend together. It would be great to start JUnit cucumber test, call the spectron test from one of cucumber cases,…
0
votes
2 answers

Error: Timeout of 30000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves

I am trying to write tests for electron using spectron. This is my code. describe ('Application launch', function(done) { this.timeout(30000); const app = new Application({ path: electronBinary, args: [baseDir], }); before(() =>…
Emjey
  • 1,802
  • 1
  • 12
  • 30
0
votes
1 answer

How to launch electron app using child_process in spectron testing

Is it possible to launch electron app using command line with help of require('child_process') in spectron, Normally we launch the app using command prompt like below, cd C:\Program Files\Project C:\Program Files\Project>Launcher.exe test.json So…
uKEsH
  • 3
  • 1
0
votes
1 answer

How can I wait to electron while loading html

I have an electron app which loads an HTML file on opening. When I tried to wait for an element with waitUntil method from the opening page, Spectron tries to find that while page loading and it crashes my app and app staying at the blank page. How…
slckayhn
  • 1,083
  • 11
  • 20
0
votes
1 answer

How do i install spectron and start scripting on it?

Got a recent Requirement, where i need to do Test Automation of Backend Node js application using the spectron. I would like to know what are programming skills required to approach the same
Saran3g
  • 29
  • 5
0
votes
1 answer

How can i run Spectron test in docker?

I run Spectron test in windows PC. I want to test my application in docker. I am not sure where I can get docker image for Spectron.
Bharath Kumar S
  • 1,332
  • 2
  • 8
  • 25
0
votes
1 answer

electron-spectron webdriverIO how to get a video tag source?

I am now write some tests with electron-spectron. After spectrum start my app, I want to check if my video is stopped or not the code is like element test code…
JeffChen
  • 93
  • 2
  • 8
0
votes
1 answer

Performance measurements from Spectron

Is there anyway to use Spectron to pull out performance metrics like fps? It would be very useful to know if our Electron app is staying performant as it's complexity grows. I've been looking around online but don't see anything for WebdriverIO or…
cham
  • 4,095
  • 4
  • 32
  • 48
0
votes
0 answers

WebdriverIO xpath selector doesn't work

I am testing an electron app using Spectron and webdriverIO, when I try to locate an element using xpath, it doesn't seems to work, as when I log in the console it tells me the element is undefined. The html code is shown below:
Harvey Lin
  • 605
  • 9
  • 23
0
votes
1 answer

Displaying Spectron-Webdriverio test results in TeamCity

I would like to display Spectron test results in TeamCity. I have followed the instructions at the Webdriverio TeamCity Reporter page, which are: npm install wdio-teamcity-reporter --save-dev and creating a wdio.conf.js file: exports.config = { …
cham
  • 4,095
  • 4
  • 32
  • 48
1 2 3
8
9