Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestCafe (steps not visible in html report) #140

Closed
umerhamdan10 opened this issue Mar 10, 2021 · 11 comments
Closed

TestCafe (steps not visible in html report) #140

umerhamdan10 opened this issue Mar 10, 2021 · 11 comments

Comments

@umerhamdan10
Copy link

My steps are not visible in report. I just see my feature file name and scenario name.

Any one face same issue? I just se json don't have any information about the steps but have the scenarion information.

Help will be appriciated
image

@wswebcreation
Copy link
Collaborator

Hi @umerhamdan10

Can you also share the file that TestCafe is creating? If it's not according to the official standard then it will not show anything

@umerhamdan10
Copy link
Author

which file do you need? html ?

@umerhamdan10
Copy link
Author

https://github.com/ash8454/testcafe-gherkin-demo

My situation is same as this project. After running all the feature file the report is generated well but not the steps.

if you run this project feature file you will see the issue.

kindly let me know if you need more information.

Thanks for your time

@wswebcreation
Copy link
Collaborator

I need to have the JSON file. That file is being generated by TestCafe and should be a proper CucumberJSON object.

@umerhamdan10
Copy link
Author

umerhamdan10 commented Mar 11, 2021 via email

@umerhamdan10 umerhamdan10 changed the title TestCafe (steps not shown in report) TestCafe (steps not visible in html report) Mar 11, 2021
@umerhamdan10
Copy link
Author

This is testcafe-reporter-cucumber-json.json. Even I removed the tags but generating the same html report.

{
"args": {
"appName": false,
"appVersion": false,
"reportFolder": "cucumber-json-reports"
},
"noisyTags": [
"(t)",
"able",
"and",
"async",
"but",
"can",
"cannot",
"did",
"feature",
"fixture",
"given",
"not",
"only",
"scenario",
"should",
"spec",
"test",
"the",
"then",
"when",
"with"
],
"verbose": false
}

@wswebcreation
Copy link
Collaborator

Thanks for the info, I will take a look at it, just need to see when

@hdorgeval
Copy link
Contributor

Hi @umerhamdan10, https://github.com/ash8454/testcafe-gherkin-demo enables you to write tests in a gherkin language, but behind the scene, these tests are executed by the Testcafé runner and not the Cucumber runner.

In Testcafé, there is no notion of steps.

See the disclaimer here : Supported gherkin features and limitations

This is why you will never see any step in the final html report.
I think you might be interested in this thread : hdorgeval/testcafe-reporter-cucumber-json#29

Mixing Cucumber and Testcafé has always been a tedious task with a lot of trade-offs. You also might be interested by testcafe-starter

@wswebcreation
Copy link
Collaborator

Thanks @hdorgeval

Can you add a reference to your module in the readme? Would really appreciate it.

Closing the issue for now because it's a 3rd party dependency instead of an issue with this module

@hdorgeval
Copy link
Contributor

Hi @wswebcreation, I just wondered which readme you are talking about?

The module referenced in this issue is testcafe-reporter-cucumber-json. It's a JSON reporter for TestCafé, it produces a JSON document with the same format as the one generated by CucumberJS. I have created this reporter, so that TestCafé consumers can generate a nice HTML report through your module.
Thanks.

@wswebcreation
Copy link
Collaborator

Hi @hdorgeval

Maybe promote your module in the readme in this project 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants