Fork para Academy 2024-2S - Basic Automation Testing
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 10+ with Cucumber boilerplate project.
Integrated with:
- https://github.com/badeball/cypress-cucumber-preprocessor
- https://github.com/bahmutov/cypress-esbuild-preprocessor
- https://www.npmjs.com/package/multiple-cucumber-html-reporter
- https://github.com/cucumber/json-formatter
- https://github.com/Shelex/cypress-allure-plugin
(+ bundlers: https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples)
- Node JS
- Optional: Java 8 for Allure Reporter
- Optional: Json-formatter for Native Reporter option(depends on your OS: https://github.com/cucumber/json-formatter)
Install project dependencies with: npm i
- Standard Execution: npm run cypress:execution
- Native report(with JSON FORMATTER): Check how to do it in this video: Cucumber BDD Report - YouTube
- Allure Report:
- npm run cypress:execution-allure
- npm run allure:report
- allure open
- You'll get a report like this one: GitHub Page - Allure Report Sample: https://joanesquivel.github.io/cypress-cucumber-boilerplate/