Exemplo n.º 1
0
    def dumpScreen(self, utilityPath):
        if self.haveDumpedScreen:
            self.log.info("Not taking screenshot here: see the one that was previously logged")
            return

        self.haveDumpedScreen = True
        automationutils.dumpScreen(utilityPath)
Exemplo n.º 2
0
 def dumpScreen(self, utilityPath):
     if self.haveDumpedScreen:
         log.info(
             "Not taking screenshot here: see the one that was previously logged"
         )
         return
     self.haveDumpedScreen = True
     dumpScreen(utilityPath)
Exemplo n.º 3
0
def main(args=sys.argv[1:]):

    # parse CLI options
    usage = '%prog [options] path/to/OBJDIR/dist/bin'
    parser = optparse.OptionParser(usage=usage)
    options, args = parser.parse_args(args)
    if len(args) != 1:
        parser.error("Please provide utility path")
    utilityPath = args[0]

    # dump the screen to a data: URL
    uri = automationutils.dumpScreen(utilityPath)

    # print the uri
    print uri
Exemplo n.º 4
0
def main(args=sys.argv[1:]):

    # parse CLI options
    usage = '%prog [options] path/to/OBJDIR/dist/bin'
    parser = optparse.OptionParser(usage=usage)
    options, args = parser.parse_args(args)
    if len(args) != 1:
        parser.error("Please provide utility path")
    utilityPath = args[0]

    # dump the screen to a data: URL
    uri = automationutils.dumpScreen(utilityPath)

    # print the uri
    print uri