Skip to content

Angi-29/academy2024-cypress-basic

 
 

Repository files navigation

Fork para Academy 2024-2S - Basic Automation Testing

Comandos Utiles

npm init

npm install cypress --save-dev

npm install cypress-donwloadfile

Run Cypress: .\node_modules.bin\cypress open

Comando optativo: npx cypress open

Ante dificultades ejecutar en modo Administrador:

  • Para CMD: ".\node_modules.bin\cypress.cmd install --force"
  • Para Bash: " .\node_modules\.bin\cypress.cmd install --force"

Después ya podrán correr "npm run cy:open"

  • Error de Cypress cache

    Borrar variables de entorno PROXY

    • Borrar configuración de PROXY del proyecto: Desde el proyecto correr el sig comando → npm config list Acá aparecerá una lista: Borrar de la lista el https y el proxy con los siguientes comandos → npm config rm https-proxy → npm config rm proxy
    • Luego borrar node_modules
    • npm cache clean --force
    • npm config set registry https://registry.yarnpkg.com
    • Correr → npm install
    • Instalar Cypress →npm install cypress --save-dev Correr proyecto → (Acá debe levantar el proyecto correctamente)
    • Listo! 🤙🏼

cypress-cucumber-boilerplate-for-e2e-testing

exemplo imagem

Cypress 10+ with Cucumber boilerplate project.

💻 Topics

Integrated with:

(+ bundlers: https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples)

  • 💻 Pre-requisites

  1. Node JS
  2. Optional: Java 8 for Allure Reporter
  3. Optional: Json-formatter for Native Reporter option(depends on your OS: https://github.com/cucumber/json-formatter)

🚀 Install the project

Install project dependencies with: npm i

Run the demo:

  1. Standard Execution: npm run cypress:execution
  2. Native report(with JSON FORMATTER): Check how to do it in this video: Cucumber BDD Report - YouTube
  3. Allure Report:
    1. npm run cypress:execution-allure
    2. npm run allure:report
    3. allure open
    4. You'll get a report like this one: GitHub Page - Allure Report Sample: https://joanesquivel.github.io/cypress-cucumber-boilerplate/

Sample repo to generate an allure report as an artifact using GH Actions

About

Proyecto Cypress.IO usando Javascript y Cucumber para comenzar a automatizar pruebas E2E.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.7%
  • Gherkin 5.3%