public void FaceRanking_ChangeTheAverage_Weibo()
        {
            MobileAndroidDriver.AndroidInitialize_Weibo();
            Mobile_Weibo_Utility.Follow();
            //拼颜值功能是否正常使用
            string filePath = PortalChromeDriver.CreateFolder(@"拼颜值\12.检查多次上传测试后,平均值是否被拉高或拉低了");

            FaceRankingMobilePage_Weibo.ClickFaceRanking();
            double before1 = 0;
            double after1  = 0;
            double before2 = 0;
            double after2  = 0;
            double before3 = 0;
            double after3  = 0;

            FaceRankingMobilePage_Weibo.FaceRankingFromFile(SecretRelationshipTest.美女美女);
            FaceRankingMobilePage_WeChat.Getfraction(ref before1, ref after1);
            MobileAndroidDriver.GetScreenshot(filePath, "第一次上传");
            Mobile_Weibo_Utility.BackWards();
            MobileAndroidDriver.ClickElemnetPerName(FaceRankingMobileElement.Menuitem);
            FaceRankingMobilePage_Weibo.FaceRankingFromFile(SecretRelationshipTest.美女美女);
            FaceRankingMobilePage_WeChat.Getfraction(ref before2, ref after2);
            MobileAndroidDriver.GetScreenshot(filePath, "第二次上传");
            Mobile_Weibo_Utility.BackWards();
            MobileAndroidDriver.ClickElemnetPerName(FaceRankingMobileElement.Menuitem);
            FaceRankingMobilePage_Weibo.FaceRankingFromFile(SecretRelationshipTest.美女美女);
            FaceRankingMobilePage_WeChat.Getfraction(ref before3, ref after3);
            MobileAndroidDriver.GetScreenshot(filePath, "第三次上传");
            Assert.IsTrue(before1 <= after1 && before2 <= after2 && before3 <= after3);
            Assert.IsTrue(after1 == before2 && after2 == before3);
        }
        public void FaceRanking_TurnOff_Weibo()
        {
            string filePath = PortalChromeDriver.CreateFolder(@"拼颜值\14.检查是否可以正常关闭”拼颜值“的功能");

            MobileAndroidDriver.AndroidInitialize_Weibo();
            Mobile_Weibo_Utility.Follow();
            FaceRankingMobilePage_Weibo.ClickFaceRanking();
            FaceRankingMobilePage_Weibo.FaceRankingFromFile(SecretRelationshipTest.美男美女);
            MobileAndroidDriver.GetScreenshot(filePath, "关闭前拼颜值正常使用,图片显示描述语");
            Assert.IsTrue(Mobile_WeChat_Utility.IsAtPerXpath(FaceRankingMobileElement.Comment), "关闭前拼颜值正常使用,图片显示描述语");
            //停用拼颜值
            Utility.TurnOff();
            string turnOffPath = PortalChromeDriver.CreateFolder(@"拼颜值\19.是否可以停用'拼颜值'功能");

            PortalChromeDriver.TakeScreenShot(turnOffPath, "Portal是否能正常关闭拼颜值");
            Assert.IsTrue(!Utility.IsTurnOn(), "Portal是否能正常关闭拼颜值");

            Mobile_Weibo_Utility.BackWards();
            MobileAndroidDriver.ClickElemnetPerName(FaceRankingMobileElement.Menuitem);
            MobileAndroidDriver.GetScreenshot(filePath, "关闭拼颜值技能后H5端是否能正常使用");
            Assert.IsFalse(Mobile_WeChat_Utility.IsAt(FaceRankingMobileElement.AccountFaceRanking), "关闭拼颜值技能后H5端是否能正常使用");
        }