Skip to content

Commit 755ca01

Browse files
parallel mode of run & environment variable set
1 parent ae77dc0 commit 755ca01

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.coverage

0 Bytes
Binary file not shown.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ pip3 install -r requirements.txt
1212
pytest
1313
```
1414

15+
# Environment variable
16+
```BROWSER=chrome pytest```
17+
18+
# Parallel run
19+
```BROWSER=chrome pytest -s -v -n=2```
20+
1521

Tests/google.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22
import allure
3+
import os
34
from Library.driver import Driver
45
from Pages.google import GooglePage
56

@@ -9,6 +10,7 @@
910
@allure.severity('Critical')
1011
def test_google_search():
1112
with allure.step("first step"):
13+
print(os.environ['BROWSER'])
1214
d = Driver("chrome")
1315
d.get("https://www.google.com")
1416
print("landed in google home page")

0 commit comments

Comments
 (0)