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.
Questions tagged [e2e-testing]
3036 questions
1
vote
0 answers
how to setCookie in testcafe with redirect?
My web application redirects any unauthenticated user to the external authentication application.
Using setCookie doesn't work since the page redirect before the setCookie finishes.
Can I disable the redirect somehow?
Or another solution?

natdev
- 507
- 1
- 8
- 19
1
vote
0 answers
RequestLogger - Waiting for requests[0].response
When logging requests using the RequestLogger, the requests array records the immediate response which isn't always present if the response takes more than a few seconds to return.
Is there a way to wait for the statusCode to return before the…

Critical Thinker
- 11
- 1
1
vote
3 answers
Are getter functions necessary for Protractor element locators
When using PageObjects for Protractor e2e tests, should you use getter functions for the element locator variables instead of having variables?
example:
public loginButton: ElementFinder = $('#login-submit');
public loginUsername: ElementFinder =…

reutsey
- 1,743
- 1
- 17
- 36
1
vote
1 answer
How to populate a MongoDB database for e2e testing effectively
I have set up my environments as described here: https://medium.com/developer-circles-lusaka/how-to-write-an-express-js-server-using-test-driven-development-921dc55aec07
This means I am using the config package to select an environment.
What I would…

SomeDutchGuy
- 2,249
- 4
- 16
- 42
1
vote
1 answer
TestCafe docker- unable to run tests using runner class
I have all my tests running in a docker container and it works fine. Since I have a few test files which need concurrent tests and a file which doesn't need a concurrent test that is the reason I need to create a test runner to run my tests. Here is…

Psdet
- 659
- 9
- 24
1
vote
0 answers
TestCafe fails to retrieve elements after appcues configuration is added
I'm using TestCafe for all my web tests and things were working fine until some configuration files were updated in the web project with some app cues to work. Most of the tests fail but not all which makes it really tricky to figure out what is the…

Psdet
- 659
- 9
- 24
1
vote
1 answer
How to test external browser pages on electron application using testcafe
I'm currently doing E2E testing using testcafe on an electron-vue application. In my authentification phase, I connect to another external application :enter username and password to authenticate. The problem is that I cannot apply test case on the…

doubleCH
- 41
- 3
1
vote
0 answers
How to test API with Cypress?
I am trying to test our API, but each API comes with bearer token.
The test passes when I pass the entire bearer token,
but how can I regenerate the token without having to put the entire token?
// const bearerToken =…

Leo Davtyan
- 203
- 4
- 11
1
vote
1 answer
Disable page reloads in test-cafe framework using single page apps
I have a problem in test-cafe with angular, for each test case the browser reloads which takes much time,
I want to disable the page reload for each test, anyone has any idea?, if this solution not implemented yet by test-cafe developers for SPA,…

ayed abboushi
- 71
- 2
- 4
1
vote
0 answers
extended Selector Function with fs
I try to write an own Selector that will read an XML and get an XPath from it. But my idea does not work any suggestion?
I use
//xpath.js
import { Selector } from 'testcafe';
import fs from "fs";
import downloadsFolder from…

ingo
- 776
- 1
- 10
- 25
1
vote
1 answer
Testcafe test fails because "Failed to find a DNS-record for the resource" with VPN, but without VPN it works
The test fails when I'm connected through the VPN but without it works fine. It performs a click to this URL:
https://www.google.com/search?q=let+me+google+that+for+you
I tried with the --proxy-bypass setting but I suppose I'm not doing it right,…

viktors89
- 97
- 1
- 1
- 7
1
vote
1 answer
Download XML with fixture
I want to save an XML file from the server to local for later check.
Because TestCafe does not allow out of the box the download of files I did some research and found:
import fs from 'fs';
const downloadLocation = './downloads/saved.xml';…

ingo
- 776
- 1
- 10
- 25
1
vote
1 answer
e2e Tests fail due to 404, but 404 is expected
I have a small Angular 8 method, where I read a local file. However, it is possible, that the file does not exist, which is fine. Unfortunately, my Protractor e2e tests fail:
Entry({ level: SEVERE, message: 'http://localhost:4200/assets/details.txt…

PrimuS
- 2,505
- 6
- 33
- 66
1
vote
0 answers
Access Cookie Metadata in Testcafe
I know that document.cookie does not return metadata such as path or domain in javascript. However, is it possible to access the path and domain of cookies in TestCafe? I have done searching on the GitHub repo as well as stack overflow, but all I…

noahpc
- 366
- 5
- 13
1
vote
1 answer
Lowercase/Uppercase String Comparision Issue
If I use the function "WithText" in the Testcafe script, it looks like it depends on lowercase and uppercase writing. How I can make it independent? SO a user "Myname" is accepted and also "myname"? It is bad that a script will fail in case of…

ingo
- 776
- 1
- 10
- 25