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

Testcafe - How to call a excel data driven class from main class in testcafe?

Getting "cannot read "forEach' undefined. I have implemented as you said. but still, I am getting errors. Pls give a solution for this //data-driven script in a separate class import xlsx from "node-xlsx" // read logic of excel export function…
Ajith
  • 13
  • 3
0
votes
1 answer

Testcafe not able to communicate with local zat server (zendesk-app-tools)

I'm building a test suite for our Zendesk apps and testcafe works perfectly fine for our environments but isn't working with a local zat server. When a developer wants to test a change they'll build and run the app within a zat server which talks…
0
votes
1 answer

How to get all tag under the

In selenium query for selector, if my selector value was (#div-id a). It return all a tags. Does in testcafe is it posible this to selector function? i just want to avoid looping to get all a tags. Code Sample const element =…
0
votes
1 answer

Connect Testcafe to AWS Devicefarm

We recently decided to include E2E to our front-end pipeline and we are using testCafe for that and since we use AWS as our SaaS we're being asked to use Devicefarm for remote testing and I'm facing the problem to connect them. I'm based on the…
0
votes
2 answers

Checking for a Pop then Clicking to Continue with TestCafe

After login, if the user is already logged on, a pop up is displayed. I want to use a do while loop. New to javascript and testcafe so this should probably be considered pseudo code... do { try { if (await this.continueBtn.exists) …
0
votes
1 answer

If i don't use Role, few test dont have localstorage that I set before and the test fails

I'm testing a page that has an external third-party login (onelogin), the first problem with the test was that this login has MFA, I found an alternative to create valid local storage and set it up in the browser, my first test was running and…
0
votes
1 answer

Running multiple Testcafé tests sequentially in Jenkins/Selenium Grid

Me and my colleagues developed some tests using Testcafé, with the goal in mind to have these tests be ran automatically on a daily basis using Jenkins and Selenium Grid, to give us insight in whether tests have ran succesfully (or not). All of the…
0
votes
1 answer

Open multiple browser windows in 1 testcafe test

I'm trying to write a test with testcafe that could generate conflicts in a document. For this I would need to be logged in with 2 different users in 2 different browser sessions (One being an incognito window) and open up the documents editor with…
Dzsonah
  • 125
  • 1
  • 11
0
votes
1 answer

Currently trying to get my smoketest.js to run on a different URL depending on parameters provided on Azure dev ops (TestCafe)

Currently running my automation from a pipeline please see yaml file below: jobs: - job: master pool: vmImage: ubuntu-latest steps: - task: NodeTool@0 inputs: versionSpec: '10.14' displayName: 'Install…
0
votes
1 answer

'Error [ERR_STREAM_CANNOT_PIPE]: Cannot pipe, not readable' facing this error when running testcafe testcases in saucelabs

What im trying to do here: Im trying to run testcafe scripts through azure pipelines in SauceLabs. Trying to run through localhost URL, as we are yet to figure out the authentication strategies. The testcases are passing when i see the video in…
Monica
  • 1
0
votes
1 answer

Microsoft Account in TestCafe test. - "Your security info change is still pending"

We are using TestCafe to log into a WebSite that is secured with Azure Active Directory. The security info for the Microsoft accounts has been updated (alternative email was to a previous tester's account). That has put something of a block on the…
0
votes
2 answers

Cycle through test data from within a Testcafe test? How to?

I'm wanting to log into an app, run several searches from test data, then log out. I don't want to login and out for each item in the data set, which would be the case if I coded this way... dataSet.forEach(data =>{ test('Search Test', async t =>…
0
votes
1 answer

Selector fails to access "Row" of v-data-table of Vuetify

Selector() failed to access Row component in v-data-table of Vuetify. Issue in GitHub Can anyone help me out to resolve this? Environments Chrome 89.0.4389.128 / macOS 11.2.3 node: v14.15.5 yarn: 1.22.10 testcafe: 1.14.0 testcafe-vue-selectors: …
0
votes
1 answer

Error "_keys2 is not defined" when calling .getVue() in Testcafe

I got an issue when I tried to call .getValue() of component in app with Vuetify. I have tried other components but the result was the same. Can anyone let me know how to get through? Issue in GitHub Environments Chrome 89.0.4389.128 / macOS…
Daenam Kim
  • 127
  • 6
0
votes
1 answer

How to run only one fixture by specifying multiple metadata?

I have 2 fixtures with a bunch of tests: fixture.meta({ app: '1', suite: 'smoke', env: '1' })('A') fixture.meta({ app: '1', suite: 'smoke', env: '2' })('B') I would like to only run fixture 'A'. I am using the following command on the command…