@Test public void modifyPhotoForAttestedUser(ITestContext context) { UserBaseInfoAttestedFather.userBaseInfoParpare(context, seleniumUtil, true); UserBaseInfoPagerHelper.upLoadPhoto( context, seleniumUtil, UserBaseInfoPage.BUIP_BUTTON_PHOTO, "res/img/userBaseInfo/自拍.png"); UserBaseInfoPagerHelper.saveOrCancel(seleniumUtil, UserBaseInfoPage.BUIP_BUTTON_SAVE, true); }
@Test(dataProvider = "data") public void modifyQQAndEmailForAttestingUser(ITestContext context, Map<String, String> data) { UserBaseInfoAttestingFather.userBaseInfoParpare(context, seleniumUtil, true); UserBaseInfoPagerHelper.typeUserBaseInfo( seleniumUtil, data.get("BUIP_TEXT_SEX"), data.get("BUIP_INPUT_BIRTHDAY"), data.get("BUIP_INPUT_QQ"), data.get("BUIP_INPUT_EMAIL")); UserBaseInfoPagerHelper.saveOrCancel(seleniumUtil, UserBaseInfoPage.BUIP_BUTTON_SAVE, true); seleniumUtil.waitForElementToLoad(timeOut, UserBaseInfoPage.UBIP_TITLE_USERINFO); UserBaseInfoPagerHelper.checkUserBaseInfo( seleniumUtil, data.get("BUIP_TEXT_SEX"), data.get("BUIP_INPUT_BIRTHDAY"), data.get("BUIP_INPUT_QQ"), data.get("BUIP_INPUT_EMAIL")); }