diff --git a/tests/AutoscalingTests/common.py b/tests/AutoscalingTests/common.py index 47985d34d2..0ebc3bf899 100644 --- a/tests/AutoscalingTests/common.py +++ b/tests/AutoscalingTests/common.py @@ -50,9 +50,11 @@ def get_pod_count(): def create_session(browser_name): options = BROWSER[browser_name] options.set_capability("platformName", "Linux") - return webdriver.Remote( + driver = webdriver.Remote( command_executor=CLIENT_CONFIG.remote_server_addr, options=options, client_config=CLIENT_CONFIG ) + print(f"Session created: {driver.session_id} ({browser_name})") + return driver def wait_for_count_matches(sessions, timeout=10, interval=5): diff --git a/tests/SeleniumTests/__init__.py b/tests/SeleniumTests/__init__.py index c51a86ed5e..1de806df85 100644 --- a/tests/SeleniumTests/__init__.py +++ b/tests/SeleniumTests/__init__.py @@ -36,8 +36,8 @@ TEST_MULTIPLE_PLATFORMS = os.environ.get('TEST_MULTIPLE_PLATFORMS', 'false').lower() == 'true' TEST_MULTIPLE_PLATFORMS_RELAY = os.environ.get('TEST_MULTIPLE_PLATFORMS_RELAY', 'false').lower() == 'true' TEST_MULTIPLE_VERSIONS_EXPLICIT = os.environ.get('TEST_MULTIPLE_VERSIONS_EXPLICIT', 'true').lower() == 'true' -LIST_CHROMIUM_VERSIONS = ['137.0', '136.0', '135.0', '134.0', '133.0', '132.0', '131.0'] -LIST_FIREFOX_VERSIONS = ['139.0', '138.0', '137.0', '136.0', '135.0', '134.0', '133.0'] +LIST_CHROMIUM_VERSIONS = ['140.0', '139.0', '138.0', '137.0', '136.0', '135.0', '134.0'] +LIST_FIREFOX_VERSIONS = ['142.0', '141.0', '140.0', '139.0', '138.0', '137.0', '136.0'] LIST_PLATFORMS = ['Linux', None, 'Windows 11'] if not TEST_MULTIPLE_VERSIONS_EXPLICIT: @@ -194,7 +194,7 @@ def setUp(self): ) end_time = time.time() print( - f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)" + f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}" ) except Exception as e: print(f"::error::Exception: {str(e)}") @@ -243,7 +243,7 @@ def setUp(self): ) end_time = time.time() print( - f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)" + f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}" ) except Exception as e: print(f"::error::Exception: {str(e)}") @@ -297,7 +297,7 @@ def setUp(self): ) end_time = time.time() print( - f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s)" + f"Begin: {self._testMethodName} ({self.__class__.__name__}) WebDriver initialization completed in {end_time - start_time} (s) - SessionID: {self.driver.session_id}" ) except Exception as e: print(f"::error::Exception: {str(e)}") diff --git a/tests/get_started.py b/tests/get_started.py index 4fe4f9acb5..488a22bf64 100644 --- a/tests/get_started.py +++ b/tests/get_started.py @@ -38,6 +38,7 @@ def run_browser_instance(browser, grid_url): command_executor=grid_url, options=options, ) + print(f"Session created: {driver.session_id} ({browser})") driver.get('https://www.google.com/') print(driver.title) time.sleep(100)