Software testing must learn python+unittest+requests+HTMLRunner to write interface automation test set

Problem Description: Build an interface test framework to execute use case requests for multiple interfaces with different request modes Implementation steps: ① Create the configuration file config.ini and write some public parameters, such as the basic url of the interface, the path of the test report file, the path of the test data file a ...

Posted on Sun, 19 Sep 2021 20:22:18 -0400 by ahinkley

Redis performance testing practice of testing framework

First of all, let's share a test case of constantly adding key value to Redis. thinking The basic use case design idea is consistent with the previous pressure test, that is, a thread executes a task, then keeps doing something, then uses the thread pool to execute multiple tasks, and finally collects and summarizes the results. From my own ...

Posted on Sat, 18 Sep 2021 14:59:03 -0400 by shinyo

You don't know the simple start of interface testing

The current trend is that when it comes to testing, it must be "interface". In fact, the interface is not mysterious. There is no "interface" in today's applications. Let me talk about some superficial understanding of the interface from this article. A simple interface (demo.php) // File name demo.php // Tell the ...

Posted on Tue, 14 Sep 2021 15:32:06 -0400 by dthomas31uk

Flask Deepness in Initial Practice of Interface Automation

Preface The previous section describes access to flask's simple get request, its combination with requests, how parameters passed in the request are returned, and how POST requests are implemented 1. get Passage Get the last request.py import requests parm = {"username":"Great QA", "password":"123"} url = "http://localhost:5000/login" r ...

Posted on Tue, 14 Sep 2021 14:56:36 -0400 by akravets

requests practice of interface automation preliminary practice

Preface Previous content mainly understand the initial use of requests, how to send requests, and how to carry request parameters. Then, what aspects of the real world are involved in the actual use process? This practice goal: How to master the operation of requests library to cope with the work environment 1. Format the return value? The ...

Posted on Tue, 14 Sep 2021 14:01:03 -0400 by moiseszaragoza

Have you learned the necessary framework knowledge for interface automation testing?

In this chapter, we will learn the @ Test annotation and the use of various parameters in detail. We have created several cases, and @ Test annotation is added to the Test method of each case to identify that the current method is a Test method, and the method with @ Test annotation is the simplest TestNg Test method. Now let's write a basic T ...

Posted on Thu, 02 Sep 2021 20:52:02 -0400 by dustinnoe