Interface test task access request address directing method, system and storage medium

By parsing access request address redirection instructions to generate redirection rules in interface automated testing, intercepting requests and mapping domain names, the problem of binding test cases to environment addresses is solved, the test environment is decoupled and multi-task parallel execution is achieved, manual operation is reduced, and the accuracy and consistency of test results are ensured.

CN122372618APending Publication Date: 2026-07-10FUJIAN TQ DIGITAL

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
FUJIAN TQ DIGITAL
Filing Date
2026-04-10
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing technologies for automated interface testing, test case logic is deeply bound to specific environment addresses, which makes it impossible to directly reuse test assets across different target environments. Manual operations are prone to omissions, erroneous modifications, and incomplete restoration. Furthermore, it cannot support the parallel execution of multiple verification tasks, resulting in environment configuration conflicts and chaotic test results.

Method used

By parsing the preset access request address redirection instructions, access address redirection rules associated with the test task are generated. After intercepting the request, the hostname is mapped to the target domain name and resolved to the target network address, thereby decoupling the test environment configuration from the test case address.

Benefits of technology

It enables temporary and precise redirection of test traffic to the target service endpoint without modifying test cases, reducing manual operations, avoiding modification errors, supporting parallel execution of multiple tasks, and automatically cleaning up configurations after the test is completed, ensuring the credibility and consistency of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122372618A_ABST
    Figure CN122372618A_ABST
Patent Text Reader

Abstract

This application provides a method, system, and storage medium for redirecting access request addresses in interface testing tasks. The method includes: parsing a preset access request address redirection instruction to obtain a target domain name and a target network address; generating access address redirection rules associated with the test task based on the matching relationship between the target domain name and the original access request address of the test case; intercepting access requests in the test task; mapping the hostname in the access request address to the target domain name according to the access address redirection rules; and resolving the target domain name to point to the target network address. This application decouples the interface testing environment configuration from the original address of the test case, allowing temporary verification of new domain names and addresses without modifying the test cases, significantly reducing the workload of modifying and restoring interface addresses. The configuration automatically expires after testing, and the entire process is automated without manual intervention, avoiding test environment chaos caused by configuration remnants.
Need to check novelty before this filing date? Find Prior Art