Adds flexibility to wait for launching pgAdmin in feature test.
parent
b0abc4048e
commit
b921a55c46
|
|
@ -604,7 +604,7 @@ def run_parallel_tests(url_client, servers_details, parallel_tests_lists,
|
||||||
ser['name'])
|
ser['name'])
|
||||||
# Launch client url in browser
|
# Launch client url in browser
|
||||||
test_utils.launch_url_in_browser(
|
test_utils.launch_url_in_browser(
|
||||||
driver_object, url_client, 60)
|
driver_object, url_client, timeout=60)
|
||||||
|
|
||||||
# Add name for thread
|
# Add name for thread
|
||||||
thread_name = "parallel_tests" + ser['name']
|
thread_name = "parallel_tests" + ser['name']
|
||||||
|
|
@ -847,10 +847,14 @@ if __name__ == '__main__':
|
||||||
client_url = app_starter_local.start_app()
|
client_url = app_starter_local.start_app()
|
||||||
|
|
||||||
if config.DEBUG:
|
if config.DEBUG:
|
||||||
|
pgAdmin_wait_time = \
|
||||||
|
selenoid_config['pgAdmin_max_up_time']
|
||||||
print('pgAdmin is launched with DEBUG=True, '
|
print('pgAdmin is launched with DEBUG=True, '
|
||||||
'hence sleeping for 50 seconds.',
|
'hence sleeping for %s seconds.',
|
||||||
|
pgAdmin_wait_time,
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
time.sleep(50)
|
|
||||||
|
time.sleep(int(pgAdmin_wait_time))
|
||||||
|
|
||||||
# Running Parallel tests
|
# Running Parallel tests
|
||||||
if len(parallel_tests) > 0:
|
if len(parallel_tests) > 0:
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
}],
|
}],
|
||||||
"selenoid_config": {
|
"selenoid_config": {
|
||||||
"pgAdmin_default_server":"IP address of machine where source code is going to be executed",
|
"pgAdmin_default_server":"IP address of machine where source code is going to be executed",
|
||||||
|
"pgAdmin_max_up_time": 90,
|
||||||
"max_parallel_sessions": "3",
|
"max_parallel_sessions": "3",
|
||||||
"selenoid_url": "http://<IP address of Selenoid Installed machine>:4444/wd/hub",
|
"selenoid_url": "http://<IP address of Selenoid Installed machine>:4444/wd/hub",
|
||||||
"browsers_list":[
|
"browsers_list":[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue