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
| # Usando a DatabaseLibrary, instale o driver cx_Oracle (pip install cx-Oracle) e conecte assim: | |
| Teste DatabaseLibrary | |
| Connect To Database Using Custom Params cx_Oracle '${DB_USER}/${DB_PWD}@${DB_HOST}:${DB_PORT}/${DB_SID}' | |
| # Só lembrando que para pegar o ${DB_SID}, pode estar escrito "SID" ou "service_name" lá no tnsnames.ora | |
| # Provavelmente vai dar algum erro de oracle client, se der, você terá que baixar esse client e mapear nas variáveis de ambiente do seu S.O. | |
| # No Windows é https://download.oracle.com/otn_software/nt/instantclient/19900/instantclient-basic-windows.x64-19.9.0.0.0dbru.zip, baixa, | |
| # descompacta, joga numa pasta e mapeia essa pasta como variável de ambiente |
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 HASHs dos documentos | |
| [Arguments] ${PATH_PDF_GABARITO} ${PATH_PDF_RETORNADO} ${ID_DOC_REMOTO} | |
| ## Mantenho os PDFs originais em uma pasta temporária, caso o teste falhe eles | |
| ## serão publicados nos artefatos para verificação, caso contrário apagaremos eles | |
| ${PATH_ORIGINAL_GABARITO} Set Variable ${PATH_RESULTS}/DocsPDFComFalha/${TEST TAGS[0]}/${ID_DOC_REMOTO}_gabarito.pdf | |
| ${PATH_ORIGINAL_RETORNADO} Set Variable ${PATH_RESULTS}/DocsPDFComFalha/${TEST TAGS[0]}/${ID_DOC_REMOTO}_retornado.pdf | |
| Copy File ${PATH_PDF_GABARITO} ${PATH_ORIGINAL_GABARITO} | |
| Move File ${PATH_PDF_RETORNADO} ${PATH_ORIGINAL_RETORNADO} |
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 SeleniumLibrary | |
| Test Teardown Close Browser | |
| *** Variables *** | |
| ## No Windows coloque barra dupla assim como mostra o exemplo abaixo! | |
| ${FILE} C:\\projetos\\meu_arquivo_qualquer.txt | |
| *** Test Cases *** | |
| Teste Upload |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> | |
| <Body> | |
| <consultarAvisosPendentes xmlns=""> | |
| <idConsultante>ID_DEPOIS</idConsultante> | |
| <dataReferencia>02072019</dataReferencia> | |
| <senhaConsultante>9999999</senhaConsultante> | |
| <outroParametro nome="atendimentoPlantao" valor="false">false</outroParametro> | |
| <outroParametro nome="urgente" valor="true">true</outroParametro> | |
| <outroParametro nome="mayara" valor="QA">true</outroParametro> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <SOAP-ENV:Body> | |
| <consultarAvisosPendentes> | |
| <idConsultante>ID_ANTES</idConsultante> | |
| <senhaConsultante>12345678</senhaConsultante> | |
| <dataReferencia>19000101000000</dataReferencia> | |
| <outroParametro valor="false" nome="atendimentoPlantao">false</outroParametro> | |
| <outroParametro valor="true" nome="urgente">true</outroParametro> | |
| </consultarAvisosPendentes> |
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 OperatingSystem | |
| Library String | |
| Library XML | |
| *** Keywords *** | |
| Manipular e conferir XML | |
| ############ OPÇÃO 01 - Manipular como STRING ############ | |
| ### Pegue um XML no diretório, armazene em uma variável e manipule como STRING | |
| ${XML_CONTENT} Get File xmlBaseExemplo.xml |
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
| APITesting: | |
| stage: Acceptance Tests | |
| artifacts: | |
| when: always | |
| paths: | |
| - /results | |
| - errors.log | |
| expire_in: 1 week | |
| before_script: | |
| - pip install robotframework |
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 *** | |
| Resource MeuResource.robot | |
| *** Test Case *** | |
| Scenario Outline 01 - Frases e sites | |
| [Template] Template Scenario Outline 01 - Sites | |
| # SITE # FRASE | |
| https://www.google.com Google é um site de buscas! | |
| https://www.globo.com Globo é um site de notícias! | |
| https://www.americanas.com Americanas é um site de compras! |
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
| # Passo 01: Instancio uma imagem de SO linux, no caso usei o FEDORA, | |
| # mas pode ser o Ubunto, Alpine, Debian, etc... | |
| # Procure no Docker Hub a imagem que desejar! https://hub.docker.com | |
| FROM fedora:29 | |
| # Passo 02: Vou mapear os volumes (diretórios do container) onde deixarei | |
| # os testes (inputs) e os resultados (outputs). | |
| VOLUME /opt/robotframework/results | |
| VOLUME /opt/robotframework/tests |
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 Faker com dados brasileiros | |
| Library FakerLibrary locale=pt_BR | |
| *** Test Cases *** | |
| Teste dados fakes BRASILEIROS | |
| ${CPF} FakerLibrary.cpf | |
| ${CNPJ} FakerLibrary.cnpj | |
| ${NOME} FakerLibrary.name | |
| ${CIDADE} FakerLibrary.city |
NewerOlder