# CnodeTest_python **Repository Path**: gitt123456789/CnodeTest_python ## Basic Information - **Project Name**: CnodeTest_python - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-05-02 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目运行 项目根目录下执行 ``` python main.py ``` ## 项目目录 ``` actions 定义一些常用的操作 config 配置文件 data 测试数据 logs 系统运行日志 pom 页面对象 reports 测试报告 testcase 测试用例 util 自定义一些常用的工具类 main.py 程序运行的入口文件 ``` ## 使用 zalenium ``` # Pull docker-selenium docker pull elgalu/selenium # Pull Zalenium docker pull dosel/zalenium # Run it! docker run --rm -ti --name zalenium -p 4444:4444 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /tmp/videos:/home/seluser/videos \ --privileged dosel/zalenium start # Point your tests to http://localhost:4444/wd/hub and run them # Stop docker stop zalenium ``` ## 脚本运行 ``` python main.py ``` ### 实时预览 http://192.168.2.129:4444/grid/admin/live ![image](./docs/images/alive.png) ### 运行视频 ![image](./docs/images/screen_record.png) ## zalenium 环境配置 1. [安装虚拟机以及centos7](./docs/1install_centos.md) 2.1 [vmware配置CentOS7 IP](./docs/2.1config_ip.md) 2.2 [VM virtualbox 配置CentOS7 IP](./docs/2.2config_ip.md) 3. [安装Docker](./docs/3install_docker.md)