Skip to content

Commit

Permalink
Update GUI testing example
Browse files Browse the repository at this point in the history
  • Loading branch information
eslickj committed Mar 8, 2018
1 parent 558e615 commit 798b9a4
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 200 deletions.
Empty file removed exampleGUITest.py
Empty file.
2 changes: 1 addition & 1 deletion foqus.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def signal_handler(signal, frame):
help="Add an application type to TurbineLite DB")
parser.add_argument("--terminateConsumer",
help = "Terminate the consumer with the given UUID")
parser.add_argument("--runUITestScript",
parser.add_argument("-s", "--runUITestScript",
help="Load and run a user interface test script")
args = parser.parse_args()
# before changing the directory get absolute path for file to load
Expand Down
3 changes: 2 additions & 1 deletion foqus_lib/framework/uq/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import tempfile
import time
import platform
import logging

try:
from PyQt5 import QtGui, QtCore, QtWidgets
Expand Down Expand Up @@ -301,7 +302,7 @@ def runCommandInWindow(command,
try:
p.terminate()
except:
logging.logging.getLogger("foqus." + __name__)\
logging.getLogger("foqus." + __name__)\
.exception('Error terminating PSUADE process, this may be okay'
'but not sure so logged it (JCE)')
if error:
Expand Down
2 changes: 2 additions & 0 deletions foqus_lib/gui/help/helpBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def msgBoxOK(self):
w = self.getWindow()
if isinstance(w, QMessageBox):
self.pressButton(w, 'OK')
return True
return False

def msgBoxYes(self):
w = self.getWindow()
Expand Down
198 changes: 0 additions & 198 deletions test/system_test/exampleGUITest.py

This file was deleted.

Loading

0 comments on commit 798b9a4

Please sign in to comment.