public void Rule_Fuzzy_Matching() { string filePath = PortalChromeDriver.CreateFolder(@"自动回复\模糊匹配"); AutoReplyPage.AddAutoReply_Fuzzy_Matching("A", "abcdef", "我不是素材"); MobileAndroidDriver.AndroidInitialize(); Mobile_WeChat_Utility.GetToTestAccount(); Mobile_WeChat_Utility.ClearAllRecord(); Mobile_WeChat_Utility.SendMessageWithMenu("abcdef123"); Thread.Sleep(2 * 1000); MobileAndroidDriver.GetScreenshot(filePath, "模糊匹配"); Assert.IsTrue(Mobile_WeChat_Utility.GetLatestMessage("我不是素材")); }
public void Rule_Fuzzy_Matching_Weibo() { string filePath = PortalChromeDriver.CreateFolder(@"自动回复\模糊匹配"); WeChatManagermentPage.GoTo_AutoReply_Page(); PortalChromeDriver.ClickElementPerXpath(AutoReplyElement.KeyWordsReply); AutoReplyPage.TurnOnAutoReply(); AutoReplyPage.ClearReply(); AutoReplyPage.AddAutoReply_Fuzzy_Matching("A", "abcdef", "我不是素材"); MobileAndroidDriver.AndroidInitialize_Weibo(); Mobile_Weibo_Utility.Follow(); Mobile_Weibo_Utility.ClearAllMessage(); Mobile_Weibo_Utility.SendMessage("abcdef123"); MobileAndroidDriver.GetScreenshot(filePath, "H5关键词精确匹配"); Assert.IsTrue(Mobile_Weibo_Utility.GetLatestMessage().Text.Contains("我不是素材"));; }