Passing my scenario name as test name on Lambdatest

I am using NodeJS with cucumber and it is very difficult for me to keep track of my test. Is there a way I could assign my scenario name as the test name so that my tests are easier to manage.

1 Like

Yes, you could do that. Find your hook.js file and add this script in your @before block caps[“name”] = scenario.getName();

I am sharing an image for your reference: