def test_close_connection(self):
     connection = self.myapp.get_text(my_application.loc("connection"))
     self.myapp.search_connection(data("search_name"))
     self.myapp.click_close()
     self.myapp.not_text_element(my_application.loc("connection"), connection, "关闭连接【%s】" % data("search_name"))
 def test_my_share_open(self):
     connection = self.myapp.get_text(
         my_application.loc("share_connection"))
     self.myapp.click_my_share_close()
     self.myapp.not_text_element(my_application.loc("share_connection"),
                                 connection, "【我的分享-关闭】")
 def test_close_connection(self):
     connection = self.myapp.get_text(my_application.loc("connection"))
     self.myapp.click_select_all_connection()
     self.myapp.click_batch_close()
     self.myapp.not_text_element(my_application.loc("connection"),
                                 connection, "【批量关闭】")
Example #4
0
 def test_my_share(self):
     self.myapp.click_share()
     self.myapp.click_share_department()
     self.myapp.displayed_true(my_application.loc("share_verify"), "【连接分享】")
Example #5
0
 def test_preview(self):
     self.myapp.click_cultivate_material()
     self.myapp.click_preview()
     self.myapp.displayed_true(my_application.loc("preview_bounced"),
                               "【培训资料-预览】")
Example #6
0
 def test_open_application(self, soft_num):
     self.myapp.open_application(soft_num)
     self.myapp.element_number(my_application.loc("connect_record"),
                               int(soft_num) + 1,
                               "打开软件【%s】" % self.myapp.loc_soft(soft_num))
Example #7
0
 def test_leave_word(self):
     self.myapp.click_cultivate_material()
     self.myapp.click_leave_word(data("massage"))
     self.myapp.displayed_true(my_application.loc("massage_checkout"),
                               "【普通用户留言发表】")
Example #8
0
 def test_details(self):
     self.myapp.search_connection(data("search_name"))
     self.myapp.click_details()
     self.myapp.displayed_true(my_application.loc("details_popout"),
                               "【连接详情】")
 def test_my_share(self):
     self.myapp.click_clear_share()
     self.myapp.displayed_true(my_application.loc("clear_share_verify"),
                               "【清空分享】")