当前位置:网站首页>Mastering the cypress command line options is the basis for truly mastering cypress
Mastering the cypress command line options is the basis for truly mastering cypress
2022-07-03 13:44:00 【Open source optimization test】

The essence is recommended :20 Selected cutting-edge theories 、 Technology and experience summary album
master Cypress Command line options , Is really master Cypress The basis of , If you are right about Cypress Command and command options are not well understood , Then you are not enough to use Cypress In enterprise practice, it is very good to produce .
Talk nonsense , Go straight up Cypress Command options table :
Command format cypress run [Option]
| Option( Options ) | Description( describe ) |
|---|---|
--browser, -b | Run with the specified browser name or browser path Cypress |
--ci-build-id | Assign a unique identifier to the current run , To enable grouping or parallelization |
--config, -c | Specify the configuration |
--config-file, -C | Specify profile |
--env, -e | Specify environment variables |
--group | Group the currently running test records |
--headed | Specify browser GUI mode |
--headless | Specify browser headless mode |
--help, -h | Display command help |
--key, -k | Specify secret key |
--no-exit | After performing the test , Do not exit Cypress |
--parallel | Run in parallel through multiple machines |
--port,-p | Appoint Cypress Start port |
--project, -P | Appoint Cypress Project at startup |
--record | Whether the test is recorded |
--reporter, -r | Specify whether to generate Mocha The report |
--reporter-options, -o | Specify generation Mocha Report options |
--spec, -s | Specify the file to run |
--tag, -t | Use tag Identification test |
Cypress example !!!
start-up chrome Browser running Cypress, The order is as follows :
cypress run --browser chrome
or
cypress run -b chrome
or
cypress run --browser /usr/bin/chrome
or
cypress run -b /usr/bin/chrome
notes : The browser can be chrome, chromium, edge, electron, firefox
Specify some configuration of the runtime , For example, specify page loading timeout, File monitoring switch configuration :
cypress run --config pageLoadTimeout=100000,watchForFileChanges=false
notes : Multiple variables are separated by Western commas
Load the specified configuration file to start cypress, Configuration files are generally stored json String text file :
cypress run --config-file tests/cypress-config.json
The others don't give examples one by one , Here are a few key things
1. Cypress configuration option , This is a little bit more , Look directly at the official website documents :
https://docs.cypress.io/guides/references/configuration.html#Intelligent-Code-Completion
2. environment variable , Quite a lot, too , Look directly at the official documents :
https://docs.cypress.io/guides/guides/environment-variables.html#Option-3-CYPRESS
Add me to wechat group to communicate together , Indicate the : The group of , Join wechat group

Last article :Cypress Must understand the asynchronous and synchronous command mechanism
Selected articles
Blockbuster released - Automation framework foundation guide pdf
Bitter leaf observation : Eleven trends in software testing industry
Before automated testing , You should know 10 Piece of advice
Welcome to leave a message at the bottom of the article 、 Discuss 、 communication
边栏推荐
- Bidirectional linked list (we only need to pay attention to insert and delete functions)
- Kivy教程之 如何自动载入kv文件
- IBEM 数学公式检测数据集
- 记录关于银行回调post请求405 问题
- Typeerror resolved: argument 'parser' has incorrect type (expected lxml.etree.\u baseparser, got type)
- 实现CNN图像的识别和训练通过tensorflow框架对cifar10数据集等方法的处理
- 8皇后问题
- [sort] bucket sort
- 服务器硬盘冷迁移后网卡无法启动问题
- Shell timing script, starting from 0, CSV format data is regularly imported into PostgreSQL database shell script example
猜你喜欢

Today's sleep quality record 77 points

MySQL

User and group command exercises

MyCms 自媒体商城 v3.4.1 发布,使用手册更新

NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon

The principle of human voice transformer

Unity embeddedbrowser browser plug-in event communication

Libuv库 - 设计概述(中文版)

Complete deep neural network CNN training with tensorflow to complete picture recognition case 2

18W word Flink SQL God Road manual, born in the sky
随机推荐
Unity embeddedbrowser browser plug-in event communication
Red Hat Satellite 6:更好地管理服务器和云
Spark实战1:单节点本地模式搭建Spark运行环境
Swiftui development experience: the five most powerful principles that a programmer needs to master
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
阿南的疑惑
树的深入和广度优先遍历(不考虑二叉树)
Kivy教程之 盒子布局 BoxLayout将子项排列在垂直或水平框中(教程含源码)
Flutter dynamic | fair 2.5.0 new version features
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
SVN添加文件时的错误处理:…\conf\svnserve.conf:12: Option expected
Today's sleep quality record 77 points
父亲和篮球
RichView TRVStyle ListStyle 列表样式(项目符号编号)
Stack application (balancer)
软件测试工作那么难找,只有外包offer,我该去么?
Task5: multi type emotion analysis
Resource Cost Optimization Practice of R & D team
全面发展数字经济主航道 和数集团积极推动UTONMOS数藏市场
Bidirectional linked list (we only need to pay attention to insert and delete functions)