Comment (FR)

Perfecto command

perfecto:comment

Purpose

Adds a custom comment to the automation script and to the Perfecto execution report.

Use this command to annotate test execution with descriptive or contextual information that improves report readability and analysis.

Parameters

Name

Type

Possible Values

Description

text

String

Any string

The comment text to add to the script execution and the generated execution report.

Return value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> params = new HashMap<>();
params.put("text", "Starting login flow validation");
driver.executeScript("perfecto:comment", params);
Copy

C# code snippet

Dictionary<string, object> pars = new Dictionary<string, object>();
pars.Add("text", "Starting login flow validation");
driver.ExecuteScript("perfecto:comment", pars);