This project has been created in order to testing the Marvel API using Python and Behave framework. To further information on how to use this API and generate the API Key, please visit: https://developer.marvel.com/documentation/getting_started
- virtualenv 20.10.0+
- python 3.8.10+
- pip 21.3.1+
Creating a virtual environment using python3 location. Remember to retrieve the current python location to ensure the correct version.
virtualenv -p /usr/bin/python3 venv
Activating the new virtual environment:
source venv/bin/activate
Use the package manager pip to install the libs:
pip install -r requirements.txt
First of all, open the params.py file under utils folder and inform your API keys.
After that, execute the command below to run all tests:
behave
behave --tags=stories
behave --junit
behave -f json.pretty
First, its necessary to install Allure in your computer, follow here: https://docs.qameta.io/allure-report/#_installing_a_commandline
After installing Allure, run:
behave -f allure_behave.formatter:AllureFormatter -o reports/my_allure
Starting Allure server to see the report. On project root folder, run:
allure serve reports/my_allure