Zé Delivery - QA Challenge

Você pode ler esta documentação, em português, clicando aqui

The first challenge is identity 3 important flows that keep the application working properly. I've identified these:

  • Inform Address: If the user can't enter address, he will not know if the Zé delivery service will be available in his region. And if it's available, the products will not be displayed in this case, because they are displayed to the user according to the coverage served in the region.

  • Payment: If the payment services has unavailabe, the purchase can't be completed and the order can't be created.

  • Cart: If the products selected by the user are not being updated and calculated correctly in the cart, it will cause inconvenience for the user who can withdraw from the purchase.

The second challenge is create an automation test to a scenario from the first challenge

I chose the cart!

Installing the Project

This mode are configured for the following OS only:

  • Ubuntu 18.04

  1. Creating virtual environments with Pyenv

    I prefer to create an isolated environment, so as not to cause any damage to the local python, so I separated two tutorials to help. But feel free to do it your way.

    How To - virtualenv

    How To - pyenv-virtualenv


  1. Clone this repository
git clone git@github.com:thamyresmoraes/Ze-delivery.git`

  1. Go to project folder
cd ze-challenge`

  1. Install and create virtualenv
pyenv install 3.8.5
pyenv virtualenv 3.8.5 ze-test
pyenv activate ze-test

  1. Install dependencies
 pip install -r requirements.txt
 python setup.py develop

Run tests

UI

~\ze-challenge\ui-automation

    robot -v BROWSER:Chrome -i update_value -d target features

API

~/ze-challenge/behave_api__test/features

   behave -t @previsao_do_tempo
   behave -t @consultar_cidade

*Check your API_KEY https://home.openweathermap.org/api_keys