gherkin-testcafe | Run testcafe tests with gherkin syntax | Functional Testing library
kandi X-RAY | gherkin-testcafe Summary
kandi X-RAY | gherkin-testcafe Summary
Run testcafe tests with gherkin syntax
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gherkin-testcafe
gherkin-testcafe Key Features
gherkin-testcafe Examples and Code Snippets
Community Discussions
Trending Discussions on gherkin-testcafe
QUESTION
We are "successfully" running our gherkin-testcafe build on ec2 headless against chromium. The final issue we are dealing with is that at a certain point in the test a CTA button is showing ...loading instead of Add to Bag, presumably because a service call that gets the status of the product, out of stock, in stock, no longer carry, etc. is failing. The tests work locally of course and we have the luxury of debugging locally opening chrome's dev env and inspecting the network calls etc. But all we can do on the ec2 is take a video and see where it fails. Is there a way to view the logs of all the calls being made by testcafe's proxy browser so we can confirm which one is failing and why? We are using.
const rlogger = RequestLogger(/.*/, {
logRequestHeaders: true,
logResponseHeaders: true
});
to log our headers but not getting very explicit reasons why calls are not working.
...ANSWER
Answered 2020-Nov-02 at 07:57TestCafe uses the debug module to perform internal logging functionality. So, in order to view the TestCafe proxy logs, you can set the DEBUG
environment variable in the following manner:
QUESTION
We are developing a web application which we are creating UI tests with Testcafe 1.5. All of the sites we are testing are HTTPS. Our tests are either run locally or on SauceLabs (for multi browser testing).
We have been successfully testing for a long time using either the browser settings:
- "chrome:headless --allow-insecure-localhost"
- "chrome --allow-insecure-localhost"
- "saucelabs:Chrome@76.0:Windows 10"
Local Chrome version is 80. To do this, we use the following code:
...ANSWER
Answered 2020-Feb-24 at 10:36Based on the TestCafe Test HTTPS and HTTP/2 Websites topic, you need to explicitly set a flag for each browser so that they don't restrict the use of the self-signed certificate.
For instance, in Firefox, you can toggle the network.websocket.allowInsecureFromHTTPS
option (Is there a equivalent of allow-insecure-localhost flag of Google Chrome in Firefox?). For IE, you can specify a similar argument if it is available (IE10 websocket allowInsecureFromHttps).
As for the saucelab testing, you would want to pass the corresponding browser arguments when running tests. However, note that the saucelabs browser provider does not support passing arguments to browser aliases (https://github.com/DevExpress/testcafe-browser-provider-saucelabs/issues/48).
QUESTION
My team kinda like TestCafe, but there are some reservations against adopting it. The main one being support for Gherkin integration. The gherkin-testcafe npm package and the sample https://github.com/helen-dikareva/testcafe-cucumber-demo seem not ready for primetime yet.
Is it a more reliable way of supporting BDD at the moment?
...ANSWER
Answered 2018-Jan-09 at 11:58I'm from the TestCafe Team. Fow now, we don't plan to add this functionality in the near future. But I guess gherkin-testcafe is a nice module to start with. This is an open-source module, so there is a good chance that the community will add the required functionality. If you wish, you may go ahead and do this by yourself.
QUESTION
I am trying to write something to check that "About Us" exist on the following page: https://www.aggrowth.com/en-us/about-us and I am just hitting a wall. It shouldn't be difficult, but I have spent too much time on this.
We are using Gherking-testcafe: https://www.npmjs.com/package/gherkin-testcafe
NPM: 6.9.0
TestCafe: 1.0.1
Gherking-Testcafe: 2.0.0
I tried (All below was tested isolation, aka all of the different t.expect was run by themselves):
...ANSWER
Answered 2019-May-20 at 12:58You need to implement Selector binding to TestCafe's test controller for such tests. Please have a look at the following example:
QUESTION
I have been experimenting with javascript frameworks for test automation and one of them is testCafe. I have been able to set up a simple TestCafe project and run some test cases for my application. However, now, the requirement is to have some kinda BDD support built in it. I looked up a few testCafe-cucumber integration projects on GitHub but I can't get them to run. here are a few that I tried:-
1) https://github.com/rquellh/testcafe-cucumber - I cloned the repo, - did npm install, - run the test cases using "npm test", - blank browser launches but test doesn't run. I see this error in VS code console:
...ANSWER
Answered 2019-Jan-28 at 22:02TestCafe/Cucumber integrations rely on starting TestCafe runner programmatically.
In the repo, search for this sequence:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gherkin-testcafe
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page