Пример #1
0
    def test_01(self):
        """机构登记员-首页-登记纠纷保存-申自然人-被自然人"""
        jf_info = {
            "jf_desc": u"机构登记员-首页-登记纠纷保存-申自然人-被自然人",
            "applicant_type": u"自然人",  # 自然人 法人 非法人组织
            "disputer_type": u"自然人",  # 自然人 法人 非法人组织
            "agent_type": "",  # "" common special,
            "agent_b_type": "",  # common special,
            'none_mediator': True,
        }
        jf_info_all.update(jf_info)

        try:
            self.homepage.organization_user_login(users.user_jgdjy['username'],
                                                  users.user_jgdjy['pwd'])
            disputepage = DisputePageDjy(self.homepage)
            disputepage._goto_dispute_input()
            disputepage.save(**jf_info_all)
            sleep(t)
            res = disputepage.verification_save(**jf_info_all)
            self.assertEqual(True, res)
        except Exception as msg:
            print "EXCEPTION >> {}".format(msg)
            # class function name_class docstring
            docstr = getdoc(
                getattr(self,
                        getframeinfo(currentframe()).function))
            name = _funcname_docstring(self, docstr.decode('utf8'))
            # 截图
            self.homepage.save_screen_shot(name)
            raise
        finally:
            self.end = datetime.datetime.now()
            duration = (self.end - self.start).seconds
            print "###case duration: {}###".format(duration)
Пример #2
0
 def test_02(self):
     """首页-输入查询"""
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage.act_goto_homepage()
     case_id = disputepage.get_search_No()
     disputepage.act_search_by_name_or_id(case_id)
Пример #3
0
 def test_08(self):
     """构登记列表-删除"""
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage.act_goto_homepage()
     disputepage.act_list_del_dispute()
     print u"登记员删除未提交纠纷成功"
Пример #4
0
    def test_03(self):
        """机构登记员-登记纠纷提交-申自然人-被非法人组织"""
        jf_info = {"jf_desc": u"机构登记员-登记纠纷提交-申自然人-被非法人组织",
                   "applicant_type": u"自然人",  # 自然人 法人 非法人组织
                   "disputer_type": u"非法人组织",  # 自然人 法人 非法人组织
                   "agent_type": "",  # "" common special,
                   "agent_b_type": "",  # common special,
                   }
        jf_info_all.update(jf_info)

        self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
        disputepage = DisputePageDjy(self.homepage)
        disputepage.save(**jf_info_all)
        sleep(t)
        res = disputepage.verification_save(**jf_info_all)
        self.assertEqual(True, res)
Пример #5
0
    def test_09(self):
        """机构登记列表-增加纠纷-提交"""
        jf_info = {"jf_desc": u"机构登记列表-增加纠纷-提交",
                   "applicant_type": u"非法人组织",  # 自然人 法人 非法人组织
                   "disputer_type": u"非法人组织",  # 自然人 法人 非法人组织
                   "agent_type": "",  # "" common special,
                   "agent_b_type": "",  # common special,
                   }
        jf_info_all.update(jf_info)

        self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
        disputepage = DisputePageDjy(self.homepage)
        disputepage.act_goto_homepage()
        disputepage.act_list_add_dispute()
        disputepage.commit(**jf_info_all)
        sleep(t)
        res, _= disputepage.verification_commit(**jf_info_all)
        self.assertEqual(True, res)
Пример #6
0
 def test_06(self):
     """纠纷预览-提交"""
     try:
         self.homepage.organization_user_login(users.user_jgdjy['username'],
                                               users.user_jgdjy['pwd'])
         disputepage = DisputePageDjy(self.homepage)
         disputepage.act_dispute_list_info_commit()
     except Exception as msg:
         print "EXCEPTION >> {}".format(msg)
         # class function name_class docstring
         docstr = getdoc(
             getattr(self,
                     getframeinfo(currentframe()).function))
         name = _funcname_docstring(self, docstr.decode('utf8'))
         # 截图
         self.homepage.save_screen_shot(name)
         raise
     finally:
         self.end = datetime.datetime.now()
         duration = (self.end - self.start).seconds
         print "###case duration: {}###".format(duration)
Пример #7
0
 def test_06(self):
     """纠纷预览-提交"""
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage.act_dispute_list_info_commit()
Пример #8
0
 def test_04(self):
     """纠纷预览-解纷进度"""
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage.act_dispute_list_info_schedule()