kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

It does not work with Browserstack #61

Closed robert-dzikowski closed 4 years ago

robert-dzikowski commented 4 years ago

So I installed https://github.com/DevExpress/testcafe-browser-provider-browserstack ordinary Test Cafe tests run on browserstack. But when I try to run Gherkin tests, e.g. TestCafeStudio\node_modules\.bin\gherkin-testcafe browserstack:chrome TestCafeStudio/tests/*.ts TestCafeStudio/tests/*.feature I get error ERROR Unable to find the browser. "browserstack" is not a browser alias or path to an executable file.

Lukas-Kullmann commented 4 years ago

Well, we use gherkin-testcafe together with browserstack and it works. I just tested the latest versions and it loaded the tests in browserstack. Could you verify for me that you installed the packages into the same folder by running

npm ls gherkin-testcafe testcafe-browser-provider-browserstack testcafe

It should print something like

my-package@0.0.0 /path/to/folder
├── gherkin-testcafe@2.5.0 
├── testcafe@1.8.3 
└── testcafe-browser-provider-browserstack@1.13.0-alpha.1 
robert-dzikowski commented 4 years ago

You are right my configuration is wrong, I only see gherkin-testcafe and testcafe. Can you write how to correctly install gherkin-testcafe and testcafe-browser-provider-browserstack, please? Let's say that my project is in test-project folder.

Lukas-Kullmann commented 4 years ago

Well, you just npm install testcafe-browser-provider-browserstack in your test-project folder.

robert-dzikowski commented 4 years ago

Thanks