当前位置:网站首页>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
边栏推荐
- Flink SQL knows why (XV): changed the source code and realized a batch lookup join (with source code attached)
- Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
- Resource Cost Optimization Practice of R & D team
- 使用tensorflow进行完整的DNN深度神经网络CNN训练完成图片识别案例
- 8皇后问题
- The solution of Chinese font garbled code in keil5
- [redis] cache warm-up, cache avalanche and cache breakdown
- 软件测试工作那么难找,只有外包offer,我该去么?
- Flutter动态化 | Fair 2.5.0 新版本特性
- rxjs Observable filter Operator 的实现原理介绍
猜你喜欢
File uploading and email sending
Annotation and reflection
Logseq 评测:优点、缺点、评价、学习教程
Mysql database basic operation - regular expression
MySQL installation, uninstallation, initial password setting and general commands of Linux
HALCON联合C#检测表面缺陷——HALCON例程autobahn
Flink code is written like this. It's strange that the window can be triggered (bad programming habits)
logback日志的整理
Introduction to the implementation principle of rxjs observable filter operator
Tutoriel PowerPoint, comment enregistrer une présentation sous forme de vidéo dans Powerpoint?
随机推荐
The difference between stratifiedkfold (classification) and kfold (regression)
又一个行业被中国芯片打破空白,难怪美国模拟芯片龙头降价抛售了
道路建设问题
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)
父亲和篮球
编程内功之编程语言众多的原因
【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
php 迷宫游戏
双链笔记 RemNote 综合评测:快速输入、PDF 阅读、间隔重复/记忆
Father and basketball
KEIL5出现中文字体乱码的解决方法
Flutter dynamic | fair 2.5.0 new version features
PowerPoint tutorial, how to save a presentation as a video in PowerPoint?
Annotation and reflection
Unity embeddedbrowser browser plug-in event communication
MySQL installation, uninstallation, initial password setting and general commands of Linux
Flutter dynamic | fair 2.5.0 new version features
PowerPoint 教程,如何在 PowerPoint 中將演示文稿另存為視頻?
Bidirectional linked list (we only need to pay attention to insert and delete functions)
MySQL_ JDBC