Enhancing Httprunner Test Cases: Declaration and Reference of Variables (Part 2)

Enhancing Httprunner Test Cases: Declaration and Reference of Variables (Part 2)

Enhancing Httprunner Test Cases: Declaration and Reference of Variables 1. Variables In HttpRunner, there is support for the declaration (variables) and reference (or{var}) mechanism. Variables can be defined using the variables keyword in both config and step, and can be referenced in test steps using or{var}. The difference is: Variables defined in config are global … Read more

Common HTTP Request Methods and Their Differences

Common HTTP Request Methods and Their Differences

1. Common HTTP Request Methods The core and commonly used methods are as follows: GET Purpose: Request the specified resource. It is only used to retrieve data and should not produce any “side effects” (such as modifying data). Characteristics: The request parameters are directly appended to the URL (query string), with length limitations, and will … Read more

Understanding HTTP Status Codes Beyond 404 and 200

Understanding HTTP Status Codes Beyond 404 and 200

Introduction In web development and daily web browsing, we often encounter various HTTP status codes. These status codes are responses from the server to client requests, providing important information about the request processing status. Below, we will introduce some common HTTP status codes and demonstrate their applications through code examples. 1. Informational Status Codes (1xx) … Read more

HTTP Works, But HTTPS Fails? Learn How to Resolve Your Website’s Encryption Crisis in Three Minutes!

HTTP Works, But HTTPS Fails? Learn How to Resolve Your Website's Encryption Crisis in Three Minutes!

The door is open, but you can’t get in? Your website may be facing HTTPS blockage! Hello everyone, I am the technical steward of the Di Ping Wang style! Recently, many friends have reported: “Why can my website open with HTTP, but it fails with HTTPS?” Don’t panic! Today, I will guide you to the … Read more

Understanding the TCP/IP Protocol

Understanding the TCP/IP Protocol

We can think of the TCP/IP protocol as the “underlying operating system” of the internet—it serves as the “rulebook” for the operation of the internet, enabling countless devices worldwide (phones, computers, servers, routers) to communicate with each other as if they “speak the same language”. Why is TCP/IP Needed? Early computer networks had many different … Read more

Analysis of Answers for Assembly Language Experiment 12

Analysis of Answers for Assembly Language Experiment 12

“Assembly Language” 3rd Edition by Wang Shuang Chapter 12: Internal Interrupts (Page 251) Experiment 12: Writing the Handler for Interrupt 0 Write the handler for interrupt 0, so that when a division overflow occurs, the string “divide error!” is displayed in the center of the screen, and then return to DOS. Requirements: Carefully track and … Read more

Don’t Upgrade the GeoPandas Python Package Lightly

Don't Upgrade the GeoPandas Python Package Lightly

Last week, I updated mycomputersystem and reset mycomputer, reinstalling the Conda environment. Today, while running some previously written code, I couldn’t get the plotting to work correctly. After trying various methods, I finally discovered that the issue was due to updatingGeoPandas to the latest version 1.1.1. Although it was a minor issue, it caused quite … Read more

Chapter 14: Comparing Spiritual Roots to Determine Strength, True Insights Revealed Through Operators

Chapter 14: Comparing Spiritual Roots to Determine Strength, True Insights Revealed Through Operators

Note: I am busy today and do not have time to add images. Chapter 14: Comparing Spiritual Roots to Determine Strength, True Insights Revealed Through Operators Comparing spiritual roots to discern truth from falsehood, code reflects the heart like a mirror.On the path of cultivation, there are many forks; a single phrase can illuminate a … Read more

Design of a General-Purpose Multithreading Middleware in Qt C++

Design of a General-Purpose Multithreading Middleware in Qt C++

For multithreading collaborative scenarios, design ageneral-purpose multithreading middleware that supports thread state management (initialization → startup → running → waiting → stopping), dependency awareness, ordered switching, and error handling. Below is the complete implementation plan. The design goals of the middleware — High versatility: Adapt to various types of threads, reducing expansion costs Versatility: Supports … Read more

C++ Image Processing (Part 1): Introduction & Basic Operations

C++ Image Processing (Part 1): Introduction & Basic Operations

Introduction 1. What is a Digital Image An image can be defined as a two-dimensional function f(x,y), where x and y are spatial (plane) coordinates, and the amplitude of f at any coordinate (x,y) is referred to as the brightness or grayscale of the image at that point. When the values of x, y, and … Read more