Skip to content

Latest commit

 

History

History
109 lines (74 loc) · 2.63 KB

README.md

File metadata and controls

109 lines (74 loc) · 2.63 KB

Sessions

Switch branch to see contents of each session

Documentations

  • Visit the Wiki page for more information.

Install Python Poetry

Project is managed by Python Poetry, it is a tool for dependency management and packaging in a Python-based project.

pip install poetry

Build and install common test library

Common test library is separated out from the test cases repository, it is a reusable library for other test repos. It is built and installed as a Python package.

Clone the project to local

git clone https://github.com/NDViet/test-automation-fwk-python.git

Navigate to the project

cd test-automation-fwk-python

Create project virtualenv and install dependencies

poetry install

Build the test library to wheel package under dist/*.whl

poetry build

Install the test library module in wheel package

Notes: replace the module name if yours is different

Install to global environment

pip install --force-reinstall --find-links=dist ndviet_test_automation

Test library module and dependencies belong to (include Robot Framework) is installed globally, it is available for any projects.

Install to in-project virtual environment

Activate in-project virtualenv

.venv/Scripts/activate

Install the wheel package

pip install --force-reinstall --find-links=dist ndviet_test_automation

Notes

Check list of installed packages (results will be different between global and virtualenv)

pip list

To deactivate the virtualenv

deactivate

Export requirements.txt file

poetry export --without-hashes --format=requirements.txt --output=requirements.txt