예제 #1
0
        //[Ignore("Account has no minutes")]
        public void AppiumRecommendTest()
        {
            var statusNotifier = new SauceLabsAppiumRecommender();
            var version        = statusNotifier.RecommendAppium();
            var components     = version.Split('.');

            components.Length.ShouldBe(3);
            components[0].ShouldBeGreaterThanOrEqualTo("1");
            components[1].ShouldBeGreaterThanOrEqualTo("15");
            components[2].ShouldBeGreaterThanOrEqualTo("0");
        }
예제 #2
0
        public void AppiumRecommendTest()
        {
            Environment.SetEnvironmentVariable(SauceryConstants.SAUCE_USER_NAME, SauceryConstants.MY_USERNAME);
            Environment.SetEnvironmentVariable(SauceryConstants.SAUCE_API_KEY, "c7cc7b3c-773a-47a3-93f6-b3d005f13786");
            var statusNotifier = new SauceLabsAppiumRecommender();
            var version        = statusNotifier.RecommendAppium();
            var components     = version.Split('.');

            components.Length.ShouldBe(3);
            components[0].ShouldBeGreaterThan("0");
            components[1].ShouldBeGreaterThan("3");
            components[2].ShouldBeGreaterThan("13");
        }