| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # 浏览器配置
- browser:
- type: chrome
- headless: false
- implicit_wait: 10
- explicit_wait: 30
- poll_frequency: 0.5
- window_size: [1920, 1080]
- # 数据库配置
- database:
- driver: mysql
- host: localhost
- port: 3306
- name: test_automation
- user: root
- password: password
- echo: false
- pool_size: 5
- max_overflow: 10
- pool_timeout: 30
- pool_recycle: 3600
- # API配置
- api:
- base_url: https://api.example.com
- timeout: 30
- retry_attempts: 3
- retry_delay: 1
- # 邮件配置
- email:
- smtp_server: smtp.gmail.com
- smtp_port: 587
- username: your_email@gmail.com
- password: your_app_password
- recipients:
- - recipient1@example.com
- - recipient2@example.com
- # 报告配置
- report:
- email_recipients:
- - team@example.com
- email_subject: "自动化测试报告 - {date}"
- report_dir: resources/reports
- # 测试数据配置
- test_data:
- paths:
- - resources/test_data/json
- - resources/test_data/excel
- default_format: json
- # 环境配置
- environment: dev
- # 日志配置
- logging:
- level: INFO
- format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
- file: resources/logs/automation.log
- max_size: 10485760 # 10MB
- backup_count: 5
|