Added search,show,archive functionality for sent screen
This commit is contained in:
parent
d931f13345
commit
6607238d7f
|
@ -53,4 +53,5 @@ if __name__ == '__main__':
|
||||||
obj_1.test_serach_sent_messages()
|
obj_1.test_serach_sent_messages()
|
||||||
obj_1.test_show_sent_message_body()
|
obj_1.test_show_sent_message_body()
|
||||||
obj_1.test_delete_sent_message_body()
|
obj_1.test_delete_sent_message_body()
|
||||||
obj_1.test_delete_sent_message_from_list()
|
obj_1.test_archive_sent_message_from_list()
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import time
|
||||||
|
|
||||||
|
|
||||||
class TestSelectAddress(TeleniumTestCase):
|
class TestSelectAddress(TeleniumTestCase):
|
||||||
# import pdb;pdb.set_trace()
|
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
print(self,"-------------Welcome To Kivy Testing Application second Page-------------")
|
print(self,"-------------Welcome To Kivy Testing Application second Page-------------")
|
||||||
|
@ -104,9 +103,9 @@ class TestSentMessage(TeleniumTestCase):
|
||||||
def test_delete_sent_message_body(self):
|
def test_delete_sent_message_body(self):
|
||||||
print("------------Delete messgae from message body option-----------------.")
|
print("------------Delete messgae from message body option-----------------.")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
self.cli.click_on('//Carousel[0]')
|
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)
|
# 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[1]')
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
# self.cli.click_on('//MDIconButton[1]')
|
# 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]')
|
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]')
|
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):
|
def test_archive_sent_message_from_list(self):
|
||||||
|
print("-----------Archive Message From Message List-----------")
|
||||||
# Swipe-Arrchive-Sent-Message
|
# 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)
|
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]')
|
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)"]')
|
|
||||||
|
|
Reference in New Issue
Block a user