Questions tagged [e2e-testing]

End-to-end testing is a methodology used to test whether the flow of an application is performing as designed from start to finish. The purpose of carrying out end-to-end tests is to identify system dependencies and to ensure that the right information is passed between various system components and systems.

3036 questions
10
votes
3 answers

Protractor/Selenium: run browser in the background

I'm using protractor for testing. 99% of the times there's no need to actually see the browser, the tests take a long time, and all we're interested in is the final outcome. Is there a way to hide the browser opened for testing (e.g. run in the…
yccteam
  • 2,168
  • 4
  • 25
  • 47
9
votes
1 answer

Nestjs test e2e ECONNREFUSED 127.0.0.1:80

I am having the error ECONNREFUSED 127.0.0.1:80 when running a test e2e with Nestjs to test a dto. Here is my code: const TEST_URL = 'test'; @Controller(TEST_URL) class TestController { @Post() public test(@Body() param: TimeTableParam) { …
Baboo
  • 4,008
  • 3
  • 18
  • 33
9
votes
2 answers

Cypress with Sauce Labs

In the Cypress docs they states (under the "Sauce Labs" subsection): Cypress’s API is written to be completely compatible with Sauce Labs, even though our API is not Selenium based at all. We will be offering better integration with Sauce Labs in…
Maurice
  • 1,223
  • 14
  • 21
9
votes
4 answers

Protractor: Unable select input element inside a shadow DOM (Polymer) using by.deepCss('input')

Environment: Angular (v5 Application with Polymer Web Components. Protractor for running e2e tests. Angular CLI: 1.6.4 Node: 6.10.0 Angular: 5.2.0 @angular/cli: 1.6.4 typescript: 2.5.3 Below given is my polymer web component shadow root expanded in…
Bachu
  • 425
  • 4
  • 13
9
votes
2 answers

E2E: Select an image from a UIImagePickerController with Wix Detox

Description I need to write an e2e test that in some point it has to select an image in UIImagePickerController, I tried to use element(by.type('UIImagePickerController')). tapAtPoint() with no use. I need a way to select an image. I have found a…
Tareq El-Masri
  • 2,413
  • 15
  • 23
9
votes
1 answer

How to expect url is redirect in TestCafe?

I want to detect URL is redirected to the login page when clicking something that needs to log in first. Is there any way to achieve that?
Knovour
  • 319
  • 3
  • 16
9
votes
1 answer

Getting concurrently scripts to complete

I am trying to create a script to run an end-to-end testing suite. I am currently using concurrently and the angular cli, like so: "e2e": "concurrently \"ng e2e --proxy-config proxy.conf.json\" \"cross-env NODE_ENV=development node server\"", It…
George Edwards
  • 8,979
  • 20
  • 78
  • 161
9
votes
3 answers

What is the difference between UI/GUI testing, functional testing and E2E testing?

I would say that all three are the same, but I wonder if there is small differences between them. In the end, what I think is that you are testing user scenarios on all of them.
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
9
votes
1 answer

Mock a service in E2E test in protractor

I want to write a functional test for my app, and I want to mock my loginService service, to speed up the tests. I do not want to mock the $http, but the service that internally calls it, but I can't put a spy on the function loginService.validate,…
user5134233
9
votes
2 answers

How to trigger 'swipeleft' event in e2e test (protractor)

For example, i have this html-code of application:
and such test: it('test', function() { browser.executeScript( 'angular.element(".swipe-cover").triggerHandler("swipeleft")' ); }); but…
Alexandr Alex
  • 91
  • 1
  • 2
9
votes
2 answers

Install Selenium Server manually to work with Protractor (AngularJS) from Cuba

I am developing an AngularJS app, and I like to test it with Protractor (e2e test). I am following this excelent guide, but I am stuck in step 5 (Download and start the selenium server), because a live in Cuba and when I try to install the Selenium…
lmgonzalves
  • 6,518
  • 3
  • 22
  • 41
9
votes
2 answers

Grunt Karma unit task fail with AngularJS project

I have a problem executing grunt karma:unit, the task finished but throw this: ....... DEBUG [web-server]: serving (cached): C:/project/yo /test/spec/services/lists.js Firefox 32.0.0 (Windows 7): Executed 0 of 0 ERROR (0.027 secs / 0 secs) DEBUG…
Candres
  • 385
  • 2
  • 5
  • 18
8
votes
3 answers

How to save requests' response body using Playwright?

I need to intercept network request and save it's response body to variable, so I can perform assertions with values, that are displayed on UI, but when I try to access variable which is supposed to contain saved response body I receive [object…
8
votes
4 answers

App in cypress redirects, outside does not

I am trying to write end to end tests for this application with Cypress: https://app.gotphoto.com/admin/auth/login When I visit the above url from my browswer, a login form is showing, as expected. When I visit the above url through…
handris
  • 1,999
  • 8
  • 27
  • 41
8
votes
2 answers

Playwright test library - parent element for selector

please, how to get a parent element for a text selector by the Playwright E2E library. Is better to modify the selector (it is string by something like >> //:parent) or evaluate the selector and then call the DOM element? (The selector content is…
Tomas Randus
  • 2,127
  • 4
  • 29
  • 38