How to learn Python automated testing? After reading this! Don't do headless flies

Preface

Many fans sent me a private letter, asking me to publish a complete and systematic Python automated test full-stack learning route, which lasted for half a month. I have compiled a complete set of Python automated test learning route for everyone, and follow through and ensure that I can learn! It can be of great help to self-taught friends!
If you think the text is too boring, I have also recorded a video for you here: Python automated test learning route (including entry to master tutorial)
Python automated testing

The first step: Python programming stage

To master Python or Java language, it is recommended to start with Python.

Basic language knowledge, syntax, functions, modules, input and output, object-oriented programming,

Script writing, standard library, multi-threading, third-party library, external data processing,

unittest, pytest test framework, parameterization, data-driven;

Step 2: Web automation testing phase

Front-end basics: master front-end skills and document object operations; Web automation test: master Web automation test skills based on Python+Selenium;

Learning gains
1. Master the complete Selenium+WebDriver application;
2. Master the two mainstream automated test framework design modes: keyword-driven and PO mode;
3. Independently build a complete set of keyword-driven/POM+Excel+UnitTest+BeautifulReport +Yaml+distributed+multi-threaded automated UI testing framework;
4. To achieve a more advanced WebUI automated distributed testing architecture to build and run, and multi-threaded to efficiently realize the batch operation of use cases;

Step 3: Interface automation stage

Master the automated testing skills of Python interfaces; implement a complete automated testing framework;

Learning gains:
1. Fully integrate the enterprise-level Flask interface framework to explain
the interface automation test skills based on the Requests library; 2. Master the complete interface automation test skills, and master the principles of the HTTP protocol;
3. Master the test implementation of the associated interface;
4. Independence Build a complete set of automated interface test framework based on keyword-driven+Excel+UnitTest+BeautifulReport+Yaml+distributed+multi-thread;
5. Realize more advanced mass interface automation test implementation;

Step 4: PyTest and CI for advanced automated testing

PyTest framework continuous integration interface and UI framework integration

Learning gains:
1. Master the full application of the mainstream PyTest testing framework and upgrade the original framework;
2. Master the implementation of PyTest+ Allure;
3. Master Jenkins continuous integration, and combine the testing framework to achieve enterprise-level automated testing;
4. Form the original independent WebUI, APPUI, and interface automated testing frameworks into a set of automated testing frameworks that are completely yours;

Advantages of Python automated testing:

  1. Avoid duplication of work: For software with complete and mature functions, every time a new version is released, most of the functions and interfaces are similar or identical to the previous version. This part of the function is particularly suitable for automated testing, so that the test can reach each test. The purpose of the feature.
  2. Improve test efficiency: For example, the development cycle of a project is only a few months, and during the test period, a version is released every 2 days for testers to test. There are thousands of function points in a system, and manual testing is Very time-consuming and cumbersome, this will inevitably make the test inefficient.
  3. Ensure consistency and repeatability of each test: Since the scripts run by each automated test are the same, the tests performed each time are consistent, which is difficult for humans to do.
  4. Better use of resources: Weekend/night. The ideal automated test can run completely automatically as planned. In the case where developers and testers cannot implement three shifts,
    automated testing can do this task, and it can be performed on weekends and evenings. This makes full use of the company's resources and avoids waiting between development and testing.
  5. Solve the contradiction between testing and development: Usually in the final stage of development, it enters the integration test stage. Since there are fewer errors in the test system at the beginning of each release, the developers have time to wait for the testers to test for errors. In fact, there are more contradictions in the development model with a short iteration cycle, but automated testing can solve the main contradiction.

The above is the entire content of this article. If you want to know more about Python automated testing knowledge, please follow me~
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_40214204/article/details/115335161