[Dry goods sharing] Theoretical knowledge of automated testing and related frameworks

automated test

1. Reasons for automated testing:

  a. Low efficiency of black box testing and regression testing

  b. Contingency and uncertainty of manual testing

  c. Insufficient coverage of regression

  d. The quality of delivered products cannot be guaranteed, it all depends on evaluation

  e. The more complex the system, the more problems

  f. Butterfly effect caused by long online time and high component failure rate (more iterations, faster overtime)

2. Problems solved by automated testing:

  1) Improve the response rate after a problem occurs

  2) Reduce regression cost

  3) Improve regression coverage

  4) Improve regression efficiency

  5) Improve the stability of regression

3. Insufficient automated testing:

1) Cannot reduce cost input, but to speed up test result feedback and improve test quality

2) Automation is for regressions and smoke, not for finding bugs

3) The tasteless recording and playback function, visualization is not a good practice

4) Not all functions of all systems are suitable for automated testing

4. Introduction to the automated test framework folder:

Log: log recording and management functions, set different log levels for different situations, to facilitate problem location;

Report: test report generation and management and instant notification, quick response to test results;

Source: The management of configuration files and static resources follows the principle of high cohesion and low coupling;

Common: The management of public functions, methods, and common operations follows the principle of high cohesion and low coupling;

TestCase: test case management function, one function point corresponds to one or more cases, and the coverage rate is improved as much as possible;

TestData: test data management function, separate data and scripts, reduce maintenance costs and improve portability;

TestSuite: test component management function, assemble and build different test frameworks for different scenarios and different needs, and follow the flexibility and scalability of the framework;

Statistics: test result statistics management function, statistics, analysis, comparison and feedback of the results of each test execution, data-driven, providing reference for software optimization and process improvement;

Continuous: The continuous integration environment, that is, the CI environment, includes functions such as test file submission, scan compilation, test execution, report generation and timely notification. Continuous integration is the core of automated testing!

5. Commonly used automated testing frameworks:

5.1: Interface automation testing framework

  1)Java+testNG/Junit+Maven/Ant/Gradle+Jenkins+MySQL+testlink/redmine

  2)python+unittest/pytest+Git+Jenkins+MySQL+testlink/redmine

  3)python+rebot framework+unittest/pytest+Git+Jenkins+MySQL+testlink/redmine

  4)jmeter+Maven/Ant+Jenkins+MySQL+testlink/redmine

5.2: UI automation testing framework

  1)java+selenium/appium+testNG/Junit+Maven/Ant/Gradle+Jenkins+MySQL+testlink/redmine

  2) python+selenium/appium+unittest/pytest+Git+Jenkins+MySQL+testlink/redmine

  3)python+rebot framework+unittest/pytest+Git+Jenkins+MySQL+testlink/redmine 

6. Projects suitable for automated testing:

7. selenium: an automated testing tool applied to the web, supporting multiple platforms, multiple browsers, and multiple languages ​​to achieve automation

advantage:

  1. Open source and free

  2. Multi-browser support: Chrome, Firefox, IE, Edge

  3. Multi-platform support: Linux, Windows, MAC

  4. Multi-language support: Java, python, Ruby, C#, JavaScript, C++

  5. Good support for web interface

  6. Simple (simple API), flexible (development language driver)

  7. Support distributed test case execution

8. Download the browser driver:

Each browser driver download address: Downloads | Selenium

Finally: In order to give back to the die-hard fans, I have compiled a complete software testing video learning tutorial for you. If you need it, you can get it for free【保证100%免费】

Software Testing Interview Documentation

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Ali, Tencent, and Byte, and some Byte bosses have given authoritative answers. Finish this set The interview materials believe that everyone can find a satisfactory job.

Guess you like

Origin blog.csdn.net/jiangjunsss/article/details/131491077