借鉴架构.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. LangChang_FrameWork/
  2. ├── core/ # 核心基础设施
  3. │ ├── base/ # 基础类
  4. │ │ ├── base_test.py # 测试基类
  5. │ │ ├── base_page.py # 页面对象基类
  6. │ │ ├── base_component.py # 组件基类
  7. │ │ └── singleton.py # 单例模式实现
  8. │ ├── driver/ # 驱动管理
  9. │ │ ├── driver_factory.py # 驱动工厂
  10. │ │ ├── web_driver.py # Web驱动封装
  11. │ │ ├── app_driver.py # App驱动封装
  12. │ │ └── api_client.py # API客户端
  13. │ ├── config/ # 配置管理
  14. │ │ ├── config_manager.py # 配置管理器
  15. │ │ ├── environment.py # 环境配置
  16. │ │ └── constants.py # 常量定义
  17. │ ├── utils/ # 核心工具
  18. │ │ ├── logger.py # 日志工具
  19. │ │ ├── wait_utils.py # 等待工具
  20. │ │ ├── assert_utils.py # 断言工具
  21. │ │ └── data_factory.py # 测试数据工厂
  22. │ └── exceptions/ # 自定义异常
  23. │ ├── framework_exceptions.py
  24. │ └── element_exceptions.py
  25. ├── modules/ # 功能模块
  26. │ ├── web/ # Web自动化
  27. │ │ ├── pages/ # 页面对象
  28. │ │ │ ├── login_page.py
  29. │ │ │ ├── home_page.py
  30. │ │ │ └── ...
  31. │ │ ├── components/ # 页面组件
  32. │ │ │ ├── header.py
  33. │ │ │ ├── sidebar.py
  34. │ │ │ └── ...
  35. │ │ └── locators/ # 元素定位器
  36. │ │ ├── login_locators.py
  37. │ │ ├── home_locators.py
  38. │ │ └── ...
  39. │ ├── api/ # API测试
  40. │ │ ├── clients/ # API客户端
  41. │ │ ├── models/ # 数据模型
  42. │ │ └── schemas/ # 数据模式
  43. │ ├── performance/ # 性能测试
  44. │ │ ├── locust_tests/ # Locust测试
  45. │ │ ├── jmeter_tests/ # JMeter测试
  46. │ │ └── performance_monitor.py # 性能监控
  47. │ ├── security/ # 安全测试
  48. │ │ ├── security_scanner.py # 安全扫描
  49. │ │ ├── vulnerability_check.py # 漏洞检查
  50. │ │ └── security_report.py # 安全报告
  51. │ ├── database/ # 数据库操作
  52. │ │ ├── db_client.py # 数据库客户端
  53. │ │ ├── models/ # 数据模型
  54. │ │ └── queries/ # SQL查询
  55. │ └── mobile/ # 移动端测试
  56. │ ├── app_driver.py # App驱动
  57. │ ├── app_pages/ # App页面
  58. │ └── app_locators/ # App定位器
  59. ├── utils/ # 通用工具
  60. │ ├── report/ # 报告工具
  61. │ │ ├── report_generator.py # 报告生成器
  62. │ │ ├── html_template.html # HTML模板
  63. │ │ └── email_notifier.py # 邮件通知
  64. │ ├── data/ # 数据处理
  65. │ │ ├── data_processor.py # 数据处理
  66. │ │ ├── excel_reader.py # Excel读取
  67. │ │ ├── json_processor.py # JSON处理
  68. │ │ └── csv_processor.py # CSV处理
  69. │ ├── file/ # 文件操作
  70. │ │ ├── file_manager.py # 文件管理
  71. │ │ └── screenshot_manager.py # 截图管理
  72. │ └── other/ # 其他工具
  73. │ ├── date_utils.py # 日期工具
  74. │ ├── string_utils.py # 字符串工具
  75. │ └── random_utils.py # 随机工具
  76. ├── tests/ # 测试用例
  77. │ ├── web_tests/ # Web测试
  78. │ ├── api_tests/ # API测试
  79. │ ├── performance_tests/ # 性能测试
  80. │ ├── security_tests/ # 安全测试
  81. │ ├── database_tests/ # 数据库测试
  82. │ └── mobile_tests/ # 移动端测试
  83. ├── resources/ # 资源文件
  84. │ ├── config/ # 配置文件
  85. │ │ ├── config.yaml # 主配置
  86. │ │ ├── test_data.yaml # 测试数据
  87. │ │ └── environments/ # 环境配置
  88. │ ├── drivers/ # 浏览器驱动
  89. │ ├── test_data/ # 测试数据
  90. │ │ ├── excel/ # Excel数据
  91. │ │ ├── json/ # JSON数据
  92. │ │ └── sql/ # SQL脚本
  93. │ ├── reports/ # 测试报告
  94. │ └── screenshots/ # 测试截图
  95. ├── docs/ # 文档
  96. │ ├── setup.md # 安装指南
  97. │ ├── usage.md # 使用指南
  98. │ └── api_reference.md # API参考
  99. ├── scripts/ # 脚本文件
  100. │ ├── install_dependencies.sh # 安装依赖
  101. │ ├── run_tests.sh # 运行测试
  102. │ └── deploy_framework.sh # 部署框架
  103. ├── requirements.txt # Python依赖
  104. ├── .env.example # 环境变量示例
  105. ├── conftest.py # Pytest配置
  106. └── run_tests.py # 测试运行入口