Exemple #1
0
        public void FollowedAutoReply_Add_Delete_Edit_Image_Weibo()
        {
            string filePath = PortalChromeDriver.CreateFolder(@"被关注自动回复\添加图片回复");

            FollowedAutoReplyPage_Weibo.AddAutoReplyImage("Capture.PNG");
            PortalChromeDriver.TakeScreenShot(filePath, "添加");
            Assert.IsTrue(Utility.IsAt(FollowedAutoReplyElement.AddedImage, "Capture.PNG"));

            MobileAndroidDriver.AndroidInitialize_Weibo();
            Mobile_Weibo_Utility.UnFollow();
            Mobile_Weibo_Utility.Follow();
            MobileAndroidDriver.GetScreenshot(filePath, "Mobile端check");
            Assert.IsTrue(MobileAndroidDriver.IsAt("//android.widget.ImageView[contains(@resource-id,'com.sina.weibo:id/message_pic_shadow')]"));

            filePath = PortalChromeDriver.CreateFolder(@"被关注自动回复\删除图片回复");
            FollowedAutoReplyPage.Delete_Image();
            PortalChromeDriver.TakeScreenShot(filePath, "删除图片回复");
            Assert.IsFalse(Utility.IsAt(FollowedAutoReplyElement.AddedImage, "Capture.PNG"), "删除图片");

            filePath = PortalChromeDriver.CreateFolder(@"被关注自动回复\修改图片回复");
            FollowedAutoReplyPage_Weibo.AddAutoReplyImage("efwe.jpg");
            Thread.Sleep(2 * 1000);
            PortalChromeDriver.TakeScreenShot(filePath, "修改图片回复");
            Assert.IsTrue(Utility.IsAt(FollowedAutoReplyElement.AddedImage, "efwe.jpg"), "修改图片");
        }
Exemple #2
0
        public void FollowedAutoReply_AddedAll_VideoFirst_WeiBo()
        {
            string filePath = PortalChromeDriver.CreateFolder(@"被关注自动回复\同时添加文本图文图片和语音自动回复信息,当前选中的素材被保存并发布到微信公众号上");

            FollowedAutoReplyPage.AddAutoReplyText("hello,谢谢关注");
            FollowedAutoReplyPage.AddAutoReplyNews(FollowedAutoReplyElement.NewsChoose);
            FollowedAutoReplyPage_Weibo.AddAutoReplyImage("Capture.PNG");
            FollowedAutoReplyPage_Weibo.AddAutoReplyVoice("秋天不回来.amr");

            MobileAndroidDriver.AndroidInitialize_Weibo();
            Mobile_Weibo_Utility.UnFollow();
            Mobile_Weibo_Utility.Follow();

            MobileAndroidDriver.GetScreenshot(filePath, "同时添加所有回复素材,video会上传至微信平台");
            Assert.IsTrue(Utility.IsAt(FollowedAutoReplyElement.AddedAudio, "秋天不回来.amr"), "添加视频回复");
        }