当前位置:网站首页>【自动化测试】Cypress手册
【自动化测试】Cypress手册
2022-06-13 05:41:00 【ANKG】
Cypress手册
1、安装
前端自动化、接口自动化、测试驱动开发模式(TDD)
// 空项目中安装
npm init
npm i cypress -D
// 首次自动到C盘目录下生成【C:\Users\zak\AppData\Local\Cypress\Cache\9.6.1\*】
// 如果没有自动生成程序文件,只是把cypress的依赖包下好了,就通过依赖包手动安装:
node_modules/.bin/cypress install
2、端到端(e2e)
npx cypress open
或者通过配置·package.json,使用npm yarn 执行:
{
"scripts": {
"test-e2e":"cypress open"
}
}
3、组件测试
yarn add @cypress/[email protected] @cypress/vite-dev-server --dev
yarn cypress open-ct
边栏推荐
- 2 first experience of drools
- [thread / multithread] execution sequence of threads
- Fast power code
- Integer tips
- Implementation of concurrent programming locking
- Use the browser to cut the entire page (take chrome as an example)
- The 13th week of the second semester of sophomore year
- MySQL advanced query
- [reprint] complete collection of C language memory and character operation functions
- Bicolor case
猜你喜欢

List collection concurrent modification exception

Solution to prompt "permission is required to perform this operation" (file cannot be deleted) when win10 deletes a file

Use of natural sorting comparable

Mysql database backup and restore:

890. Find and Replace Pattern

powershell优化之一:提示符美化

Small project - household income and expenditure software (2)

Case - grade sorting - TreeSet set storage

Hainan University Postgraduate Entrance Examination electronic information (085400) landing experience

About Evaluation Metrics
随机推荐
Case - the list set stores student objects and traverses them in three ways
Enhanced for loop
通过命令行创建harbor镜像库
Quartz database storage
1 Introduction to drools rule engine (usage scenarios and advantages)
The problem of flex layout adaptive failure
About Evaluation Metrics
Hump naming and underlining
2021.9.29 learning log MIME type
Compilation croisée helloworld avec cmake
Mysql database crud operation
10 signalstartevent and signalcatchingevent of flowable signal events
Mongodb Multi - field Aggregation group by
[multithreading] thread pool core class -threadpoolexecutor
Input a number and output each digit from high to low
Pychart error resolution: process finished with exit code -1073741819 (0xc0000005)
How to set the import / export template to global text format according to the framework = (solve the problem of scientific counting)
A simple recursion problem of linked list
Pychart professional edition's solution to SQL script error reporting
Cross compile HelloWorld with cmake