/** 邮箱账户登陆-发布病例-校验发布成功 */ @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 = 1) public void assertRegButton() { Assertion.assertEquals( true, LoginWebElements.allmdBtnIsExist(), "\"唯医会员登录\"按钮未找到,页面不符或元素改变,请检查!"); }