- 1 ZTF简介
- 2 ZTF自动化测试框架的主要功能
- 3 如何获得支持
-
4. 快速入门
- 4.1 安装部署
- 4.2 禅道设置
- 4.3 Windows编码和语言设置
- 4.4 常用命令
- 4.5 如何方便地在任意目录中执行ztf命令?
- 5. 用户指南
Selenium
- 2020-04-14 17:20:19
- Aaron Chen
- 1736
- 最后编辑:陈琦 于 2021-01-05 11:00:20
- 分享链接
说明:
- ZTF发行版中包含了一个 PHP的示例脚本,位置在demo/selenium/chrome.php。
- ZTF也 自带了一个相对完整的PHP7 运行时,可以在runtime/ php /php7找到。
- 对于Selenium测试,ZTF打包了Chrome80.x版本的Driver,演示测试脚本会自动启动 runtime/selenium/chrome80.exe的服务。需要其他的Driver,您可从 https://chromedriver.storage.googleapis.com/index.html下载。
执行过程:
- 在Windows系统中安装PHP7,或使用ZTF自带的运行时;
- 下载所需要的Selenium Driver,或使用ZTF自带的 chrome80;
- 编写Selenium测试脚本,保存为php扩展名的文件;
- 使用ZTF执行,如ztf.exe run demo\selenium\chrome.php --interp runtime\php\php7\php.exe,此处使用了 ZTF自带的运行时。