While running automation tests using Nightwatch.js, I noticed that all the tests have the same name on the LambdaTest dashboard because the LT:Options values are the same for all tests. How can I assign a different name to each test?
Hi Ana,
To assign different names to each test while using Nightwatch.js with LambdaTest, you can utilize Lambdahooks. Lambdahooks provide a JavaScript executor to pass the test name during execution. You can refer to the Lambdahooks documentation at Lambda Hooks For Selenium Automation | LambdaTest | LambdaTest for more details.
The syntax for assigning a specific test name is as follows:
browser.execute(lambda-name=test_name)
By using this syntax and specifying the desired test name for each test, you can ensure that each test has a unique name on the LambdaTest dashboard.