We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae77dc0 commit 755ca01Copy full SHA for 755ca01
.coverage
0 Bytes
README.md
@@ -12,4 +12,10 @@ pip3 install -r requirements.txt
12
pytest
13
```
14
15
+# Environment variable
16
+```BROWSER=chrome pytest```
17
+
18
+# Parallel run
19
+```BROWSER=chrome pytest -s -v -n=2```
20
21
Tests/google.py
@@ -1,5 +1,6 @@
1
import pytest
2
import allure
3
+import os
4
from Library.driver import Driver
5
from Pages.google import GooglePage
6
@@ -9,6 +10,7 @@
9
10
@allure.severity('Critical')
11
def test_google_search():
with allure.step("first step"):
+ print(os.environ['BROWSER'])
d = Driver("chrome")
d.get("https://www.google.com")
print("landed in google home page")
0 commit comments