当前位置:网站首页>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
边栏推荐
- untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
- JSP and filter
- Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
- Mycms we media mall v3.4.1 release, user manual update
- Start signing up CCF C ³- [email protected] chianxin: Perspective of Russian Ukrainian cyber war - Security confrontation and sanctions g
- The principle of human voice transformer
- 71 articles on Flink practice and principle analysis (necessary for interview)
- HALCON联合C#检测表面缺陷——HALCON例程autobahn
- Golang — 命令行工具cobra
- PowerPoint 教程,如何在 PowerPoint 中将演示文稿另存为视频?
猜你喜欢

mysql更新时条件为一查询

Can newly graduated European college students get an offer from a major Internet company in the United States?

掌握Cypress命令行选项,是真正掌握Cypress的基础

Annotation and reflection
![[sort] bucket sort](/img/52/95514b5a70cea75821883e016d8adf.jpg)
[sort] bucket sort

Logseq evaluation: advantages, disadvantages, evaluation, learning tutorial

AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!

【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】

Logseq 评测:优点、缺点、评价、学习教程

今日睡眠质量记录77分
随机推荐
Kivy tutorial how to automatically load kV files
Resource Cost Optimization Practice of R & D team
MySQL installation, uninstallation, initial password setting and general commands of Linux
Sequence table (implemented in C language)
SQL Injection (GET/Search)
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
MapReduce实现矩阵乘法–实现代码
SVN添加文件时的错误处理:…\conf\svnserve.conf:12: Option expected
Flutter动态化 | Fair 2.5.0 新版本特性
双向链表(我们只需要关注插入和删除函数)
JS convert pseudo array to array
今日睡眠质量记录77分
Introduction to the implementation principle of rxjs observable filter operator
windos 创建cordova 提示 因为在此系统上禁止运行脚本
Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
logback日志的整理
Smbms project
The reasons why there are so many programming languages in programming internal skills
Swiftui development experience: the five most powerful principles that a programmer needs to master
Red Hat Satellite 6:更好地管理服务器和云