This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Confere o status code | |
| [Arguments] ${STATUS_ESPERADO} | |
| Should Be Equal As Strings ${RESPOSTA.status_code} ${STATUS_ESPERADO} | |
| Log Status Code Retornado: ${RESPOSTA.status_code} -- Status Code Esperado: ${STATUS_ESPERADO} | |
| Confere endereço do CEP | |
| [Arguments] ${ENDERECO} | |
| Dictionary Should Contain Item ${RESPOSTA.json()} endereco ${ENDERECO} | |
| Confere bairro do CEP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Realiza requisição do CEP | |
| [Arguments] ${CEP_DESEJADO} | |
| ${RESPOSTA}= Get Request consultaCEP /${CEP_DESEJADO}/?app_key=${APP_KEY}&app_secret=${APP_SECRET} | |
| Log Resposta: ${RESPOSTA.text} | |
| Set Test Variable ${RESPOSTA} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** Settings *** | |
| Library RequestsLibrary | |
| Library Collections | |
| *** Variable *** | |
| ${HOST} https://webmaniabr.com/api/1/cep | |
| ${APP_KEY} njMf2EiyQ17g6C3vLUxk1yEsWTforVqf | |
| ${APP_SECRET} EgpTuUcM93IqHY8icgR3cK6Cn4bOlkQwSlfLd6ryMjrhhwMW | |
| *** Keywords *** |
NewerOlder