ZafiraIntegration library that implements integration Zafira reporting into existing NUnit test structure.
To enable library just add reference to your project:
References -> Add Reference ... bin/Realese/ZafiraIntegration.dll
There are two possible ways to use library:
- Add class attributes:
[ZafiraSuite] - for creation test suite in zafira
[ZafiraTest] - for creation tests in zafira
- Extent your BaseTest class from ZafiraListener.cs
- Use attributes for base tesing class or just for classes that need to be reported:
[ZafiraSuite, ZafiraTest]
public class BaseTest
{
[OneTimeSetUp]
public void startDriver()
{
...
}
}
- Extent base testing class
public class BaseTest : ZafiraListener
{
[OneTimeSetUp]
public void startDriver()
{
...
}
}
To be done ...