mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 12:30:56 +00:00
|
|
||
|---|---|---|
| .. | ||
| UITest | ||
| .dockerignore | ||
| docker-compose-hub.yml | ||
| Dockerfile | ||
| README.md | ||
UI自动化测试
本项目采用Selenium Grid + Docker + Xunit + Jenkins Pipeline进行UI自动化测试
执行以下命令,可以在本地启动selenium grid环境。本地启动sg后,可以运行单元测试代码,测试代码会将浏览器命令发送给sg,从而执行测试。
启动环境:docker-compose -f docker-compose-hub.yml up -d 停止环境:docker-compose -f docker-compose-hub.yml down
项目中chrome浏览器镜像可以采用debug版镜像,采用debug版镜像后,可以在运行测试时,使用VNC Client远程连接到容器中的浏览器,从而看到浏览器执行命令的过程,这在调试代码时非常有用。
调试浏览器时,可以使用VNC Client连接到容器内部5900端口,连接密码为secret,Chrome-Debug版Dockerfile