/** 邮箱账户登陆-发布病例-校验发布成功 */ @Test( priority = 2, dependsOnMethods = {"assertRegButton"}) @Parameters({"LOGIN_EMAIL_USER", "GLOBAL_PASSWORD"}) public void publishTopic(String LOGIN_EMAIL_USER, String GLOBAL_PASSWORD) { Assertion.assertEquals( true, LoginWebElements.allmdBtnIsExist(), "\"唯医会员登录\"按钮未找到,页面不符或元素未找到,请检查!"); LoginWebElements.allinLogin(LOGIN_EMAIL_USER, GLOBAL_PASSWORD); PublishTopicWebElements.publishTopic(driver); }
/** 发布评论-校验评论成功-删除评论 */ @Test( priority = 3, dependsOnMethods = {"publishTopic"}) public void pubTopicComment() { PublishTopicWebElements.publishComment(driver); }