Allure Report in C# selenium framework #2540
Unanswered
RachitaDangare
asked this question in
Questions & Support
Replies: 1 comment 3 replies
-
Currently, using NUnit.Framework;
using Allure.NUnit;
using Allure.NUnit.Attributes;
[AllureNUnit]
public class MyTestClass
{
[OneTimeSetUp]
[AllureBefore]
public void StartUpAssembly()
{
ABC abc = new ABC();
abc.Test();
}
} The feature request for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How we can call a method from [OneTimeSetUp] which has allure step associated with it.
When I do this I am getting bellow exception.
OneTimeSetUp: System.InvalidOperationException : No step context is active.
Code Snippet for reference -
[SetUpFixture]
public class OneTimeFixture
{
[OneTimeSetUp]
public static void StartUpAssembly()
{
ABC abc = new ABC();
abc.Test()
}
}
public class ABC
{
[Step("Log details")]
public void Test()
{
// Does something
}
}
Could you please suggest how we can call Allure step associated method call from OneTimeSetUp method.
Beta Was this translation helpful? Give feedback.
All reactions