Skip to main content

Setup Environment

In order to configure a development environment for executing automated tests, a starting configuration is needed for the installation of TAF dependencies.

Creation and activation of virtual environment

You can decide to work with virtual environment.

This allow you can organize your packages much better and know exactly the packages you need to run your code in case someone else needs to run it on their machine.

You can also decide to don't use virtual environment and to install packages directly on your operative system. In this case, jump to next paragraph.

Before proceeding to the virtual environment creation, be sure that the tool virtualenv is installed on your machine. To install it, run the command:

python -m pip install --user virtualenv

Once installed, only the first time, execute the command

virtualenv myenv

to create the virtual environemnt.

To activate it, run:

Linux

source myenv/bin/activate

Windows

myenv/Scripts/activate

Requirements installation

Once the virtual environment has been created and activated, the installation of project's dependencies is required.

All the project's dependencies shall be reported into the file requirements.txt.

To install all packages and libraries required to run the projects, execute:

pip install -r requirements.txt