Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
   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
Ejemplo n.º 4
0
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)