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_ChangeTheAverage() { MobileAndroidDriver.AndroidInitialize(); Mobile_WeChat_Utility.FollowWeChatOffcialAccount(); FaceRankingMobilePage_WeChat.ClickFaceRanking(); double before1 = 0; double after1 = 0; double before2 = 0; double after2 = 0; double before3 = 0; double after3 = 0; string filePath = PortalChromeDriver.CreateFolder(@"拼颜值\12.检查多次上传测试后,平均值是否被拉高或拉低了"); FaceRankingMobilePage_WeChat.FaceRankingFromFile(SecretRelationshipTest.美女美女); FaceRankingMobilePage_WeChat.Getfraction(ref before1, ref after1); MobileAndroidDriver.GetScreenshot(filePath, "第一次上传"); FaceRankingMobilePage_WeChat.BackWards(); FaceRankingMobilePage_WeChat.ClickFaceRanking(); FaceRankingMobilePage_WeChat.FaceRankingFromFile(SecretRelationshipTest.美女美女); FaceRankingMobilePage_WeChat.Getfraction(ref before2, ref after2); MobileAndroidDriver.GetScreenshot(filePath, "第二次上传"); FaceRankingMobilePage_WeChat.BackWards(); FaceRankingMobilePage_WeChat.ClickFaceRanking(); FaceRankingMobilePage_WeChat.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); }