Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.03 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.03 KB

Zafira::NUnit

ZafiraIntegration library that implements integration Zafira reporting into existing NUnit test structure.

Usage

Installation

To enable library just add reference to your project:

References -> Add Reference ...  bin/Realese/ZafiraIntegration.dll 

Configuration

There are two possible ways to use library:

  1. Add class attributes:
[ZafiraSuite] - for creation test suite in zafira
[ZafiraTest] - for creation tests in zafira
  1. Extent your BaseTest class from ZafiraListener.cs

Examples

  • 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()
        {
            ...
        }
    }

Troubleshooting

To be done ...