Example #1
0
        private static void ReportResultToSaucelabs(Eyes eyes, TestResults result)
        {
            HttpRestClient client = new HttpRestClient(new Uri("https://saucelabs.com/"));

            client.SetBasicAuth(TestDataProvider.SAUCE_USERNAME, TestDataProvider.SAUCE_ACCESS_KEY);
            PassedResult passed = new PassedResult(result.IsPassed);

            client.PutJson($"rest/v1/{TestDataProvider.SAUCE_USERNAME}/jobs/{((SeleniumEyes)eyes.activeEyes_).GetDriver().RemoteWebDriver.SessionId}", passed);
        }