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
2 answers

What are the TestCafe requirements for the HTML and Javascript used in a WebApp (i.e a Tomcat web app)

The TestCafe docs lack any but the simplest requirements. The web app i wrote in 2008-9 is XHMTL 1.0 syntax generated by Freemarker templates under SpringFramework 2.5.x, that have lots of forms and pages with excel like tables full of…
exAppl0088
  • 19
  • 3
0
votes
2 answers

How to get final result data from a function

I've been trying to make function(see bellow) to work. If i call this function in my test like this: test.meta({ CID: 'C67', type: TestType.Critical }).timeouts({ pageLoadTimeout: 5000,})( 'Test to GetData', async (t:TestController) =>…
0
votes
0 answers

Tests started failing with new version of testcafe where a http call to load a script has returned 500 Internal server error

I have testcafe tests working fine until version 1.14.0 and with the upgrade of the version to the latest (> 1.14.0), the tests have started to fail and the from console/network calls of the browser, I could see that one of the call to get the js…
Jeeva
  • 438
  • 4
  • 12
0
votes
1 answer

Not able to run test using --url

On running test using CLI by providing "--url" getting "error: unknown option '--url=https://www.google.com/'" enter image description here node version: 14.16.1 npm version: 7.10.0 testcafe version: 1.15.1
0
votes
1 answer

Converting Date value to a sting that can be used in TestCafe

I'm currently using an Excel spreadsheet to store my data for my regression pack when calling the data in testcafe. This was not able to be typed into the field using .typetext as this was a number. I then tried to convert into a string but got the…
0
votes
3 answers

ERROR The "html" reporter does not exist. Check the reporter parameter for errors

I am running with ERROR The "html" reporter does not exist. Check the reporter parameter for errors. error while running test using testcafe. Can you please let me know what I can do to resolve this issue?
0
votes
1 answer

change the main hader in testcafe-reports-html

how i can change the text in header of reports? form "TestCafe Test Summary" to custom header

TestCafe Test Summary

Tzahi
  • 259
  • 3
  • 12
0
votes
0 answers

minimist failing in testcafe

I am using minimist to run different environment for my TestSuite using test cafe however i am facing some issues I have the following example.ts file import * as minimist from 'minimist'; const args = minimist(process.argv.slice(2)) const…
TS0306
  • 177
  • 12
0
votes
2 answers

Call external URL to setup and teardown in Testcafe

I'm using Testcafe with an application that has a database driven backend (no API, but MVC). I would like to Setup and Teardown settings in the database prior to running the tests. This can be down by calling an URL on my application (e.g.…
0
votes
1 answer

How to pass suite name as a parameter in command line

Tried to execute the Smoke/Regression tests using the runner method. But need to pass the Smoke and Regression in "node testrunner.ts" command line. Refer the below code: const createTestCafe = require('testcafe'); var argv =…
0
votes
0 answers

Report Portal does not receive the test results from Test Cafe

I wish to have the results from testcafe in report portal. I am running in a linux AWS environment. I am trying to use the reporter https://github.com/danitseitlin/reportportal-testcafe-plugin . When running the test, I get a message "Report Portal…
0
votes
1 answer

TestCafe Studio - How to debug test failure when .testcafe file is executed?

I'm using TestCafe Studio to create my tests and executing the tests written in .testcafe format using the testcafe docker container. Further I'm using 'Drone' as CI environment. Below is the command that I use to execute my tests `-…
0
votes
2 answers

Invoking Testcafe 't' Handler Through Anonymous Self Executing Function

I have a case where I would like to use invoke the t test handler with the t.ctx context available outside of the test() function. Is this possible at all? From what I see when I run this script I do see the console spitting out all the available…
0
votes
2 answers

How to select a DOM element with only part of src attribute?

There is a thing: I have an element which I need to select using their src attribute, but the src attribute is like this: src =…
Gosiak
  • 11
  • 2
  • 3
0
votes
0 answers

Chrome browser errors when running testcafe tests

When I run tests with TestCafe Studio, I will often times get a browser disconnected error, even though the browser is not closed, and seems to be running. Has anyone seen a fix for this. I am running in a Linux AWS environment, using chrome.
Wally
  • 11
  • 3