def runScript (name): if (not run_recorded.run_test_by_name (name, test_modules=run_recorded.get_test_modules ()) and schema.ns('osaf.framework.script_recording', wx.GetApp().UIRepositoryView).RecordingController.verifyScripts): #display the results of the script just ran to the user if "Check Results" is On testResults = unicode("".join(run_recorded.last_format_exception), "utf8", "ignore") wx.MessageBox(_(u"The script did not complete because a error was found during verification.\n\n%(testResults)s") % {'testResults': testResults}, _(u"Script Error"), wx.OK)
def GetNewItems(self): #create the newItems item newItems = super(wxMenu, self).GetNewItems() dynamicItems = sorted(run_recorded.get_test_modules()) if dynamicItems: newItems.append('__separator__') newItems.extend(dynamicItems) return newItems
def GetNewItems(self): #create the newItems item newItems = super(wxMenu, self).GetNewItems() dynamicItems = sorted (run_recorded.get_test_modules()) if dynamicItems: newItems.append('__separator__') newItems.extend(dynamicItems) return newItems
def runScript(name): if (not run_recorded.run_test_by_name( name, test_modules=run_recorded.get_test_modules()) and schema.ns( 'osaf.framework.script_recording', wx.GetApp().UIRepositoryView).RecordingController.verifyScripts ): #display the results of the script just ran to the user if "Check Results" is On testResults = unicode("".join(run_recorded.last_format_exception), "utf8", "ignore") wx.MessageBox( _(u"The script did not complete because a error was found during verification.\n\n%(testResults)s" ) % {'testResults': testResults}, _(u"Script Error"), wx.OK)