Skip to content

Instantly share code, notes, and snippets.

View PauloGoncalvesBH's full-sized avatar
🦻
Working from home

Paulo Gonçalves PauloGoncalvesBH

🦻
Working from home
  • Portugal
View GitHub Profile
@PauloGoncalvesBH
PauloGoncalvesBH / CLA.txt
Created January 31, 2024 15:37
Contributor License Agreement - ServeRest
CLA
@PauloGoncalvesBH
PauloGoncalvesBH / .gitconfig
Last active December 5, 2023 12:30
Git config
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Paulo Gonçalves
email = 29241659+PauloGoncalvesBH@users.noreply.github.com
username = PauloGoncalvesBH
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK7TVWWnsEGW8eWO2HemlxNdMWpuccet4/dTLJxyaFSY
[includeIf "gitdir:~/git/uplink/"]
path = .gitconfig-job
[core]
@PauloGoncalvesBH
PauloGoncalvesBH / exec.js
Created December 9, 2020 17:58
Utilizando exec para executar .exe e pegar mensagem desse executável
exec('./NOME_EXE.exe', (error, stdout, stderr) => {
// se ocorrer algum erro na execução do comando acima ele vai parar a execução do teste
if (error) {
console.error(error.message);
console.error(stderr);
process.exit(1);
}
// você precisa manipular o STDOUT. Como o seu .exe print mensagem no terminal, deve ser possível capturar essa mensagem com o STDOUT.
// Imprime o STDOUT no terminal só pra você ver se é o que quer e se realmente capturou a mensagem.
TestCafe - Taís Mafioleti
Site http://automationpractice.com/index.php
Pré-requisito:
- Conhecer E2E
- Pirâmide de testes
- Básico de Javascript e NPM
Grade: