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!
This mode are configured for the following OS only:
- Ubuntu 18.04
-
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.
- Clone this repository
git clone git@github.com:thamyresmoraes/Ze-delivery.git`
- Go to project folder
cd ze-challenge`
- Install and create virtualenv
pyenv install 3.8.5
pyenv virtualenv 3.8.5 ze-test
pyenv activate ze-test
- Install dependencies
pip install -r requirements.txt
python setup.py develop
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