@Test(dataProvider = "data") public void UserAttestedInfoPageUnattestedFailNamePhotoTest( ITestContext context, Map<String, String> data) { UserAttestedInfoUnattestedFather.userUnatestedInfoParpare(context, seleniumUtil); seleniumUtil.type( seleniumUtil.findElementBy(UserAttestedInfoPage.UAIP_INPUT_NAME), data.get("ADD_NAME")); String[] filePath = { "res/img/userAuthenticationInfo/身份证正面.png", "res/img/userAuthenticationInfo/身份证反面.png", "res/img/userAuthenticationInfo/营业执照正面.png", "res/img/userAuthenticationInfo/营业执照反面.png" }; UserAttestedInfoPagerHelper.upLoadPhoto( context, seleniumUtil, UserAttestedInfoPage.UAIP_INPUT_UPLOAD, filePath); UserAttestedInfoPagerHelper.enterPage(seleniumUtil, UserAttestedInfoPage.UAIP_BUTTON_SUBMIT); UserAttestedInfoPagerHelper.checkUserAuthenticationInfoPrompt(timeOut, seleniumUtil); }
@Test(dataProvider = "data") public void UserAttestedInfoPageUnattestedFailNameTelTest( ITestContext context, Map<String, String> data) { UserAttestedInfoUnattestedFather.userUnatestedInfoParpare(context, seleniumUtil); By[] bys = { UserAttestedInfoPage.UAIP_INPUT_TEL, UserAttestedInfoPage.UAIP_INPUT_PHOTO, UserAttestedInfoPage.UAIP_INPUT_CHIT, UserAttestedInfoPage.UAIP_BUTTON_CHIT }; UserAttestedInfoPagerHelper.typeTelChit( seleniumUtil, bys, data.get("ADD_TEL"), data.get("ADD_PHOTO"), data.get("ADD_CHIT")); seleniumUtil.type( seleniumUtil.findElementBy(UserAttestedInfoPage.UAIP_INPUT_NAME), data.get("ADD_NAME")); UserAttestedInfoPagerHelper.enterPage(seleniumUtil, UserAttestedInfoPage.UAIP_BUTTON_SUBMIT); UserAttestedInfoPagerHelper.checkUserAuthenticationInfoPrompt(timeOut, seleniumUtil); }