Esempio n. 1
0
    def test_Exited_list(self):
        "投资记录-已退出列表数据验证"
        entry_page = Entry_page(self.driver,phone='17712345606',pwd='qwe123')
        myinvsetrecorepage = entry_page.open_my_invset_recore_Page()
        time.sleep(0.2)
        myinvsetrecorepage.el_exited_btn.click()
        invest_list_value = myinvsetrecorepage.logic_get_invest_value()
        sql = Exce_SQLserver()
        contract_number = sql.execSql_getList(
            "SELECT  top 1 new_product_name,new_name,new_instreststartdate,new_quitdate,new_planmoney,new_planmoney_Base from new_investdetailBase WHERE new_accountname = 'F86EEE35-2940-E711-80D3-00155D02B414' AND  new_status=100000002 order BY  new_paidon desc")

        entry_page.saveScreenshot('test_Exited_list')
        # 断言验证

        # 断言理财名称
        self.assertIn(invest_list_value["invest_text_name"], contract_number[0][0])

        # 断言合同编号
        self.assertIn(contract_number[0][1], invest_list_value["invest_product_no"])

        # 断言起息日
        self.assertEquals(invest_list_value["start_income_day"],
                          (contract_number[0][2].date() + datetime.timedelta(days=1)).strftime("%Y-%m-%d"))

        # 断言结息日
        self.assertEquals(invest_list_value["end_income_day"], (contract_number[0][3].date() + datetime.timedelta(days=1)).strftime("%Y-%m-%d"))

        # 断言 实际投资金额
        self.assertIn(str(contract_number[0][4])[:-6] + "," + str(contract_number[0][4])[-6:],
                      invest_list_value["reality_invest"])

        # 断言 意向投资金额
        self.assertIn(str(contract_number[0][5])[:-6] + "," + str(contract_number[0][5])[-6:],
                      invest_list_value["expected_invest"])
Esempio n. 2
0
    def test_user_Information(self):
        """个人中心-个人信息验证"""
        entry_page = Entry_page(self.driver, phone="18048444414", pwd='qwe123')
        myPersonalCenterPage = entry_page.open_my_Personal_CenterPage()

        user_information = myPersonalCenterPage.logic_get_user_information()

        sql = Exce_SQLserver()
        sql_user_information = sql.execSql_getList(
            "SELECT Name,new_telephone1,new_certificatenum from AccountBase  WHERE new_telephone1={phone}"
            .format(phone=entry_page.phone))

        ""
        [('username', u'u***1'), ('phonenum', u'144****8098'),
         ('ID', u'411***********3286')]
        [(u'14488888098', u'ufo21', 411224197404103286)]
        ""
        username = sql_user_information[0][0]
        phonenum = sql_user_information[0][1]
        ID = sql_user_information[0][2]

        entry_page.saveScreenshot('user_Information')
        #断言
        self.assertEquals(user_information["username"],
                          username[:1] + '*' + username[-1:])
        self.assertEquals(user_information["phonenum"],
                          phonenum[:3] + '****' + phonenum[-4:])
        self.assertEquals(user_information["ID"],
                          ID[:3] + '***********' + ID[-4:])
Esempio n. 3
0
    def test_Continued_investment(self):
        """交易记录-续投记录验证"""

        entry_page = Entry_page(self.driver, phone="14404414441", pwd="qwe123")
        mytradeRecordPage = entry_page.open_my_tradeRecord_page()

        mytradeRecordPage.el_trade_list_image.click()
        trade_list_dict = mytradeRecordPage.logic_get_reinvest_way()

        sql = Exce_SQLserver()
        data_trade_list = sql.execSql_getList(
            "SELECT top 10 new_renewmethod,new_expectprofit,new_newcontractno FROM new_renewapplyBase WHERE new_customer ='47A24DAD-E65A-E711-80C9-00155D01F903'"
        )

        entry_page.saveScreenshot("Continued_investment")

        #断言续投方式
        self.assertEquals(data_trade_list[0][0], 100000001)
        self.assertEquals(trade_list_dict['reinvest_way'], "本金续投")
        #断言预期收益
        self.assertIn(
            str(data_trade_list[0][1])[:5],
            trade_list_dict['expect_incomeself'])
        #断言续投编号
        self.assertEquals(trade_list_dict['el_reinvest_contract_no'],
                          data_trade_list[0][2])
