|
2 | 2 | 
|
3 | 3 | ---
|
4 | 4 |
|
| 5 | +## Prerequisites for Python Behave tutorial |
| 6 | + |
| 7 | +### 1. Python Installation |
| 8 | + |
| 9 | + * [Download Python](https://www.python.org/downloads/) and click on Add to path and install. |
| 10 | + |
| 11 | + * To check if python installed correctly you need to go to terminal type python in command prompt. It will show you the current version you have downloaded. |
| 12 | + |
| 13 | +### 2. LambdaTest Credentials |
| 14 | + * To use Pytest with LambdaTest, make sure you have the 2 environment variables LT_USERNAME and LT_ACCESS_KEY set. To obtain a username and access_key, sign up for free [here](https://lambdatest.com). After signing up you can find your username and access key [here](https://accounts.lambdatest.com/detail/profile). |
| 15 | + * In the terminal export your LambdaTest Credentials as environmental variables: |
| 16 | + |
| 17 | + * For Mac/Linux |
| 18 | + ``` |
| 19 | + $ export LT_USERNAME=<your LambdaTest username> |
| 20 | + $ export LT_ACCESS_KEY=<your LambdaTest access key> |
| 21 | + ``` |
| 22 | + |
| 23 | + * For Windows |
| 24 | + ``` |
| 25 | + set LT_USERNAME=<your LambdaTest username> |
| 26 | + set LT_ACCESS_KEY=<your LambdaTest access key> |
| 27 | + ``` |
| 28 | + |
| 29 | +### 3. Setup |
| 30 | + |
| 31 | + * Clone [Python-Behave-Selenium](https://github.com/LambdaTest/python-behave-selenium.git) from GitHub. |
| 32 | + * Navigate to the cloned directory |
| 33 | + * Install project dependencies by running command: |
| 34 | + |
| 35 | + ``` |
| 36 | + pip install -r requirements.txt |
| 37 | + ``` |
| 38 | + |
| 39 | + Requirements.txt file includes the following: |
| 40 | + |
| 41 | + ``` |
| 42 | +Paver==1.3.4 |
| 43 | +selenium==3.141.0 |
| 44 | +behave==1.2.6 |
| 45 | +``` |
5 | 46 | ### Environment Setup
|
6 | 47 |
|
7 | 48 | 1. Global Dependencies
|
|
0 commit comments