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 *** | |
| Documentation Suíte para exemplificar o uso de LOOPS nos testes | |
| ... Os LOOPS devem ser pouco utilizados, mas tem hora que não tem jeito | |
| ... e precisamos dele mesmo, então vamos ver como é! | |
| ... LOOPS: use com moderação! | |
| ... Infelizmente o Loop FOR ainda não tem uma estrutura keyword-driven | |
| ... Mas o criador do Robot já disse que estão estudando uma solução! | |
| *** Variable *** | |
| @{FRUTAS} maça banana uva abacaxi |
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 AutoItLibrary | |
| *** Test Cases *** | |
| Joaninha | |
| Abrir Joaninha | |
| Digitar Defeito | |
| *** Keywords *** | |
| Abrir Joaninha |
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 DateTime | |
| *** Variable *** | |
| ${DATA} 2018-01-16 | |
| *** Test Cases *** | |
| Teste Operações com Datas | |
| ####Pegando a data de hoje e convertendo para formato yyyy-mm-dd | |
| ${TODAY} Get Current Date result_format=%Y-%m-%d |
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
| #### I HAVE MY DEFAULT JSON IN ${CURDIR}/data/input/input_request_body_default.txt | |
| { | |
| "initialDate": "INICIAL_DATE", | |
| "finalDate": "FINAL_DATE", | |
| "filters": {FILTERS}, | |
| "returnFields": [RETURN_FIELDS], | |
| "groupBy": [GROUPBY] | |
| } | |
| #### I MAKE MY MESSAGEM IN EXECUTION TIME |
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 *** | |
| Documentation Exemplo de tipos de variáveis: SIMPLES, LISTAS e DICIONÁRIOS | |
| *** Variable *** | |
| #Simples | |
| ${SIMPLES} Vamos ver os tipos de variáveis no robot! | |
| #Tipo Lista | |
| @{FRUTAS} morango banana maça uva abacaxi |
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
| import base64 | |
| def decode_64_to_string(stringEncoded): | |
| print("Deconding [%s] to string." % stringEncoded) | |
| if not stringEncoded.endswith("=="): | |
| stringEncoded = stringEncoded + "==" | |
| stringDecoded = base64.b64decode(stringEncoded) |
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 *** | |
| Documentation Exemplo de uso de uma Library personalizada e criada por mim em Python | |
| ... Essa library irá decodificar uma string em base64 para UTF-8 | |
| Library ./libraries/decode64.py | |
| *** Test Cases *** | |
| Teste da minha custom library | |
| Decodificar o texto "TWluaGEgZnJhc2UgZGUgdGVzdGUh" | |
| Conferir se o texto decodificado é "Minha frase de teste!" |
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 *** | |
| Documentation Sikuli Library Demo | |
| Test Setup Carrega diretório de imagens | |
| Test Teardown Stop Remote Server | |
| Library SikuliLibrary | |
| *** Variables *** | |
| #As imagens da pasta img devem estar de acordo com a interface do seu PC!!!! Tire os prints necessários! | |
| ${IMAGE_DIR} ${CURDIR}\\img |
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 *** | |
| Documentation Exemplo de uso da Library Faker | |
| Library FakerLibrary | |
| *** Test Cases *** | |
| Imprime exemplos de utilidades da library FakerLibrary | |
| Exemplos relacionados a pessoa | |
| Exemplos relacionados a datas | |
| Exemplos diversos |
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 *** | |
| Documentation Suíte de Exemplo de testes API com o Robot Framework | |
| Resource BDDpt-br.robot | |
| Resource Resource.robot | |
| *** Test Case *** | |
| Cenário 01: Consulta de endereço existente | |
| Dado que esteja conectado no webservice de consultas de CEP | |
| Quando o usuário consultar o CEP "88056-000" | |
| Então deve ser mostrado o endereço "Avenida Luiz Boiteux Piazza" |