Esempio n. 4
0
    def test_financial_list(self):
        "投资记录-理财中列表数据验证"

        entry_page = Entry_page(self.driver)
        myinvsetrecorepage=entry_page.open_my_invset_recore_Page()
        invest_list_value=myinvsetrecorepage.logic_get_invest_value()
        sql = Exce_SQLserver()
        contract_number = sql.execSql_getList("SELECT  top 1 new_product_name,new_name,new_instreststartdate,new_quitdate,new_planmoney,new_planmoney_Base from new_investdetailBase WHERE new_accountname = '24004F6C-7C08-E711-80C9-00155D01F903' AND  new_status=100000000 order BY  new_paidon desc")

        entry_page.saveScreenshot('financial_data')
        #断言验证

        #断言理财名称
        self.assertIn(invest_list_value["invest_text_name"],contract_number[0][0])
        #断言合同编号
        self.assertIn(contract_number[0][1],invest_list_value["invest_product_no"])
        #断言起息日
        self.assertEquals(invest_list_value["start_income_day"], (contract_number[0][2].date()+datetime.timedelta(days = 1)).strftime("%Y-%m-%d"))

        #断言结息日
        if  '年年生利' in invest_list_value["invest_text_name"]:
            self.assertIn("随时申请退出",invest_list_value["end_income_day"])
        else:
            self.assertEquals(invest_list_value["end_income_day"],(contract_number[0][3].date().strftime("%Y-%m-%d")))

        #断言 实际投资金额
        self.assertIn(str(contract_number[0][4])[:-6]+ ","+ str(contract_number[0][4])[-6:],invest_list_value["reality_invest"])

        #断言 意向投资金额
        self.assertIn(str(contract_number[0][5])[:-6]+ ","+ str(contract_number[0][5])[-6:],invest_list_value["expected_invest"])
Esempio n. 5
0
    def test_payment_record(self):
        """交易记录-回款记录验证"""

        entry_page = Entry_page(self.driver, phone="14454839876", pwd="qwe123")
        mytradeRecordPage = entry_page.open_my_tradeRecord_page()

        mytradeRecordPage.el_trade_list_image.click()
        trade_list_dict = mytradeRecordPage.logic_get_trade_list()

        sql = Exce_SQLserver()
        data_trade_list = sql.execSql_getList(
            "SELECT top 1 new_product_name,new_payamount,new_paydate,new_paymentstatus,new_paymentno,new_txtinvestapply FROM new_tradedetailBase  WHERE new_account ='6B5A5084-9C49-E711-80D3-00155D02B414'"
        )

        entry_page.saveScreenshot("payment_record")

        #断言理财名称
        self.assertIn(trade_list_dict['name'], data_trade_list[0][0])
        #断言金额
        self.assertIn(
            str(data_trade_list[0][1])[:-6] + "," +
            str(data_trade_list[0][1])[-6:], trade_list_dict['amount'])
        #断言时间
        self.assertIn((data_trade_list[0][2].date().strftime("%Y-%m-%d")),
                      trade_list_dict['data'])
        #断言交易流水
        self.assertEquals(trade_list_dict['flowing'], data_trade_list[0][4])
        #断言理财状态
        self.assertEquals(data_trade_list[0][3], 100000003)
        #断言合同编号
        self.assertEquals(trade_list_dict['contract_no'],
                          data_trade_list[0][5])
