def options(self, parser, env=None): if env is None: env = os.environ parser.add_option('--selenium-ss-dir', help='Directory for failure screen shots.') parser.add_option( '--headless', help= "Run the Selenium tests in a headless mode, with virtual frames starting with the given index (eg. 1)", default=None) parser.add_option('--driver-type', help='The type of driver that needs to be created', default='firefox') parser.add_option( '--remote-server-address', help= 'Use a remote server to run the tests, must pass in the server address', default='localhost') parser.add_option('--selenium-port', help='The port for the selenium server', default='4444') parser.add_option( '--track-stats', help= 'After the suite is run print a table of test name/runtime/number of trips to the server. defaults to ordering by trips to the server', default=None) Plugin.options(self, parser, env)
def options(self, parser, env=None): if env is None: env = os.environ parser.add_option('--old-selenium-ss-dir', dest='selenium_ss_dir', help='Directory for failure screen shots.', ) parser.add_option('--old-headless', dest='headless', help="Run the Selenium tests in a headless mode, with virtual frames starting with the given index (eg. 1)", default=None) parser.add_option('--old-driver-type', dest='driver_type', help='The type of driver that needs to be created', default='firefox') parser.add_option('--old-remote-server-address', dest='remote_server_address', help='Use a remote server to run the tests, must pass in the server address', default='localhost') parser.add_option('--old-selenium-port', dest='selenium_port', help='The port for the selenium server', default='4444') parser.add_option('--old-track-stats', dest='track_stats', help='After the suite is run print a table of test name/runtime/number of trips to the server. defaults to ordering by trips to the server', default=None) Plugin.options(self, parser, env)
def options(self, parser, env=None): if env is None: env = os.environ parser.add_option( '--selenium-ss-dir', help='Directory for failure screen shots.' ) parser.add_option( '--headless', help=( "Run the Selenium tests in a headless mode, with virtual " "frames starting with the given index (eg. 1)" ), default=None, ) parser.add_option( '--driver-type', help='The type of driver that needs to be created', default='firefox', ) parser.add_option( '--firefox-binary', help='the path to the firefox browser binary', default=None, ) parser.add_option( '--remote-server-address', help='Use a remote server to run the tests, must pass in the server address', # noqa default='localhost', ) parser.add_option( '--selenium-port', help='The port for the selenium server', default='4444', ) parser.add_option( '--track-stats', help=( 'After the suite is run print a table of test ' 'name/runtime/number of trips to the server. defaults to ' 'ordering by trips to the server' ), default=None, ) parser.add_option( '--ff-profile', help=( 'Specify overrides for the FireFox profile' ), default=None, action='append' ) Plugin.options(self, parser, env)
def options(self, parser, env=None): if env is None: env = os.environ parser.add_option('--remote-server', help='Use a remote server to run the tests, must pass in the server address', ) parser.add_option('--to-from-ports', help='Should be of the form x:y where x is the port that needs to be forwarded to the server and y is the port that the server needs forwarded back to the localhost', default='4444:8001', ) parser.add_option('--username', help='The username with which to create the ssh tunnel to the remote server', default=None, ) Plugin.options(self, parser, env)
def options(self, parser, env=None): if env is None: env = os.environ parser.add_option( '--remote-server', help= 'Use a remote server to run the tests, must pass in the server address', ) parser.add_option( '--to-from-ports', help= 'Should be of the form x:y where x is the port that needs to be forwarded to the server and y is the port that the server needs forwarded back to the localhost', default='4444:8001', ) parser.add_option( '--username', help= 'The username with which to create the ssh tunnel to the remote server', default=None, ) Plugin.options(self, parser, env)
def options(self, parser, env=os.environ): Plugin.options(self, parser, env)