@@ -190,6 +190,13 @@ def setUp(self):
190190 platform_name = random .choice (LIST_PLATFORMS )
191191 if platform_name :
192192 options .set_capability ('platformName' , platform_name )
193+ if TEST_MULTIPLE_PLATFORMS_RELAY :
194+ options .set_capability ('sauce:options' , {
195+ 'username' : os .environ .get ('SAUCE_USERNAME' ),
196+ 'accessKey' : os .environ .get ('SAUCE_ACCESS_KEY' ),
197+ 'name' : f"{ self ._testMethodName } ({ self .__class__ .__name__ } )" ,
198+ 'seleniumVersion' : '4.29.0' ,
199+ })
193200 start_time = time .time ()
194201 self .driver = webdriver .Remote (
195202 options = options ,
@@ -228,6 +235,13 @@ def setUp(self):
228235 platform_name = random .choice (LIST_PLATFORMS )
229236 if platform_name :
230237 options .set_capability ('platformName' , platform_name )
238+ if TEST_MULTIPLE_PLATFORMS_RELAY :
239+ options .set_capability ('sauce:options' , {
240+ 'username' : os .environ .get ('SAUCE_USERNAME' ),
241+ 'accessKey' : os .environ .get ('SAUCE_ACCESS_KEY' ),
242+ 'name' : f"{ self ._testMethodName } ({ self .__class__ .__name__ } )" ,
243+ 'seleniumVersion' : '4.29.0' ,
244+ })
231245 start_time = time .time ()
232246 self .driver = webdriver .Remote (
233247 options = options ,
@@ -271,6 +285,13 @@ def setUp(self):
271285 platform_name = random .choice (LIST_PLATFORMS )
272286 if platform_name :
273287 options .set_capability ('platformName' , platform_name )
288+ if TEST_MULTIPLE_PLATFORMS_RELAY :
289+ options .set_capability ('sauce:options' , {
290+ 'username' : os .environ .get ('SAUCE_USERNAME' ),
291+ 'accessKey' : os .environ .get ('SAUCE_ACCESS_KEY' ),
292+ 'name' : f"{ self ._testMethodName } ({ self .__class__ .__name__ } )" ,
293+ 'seleniumVersion' : '4.29.0' ,
294+ })
274295 start_time = time .time ()
275296 self .driver = webdriver .Remote (
276297 options = options ,
0 commit comments