You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to enable connecting to multiple authenticated proxies during tests
Currently, proxy.zip and proxy_ext_dir are hardcoded so that tests can connect to a proxy and reuse the same config, but that can be limiting if people want to connect to multiple proxies for multi-threaded tests. I'm planning on adding the following options to allow for flexible naming based on number increments:
--multi-proxy (Command-line option for pytest)
multi_proxy=True (SB manager, Driver manager, browser_launcher direct calls)
This would result in creating proxy_1.zip, proxy_2.zip, etc. and proxy_ext_dir_1, proxy_ext_dir_2, etc. for each test so that different authenticated proxies can be used.
Enabling this via an option (rather than having this always enabled) is important so that the downloaded_files folder (where proxy config files are stored) isn't getting polluted with multiple identical files when the same proxy configuration is being used for all tests on purpose.
The text was updated successfully, but these errors were encountered:
Add option to enable connecting to multiple authenticated proxies during tests
Currently,
proxy.zip
andproxy_ext_dir
are hardcoded so that tests can connect to a proxy and reuse the same config, but that can be limiting if people want to connect to multiple proxies for multi-threaded tests. I'm planning on adding the following options to allow for flexible naming based on number increments:--multi-proxy
(Command-line option for pytest)multi_proxy=True
(SB
manager,Driver
manager,browser_launcher
direct calls)This would result in creating
proxy_1.zip
,proxy_2.zip
, etc. andproxy_ext_dir_1
,proxy_ext_dir_2
, etc. for each test so that different authenticated proxies can be used.Eg. (Via parameterized tests):
And run that with:
pytest -n=3 --multi-proxy
Enabling this via an option (rather than having this always enabled) is important so that the
downloaded_files
folder (where proxy config files are stored) isn't getting polluted with multiple identical files when the same proxy configuration is being used for all tests on purpose.The text was updated successfully, but these errors were encountered: