From b5fed470fd923af34591835749bdfa892c31fb0b Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Fri, 22 Sep 2023 06:06:04 -0400 Subject: [PATCH] adding the test name as metadata for searching in grid sessions (#964) (#973) (cherry picked from commit de9f3093df5a5253efc0f559073b85770594921b) Co-authored-by: Omkar Khatavkar --- airgun/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airgun/browser.py b/airgun/browser.py index 891fff73e..1fd9a6088 100644 --- a/airgun/browser.py +++ b/airgun/browser.py @@ -170,6 +170,10 @@ def _get_remote_browser(self): Note: should not be called directly, use :meth:`get_browser` instead. """ + if self.test_name: + self.web_kaifuku.webdriver_options.desired_capabilities.update( + {'se:test_name': self.test_name} + ) manager = BrowserManager.from_conf(self.web_kaifuku) self._webdriver = manager.start() self._set_session_cookie()