Exemplo n.º 1
0
        public void AddCampain_News()
        {
            string folder = PortalChromeDriver.CreateFolder(@"朋友圈截图\成功添加一个回复图文");

            Utility.TurnOn();
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.CreateCampaign_News();
            PortalChromeDriver.TakeScreenShot(folder, "创建规则");
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "创建规则成功"), "创建规则成功");
        }
Exemplo n.º 2
0
        public void DeleteKeyword()
        {
            string folder = PortalChromeDriver.CreateFolder(@"朋友圈截图\成功删除一个包含文字");

            Utility.TurnOn();
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.CreateCampaign("河北");
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.DeleteKeyword();
            Thread.Sleep(1 * 1000);
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "请添加包含文字"), "删除包含文字");
        }
Exemplo n.º 3
0
        public void EditResponse()
        {
            string folder = PortalChromeDriver.CreateFolder(@"朋友圈截图\可以编辑一条回复文本内容");

            Utility.TurnOn();
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.CreateCampaign("河北");
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.EditResponse();
            Thread.Sleep(1 * 1000);
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "更新规则成功"), "可以编辑一条回复文本内容");
        }
Exemplo n.º 4
0
        public void CheckOnMobile_OtherPhoto()
        {
            string folder = PortalChromeDriver.CreateFolder(@"朋友圈截图\是否支持其他格式图片");

            Utility.TurnOn();
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(2 * 1000);
            MomentsSnapPage.CreateCampaign("河北");

            MobileAndroidDriver.AndroidInitialize();
            Mobile_WeChat_Utility.GetToTestAccount();
            Mobile_WeChat_Utility.SendPhotoFromFileWithMenu("图片 1, 2017-03-15 17:49");
            Thread.Sleep(5 * 1000);
            Assert.IsFalse(Mobile_WeChat_Utility.GetLatestMessageWithMenu().Text.Contains("[平台测试账号2] 说:ok"));
        }
Exemplo n.º 5
0
        public void AddCampaign()
        {
            string folder = PortalChromeDriver.CreateFolder(@"朋友圈截图\是否可以成功添加一个新规则;是否可以编辑修改规则名;是否可以删除一个规则");

            //确保HI是Turn on的状态
            Utility.TurnOn();
            Thread.Sleep(1 * 1000);
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(10 * 1000);
            MomentsSnapPage.CreateCampaign("河北");
            PortalChromeDriver.TakeScreenShot(folder, "创建规则");
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "创建规则成功"), "创建规则成功");

            Thread.Sleep(10 * 1000);
            MomentsSnapPage.EditCampain();
            Thread.Sleep(1 * 1000);
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "更新规则成功"), "更新规则成功");

            Thread.Sleep(10 * 1000);
            MomentsSnapPage.DeleteCampain();
            Thread.Sleep(2 * 1000);
            Assert.IsTrue(Utility.IsAt(CommonElement.notification, "删除规则成功"), "删除规则成功");
        }