Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

AllureStep

Nick Chursin edited this page Jan 17, 2022 · 3 revisions

If you don't like wrapping methods into steps using WrapInStep

AllureLifecycle.Instance.WrapInStep(() =>
{
   //Code
}, "Step name");

var result = AllureLifecycle.Instance.WrapInStep(() =>
{
   //return result;
}, "Step name");
[AllureStep]
public void MethodExample()
{
    //Step name = "MethodExample"
}

Also you can parse allurestep parameters with indexes

[Test]
public void Test1()
{
   StepSample("user", "pwd123");
}

[AllureStep("Login with user {0} and password {1}")]
public void StepSample(string username, string password)
{}

image

Clone this wiki locally