Ejemplo n.º 1
0
        public void TearDown()
        {
            Console.WriteLine("TearDown");

            AllureReport.GetInstance().CaseFinished(TestContext.CurrentContext.Test.FullName,
                                                    TestContext.CurrentContext.Result.Outcome.Status, null);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            AllureReport.GetInstance().CaseStarted(TestContext.CurrentContext.Test.FullName,
                                                   TestContext.CurrentContext.Test.Name, "");

            lykkePayApi = new LykkePayApi();

            TestContext.WriteLine("SetUp");
        }
Ejemplo n.º 3
0
 public void SetUp()
 {
     AllureReport.GetInstance().CaseStarted(TestContext.CurrentContext.Test.FullName,
                                            TestContext.CurrentContext.Test.Name, "");
     lykkeApi     = new LykkeApi();
     apiSchemes   = new ApiSchemes();
     schemesError = new List <string>();
     TestContext.WriteLine("SetUp");
 }
Ejemplo n.º 4
0
        public static void Step(string name, Action action)
        {
            Exception ex = null;

            try
            {
                AllureReport.GetInstance().StepStarted(TestContext.CurrentContext.Test.FullName, name);
                TestLog.WriteLine($"Step: {name}");
                action();
            }catch (Exception e) {
                ex = e;
            }
            finally
            {
                AllureReport.GetInstance().StepFinished(TestContext.CurrentContext.Test.FullName,
                                                        TestContext.CurrentContext.Result.Outcome.Status, ex);
            }
        }
Ejemplo n.º 5
0
 public void OneTimeTearDown()
 {
     AllureReport.GetInstance().RunFinished();
 }
Ejemplo n.º 6
0
 public void OneTimeSetUp()
 {
     AllureReport.GetInstance().RunStarted();
 }