Questions tagged [testcafe]

TestCafe and TestCafe Studio - end-to-end testing, simplified. Questions from users of the open-source TestCafe and TestCafe Studio community edition subscribers.

Resources

1850 questions
0
votes
1 answer

How can I get original response in TestCafe RequestMock

Testcafe gives you the ability to mock the response of a request, which I am able to do. I would like to implement a caching system for all GET/Ajax request. This works fine if the URL is in the cache but for those that are not in the cache it…
fredtma
  • 1,007
  • 2
  • 17
  • 27
0
votes
1 answer

Manually setting QUARANTINE_THRESHOLD and DISCONNECT_THRESHOLD in testcafe does not work

I changed the QUARANTINE_THRESHOLD and DISCONNECT_THRESHOLD in test_run_controller.ts file to 1 million each and built successfully however, my test still fails after around 1000-10000 restarts with the error : ERROR The Chrome 89.0.4389.90 / Linux…
0
votes
1 answer

Server/client test isolation and initialization in TestCafe

So I'm currently developing a client/server application in Typescript/NodeJS and I want to add end-to-end testing. However, the documentation of TestCafe (and other e2e frameworks btw.) leave me clueless on what I want to achieve. What I want to do…
Kc_
  • 201
  • 4
  • 11
0
votes
2 answers

Testcafe get skipped tests in embedding-utils.js

I am trying to add some personal static analysis to my testcafe tests according to different features I am testing. I found there is getTypeScriptTestList in the following API,…
0
votes
1 answer

Testcafe - Filtering on Tests works from Command Line but not from runner

I'm actually trying to use a test-runner file to figure out all my configs from this file. I'm using tests for Smoke and Regression scripts. So, i want my tests to run based on Smoke or Functional test metadata that i choose from the tet runner…
0
votes
1 answer

Automation testcases failing in kubernetes but jenkins pipeline passing

Hello i am using testcafe for automation and used docker jenkins and kubernetes for deploying it. However if testcases are failing in Kubernetes POD the jenkins Pipeline is passing! How can i make it fail? How can i make Jenkins Pipeline fail if…
TS0306
  • 177
  • 12
0
votes
1 answer

Testcafe how to declare ClientFunction in Factory page

I am trying to declare a ClientFunction on a Factory page and then call it on a test page. But I am doing something wrong and it doesn’t work. I have two pages one is factory page, second test page. In test page i have ClientFunction and it works…
0
votes
1 answer

TestCafe - How to run parallel tests with remote browser?

I have tests written with TestCafe Studio (.testcafe) format. I want to execute my tests concurrently for the pipelines, where I'm using ** -c 2 ** with the node.js "test": "NODE_TLS_REJECT_UNAUTHORIZED=0 testcafe -c 2 chrome --skip-js-errors…
0
votes
1 answer

TestCafe - How to automatically run the generated remote connection URL on a remote browser

I'm new to TestCafe. I have a requirement to execute the TestCafe automated tests on Internet Explorer(IE) browser. I'm using TestCafe Studio to record the tests and the TestCafe docker container will be used to run the tests within the pipeline.…
0
votes
1 answer

Server side mocking of node using testcafe

my use case is to explore how could a server-side requests be mocked. I am successful in mocking client side request using requesthooks but with server side testcafe is not able to intercept the request. Frontend is built using next.js, and at…
0
votes
1 answer

testcafé: An error occurred when trying to calculate a custom Selector property

I'm using Testcafe and I have pretty straightforward selector: const tile = Selector('[data-component="tile"]'); And that selector is used to create this: const titleFieldTile = tile.nth(0); const titleFieldName = titleFieldTile.find( …
Rohan Nicholls
  • 561
  • 4
  • 6
0
votes
2 answers

How to combine device emulation and headless mode in TestCafe

I'm trying to see if I can run my TestCafe cases in Headless Chrome browser using emulator device. I followed the instructions from TestCafe doc and I wasn't successful in it.…
Chaitanya Maligi
  • 217
  • 4
  • 7
  • 19
0
votes
0 answers

How to set up TestCafe artifacts in GitLab CI/CD?

I would like to know how to properly configure TestCafe to save artifacts so that if somethings fails in CI, it would be easier to troubleshoot. Our tests are triggered in CI/CD (inside docker container) each time a developer commits to their…
badatjs
  • 11
  • 1
0
votes
1 answer

How to manipulate URL while executing Test cafe scripts

I tried executing my TestCafe scripts using command prompt. While executing, test cafe starts execution by taking local IP, port number and session ID along side the URL. I want my scripts to execute directly on the URL without the local host IP,…
0
votes
1 answer

chrome remote interface ECONNREFUSED 127.0.0.1:9222

I am using Testcafe and it does not have direct support to access Chrome Dev Tools. My Aim is to cut the network so that I can see the error dialog in the website. This is the code that I have written. TestCafe opens at a different url Here is the…