Displaying step parameters in report - Noksa/Allure.NUnit GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️