def test_gui_main(self): """Execute the gui test case and display the commands.""" # download the required files downloadList = [] for downloadTag in self.element.iter('download'): downloadList.append(downloadTag.text) if downloadList: self.download_file(downloadList) # start the graphical user interface app = QtGui.QApplication(sys.argv) totalPackages = len(self.packagelist) counter = 0 while counter < totalPackages: window = Main(self.element, self.packagelist, self.summary, self.report, self.packagelist[counter]) window.show() app.exec_() if window.checkcode == 1: self.summary.extend(window.summary) self.report.extend(window.report) else: failMessage = 'No information was entered in the GUI test.' for lst in (self.summary, self.report): lst.append(failMessage) counter += 1
def test_shell_main(self): """Print the text and ask the user to run the commands.""" # start the gui app = QtGui.QApplication(sys.argv) window = Main(self.element, self.packagelist, self.summary, self.report) window.show() app.exec_() if window.checkcode: self.summary = window.summary self.report = window.report else: failMessage = 'No information was entered in the SHELL test.' for lst in (self.summary, self.report): lst.append(failMessage)