fixed sleep time
This commit is contained in:
parent
dd5830505e
commit
90ffb7318a
|
@ -14,7 +14,7 @@ class AddressBook(TeleniumTestProcess):
|
||||||
def test_save_address(self):
|
def test_save_address(self):
|
||||||
"""Save Address On Address Book Screen/Window"""
|
"""Save Address On Address Book Screen/Window"""
|
||||||
print("=====================Test -Save Address In Address Book=====================")
|
print("=====================Test -Save Address In Address Book=====================")
|
||||||
self.cli.sleep(3)
|
self.cli.sleep(8)
|
||||||
# this is for checking current screen
|
# this is for checking current screen
|
||||||
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
|
|
|
@ -18,7 +18,7 @@ class CreateRandomAddress(TeleniumTestProcess):
|
||||||
def test_login_screen(self):
|
def test_login_screen(self):
|
||||||
"""Clicking on Proceed Button to Proceed to Next Screen."""
|
"""Clicking on Proceed Button to Proceed to Next Screen."""
|
||||||
print("=====================Test - Login Screen=====================")
|
print("=====================Test - Login Screen=====================")
|
||||||
self.cli.sleep(10)
|
self.cli.sleep(8)
|
||||||
# Checking current Screen(Login screen)
|
# Checking current Screen(Login screen)
|
||||||
self.assertExists("//Login[@name~=\"login\"]", timeout=3)
|
self.assertExists("//Login[@name~=\"login\"]", timeout=3)
|
||||||
# Clicking on Proceed Next Button
|
# Clicking on Proceed Next Button
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
from time import sleep
|
|
||||||
from requests.packages.urllib3.util import timeout
|
|
||||||
from .telenium_process import TeleniumTestProcess
|
from .telenium_process import TeleniumTestProcess
|
||||||
from .common import ordered
|
from .common import ordered
|
||||||
|
|
||||||
|
|
||||||
data = [
|
data = [
|
||||||
'BM-2cWmjntZ47WKEUtocrdvs19y5CivpKoi1h',
|
'BM-2cWmjntZ47WKEUtocrdvs19y5CivpKoi1h',
|
||||||
'BM-2cVpswZo8rWLXDVtZEUNcDQvnvHJ6TLRYr'
|
'BM-2cVpswZo8rWLXDVtZEUNcDQvnvHJ6TLRYr'
|
||||||
|
@ -15,7 +14,7 @@ class MyAddressScreen(TeleniumTestProcess):
|
||||||
def test_select_myaddress_list(self):
|
def test_select_myaddress_list(self):
|
||||||
"""Select Address From List of Address"""
|
"""Select Address From List of Address"""
|
||||||
print("=====================Test -Select Address From List of Address=====================")
|
print("=====================Test -Select Address From List of Address=====================")
|
||||||
self.cli.sleep(12)
|
self.cli.sleep(8)
|
||||||
# this is for checking current screen
|
# this is for checking current screen
|
||||||
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
|
|
|
@ -7,7 +7,7 @@ class NetwrokStatusScreen(TeleniumTestProcess):
|
||||||
def test_network_status(self):
|
def test_network_status(self):
|
||||||
"""Show NetwrokStatus"""
|
"""Show NetwrokStatus"""
|
||||||
print("=====================Test -Show NetwrokStatus=====================")
|
print("=====================Test -Show NetwrokStatus=====================")
|
||||||
self.cli.sleep(10)
|
self.cli.sleep(8)
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=2)
|
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=2)
|
||||||
# checking state of Nav drawer
|
# checking state of Nav drawer
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
from time import time
|
|
||||||
|
|
||||||
from kivy.core.window import Animation
|
|
||||||
from .telenium_process import TeleniumTestProcess
|
from .telenium_process import TeleniumTestProcess
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,12 +7,12 @@ class PaymentScreen(TeleniumTestProcess):
|
||||||
def test_select_subscripton(self):
|
def test_select_subscripton(self):
|
||||||
"""Select Subscripton From List of Subscriptons"""
|
"""Select Subscripton From List of Subscriptons"""
|
||||||
print("=====================Test -Select Subscripton From List of Subscriptons=====================")
|
print("=====================Test -Select Subscripton From List of Subscriptons=====================")
|
||||||
self.cli.sleep(10)
|
self.cli.sleep(8)
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=3)
|
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=3)
|
||||||
# checking state of Nav drawer
|
# checking state of Nav drawer
|
||||||
self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=2)
|
self.assertExists("//MDNavigationDrawer[@state~=\"open\"]", timeout=2)
|
||||||
# Dragging from sent to inbox to get Payment tab.
|
# Dragging from sent to inbox to get Payment tab
|
||||||
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
self.drag("//NavigationItem[@text=\"Sent\"]", "//NavigationItem[@text=\"Inbox\"]")
|
||||||
# assert for checking scroll function
|
# assert for checking scroll function
|
||||||
self.assertCheckScrollDown('//ContentNavigationDrawer//ScrollView[0]', timeout=3)
|
self.assertCheckScrollDown('//ContentNavigationDrawer//ScrollView[0]', timeout=3)
|
||||||
|
@ -30,9 +27,6 @@ class PaymentScreen(TeleniumTestProcess):
|
||||||
'//ProductCategoryLayout[0]/ProductLayout[0]')
|
'//ProductCategoryLayout[0]/ProductLayout[0]')
|
||||||
# assert for checking scroll function
|
# assert for checking scroll function
|
||||||
self.assertCheckScrollDown('//Payment//ScrollView[0]', timeout=3)
|
self.assertCheckScrollDown('//Payment//ScrollView[0]', timeout=3)
|
||||||
self.cli.sleep(2)
|
|
||||||
print(self.cli.getattr('//Payment//MDCustomBottomSheet//MDBottomSheet[0]', 'animation'), 'pop is open or not ----------------------------------------------````````````````````````````````````````````````````````````~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
|
||||||
self.cli.sleep(2)
|
|
||||||
# Click on BUY Button
|
# Click on BUY Button
|
||||||
self.cli.wait_click('//MDRaisedButton[@text=\"BUY\"]', timeout=2)
|
self.cli.wait_click('//MDRaisedButton[@text=\"BUY\"]', timeout=2)
|
||||||
# CLick on the Payment Method
|
# CLick on the Payment Method
|
||||||
|
@ -43,4 +37,3 @@ class PaymentScreen(TeleniumTestProcess):
|
||||||
self.cli.wait_click('//MDRaisedButton[3]', timeout=2)
|
self.cli.wait_click('//MDRaisedButton[3]', timeout=2)
|
||||||
# Checking Current screen(Payment screen)
|
# Checking Current screen(Payment screen)
|
||||||
self.assertExists("//Payment[@name~=\"payment\"]", timeout=2)
|
self.assertExists("//Payment[@name~=\"payment\"]", timeout=2)
|
||||||
|
|
|
@ -7,7 +7,7 @@ class SettingScreen(TeleniumTestProcess):
|
||||||
def test_setting_screen(self):
|
def test_setting_screen(self):
|
||||||
"""Show Setting Screen"""
|
"""Show Setting Screen"""
|
||||||
print("=====================Test -Show Setting Screen=====================")
|
print("=====================Test -Show Setting Screen=====================")
|
||||||
self.cli.sleep(12)
|
self.cli.sleep(8)
|
||||||
# this is for checking current screen
|
# this is for checking current screen
|
||||||
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
self.assertExists("//Inbox[@name~=\"inbox\"]", timeout=3)
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
|
|
|
@ -6,7 +6,7 @@ class TrashMessage(TeleniumTestProcess):
|
||||||
def test_delete_trash_message(self):
|
def test_delete_trash_message(self):
|
||||||
"""Delete Trash message permanently from trash message listing"""
|
"""Delete Trash message permanently from trash message listing"""
|
||||||
print("=====================Test -Delete Message From Trash Message Listing=====================")
|
print("=====================Test -Delete Message From Trash Message Listing=====================")
|
||||||
self.cli.sleep(3)
|
self.cli.sleep()
|
||||||
# this is for opening Nav drawer
|
# this is for opening Nav drawer
|
||||||
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5)
|
self.cli.wait_click('//MDActionTopAppBarButton[@icon=\"menu\"]', timeout=5)
|
||||||
# checking state of Nav drawer
|
# checking state of Nav drawer
|
||||||
|
|
Reference in New Issue
Block a user