def process(self, context):
     regKey = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Mercury Interactive\\LoadRunner\\CurrentVersion'
     versionMajor = self.queryRegistry(context.client, regKey, 'Major')
     if versionMajor:
         versionMinor = self.queryRegistry(context.client, regKey, 'Minor')
         version = '%s.%s' % (versionMajor, versionMinor)
         context.application.getOsh().setAttribute("application_version_number", version)
     else:
         bin = BinaryBasedPlugin()
         bin.allowedProcesses = self.allowedProcesses
         bin.process(context)
 def process(self, context):
     regKey = 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Mercury Interactive\\LoadRunner\\CurrentVersion'
     versionMajor = self.queryRegistry(context.client, regKey, 'Major')
     if versionMajor:
         versionMinor = self.queryRegistry(context.client, regKey, 'Minor')
         version = '%s.%s' % (versionMajor, versionMinor)
         context.application.getOsh().setAttribute(
             "application_version_number", version)
     else:
         bin = BinaryBasedPlugin()
         bin.allowedProcesses = self.allowedProcesses
         bin.process(context)
 def isApplicable(self, context):
     self.allowedProcesses = context.application.getProcesses()
     return BinaryBasedPlugin.isApplicable(self, context)
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = ['qainspect.exe']
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = ['HPRUMProbe.exe', 'HPRUMProbe']
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = [
         'smservice.exe', 'sm.exe', 'ServiceManager.exe'
     ]
 def isApplicable(self, context):
     self.allowedProcesses = context.application.getProcesses()
     return BinaryBasedPlugin.isApplicable(self, context)
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = ['qainspect.exe']
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = ['HPRUMProbe.exe', 'HPRUMProbe']
 def __init__(self):
     BinaryBasedPlugin.__init__(self)
     self.allowedProcesses = ['smservice.exe', 'sm.exe', 'ServiceManager.exe']