【文件属性】:
文件名称:nightwatch-demo:用于PTaQ XXVI会议的nightwatch.js演示
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-29 17:45:30
demo nightwatch nightwatchjs JavaScript
守夜演示
用于PTaQ XXVI会议的nightwatch.js演示
先决条件:
将nightwatch.js安装为全局节点模块:
npm install -g nightwatch
克隆该项目并导航到源代码。
git clone https://github.com/tortila/nightwatch-demo.git
cd nightwatch-demo
从现在开始,从该目录中执行所有命令。
准备用于报告和资源的文件夹,从官方来源下载Selenium服务器:
mkdir reports
wget -P resources/ http://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar
运行测试
简单地:
nightwatch
【文件预览】:
nightwatch-demo-master
----assertions()
--------topResultContains.js(1KB)
----pages()
--------search.js(956B)
--------header.js(333B)
--------about.js(402B)
----commands()
--------search.js(330B)
----spec()
--------search.js(965B)
--------ptaq.js(931B)
----LICENSE(18KB)
----README.md(631B)
----nightwatch.json(630B)
----globals.js(161B)
----.gitignore(617B)