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

A simple search engine based on Mysql

preface Some time ago, because of the project requirements, we need to search chat records according to keywords. Isn't this the function of a search engine? So I first thought of ElasticSearch distributed search engine, but for some reasons, the company's server resources are relatively tight, there is no additional machine to deploy a set of ...

Posted on Fri, 10 Sep 2021 03:37:31 -0400 by jahwobbler

Detailed explanation of Vue instance initialization options and configuration objects, front-end development mainstream framework

Example: var vm = new Vue({ data: { a: 1 }, methods: { plus: function () { this.a++ } } }) vm.plus() vm.a // 2 1.4. watch type { [key: string]: string | Function | Object } Details: For an object, the key is the expression to be observed, and the value is the corresponding callback function. The value can ...

Posted on Fri, 10 Sep 2021 01:06:26 -0400 by Ringo

MyBatis source code analysis - Introduction to MyBatis, open your mouth and come

* * [4.1 stay pom.xml Add dependency](about:blank#41_pomxml_276) * [4.2 stay application.yml to configure](about:blank#42_applicationyml_322) * [4.3 mapper file](about:blank#43_mapper_362) * [4.4 Creating user tables and adding user data](about:blank#44__395) * [4.5 Create entity class](about:blank#45__435) ...

Posted on Thu, 09 Sep 2021 19:42:05 -0400 by mrfritz379

Introduction to Spring framework, linux learning video

IoC – reverse of control, which reverses the creation right of the object to Spring!! Using IOC can solve the problem of high program coupling!! Control reversal Suppose I need to do a function. In this function, I need to call the service layer, and then call the dao layer to get the data. In traditional Java EE development, ...

Posted on Thu, 09 Sep 2021 16:05:39 -0400 by huzefahusain

HashMap source code analysis, there are 8 reasons for JVM memory overflow

this.loadFactor = loadFactor; //Returns the power of 2 this.threshold = tableSizeFor(initialCapacity); } Copy code For the above constructor, we need to pay attention to`this.threshold = tableSizeFor(initialCapacity);`This way threshold To the power of 2, not`capacity * load factor`,Of course, this is not a mistake, because at this ti ...

Posted on Thu, 09 Sep 2021 15:44:48 -0400 by ubersmuck

Java foundation - byte stream of IO stream, read through 888 pages of Java King level core classic in three months

* Byte stream reads and writes one byte array at a time to copy pictures and videos FileInputStream fis = new FileInputStream("So Young.mp3"); FileOutputStream fos = new FileOutputStream("copy.mp3"); int len; byte\[\] arr = new byte\[1024 \* 8\]; //Custom byte array while((len = fis.read(arr)) != -1) { ...

Posted on Tue, 07 Sep 2021 23:38:31 -0400 by Xo_

[source code analysis and design mode 2, 40 pictures and texts, I don't believe you can't understand concurrent programming

4. Specific products It implements the interface defined by the abstract product role, which is created by the specific factory. It has a many-to-one relationship with the specific factory. 3, Advantages and disadvantages 1. Advantages The multi-level products associated in the product family can be managed together within the class, ins ...

Posted on Mon, 06 Sep 2021 22:27:26 -0400 by shorty114