当前位置:网站首页>[automated test] cypress manual
[automated test] cypress manual
2022-06-13 05:44:00 【ANKG】
Cypress manual
1、 install
Front end automation 、 Interface automation 、 Test Driven Development Model (TDD)
// Install... In an empty project
npm init
npm i cypress -D
// First automatic to C Disk directory 【C:\Users\zak\AppData\Local\Cypress\Cache\9.6.1\*】
// If the program file is not generated automatically , Just put cypress The dependency package of , Manually install by relying on the package :
node_modules/.bin/cypress install
2、 End to end (e2e)
npx cypress open
Or through configuration ·package.json
, Use npm yarn
perform :
{
"scripts": {
"test-e2e":"cypress open"
}
}
3、 Component testing
yarn add @cypress/[email protected] @cypress/vite-dev-server --dev
yarn cypress open-ct
边栏推荐
- Browser screenshot method (long screenshot, node screenshot, designated area screenshot)
- How to Algorithm Evaluation Methods
- 1 Introduction to drools rule engine (usage scenarios and advantages)
- 通过命令行创建harbor镜像库
- Dynamic programming - longest common substring
- About Evaluation Metrics
- Service architecture diagram of Nacos series
- OpenGL mosaic (VIII)
- Wampserver (MySQL) installation
- Implementation of concurrent programming locking
猜你喜欢
KVM hot migration for KVM virtual management
About Evaluation Metrics
MongoDB 多字段聚合Group by
Byte buddy print execution time and method link tracking
安装harbor(在线|离线)
20 flowable container (event sub process, things, sub process, pool and pool)
Case - recursive factorial (recursive)
Sentinel series hot spot current limiting
Install harbor (online offline)
MySQL built-in functions
随机推荐
Three paradigms of MySQL
Small project - household income and expenditure software (2)
redis
A simple recursion problem of linked list
Unity game optimization [Second Edition] learning record 6
Create a harbor image library from the command line
12 error end event and terminateendevent of end event
MySQL installation in Linux Environment
[China & some provinces and cities] JSON file for offline map visualization
2020 personal annual summary
How to set the import / export template to global text format according to the framework = (solve the problem of scientific counting)
MySQL built-in functions
Working principle of sentinel series (concept)
One of PowerShell optimizations: prompt beautification
Qmessagebox in pyqt5
Pyqt5 module
mongo
Implementation of concurrent programming locking
基于 Docker Compose 搭建 Nacos 2(使用 MySQL 进行持久化)
Integration of sentinel series Nacos to realize rule synchronization and persistence