Compare commits

..

No commits in common. "ddcc5206d56581cbdb9d8924f1c7ff59651996c8" and "8e769587cf1e48a4b04a91cdb6bde3e669ddbcb6" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -146,12 +146,10 @@ Install the following dependencies too:
- pip install -U selenium==3.141.0 - pip install -U selenium==3.141.0
- pip install -U urllib3==1.26.2 - pip install -U urllib3==1.26.2
Run English Pal first, then run the test using pytest as follows: pytest --html=pytest_report.html test_add_word.py Run the test using pytest as follows: pytest --html=pytest_report.html test_add_word.py
The above command will generate a HTML report file pytest_report.html after finishing executing test_add_word.py. Note: you need to install pytest-html package first: pip install pytest-html. The above command will generate a HTML report file pytest_report.html after finishing executing test_add_word.py. Note: you need to install pytest-html package first: pip install pytest-html.
You may also want to use [webdriver-manager](https://pypi.org/project/webdriver-manager/) from PyPI, so that you can avoid tediously installing a web driver executable manually. However, my experience shows that webdriver-manager is too slow. For example, it took me 16 minutes to run 9 tests, while with the pre-installed web driver executable, it took less than 2 minutes.
## TODO ## TODO

View File

@ -2,7 +2,6 @@ import pytest
import sqlite3 import sqlite3
import time import time
from selenium import webdriver from selenium import webdriver
from pathlib import Path from pathlib import Path
@pytest.fixture @pytest.fixture
@ -12,7 +11,7 @@ def URL():
@pytest.fixture @pytest.fixture
def driver(): def driver():
return webdriver.Edge() # follow the "End-to-end testing" section in README.md to install the web driver executable return webdriver.Edge() # uncomment this line if you wish to run the test on your laptop
@pytest.fixture @pytest.fixture