Cypress系列(88)- Cypress.spec 命令详解
命令 详解 系列 88 Cypress spec
2023-09-27 14:25:57 时间
如果想从头学起Cypress 可以看下面的系列文章哦
https://www.cnblogs.com/poloyy/category/1768839.html
作用
返回测试文件的属性
语法格式
Cypress.spec
实际栗子代码
包含了五个属性
注意
这个命令感觉有点奇怪 为啥这样说呢 如果我代码实现这样的话会循环执行很多次 我也不知道为啥 有大佬知道吗
cy.wrap(Cypress.spec).should((obj) { console.log(obj) expect(obj).to.have.property( name , chrome ) expect(obj).to.have.property( absolute , C:/Users/user/Desktop/py/MyCypress/cypress/integration/22_CypressAPI/8_Cypress.spec.js ) expect(obj).to.have.property( relative , cypress\\integration\\22_CypressAPI\\8_Cypress.spec.js ) expect(obj).to.have.property( specType , integration ) })
相关文章
- Linux下top命令详解
- Linux-安装命令01:apt-get命令详解(超详细)【apt-get是Ubuntu默认的包管理工具】
- 【精通Linux系列】服务器之间的telnet与scp命令用法,进程管理命令之ps -ef与ps aux详解
- Linux下的压缩zip,解压缩unzip命令详解及实例
- FINDSTR 命令使用详解
- deepin脚本命令控制屏幕亮度 - 使用DBUS
- vi/vim 命令使用详解
- Yarn 命令详解
- linux lsof命令详解
- Linux curl命令详解
- Docker(9)- docker pull 命令详解
- Cypress系列(76)- cloest() 命令详解
- Cypress系列(78)- getCookie() 命令详解
- Cypress系列(80)- setCookie() 命令详解
- Cypress系列(81)- clearCookie() 命令详解
- Cypress系列(82)- clearCookies() 命令详解
- Cypress系列(84)- Cypress.arch 命令详解
- Cypress系列(98)- cypress-xpath 插件, xpath() 命令详解
- git 命令小总结
- 全网超详细的Linux iptables命令详解以及详解iptables-save和iptables-restore命令
- 在Mac pro上如何配置adb命令?
- iptables命令详解和举例
- scp命令详解
- linux route命令的使用详解
- Linux top命令的用法详细详解
- Linux下安装软件命令详解