JavaScript

Make sure you have downloaded the Perfecto Smart Reporting SDK client for your programming languages and framework from here.

Perform the following setup tasks to integrate your tests with Smart Reporting.

Important: The code snippets provided include examples for a generic JavaScript script (not using a testing framework). If you use a specific automation framework, ensure that you adjust the lifecycle hooks to match your framework's structure (for example, beforeFeature() and afterFeature() in Cucumber or before() and after() in Mocha).

For JavaScript reporting samples, see the Perfecto GitHub repository.

Click a task to expand its steps.