Skip to content

Displaying step parameters in report

Alexandr D edited this page Oct 5, 2018 · 3 revisions

Displaying step parameters in report

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:

alt text