public TestBase(ITestOutputHelper output) : base(output) { // Identify name of the test string testName = Context.Test.DisplayName; // Driver factory and web driver driverFactory = new DriverFactory(); driver = driverFactory.CreateDriver(); // Enable output logging in Xunit test this.output = output; // Enable capturing of exceptions for taking screenshots for failed tests XunitContext.EnableExceptionCapture(); }
static UsingCurrentException() { XunitContext.EnableExceptionCapture(); }
public static void Setup() { XunitContext.EnableExceptionCapture(); }
//issueDefaultParameters.description = "Teste Inserção Parâmetro"; //precisar inserir informação diferente da defaul //string variable = Environment.GetEnvironmentVariable("\\nomedavariaveldeambiente"); //retorna uma variável de ambiente criada #endregion parametersandinstance #region constructor public CreateIssueTests(ITestOutputHelper output) : base(output) { XunitContext.EnableExceptionCapture(); ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName); tokenNumber.GenerateToken(out token); //váriaveis out no lugar de array }
public FindIssueTests(ITestOutputHelper output) : base(output) { XunitContext.EnableExceptionCapture(); ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName); tokenNumber.GenerateToken(out token); }