Interface test and electromagnetic lock replacement method and device, electronic equipment and readable medium

By separating the storage of atomic interface configuration files and dynamically updating environment variables, the problems of version control conflicts and test logic errors in the testing and replacement of electromagnetic lock interfaces for rack access control equipment are solved, achieving higher testing accuracy and a lower electromagnetic lock replacement error rate.

CN122152393APending Publication Date: 2026-06-05中信证券股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
中信证券股份有限公司
Filing Date
2026-05-08
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In the existing technology, the testing and replacement methods of electromagnetic lock interfaces for rack access control equipment lead to frequent Git version control conflicts, test scripts cannot be maintained independently, resulting in large and complex files that are prone to operational errors. This can lead to missed or false alarms for electromagnetic lock failures, and an increase in the number of times the rack door cannot be opened or closed normally or the electromagnetic lock is incorrectly triggered and replaced.

Method used

A method of separating storage of atomic interface configuration files and dynamically updating environment variables is adopted. By scanning the preset memory to generate a sequence of atomic interface configuration files, test scripts are executed independently in a sandbox environment for testing, the environment variable pool is dynamically updated, and the relay and lock-changing robotic arm are controlled to replace the electromagnetic lock based on the test results.

Benefits of technology

This reduces the number of times the cabinet door cannot be opened or closed normally or the electromagnetic lock is mistakenly triggered, improves the maintainability and accuracy of the test script, and ensures that the electromagnetic lock is only replaced when it actually fails, thus guaranteeing the normal opening and closing of the cabinet door.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152393A_ABST
    Figure CN122152393A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose an interface test and electromagnetic lock replacement method, device, electronic equipment and readable medium. A specific embodiment of the method comprises: generating an atomized interface configuration file sequence corresponding to test request information; loading an environment variable pool from a preset storage; sequentially for each atomized interface configuration file in the atomized interface configuration file sequence, performing the following test steps: injecting the environment variable pool and the operation configuration parameter information in the atomized interface configuration file into the execution context of an external test script file; updating the current environment variable pool; initiating an operation request to the electromagnetic lock of the cabinet access control equipment; in response to determining that each interface test data generated indicates that the lock control operation test fails, controlling the relay and lock replacement mechanical arm on the cabinet access control equipment to replace the electromagnetic lock with a backup electromagnetic lock. This embodiment reduces the number of times the cabinet door cannot be normally opened or closed or the electromagnetic lock is replaced by mistake.
Need to check novelty before this filing date? Find Prior Art