First, take a look at the complete project directory structure diagram, as follows:
================== directory Structure ==================
================== directory Structure ==================
Second, explain the role of each directory and file structure:
1.Mztestpro test Project
Mztestpro Test Project
Bbs: |
For storing test cases, test reports, test data, and so on. |
Driver |
Used to store browser drivers. |
Package |
For storing automated test expansion packages, for example: htmltestrunner.py. |
Run_bbs_test: |
Project Main program. Used to run automation use cases. |
Startup.bat: |
Used to start selenium Server. |
Automated test Project description documentation. DOCX: |
Describes the project framework, configuration, and usage instructions. |
2.bbs Catalog
BBS Directory
Data |
This directory is used to store test-related data. |
Report |
For storing the HTML test report, the image directory is created underneath it. |
Test_case: |
Test Case catalog, storing use cases and related modules. |
|
|
3.test_case Directory
Test_case Directory
Models |
Some public configuration functions and public classes are stored in this directory. |
Page_obj: |
This directory is used to hold the Page object for the test case. The default file named "*page.py". |
*_sta.py: |
The test case file. According to the test file matching rules, files named "_sta.py" will be executed as automated test cases. |
"Selenium+python" Automated test catalog and file structure