Пример #1
0
 def test_jvm_options(self):
     params = ['-foo', 'bar', 'jvm=-DsysProp=bar -Dht.Tp=qx']
     expected = [
         'java', '-DsysProp=bar', '-Dht.Tp=qx', '-jar',
         SELENIUM_SERVER_PATH, '-foo', 'bar'
     ]
     self.assertEquals(_server_startup_command(None, *params)[:7], expected)
Пример #2
0
 def test_given_jar_path_is_used(self):
     self.assertEquals(
         _server_startup_command('/some/jar.jar')[:3],
         ['java', '-jar', '/some/jar.jar'])
Пример #3
0
 def test_default_jar_path_is_correctly_determined(self):
     self.assertEquals(
         _server_startup_command(None)[:3],
         ['java', '-jar', SELENIUM_SERVER_PATH])
 def test_jvm_options(self):
     params = ['-foo', 'bar', 'jvm=-DsysProp=bar -Dht.Tp=qx']
     expected = ['java', '-DsysProp=bar', '-Dht.Tp=qx', '-jar',
                 SELENIUM_SERVER_PATH, '-foo', 'bar']
     self.assertEquals(_server_startup_command(None, *params)[:7], expected)
 def test_given_jar_path_is_used(self):
     self.assertEquals(_server_startup_command('/some/jar.jar')[:3],
                       ['java', '-jar', '/some/jar.jar'])
 def test_default_jar_path_is_correctly_determined(self):
     self.assertEquals(_server_startup_command(None)[:3],
                       ['java', '-jar', SELENIUM_SERVER_PATH])