Skip to content

NDViet/test-automation-fwk-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Test libraries are retained by Python which can be imported to use in other test framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages