PyBitmessage-2021-04-27/src/graphicaltesting/test_networkstatus.py

22 lines
708 B
Python

"""Test for network window"""
from PyQt4.QtTest import QTest
from testloader import BitmessageTestCase
class BitmessageTest_NetworkTest(BitmessageTestCase):
"""Switch to network tab and test"""
def test_network(self):
"""Switch to network window"""
try:
print("=====================Test - Network Functionality=====================")
QTest.qWait(1000)
self.myapp.ui.tabWidget.setCurrentWidget(self.myapp.ui.networkstatus)
QTest.qWait(1200)
print("Test Pass:--> Network Functionality Working Well")
return 1
except:
print("Test Fail:--> Network Functionality Failed")
return 0