Beispiel #1
0
 def run(self):
     conf = self.configuration
     infoMsg = "Testing %s in %s" %(conf['autName'], conf["browserId"])
     debugMsg = "Selenium command line: %s" %self.startCmd
     
     if (self.simulate):
         self.log.info("SIMULATION: %s" %infoMsg)
         self.log.debug(debugMsg)
     else:
         self.log.info(infoMsg)
         self.log.debug(debugMsg)
         
         #TODO: out.split("\n")
         if self.configuration["processLog"]:
             util.invokeLog(self.startCmd, self.log, True)
         
         else:
             util.invokeExternal(self.startCmd)
    def run(self):
        conf = self.configuration
        infoMsg = "Testing %s in %s" % (conf['autName'], conf["browserId"])
        debugMsg = "Selenium command line: %s" % self.startCmd

        if (self.simulate):
            self.log.info("SIMULATION: %s" % infoMsg)
            self.log.debug(debugMsg)
        else:
            self.log.info(infoMsg)
            self.log.debug(debugMsg)

            #TODO: out.split("\n")
            if self.configuration["processLog"]:
                util.invokeLog(self.startCmd, self.log, True)

            else:
                util.invokeExternal(self.startCmd)
Beispiel #3
0
   def kill(self):
     if self.simulate:
         self.log.info("SIMULATION: Killing all running Selenium server processes.")
         return
     else:
         self.log.info("Killing all running Selenium server processes.")
 
     os = util.getOperatingSystemName()
     if os == "Linux":      
         util.invokeExternal("pkill -f selenium-server")
         return
     if os == "Mac OS X":
         util.invokeExternal("pkill selenium-server")
     else:
         if "killSelenium" in self.configuration:
             util.invokeExternal(self.configuration['killSelenium'])
         else:
             self.log.error("No kill command known for this OS")
        def kill(self):
            if self.simulate:
                self.log.info(
                    "SIMULATION: Killing all running Selenium server processes."
                )
                return
            else:
                self.log.info("Killing all running Selenium server processes.")

            os = util.getOperatingSystemName()
            if os == "Linux":
                util.invokeExternal("pkill -f selenium-server")
                return
            if os == "Mac OS X":
                util.invokeExternal("pkill selenium-server")
            else:
                if "killSelenium" in self.configuration:
                    util.invokeExternal(self.configuration['killSelenium'])
                else:
                    self.log.error("No kill command known for this OS")