当前位置:网站首页>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
边栏推荐
猜你喜欢
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
The principle of human voice transformer
道路建设问题
106. How to improve the readability of SAP ui5 application routing URL
Flutter动态化 | Fair 2.5.0 新版本特性
Flutter dynamic | fair 2.5.0 new version features
Several common optimization methods matlab principle and depth analysis
Internet of things completion -- (stm32f407 connects to cloud platform detection data)
The difference between stratifiedkfold (classification) and kfold (regression)
Kivy tutorial how to automatically load kV files
随机推荐
【被动收入如何挣个一百万】
栈应用(平衡符)
父亲和篮球
Asp. Net core1.1 without project JSON, so as to generate cross platform packages
rxjs Observable filter Operator 的实现原理介绍
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay
File uploading and email sending
Comprehensive evaluation of double chain notes remnote: fast input, PDF reading, interval repetition / memory
今日睡眠质量记录77分
8皇后问题
Open PHP error prompt under Ubuntu 14.04
Task6: using transformer for emotion analysis
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
Golang — template
Flink SQL knows why (16): dlink, a powerful tool for developing enterprises with Flink SQL
Several common optimization methods matlab principle and depth analysis
Ubuntu 14.04 下开启PHP错误提示
Resource Cost Optimization Practice of R & D team
Leetcode-1175.Prime Arrangements
ThreadPoolExecutor realizes multi-threaded concurrency and obtains the return value (elegant and concise way)