michael@0: #!/usr/bin/env python michael@0: michael@0: """ michael@0: test dumpScreen functionality michael@0: """ michael@0: michael@0: import automationutils michael@0: import optparse michael@0: import os michael@0: import sys michael@0: michael@0: michael@0: def main(args=sys.argv[1:]): michael@0: michael@0: # parse CLI options michael@0: usage = '%prog [options] path/to/OBJDIR/dist/bin' michael@0: parser = optparse.OptionParser(usage=usage) michael@0: options, args = parser.parse_args(args) michael@0: if len(args) != 1: michael@0: parser.error("Please provide utility path") michael@0: utilityPath = args[0] michael@0: michael@0: # dump the screen to a data: URL michael@0: uri = automationutils.dumpScreen(utilityPath) michael@0: michael@0: # print the uri michael@0: print uri michael@0: michael@0: if __name__ == '__main__': michael@0: main()