[Must read] Python automated test report generation (2)--Automated test report system

Overview

Provide a designated interface to provide testers with a useful system for storing, displaying and sharing test reports.

The main functions include:

1. Judgment test
2. Stress test
3. Response test
4. Safety test

Instructions

The main steps are as follows:

1. Use WeChat to scan the QR code on the homepage to register or log in.
2. [Account Management]-[Project Information] to view the project number
3. [Account Management]-[Project Organization] Send the invitation code to other registered users to share this Organizational information

System Outlook

1. The user uses pyunit or JUnit to do deterministic automated testing (including interface automation, unit automation, interface automation, and operating environment detection automation)

2. Use a unified API interface to send test results to the test automation SAAS service

3. The automated SAAS server then triggers the corresponding webhook to call back to the subsequent system (for example: automated publishing system)

4. Complete continuous integration

Decision test

Overview

The test scenarios and categories of the judgment test here include but are not limited to:

1. Unit testing

2. Interface test

3. UI testing

4. Environmental testing

As long as it involves:

1. Test cases

2. Test suite

3. Test results

4. Test details

Both can use this system to generate reports and store historical test data.

Uplink interface

path:

/testdata/create-test-data/

Requirements: put token in url

Request method: POST

Request parameters:

… code::

{
    
    
    "was_successful": false,
    "skipped": 7,
    "errors": 0,
    "failures": 10,
    "pro_id": "57a835c8c6e905166da94243",
    "pro_version":"1.3.4.5",
    "total": 88,
    "run_time": 51.77724599838257,
    "details": [
        {
    
    
            "status": "failures",
            "note": "AssertionError: 404 != 403 : gt不等于32位,返回404",
            "explain": "gt不等于32位,返回404",
            "test_case": "test_getfrontlib_gt_not32"
        },
        {
    
    },
        {
    
    }
    ]
}

Return value: Success criterion value

Results view

Insert picture description here
Insert picture description here
system introduction

System positioning and usage scenarios:

This system is positioned as a test report system.
There is no code execution system, so you need to write the test code yourself.
You can put the execution system in Jenkins to automatically build and trigger your execution code, and then the test results show that
Jenkins can only display the build history in this system. , And then the system can display the history of the test, just as a supplement

Software testing is the easiest subject in IT-related industries to get started~ It does not require the logical thinking of developers, and does not require operation and maintenance personnel to be on call 24 hours a day. It requires a careful and serious attitude and a broad understanding of IT-related knowledge points. The growth path of each tester from entering the industry to becoming a professional expert can be divided into three stages: software testing, automated testing, and test development engineers.

Insert picture description here

Here are some information I have compiled. If you don’t want to experience the self-study again, you can’t find the information, no one answers the question, and you feel like giving up after a few days, you can add our software testing exchange group 313782132, which contains various software Test data and technical exchanges.

Guess you like

Origin blog.csdn.net/weixin_50271247/article/details/109265422
Recommended