Exemple #1
0
 static SauceryRoot()
 {
     OnceOnlyMessages.TestingOn(JsonConvert.DeserializeObject <List <SaucePlatform> >(Enviro.SauceOnDemandBrowsers));
     OnceOnlyMessages.OnDemand();
     SauceLabsStatusNotifier = new SauceLabsStatusNotifier();
     SauceLabsFlowController = new SauceLabsFlowController();
 }
 public void Cleanup()
 {
     if (Driver != null)
     {
         var passed = Equals(TestContext.CurrentContext.Result.Outcome, ResultState.Success);
         // log the result to SauceLabs
         SauceLabsStatusNotifier.NotifyStatus(Driver.GetSessionId(), passed);
         PrintSessionDetails();
         Driver.Quit();
     }
 }
 public void Cleanup()
 {
     if (Driver != null)
     {
         var passed = TestContext.CurrentContext.Result.Status == TestStatus.Passed;
         // log the result to SauceLabs
         SauceLabsStatusNotifier.NotifyStatus(Driver.GetSessionId(), passed);
         PrintSessionDetails();
         Driver.Quit();
     }
 }
 static SauceryRoot()
 {
     SauceLabsStatusNotifier = new SauceLabsStatusNotifier();
     SauceLabsFlowController = new SauceLabsFlowController();
 }
Exemple #5
0
        //public SauceryBase()
        //    : base()
        //{
        //}

        static SauceryBase()
        {
            SauceLabsStatusNotifier = new SauceLabsStatusNotifier();
        }
Exemple #6
0
 static SauceryRoot()
 {
     //Console.WriteLine("In SauceryRoot static initialiser");
     SauceLabsStatusNotifier = new SauceLabsStatusNotifier();
     SauceLabsFlowController = new SauceLabsFlowController();
 }