Esempio n. 6
0
    def test_transaction_list(self):
        """交易记录-交易列表数据验证"""
        #mytraderecordpage=self.into_transaction()

        entry_page = Entry_page(self.driver)
        mytradeRecordPage = entry_page.open_my_tradeRecord_page()

        # time.sleep(2)
        trade_list = mytradeRecordPage.logic_trade_list()
        # 查询DB 获得理财中第一个理财的合同编号
        sql = Exce_SQLserver()
        txtinvestapply = sql.execSql_getList(
            "SELECT  top 1 new_txtinvestapply from new_tradedetailBase WHERE new_account = '24004F6C-7C08-E711-80C9-00155D01F903'  ORDER BY new_paydate DESC"
        )
        # print  txtinvestapply[0][0]
        #print  trade_list[0]
        sql = Exce_SQLserver()
        paymentno = sql.execSql_getList(
            "SELECT top 1  new_paymentno from new_tradedetailBase WHERE new_account = '24004F6C-7C08-E711-80C9-00155D01F903'  ORDER BY new_paydate DESC"
        )
        #print  paymentno[0][0]
        #print trade_list[1]

        entry_page.saveScreenshot('transaction_list')
        self.assertEquals(trade_list[0], txtinvestapply[0][0])
        self.assertEquals(trade_list[1], paymentno[0][0])
Esempio n. 7
0
 def test_system_notice(self):
     """首页-未登录点击系统广告"""
     entry_page = Entry_page(self.driver)
     homepage = entry_page.open_start_home_page()
     homepage.el_system_notice.click()
     time.sleep(2)
     entry_page.saveScreenshot('system_notice')
Esempio n. 8
0
 def test_gesture_cipher(self):
     """个人中心-修改手势密码"""
     entry_page = Entry_page(self.driver, phone="18048444414", pwd='qwe123')
     myPersonalCenterPage = entry_page.open_my_Personal_CenterPage()
     myPersonalCenterPage.el_gesture_cipher_btn.click()
     myPersonalCenterPage.logic_drawGestureCode()
     time.sleep(1)
     entry_page.saveScreenshot('gesture_cipher')
Esempio n. 9
0
 def test_home_product(self):
     """首页-未登录点击推荐产品"""
     entry_page = Entry_page(self.driver)
     homepage = entry_page.open_start_home_page()
     productBeautiPage = homepage.logic_el_invest_newpeo_click()
     title = productBeautiPage.logic_get_title_text()
     entry_page.saveScreenshot('home_product')
     self.assertEquals(title, "新手体验计划")
Esempio n. 10
0
    def test_private_fund_list(self):
        """私募预约-私募预约列表验证"""

        entry_page = Entry_page(self.driver)
        private_Offering_Fund_Page=entry_page.open_Private_Offering_Fund_Page()

        entry_page.saveScreenshot("private_fund_list")
        self.assertEquals(len(private_Offering_Fund_Page.el_private_fund_list),2)
Esempio n. 11
0
 def test_invest_contract_no3(self):
     """资产详情-电子合同《授权委托书-催收及诉讼》验证"""
     entry_page = Entry_page(self.driver)
     electronic_contract_page = entry_page.open_Electronic_contract_page()
     time.sleep(1)
     electronic_contract_page.logic_contract_no1_click(index=2)
     title = electronic_contract_page.logic_get_contract_details_title()
     entry_page.saveScreenshot('invest_contract_no3')
     self.assertEquals(title, "授权委托书-催收及诉讼")
Esempio n. 12
0
    def test_login_out(self):
        """个人中心-安全退出测试"""
        entry_page = Entry_page(self.driver, phone="18048444414", pwd='qwe123')
        myPersonalCenterPage = entry_page.open_my_Personal_CenterPage()
        homepage = myPersonalCenterPage.logic_login_out_btn_click()

        entry_page.saveScreenshot('login_out')
        product_name = homepage.get_product_title_text()
        self.assertEquals(product_name, "新手体验计划")
Esempio n. 13
0
 def test_invest_contract_no4(self):
     """资产详情-电子合同《出借本金确认书》验证"""
     entry_page = Entry_page(self.driver)
     electronic_contract_page = entry_page.open_Electronic_contract_page()
     time.sleep(1)
     electronic_contract_page.logic_contract_no1_click(index=3)
     title = electronic_contract_page.logic_get_contract_details_title()
     entry_page.saveScreenshot('invest_contract_no4')
     self.assertEquals(title, "出借本金确认书")
