-
-
Notifications
You must be signed in to change notification settings - Fork 6
Displaying step parameters in report
Alexandr D edited this page Oct 5, 2018
·
3 revisions
You can add parameters to a specific step using the RunStep
method and some methods from Verify
class.
Simply add the variables you want to display as step pameters as last arguments of the method.
Examples:
RunStep
:
[TestCase("login1", "password1")]
public void LoginToApp(string login, string password)
{
AllureLifecycle.Instance.RunStep("This is parametrized step", () =>
{
// some code here
}, login, password);
}
Verify
:
[TestCase("login1", "password1")]
public void LoginToApp(string login, string password)
{
AllureLifecycle.Instance.Verify.That("This is parametrized step", 5, Is.GreaterThan(2), login, password);
}
Result: