diff --git a/src/test_kivy_bitmessgae_app.py b/src/test_kivy_bitmessgae_app.py index 6fdc5ec7..bff62d9f 100644 --- a/src/test_kivy_bitmessgae_app.py +++ b/src/test_kivy_bitmessgae_app.py @@ -53,4 +53,5 @@ if __name__ == '__main__': obj_1.test_serach_sent_messages() obj_1.test_show_sent_message_body() obj_1.test_delete_sent_message_body() - obj_1.test_delete_sent_message_from_list() \ No newline at end of file + obj_1.test_archive_sent_message_from_list() + diff --git a/src/test_telenium_cases.py b/src/test_telenium_cases.py index 69865093..c3138dde 100644 --- a/src/test_telenium_cases.py +++ b/src/test_telenium_cases.py @@ -3,7 +3,6 @@ import time class TestSelectAddress(TeleniumTestCase): - # import pdb;pdb.set_trace() def runTest(self): print(self,"-------------Welcome To Kivy Testing Application second Page-------------") @@ -104,9 +103,9 @@ class TestSentMessage(TeleniumTestCase): def test_delete_sent_message_body(self): print("------------Delete messgae from message body option-----------------.") time.sleep(2) - self.cli.click_on('//Carousel[0]') - time.sleep(2) - self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[2]/TwoLineAvatarIconListItem[0]/BoxLayout[1]') + self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[2]/TwoLineAvatarIconListItem[0]/BoxLayout[2]') + # time.sleep(2) + # self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[2]/TwoLineAvatarIconListItem[0]/BoxLayout[1]') time.sleep(3) # self.cli.click_on('//MDIconButton[1]') self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/Toolbar[0]/BoxLayout[2]/MDIconButton[0]/MDLabel[0]') @@ -120,30 +119,11 @@ class TestSentMessage(TeleniumTestCase): self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[1]/Button[0]') def test_archive_sent_message_from_list(self): + print("-----------Archive Message From Message List-----------") # Swipe-Arrchive-Sent-Message + time.sleep(7) self.cli.drag('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[2]/TwoLineAvatarIconListItem[0]/BoxLayout[0]','/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[0]/Button[0]',1) - + time.sleep(2) self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Sent[0]/BoxLayout[0]/BoxLayout[0]/ScrollView[0]/MDList[0]/Carousel[0]/RelativeLayout[1]/Button[0]') + time.sleep(4) - - -class DraftMessage(TeleniumTestCase): - - def select_draft_message(self): - self.cli.execute('app.root.toggle_nav_drawer()') - time.sleep(1) - self.cli.click_on('//NavigationDrawerIconButton[1]') - time.sleep(1) - self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Inbox[0]/ComposerButton[0]/MDFloatingActionButton[0]/MDLabel[0]') - self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Create[0]/DropDownWidget[0]/ScrollView[0]/BoxLayout[0]/BoxLayout[0]/BoxLayout[0]/CustomSpinner[0]/ArrowImg[0]') - time.sleep(1) - self.cli.click_on('//MyTextInput[0]') - time.sleep(3) - self.cli.setattr('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/ScreenManager[0]/Create[0]/DropDownWidget[0]/ScrollView[0]/BoxLayout[0]/BoxLayout[1]/MyTextInput[0]',"text",'BM-2cSsuH1bUWBski8bvdqnK2DivMqQCeQA1J') - time.sleep(3) - # BACK-BUTTON - self.cli.click_on('/NavigationLayout/BoxLayout[1]/FloatLayout[0]/BoxLayout[0]/Toolbar[0]/BoxLayout[0]/MDIconButton[0]/MDLabel[0]') - - -# SelectAddress().test_select_address() -# cli.click_on('//NavigationDrawerIconButton[0]/CustomSpinner[@on_text="app.getCurrentAccountData(self.text)"]')