Esempio n. 14
0
 def test_Help_center(self):
     """登录状态-帮助中心"""
     entry_page = Entry_page(self.driver)
     mypage = entry_page.open_login_my_page()
     mypage.el_Help_center.click()
     #mypage.get_screenshot_by_element(mypage, 'el_Help_center_deil', isexist=False)
     #time.sleep(5)
     bool1 = mypage.get_screenshot_by_element(mypage, 'el_Help_center_deil', isexist=True).same_as(percent=30)
     entry_page.saveScreenshot("test_Help_center")
     self.assertTrue(bool1)
Esempio n. 15
0
    def test_newuser_product_buy(self):
        """新用户首页理财产品验证"""
        "14414441414 ,qwe123"

        entry_page = Entry_page(self.driver, phone='14414441414')
        homepage = entry_page.open_login_home_page()
        title_text = homepage.get_product_title_text()
        entry_page.saveScreenshot('newuser_product_buy')

        self.assertEquals(title_text, "新手体验计划")
Esempio n. 16
0
    def test_bankcard_num(self):
        """登录状态-银行卡张数验证"""

        entry_page = Entry_page(self.driver)
        mypage = entry_page.open_login_my_page()
        bankcard_num=mypage.el_my_bankcard_num.text
        myBankCardPage=mypage.logic_my_bankCard_click()

        entry_page.saveScreenshot("bankcard_num")

        self.assertIn(str(len(myBankCardPage.el_bankcard_list)),bankcard_num)
Esempio n. 17
0
    def test_contract_details_no3(self):
        """消息中心-授权委托书-催收及诉讼验证"""
        entry_page = Entry_page(self.driver)
        newspage = entry_page.open_news_page()
        contractspage = newspage.click_el_contract_message_btn()
        contractdetailspage = contractspage.click_el_check_pact_btn()
        contractdetailspage.el_litigation_btn.click()

        title = contractdetailspage.el_capitalt_title.text
        entry_page.saveScreenshot("contract_details_no3")
        self.assertEquals("授权委托书-催收及诉讼", title)
Esempio n. 18
0
    def test_About_us(self):
        """ 登录状态-关于我们"""
        entry_page = Entry_page(self.driver)
        mypage = entry_page.open_login_my_page()
        mypage.el_about_us.click()
        #mypage.get_screenshot_by_element(mypage, 'el_about_us_deilt', isexist=False)
        #time.sleep(5)
        bool1 = mypage.get_screenshot_by_element(mypage, 'el_about_us_deilt',isexist=True).same_as(percent=30)

        entry_page.saveScreenshot("test_About_us")
        self.assertTrue(bool1)
Esempio n. 19
0
    def test_contract_details_no1(self):
        """消息中心-出借咨询与服务协议验证"""
        entry_page = Entry_page(self.driver)
        newspage = entry_page.open_news_page()
        contractspage = newspage.click_el_contract_message_btn()
        contractdetailspage=contractspage.click_el_check_pact_btn()
        contractdetailspage.el_service_agreement_btn.click()

        title = contractdetailspage.el_capitalt_title.text
        entry_page.saveScreenshot("contract_details_no2")

        self.assertEquals(title,"出借咨询与服务协议")
Esempio n. 20
0
    def test_product_notlogin(self):
        """首页-未登录购买理财产品"""
        entry_page = Entry_page(self.driver)
        homepage = entry_page.open_start_home_page()
        productBeautiPage = homepage.logic_el_invest_newpeo_click()
        #productListPage=homepage.logic_link_product()
        # productBeautiPage=productListPage.logic_notlogin_prodict()
        loginPage = productBeautiPage.logic_noLogin_state_buy()
        title = loginPage.el_title.text

        entry_page.saveScreenshot('product_notlogin')
        self.assertEquals(title, "登录")
