Ejemplo n.º 1
0
 def test_1_deploy_image_my(self):
     '''我的收藏-部署服务测试'''
     MyCollection(self.driver).login_into_MyCollection()
     MyCollection(self.driver).deploy_image()
     po = MyCollection(self.driver)
     self.assertEqual(po.deploy_image_success(), '创建服务')
     function.insert_img(self.driver, "deploy_image.png")
Ejemplo n.º 2
0
 def test_1_deploy_image_test(self):
     '''我的镜像-部署镜像测试'''
     MyImage(self.driver).login_into_MyImage()
     MyImage(self.driver).deploy_image()
     po = MyImage(self.driver)
     self.assertEqual(po.deploy_image_success(), '创建服务')
     function.insert_img(self.driver, "MyImage_deploy_image.png")
Ejemplo n.º 3
0
 def test_login5(self):
     '''用户名和密码正确'''
     self.user_login_verify(username="******", password="******")
     po = Login(self.driver)
     self.assertEqual(po.user_login_success(), 'zhengyin')
     function.insert_img(self.driver, "user_password_true.png")
     sleep(5)
Ejemplo n.º 4
0
 def test_create_http_agent(self):
     '''创建普通HTTP代理测试'''
     HttpAgentPage(self.driver).lonin_http_page()
     HttpAgentPage(self.driver).create_button()
     HttpAgentStep1Page(self.driver).write_service_name()
     HttpAgentStep1Page(self.driver).click_next_button()
     HttpAgentStep2Page(self.driver).write_domain_name()
     HttpAgentStep2Page(self.driver).write_visit_path()
     HttpAgentStep2Page(self.driver).write_service_port()
     HttpAgentStep2Page(self.driver).click_create_button()
     # Navigation(self.driver).click_service_integration()
     Navigation(self.driver).click_service_manage()
     po = ServiceMange(self.driver)
     self.assertEqual(po.get_http_link(), 'http://test.auto.bcm/versionone')
     function.insert_img(self.driver, "createHttpAgent.png")
Ejemplo n.º 5
0
 def test_0_create_service(self):
     '''创建服务测试'''
     ServiceMange(self.driver).login_into_service()
     ServiceMange(self.driver).create_service()
     CreateService(self.driver).find_image()
     CreateService(self.driver).input_service_name()
     CreateService(self.driver).input_chinese_name()
     CreateService(self.driver).input_person_name()
     CreateService(self.driver).input_telephone_number()
     CreateService(self.driver).input_person_email()
     CreateService(self.driver).input_web_path()
     CreateService(self.driver).import_template()
     CreateService(self.driver).finish_create_service()
     po = CreateService(self.driver)
     self.assertEqual(po.get_create_success_hit(), '服务管理')
     function.insert_img(self.driver, "create_service_success.png")
Ejemplo n.º 6
0
 def test_create_image(self):
     '''构建镜像测试'''
     ImageBuildListPage(self.driver).lonin_images_build_page()
     ImageBuildListPage(self.driver).click_fast_build_button()
     ImageBuildFastPage(self.driver).click_base_image()
     ImageBuildFastPage(self.driver).click_base_image_version()
     ImageBuildFastPage(self.driver).write_image_name()
     ImageBuildFastPage(self.driver).write_image_version()
     ImageBuildFastPage(self.driver).click_private_properties()
     ImageBuildFastPage(self.driver).click_image_type()
     ImageBuildFastPage(self.driver).write_abstract()
     ImageBuildFastPage(self.driver).click_upload_button()
     ImageBuildFastPage(self.driver).write_project_name()
     ImageBuildFastPage(self.driver).click_create_button()
     self.driver.implicitly_wait(30)
     ImageBuildListPage(self.driver).click_build_button()
     self.driver.implicitly_wait(20)
     # ImageBuildListPage(self.driver).lonin_images_build_page()
     po = ImageBuildListPage(self.driver)
     self.assertEqual(po.get_error_hint(), '构建中')
     function.insert_img(self.driver, "imagebuild.png")
Ejemplo n.º 7
0
 def test_3_collect_image_my(self):
     '''我的收藏-收藏镜像测试'''
     MyCollection(self.driver).login_into_MyCollection()
     MyCollection(self.driver).collect_image()
     function.insert_img(self.driver, "collect_image_success.png")
Ejemplo n.º 8
0
 def test_3_collect_image_test(self):
     '''我的镜像-收藏镜像测试'''
     MyImage(self.driver).login_into_MyImage()
     MyImage(self.driver).collect_image()
     function.insert_img(self.driver, "MyImage_collect_image.png")
Ejemplo n.º 9
0
 def test_2_export_image_test(self):
     '''我的镜像-导出镜像测试'''
     MyImage(self.driver).login_into_MyImage()
     MyImage(self.driver).check_image_checkbox()
     MyImage(self.driver).export_image()
     function.insert_img(self.driver, "MyImage_export_image.png")