r/QualityAssurance 21h ago

Need help regarding testdata values in cucumber html report

Hi everyone

I am currently using cucumber html report with a framework of playwright js cucumber

I am using json file for testdata so I have written utility to get value based on key passed in feature file or steps or methods

So when I run , in reports it shows actual key only not the value

I neee to show actual value instead of key

2 Upvotes

2 comments sorted by

1

u/Candid-Claim937 21h ago

I had this same headache a few months back with the cucumber html reporter, it just dumps the step text as-is and doesn't resolve anything from your test data layer.

The cleanest fix I found was to write the resolved values into the step name string before the step finishes, so the reporter picks up the full text. It's a bit hacky but way less painful than trying to patch the formatter itself.

1

u/BulkyAnxiety6800 19h ago

how did u do it
any reference document?