Skip to content

Repository created as part of a challenge for a position on ET

License

Notifications You must be signed in to change notification settings

gbl3/qa-challenge-et

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Empathy Talent Challenge

This repository code is part of the Homework Challenge of Empathy Talent selection process.

Tech Stack

Language: Python

Test Framework:

Most Relevant Libraries/Modules:

Website being tested: https://www.saucedemo.com/

APIs being tested:

All used libraries and their version can be checked on the requirements.txt file.

Installation

To properly run the test code, some programs needs to be installed.

  • GitHub (See how to, depending on your OS here)
  • Python version 3.11.6, here
  • Chrome browser, here

Setting up local environment

Clone the project

git clone https://github.com/gbl3/qa-challenge-et.git

Go to the project directory

cd qa-challenge-et

To install the requirements, you have two options:

First (recommended) is to create a virtualenv

python -m venv .

Activate the virtualenv (Note: this runs different depending on your OS)

For Windows PowerShell:

venv\Scripts\Activate.ps1  

For Windows cmd:

venv\Scripts\activate.bat

For Linux/MacOs:

source venv/Scripts/activate

Install the requirements

pip install -r requirements.txt 

Second option would be to directly run the previous command. The problem with that is that you are going to install the requirements globally on your computer, which might break something for your other projects. That's why I recommend going with the virtualenv option.


Running tests

Before going forward, make sure you have the requirements installed and virtualenv activated. To run the frontend tests, simply type on the project root:

behave

For the api tests, you have to move to the api folder:

cd api

Once you are already on the api folder run the following:

pytest .\test-google-translate-api.py .\test-weather-api.py

If an error occurs, please try the setup part again. To deactivate the virtual environment, simply type:

deactivate

About

Repository created as part of a challenge for a position on ET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published