Esempio n. 21
0
    def test_my_financial(self):
        "登录状态-我的列表进入资产详情"
        entry_page = Entry_page(self.driver)
        mypage=entry_page.open_login_my_page()

        myInvsetRecorePage=mypage.logic_financial_img_click()
        myInvsetRecorePage.el_tv_know.click()

        title_text = myInvsetRecorePage.logic_get_invest_title()
        # 断言
        self.assertEquals(title_text, u"投资记录")
        # 截图
        entry_page.saveScreenshot('my_financial')
Esempio n. 22
0
    def test_product_financial(self):
        "登录状态—产品列表进入资产详情"
        entry_page = Entry_page(self.driver)
        productListPage = entry_page.open_login_productList_page()
        myInvsetRecorePage=productListPage.logic_financia_img_click()
        myInvsetRecorePage.el_tv_know.click()
        title_text=myInvsetRecorePage.logic_get_invest_title()

        # 截图
        self.assertEquals(title_text, u"投资记录")

        # 断言
        entry_page.saveScreenshot('product_financial')
Esempio n. 23
0
    def test_consultation_mes(self):
        """消息中心-咨询消息-展示咨询消息列表"""

        # 客户登录并进入消息中心列表
        entry_page=Entry_page(self.driver)
        newspage=entry_page.open_news_page()

        # 点击合同列表页面
        newsconsultspage = newspage.click_el_consult_message_btn()

        newsconsultspage_title=newsconsultspage.el_service_agreement_title.text

        entry_page.saveScreenshot('consultation_mes')
        self.assertEqual(newsconsultspage_title,'咨询消息')
Esempio n. 24
0
    def test_transaction_consultation(self):
        """交易记录-咨询消息验证"""
        "14114444144"

        entry_page = Entry_page(self.driver)
        mytradeRecordPage = entry_page.open_my_tradeRecord_page()
        mytradeRecordPage.el_trade_Consultation_btn.click()
        mytradeRecordPage.el_trade_Consultation_list[0].click()
        #time.sleep(2)
        title = mytradeRecordPage.logic_get_inquiry_no_test()

        entry_page.saveScreenshot('transaction_consultation')
        #断言
        self.assertIsNotNone(title)
Esempio n. 25
0
    def test_invest_profit_detailed(self):
        """投资记录-资产详情-月月付息收益详情"""

        "账户 15948444448  qwe123"

        entry_page = Entry_page(self.driver, phone="15948444448",pwd='qwe123')
        myAssetDetailsPage=entry_page.open_my_assetDetails_quiting_page()
        My_Invest_Profit_Detailed_page=myAssetDetailsPage.logic_Profit_btn_click()
        time.sleep(1)
        entry_page.saveScreenshot('invest_profit_detailed')
        money=My_Invest_Profit_Detailed_page.logic_get_sum_money()

        #对金额进行断言
        self.assertNotEqual(money,0)
Esempio n. 26
0
    def test_home_financial(self):
        "登录状态-首页进入资产详情"
        entry_page=Entry_page(self.driver)
        homepage=entry_page.open_login_home_page()
        time.sleep(2)
        myInvsetRecorePage=homepage.logic_click_el_invest_img()
        myInvsetRecorePage.el_tv_know.click()
        title_text=myInvsetRecorePage.logic_get_invest_title()

        #截图
        entry_page.saveScreenshot('home_financial')

        #断言
        self.assertEquals(title_text,u"投资记录")
Esempio n. 27
0
    def test_view_msg(self):
        """登录状态-意见反馈"""

        entry_page=Entry_page(self.driver)
        mypage=entry_page.open_login_my_page()
        opinionpage=mypage.logic_view_msg_click()
        a = ''.join(map(lambda xx: (hex(ord(xx))[2:]), os.urandom(random.randint(100, 200))))

        #b="啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座"
       # listb=list(b)
        #c=random.sample(b,random.randint(100,200))
        #c = str(random.sample(b, random.randint(80, 100)))

       # print c
        opinionpage.logic_input_data(a)
        opinionpage.logic_Submit_meg_click()
        time.sleep(2)
        entry_page.saveScreenshot('test_view_msg')
