コード例 #1
0
    def test_c26943(self):
        log.info("Star message: '{}'".format(self.CHAT_NAME))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        chat.record_voice_msg()
        chat.tap_record_send()
        chat.open_context_menu_last_bubble()
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared voice message displayed on star screen")
        Verify.true(star.is_message_star_displayed(self.CHAT_NAME, self.VOICE), "No starred voice message on screen")
コード例 #2
0
    def test_c26443(self):
        log.info("Star message: '{}'".format(self.STARED_MESSAGE))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        chat.set_chat_msg(self.STARED_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.STARED_MESSAGE)
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared message displayed on star screen")
        Verify.true(star.is_starred_message_displayed(self.STARED_MESSAGE),
                    "No starred messages on screen")
コード例 #3
0
    def test_c26446(self):
        log.info("Unstar message: '{}'".format(self.STARED_MESSAGE))
        main = HomeScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        star = StarredScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        chat.set_chat_msg(self.STARED_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.STARED_MESSAGE)
        chat.tap_context_option(context_enums.STAR)
        menu.long_press_wheel()
        main.open_starred_section()
        star.unstar_message(self.STARED_MESSAGE)

        log.info("Verify stared message doesn't display on starred screen")
        Verify.false(star.is_starred_message_displayed(self.STARED_MESSAGE),
                     "Starred message still displayed")
コード例 #4
0
    def test_c26447(self):
        log.info("Unstar message: '{}'".format(self.STARED_MESSAGE))
        main = HomeScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        star = StarredScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        chat.set_chat_msg(self.STARED_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.STARED_MESSAGE)
        chat.tap_context_option(context_enums.STAR)
        menu.long_press_wheel()
        main.open_starred_section()
        star.open_context(self.STARED_MESSAGE)

        log.info("Verify Unstar context menu displayed")
        Verify.true(star.is_context_option_unstar_displayed(),
                    "Unstar context menu doesn't display")
コード例 #5
0
    def test_c26945(self):
        log.info("Star location message: '{}'".format(self.CHAT_NAME))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        location = LocationScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.LOCATION], menu.wenums.CHATS)
        location.tap_send_location()
        chat.open_context_menu_last_bubble()
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared location message displayed on star screen")
        Verify.true(star.is_message_star_displayed(self.CHAT_NAME, self.LOCATION),
                    "No starred location message on screen")
コード例 #6
0
    def test_c26930(self):
        log.info("Star media message: '{}'".format(self.CHAT_NAME))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        chat_list = ChatListScreen(self.driver)
        menu.go_to(menu.wenums.CHATS, [menu.wenums.ALL])
        chat_list.tap_user(self.FRIEND_NAME)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.MEDIA], menu.wenums.CHATS)
        menu.tap_first_media()
        chat.open_context_menu_last_bubble()
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared media message displayed on star screen")
        Verify.true(star.is_message_star_displayed(self.CHAT_NAME, self.MEDIA),
                    "No starred media message on screen")
コード例 #7
0
    def test_c26948(self):
        log.info("Star contact message: '{}'".format(self.CHAT_NAME))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        contact = ContactScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.CONTACT],
                   menu.wenums.CHATS)
        contact.tap_contact(self.FRIEND_NAME)
        chat.open_context_menu_last_bubble()
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared contact message displayed on star screen")
        Verify.true(
            star.is_message_star_displayed(self.CHAT_NAME, self.CONTACT),
            "No starred contact message on screen")
コード例 #8
0
    def test_c26947(self):
        log.info("Star file message: '{}'".format(self.CHAT_NAME))
        main = HomeScreen(self.driver)
        star = StarredScreen(self.driver)
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        gallery = GalleryScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.MEDIA], menu.wenums.CHATS,
                   menu.wenums.GO_TO_GALLERY)
        gallery.open_preview_image()
        gallery.open_curtain()
        gallery.tap_send_as_file()
        chat.open_context_menu_last_bubble()
        chat.tap_context_star()
        menu.long_press_wheel()
        main.open_starred_section()

        log.info("Verify stared file message displayed on star screen")
        Verify.true(star.is_message_star_displayed(self.CHAT_NAME, self.FILE),
                    "No starred file message on screen")