From 172977468bee2093366db3f4a7aed42d50df488e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Br=C3=A4nnlund?= Date: Sun, 16 Sep 2018 16:31:25 +0200 Subject: [PATCH] Testingbot credentials (#191) Move credentials to capabilities --- pytest_selenium/drivers/testingbot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pytest_selenium/drivers/testingbot.py b/pytest_selenium/drivers/testingbot.py index 5195bf0c..9628bdfd 100644 --- a/pytest_selenium/drivers/testingbot.py +++ b/pytest_selenium/drivers/testingbot.py @@ -10,7 +10,7 @@ from pytest_selenium.drivers.cloud import Provider HOST = "hub.testingbot.com" -PORT = 80 +PORT = 443 class TestingBot(Provider): @@ -29,7 +29,7 @@ def auth(self): @property def executor(self): - return "http://{0.key}:{0.secret}@{0.host}:{0.port}/wd/hub".format(self) + return "https://{0.host}:{0.port}/wd/hub".format(self) @property def key(self): @@ -84,6 +84,8 @@ def driver_kwargs(request, test, capabilities, host, port, **kwargs): provider = TestingBot(host, port) keywords = request.node.keywords capabilities.setdefault("name", test) + capabilities.setdefault("client_key", provider.key) + capabilities.setdefault("client_secret", provider.secret) markers = [m for m in keywords.keys() if isinstance(keywords[m], MarkInfo)] groups = capabilities.get("groups", []) + markers if groups: