"Selenium+python" Automated test catalog and file structure

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.