Esempio n. 28
0
    def test_Amount_hidden(self):
        """登录状态-隐藏金额验证"""

        entry_page = Entry_page(self.driver)
        mypage = entry_page.open_login_my_page()
        time.sleep(2)
        Amount_hidden = mypage.el_my_money.text


        if Amount_hidden !="***":
            mypage.el_Amount_hidden[0].click()
        #time.sleep(2)

        Amount_hidden = mypage.el_my_money.text
        Profit_money = mypage.el_Profit_money.text

        entry_page.saveScreenshot("Amount_hidden")
        self.assertEquals("***",Amount_hidden)
        self.assertEquals("***", Profit_money)
Esempio n. 29
0
    def test_Forgot_password(self):
        """找回密码验证"""
        entry_page = Entry_page(self.driver)
        forget_Pass = entry_page.open_forget_pass_page()
        forget_Pass.el_edit_phone.send_keys(entry_page.phone)
        forget_Pass.el_get_verify.click()
        message = Message()
        yanzma = message.get_sms(entry_page.phone)
        forget_Pass.el_edit_yanzheng.send_keys(yanzma)
        forget_Pass.el_tv_nextstepself.click()

        sql = Exce_SQLserver()
        contract_number = sql.execSql_getList(
            "SELECT Name,new_certificatenum FROM AccountBase WHERE  new_telephone1={phone}"
            .format(phone=entry_page.phone))
        forget_Pass.el_edit_phone.send_keys(contract_number[0][0])
        forget_Pass.el_edit_yanzheng.send_keys(contract_number[0][1])
        forget_Pass.el_tv_nextstepself.click()
        forget_Pass.el_edit_password.send_keys("qwe1234")
        forget_Pass.el_edit_reinput.send_keys("qwe1234")
        loginPage = forget_Pass.logic_tv_nextstepself_click()
        #loginPage=homePage.logic_buy_my_btn()

        forget_Pass = loginPage.logic_el_forget_pass_click()
        forget_Pass.el_edit_phone.send_keys(entry_page.phone)
        forget_Pass.el_get_verify.click()
        message = Message()
        yanzma = message.get_sms(entry_page.phone)
        forget_Pass.el_edit_yanzheng.send_keys(yanzma)
        forget_Pass.el_tv_nextstepself.click()

        #sql = Exce_SQLserver()
        # contract_number = sql.execSql_getList("SELECT Name,new_certificatenum FROM AccountBase WHERE  new_telephone1={phone}".format(phone=entry_page.phone))
        forget_Pass.el_edit_phone.send_keys(contract_number[0][0])
        forget_Pass.el_edit_yanzheng.send_keys(contract_number[0][1])
        forget_Pass.el_tv_nextstepself.click()
        forget_Pass.el_edit_password.send_keys("qwe123")
        forget_Pass.el_edit_reinput.send_keys("qwe123")
        self.assertEquals(forget_Pass.el_tb_title.text, '找回密码')
        forget_Pass.el_tv_nextstepself.click()

        entry_page.saveScreenshot("Forgot_password")
Esempio n. 30
0
    def test_modify_password(self):
        """个人中心-修改登录密码测试"""
        entry_page = Entry_page(self.driver, phone="18048444414", pwd='qwe123')
        modify_password_page = entry_page.open_Modify_Password_page()
        modify_password_page.el_current_pass_text.send_keys(entry_page.pwd)
        modify_password_page.el_password_text.send_keys("hele5201")
        modify_password_page.el_reinput_pass_text.send_keys("hele5201")
        loginPage = modify_password_page.logic_nextstep_btn_click()

        homePage = loginPage.logic_login(phone="18048444414", pwd='hele5201')
        mypage = homePage.logic_buy_my_btn()
        myPersonalCenterPage = mypage.logic_link_myCenter()
        modify_Password_page = myPersonalCenterPage.logic_modify_password_btn_click(
        )

        modify_Password_page.el_current_pass_text.send_keys('hele5201')
        modify_Password_page.el_password_text.send_keys("qwe123")
        modify_Password_page.el_reinput_pass_text.send_keys("qwe123")
        modify_Password_page.logic_nextstep_btn_click()
        entry_page.saveScreenshot('modify_password')