Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 static UsingCurrentException()
 {
     XunitContext.EnableExceptionCapture();
 }
 public static void Setup()
 {
     XunitContext.EnableExceptionCapture();
 }
Exemplo n.º 4
0
        //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
        }
Exemplo n.º 5
0
 public FindIssueTests(ITestOutputHelper output) : base(output)
 {
     XunitContext.EnableExceptionCapture();
     ExtentReportHelpers.AddTest(Context.MethodName, Context.ClassName);
     tokenNumber.GenerateToken(out token);
 }