I want to set an Author for testFixture and get it at runtime to be able to fetch it in my DB :
Here is the TestFixture class I set Nunit attribut Author for testFixture level :
[TestFixture(Author = nameof(AuthorName.Eva)),MachineCategory.Filter]
public class FilterTests : WidiaTestSetup
{
[Test, RetryOnFailureOrException]
public void FilterCuttingDiameter()
{ ...}
}
To get the test Author from test level I do :
Author = TestContext.CurrentContext.Test.Properties.Get("Author").ToString()
But It is not working from testFixture How can I do to get it from TestFixture level ?
Thnaks in advance
Aucun commentaire:
Enregistrer un commentaire