Esempio n. 1
0
 def test_3_add_operation_system(self, class_home):
     hp(class_home[0]).add_operation_system(
         os["zh_name"], os["code"], os["short_zn_name"], os["en_name"],
         os["short_en_name"], os["sys_remark"], os["sys_version"],
         os["dept"], os["contacter"], os["mobile"], os["email"])
     msg = hp(class_home[0]).is_add_operation_system()
     assert msg == True
Esempio n. 2
0
 def test_login_success(self, access_web):
     access_web[1].login(ld.user_info_success["username"],
                         ld.user_info_success["pwd"])
     #断言
     try:
         assert hp(access_web[0]).logoutButton()
     except AssertionError as e:
         logging.exception()
         raise e
Esempio n. 3
0
 def test_5_home_jump_designer(self, class_home):
     #操作步骤:跳转页面,判断
     hp(class_home[0]).into_designer()
     msg = hp(class_home[0]).is_jump_designer()
     assert msg == True
Esempio n. 4
0
 def test_6_del_script(self, class_home):
     hp(class_home[0]).delScript()
     assert hp(class_home[0]).is_delScript() == True
Esempio n. 5
0
 def test_5_add_script(self, class_home):
     hp(class_home[0]).add_script(script["name"], script["AP"],
                                  script["content"], script["ip"],
                                  script["scriptType"], script["dbType"])
     assert hp(class_home[0]).is_addScript() == True
Esempio n. 6
0
 def test_4_home_to_script(self, class_home):
     #操作步骤:
     hp(class_home[0]).into_script_manager()
     assert hp(class_home[0]).is_script_manager() == True
Esempio n. 7
0
 def test_3_delete_operation_system(self, class_home):
     hp(class_home[0]).delete_operation_system()
     msg = hp(class_home[0]).is_add_operation_system()
     assert msg == False
Esempio n. 8
0
 def test_2_home_to_operation_system(self, class_home):
     hp(class_home[0]).into_operation_system()
     msg = hp(class_home[0]).is_operation_system()
     assert msg == True
Esempio n. 9
0
 def test_1_home_to_data_source(self, class_home):
     # 操作步骤:点击数据源管理——判断是否切换到数据源管理页——退出iframe(退出操作进行优化???)
     hp(class_home[0]).into_data_source()
     msg = hp(class_home[0]).is_data_source()
     assert msg == True