CN116244188A - Automatic test method and system for interface isolation control - Google Patents

Automatic test method and system for interface isolation control Download PDF

Info

Publication number
CN116244188A
CN116244188A CN202310031707.8A CN202310031707A CN116244188A CN 116244188 A CN116244188 A CN 116244188A CN 202310031707 A CN202310031707 A CN 202310031707A CN 116244188 A CN116244188 A CN 116244188A
Authority
CN
China
Prior art keywords
anomaly
output result
abnormal
interface
dictionary tree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310031707.8A
Other languages
Chinese (zh)
Inventor
肖玉洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CITIC Aibank Corp Ltd
Original Assignee
CITIC Aibank Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CITIC Aibank Corp Ltd filed Critical CITIC Aibank Corp Ltd
Priority to CN202310031707.8A priority Critical patent/CN116244188A/en
Publication of CN116244188A publication Critical patent/CN116244188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an automatic test method and system for interface isolation control, which are used for configuring a state label for a Mock interface, setting a set for testing by using the state label, classifying defects according to a preset decision model, selectively executing external dependency shielding, and helping to automatically identify reasons of script operation failure through interface isolation control, so that the frequency of manually checking the reasons of the automatic test script operation failure is effectively reduced; the stability of the automatic test is improved, the interaction frequency of the tested system and the real service is ensured, the alarm is given when the real defect is detected, and the proportion of the effective defect found by the automatic test system is improved.

Description

Automatic test method and system for interface isolation control
Technical Field
The invention relates to the technical fields of network testing, automatic testing and Mock data processing, in particular to an automatic testing method and system for interface isolation control.
Background
With the development of the Internet, the automatic test starts to gradually replace manual work to perform part of heavy test work, however, the existing automatic test is easily influenced by external dependent environments, and in the actual test process, the success rate of automatic operation is unstable due to the factors of numerous middle and background services, long calling links, overlapping test network environments and the like, which are relied on by a tested system. About 80% of the failures from the relevant statistics are due to network or relying party service problems, rather than effective defects, which can be a significant amount of time wasted if the reasons for failure of the automated test script to run are only manually addressed. In order to isolate external dependency items of an automated test, a common method is to simulate external dependency services or interfaces by using Mock technology, and tools such as MockServer, moco which are already in the open source can simulate third party services, so as to eliminate the influence of external environments on the automated test. In addition, a set of independent operation environment can be independently built for the automatic test, so that the influence of external dependent service or network environment on the automation is thoroughly isolated.
However, the cost of building a set of independent test environments alone is too high, and the updating and iteration of each system service need to be maintained in real time, which clearly increases the workload of development and testing. For the prior art adopting the Mock technology, the external third party service is simulated to isolate the external dependent environment, and similar schemes can lead the tested system to only interact with the simulated third party service in the automatic test process, so that the system defect caused by the change of the third party service can not be found; or the effectiveness of the Mock data is controlled through the switch, if the switch is closed, the calling party can interact with the real service, and the similar scheme needs the calling party to actively configure the effectiveness of the Mock data, so that the method is not intelligent enough and cannot be directly applied to automatic testing.
Disclosure of Invention
In order to solve the defects in the prior art, the invention provides an automatic test method and system for interface isolation control, which help automatically identify the reasons of script operation failure through interface isolation control, thereby effectively reducing the frequency of manually checking the reasons of the automatic test script operation failure; the stability of the automatic test is improved, the interaction frequency of the tested system and the real service is ensured, the alarm is given when the real defect is detected, and the proportion of the effective defect found by the automatic test system is improved.
In order to achieve the above object, the present invention adopts the technical scheme that:
an automated testing method for interface isolation control, comprising:
s1, configuring a state label for a Mock interface, wherein the state label comprises a normal response interface and an abnormal response interface;
s2, scanning a dock interface state label of the tested system, and forming a test interface set by using all dock interfaces with the state label as an abnormal response interface;
s3, analyzing a test interface set by using a preset decision model, and judging abnormal result classification of the Mock interface, wherein the abnormal result classification comprises one type of abnormality, two types of abnormality and unknown abnormality, the one type of abnormality corresponds to an effective defect of a tested system, the two types of abnormality corresponds to a third party service defect of a non-tested system, and the unknown abnormality corresponds to other defects except the one type of abnormality and the two types of abnormality;
s4, outputting corresponding abnormal information and generating a matched alarm when judging that the abnormal result classification of the Mock interface belongs to one type of abnormality;
s5, when the abnormal result classification of the Mock interface is judged to belong to the class II abnormality, isolating the external dependence corresponding to the Mock interface and re-executing the step S3;
and S6, stopping executing the test and outputting unknown abnormal information when judging that the abnormal result classification of the Mock interface belongs to the unknown abnormality.
Further, the preset decision model includes a packaged AC automaton model.
Further, the packaged AC automaton model is created by the method of:
a1, configuring an abnormal identifier, wherein the abnormal identifier comprises an environment abnormal identifier, a program logic abnormal identifier and other abnormal identifiers;
a2, configuring corresponding identification data according to the abnormal identification to form an abnormal detection model;
a3, respectively constructing corresponding dictionary trees according to different abnormal identifiers of the abnormal detection model;
a4, respectively constructing mismatch pointers for all nodes in the dictionary tree;
a5, configuring a decision set of output results of each dictionary tree.
Further, the configuring the decision set of each dictionary tree output result includes:
setting the value of the dictionary tree output result, wherein the range of the value of the dictionary tree output result is 1 or 0;
and configuring the combined decision of dictionary tree output results among the different identifiers.
Further, the combining decision of the dictionary tree output result among the different identifiers comprises:
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as a class-II anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as other anomalies;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly result is classified as a class-II anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly.
Further, the packaged AC automaton model further includes:
and configuring independent execution threads for each dictionary tree.
The invention also relates to an automatic test system for interface isolation control, which is characterized by comprising:
the state label configuration module is used for configuring and modifying the state label for the dock interface;
the test set generating module is used for scanning the Mock interface state labels of the tested system, and forming a test interface set by taking the state labels as all Mock interfaces of the abnormal response interfaces;
the abnormal classification judging module is used for analyzing the test interface set by using a preset decision model and judging abnormal result classification of the Mock interface;
and the execution feedback module is used for classifying and executing corresponding operations according to the abnormal result of the Mock interface and feeding back matched information.
The invention also relates to a computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the method described above.
The invention also relates to an electronic device, which is characterized by comprising a processor and a memory;
the memory is used for storing a state label and a preset decision model;
the processor is used for executing the method by calling the state label and the preset decision model.
The invention also relates to a computer program product comprising a computer program and/or instructions, characterized in that the computer program and/or instructions, when executed by a processor, implement the steps of the above-mentioned method.
The beneficial effects of the invention are as follows:
by adopting the automatic test method and system for the interface isolation control, the defects of high time complexity and long time consumption of the traditional internet state abnormality detection method are overcome, and the reasons of script operation failure are automatically identified by the aid of the interface isolation control, so that the frequency of manually checking the reasons of the automatic test script operation failure is effectively reduced; the stability of automatic testing is improved, the interaction frequency of a tested system and real service is ensured, the alarm is given when the real defect is detected, the proportion of the effective defect found by the automatic testing system is further improved, and the abnormality detection accuracy is higher. Meanwhile, the method is suitable for being connected into different interface automation test frameworks, and supports analysis and decision-making of the real-time logs generated by the failed use cases in the process of automation operation.
Drawings
FIG. 1 is a flow chart of an automated test method for interface isolation control according to the present invention.
FIG. 2 is a schematic diagram of an automated test system with interface isolation control according to the present invention.
Detailed Description
For a clearer understanding of the present invention, reference will be made to the following detailed description taken in conjunction with the accompanying drawings and examples.
The first aspect of the present invention relates to an automated testing method for interface isolation control, which includes the steps shown in fig. 1, and the method includes:
s1, configuring a state label for the dock interface, wherein the state label comprises a normal response interface and an abnormal response interface so as to distinguish different dock interfaces.
Preferably, for convenience of management, the Mock interface with abnormal response may be stored in an expected operation file, and the Mock interface with normal response needs to be stored in an expected operation service.
The external dependence of the automation system can be isolated by simulating the normal response of the third party interface, so that only the Mock interface of the normal response needs to modify the validity of the interface in real time. The exception response simulation interface is used for exception testing, and because the MockServer matching mechanism exists only for a single caller, the exception response simulation interface can be configured to be effective all the time without dynamic control.
Secondly, the third party interface created by the MockServer needs to be assigned with the system label to which the third party interface belongs, so that batch modification is facilitated.
S2, scanning the state labels of the Mock interfaces of the tested system, and forming a test interface set by using all the Mock interfaces with the state labels as abnormal response interfaces.
Preferably, an updateMockAPi interface is newly added on the basis of a Mock frame, so that the validity of the Mock interface can be modified in batches through a designated system label and is supported for an external caller to use.
S3, analyzing the test interface set by using a preset decision model, and judging abnormal result classification of the Mock interface, wherein the abnormal result classification comprises one type of abnormality, two types of abnormality and unknown abnormality, the one type of abnormality corresponds to an effective defect of a tested system, the two types of abnormality corresponds to a third party service defect of a non-tested system, and the unknown abnormality corresponds to other defects except the one type of abnormality and the two types of abnormality.
Specifically, the preset decision model comprises a packaged AC automaton model, which is preferably created by the following method:
a1, configuring an exception identifier, wherein the exception identifier comprises an environment exception identifier, a program logic exception identifier and other exception identifiers.
A2, configuring corresponding identification data according to the abnormal identification to form an abnormal detection model. The environment anomaly tags comprise common anomaly information keywords generated due to service deployment and network problems; the program logic exception tag stores Java common runtime exceptions; other exception tags (personalized exception tags) store high-frequency error log information of the tested system calling external systems.
A3, respectively constructing corresponding dictionary trees according to different abnormal identifiers of the abnormal detection model. The dictionary tree can utilize the same prefix of the character string to reduce unnecessary character comparison to the greatest extent, and meanwhile, a certain storage space is saved, so that the query efficiency is improved. Preferably 3 dictionary trees may be generated and need only be initialized once.
And A4, respectively constructing mismatch pointers for all nodes in the dictionary tree, and if the target character string is matched with the failure matched pointer at one node, redirecting the target character string to other associated branches, so that redundant retrieval from the beginning is avoided.
A5, configuring a decision set of the output results of each dictionary tree, firstly setting the value of the output result of each dictionary tree, wherein the range of the value of the output result of each dictionary tree is 1 or 0, and then carrying out the combined decision of the output results of each dictionary tree among the configuration abnormal identifiers.
Preferably, for abnormal result classification of the Mock interface, the optional combined decisions include: when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly; when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly; when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly; when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as a class-II anomaly; when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as other anomalies; when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly result is classified as a class-II anomaly; when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly; when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly.
Preferably, in order to further improve the searching speed, each dictionary tree may be configured with an execution thread independent of each other, for example, three threads are started to match different dictionary trees simultaneously, and then asynchronous corresponding processing needs to be performed on the matching results of different threads.
And S4, outputting corresponding abnormal information and generating a matched alarm when judging that the abnormal result classification of the Mock interface belongs to one type of abnormality. At this time, the appointed abnormal information is output and alarmed, which represents that the effective defect of the tested system is found, and the alarm information needs to be sent and related personnel are informed to further check the problem.
And S5, isolating the external dependence corresponding to the Mock interface and re-executing the step S3 when judging that the abnormal result classification of the Mock interface belongs to the class II abnormality. The second class exception represents the called third party service exception or network timeout, and the Mock service needs to be informed to modify the validity of the appointed third party simulation interface first, and the test script is run again after external dependence is isolated.
And S6, stopping executing the test and outputting unknown abnormal information when judging that the abnormal result classification of the Mock interface belongs to the unknown abnormality. The unknown anomalies represent problems found with non-tested systems, such as problems with the test scripts themselves, requiring that execution of the automated test scripts be stopped.
Preferably, the adopted model can be subjected to secondary packaging by using a suitable interface, so that the function of acquiring real-time logs of the automatic script through specified conditions is realized, and the abnormal logs generated by the automatic test script are primarily cleaned.
Another aspect of the present invention also relates to an automated test system for interface isolation control, the structure of which is shown in fig. 2, comprising:
the state label configuration module is used for configuring and modifying the state label for the dock interface;
the test set generating module is used for scanning the Mock interface state labels of the tested system, and forming a test interface set by taking the state labels as all Mock interfaces of the abnormal response interfaces;
the abnormal classification judging module is used for analyzing the test interface set by using a preset decision model and judging abnormal result classification of the Mock interface;
and the execution feedback module is used for classifying and executing corresponding operations according to the abnormal result of the Mock interface and feeding back matched information.
By using the system, the above-mentioned operation processing method can be executed and the corresponding technical effects can be achieved.
The embodiments of the present invention also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments, the computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements all the steps of the method in the above embodiments.
The embodiment of the invention also provides an electronic device for executing the method, which is used as an implementation device of the method, and at least comprises a processor and a memory, wherein the memory is particularly used for storing data required by executing the method and related computer programs, such as a state label, a preset decision model and the like, and all the steps of the implementation method are executed by calling the data and the programs in the memory by the processor, so that corresponding technical effects are obtained.
Preferably, the electronic device may comprise a bus architecture, and the bus may comprise any number of interconnected buses and bridges, the buses linking together various circuits, including the one or more processors and memory. The bus may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., as are well known in the art and, therefore, will not be further described herein. The bus interface provides an interface between the bus and the receiver and transmitter. The receiver and the transmitter may be the same element, i.e. a transceiver, providing a unit for communicating with various other systems over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used to store data used by the processor in performing operations.
Additionally, the electronic device may further include a communication module, an input unit, an audio processor, a display, a power supply, and the like. The processor (or controllers, operational controls) employed may comprise a microprocessor or other processor device and/or logic devices that receives inputs and controls the operation of the various components of the electronic device; the memory may be one or more of a buffer, a flash memory, a hard drive, a removable medium, a volatile memory, a nonvolatile memory, or other suitable means, may store the above-mentioned related data information, may further store a program for executing the related information, and the processor may execute the program stored in the memory to realize information storage or processing, etc.; the input unit is used for providing input to the processor, and can be a key or a touch input device; the power supply is used for providing power for the electronic equipment; the display is used for displaying display objects such as images and characters, and may be, for example, an LCD display. The communication module is a transmitter/receiver that transmits and receives signals via an antenna. The communication module (transmitter/receiver) is coupled to the processor to provide an input signal and to receive an output signal, which may be the same as in the case of a conventional mobile communication terminal. Based on different communication technologies, a plurality of communication modules, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) is also coupled to the speaker and microphone via the audio processor to provide audio output via the speaker and to receive audio input from the microphone to implement the usual telecommunications functions. The audio processor may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor is also coupled to the central processor so that sound can be recorded on the host through the microphone and sound stored on the host can be played through the speaker.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. An automated testing method for interface isolation control, comprising:
s1, configuring a state label for a Mock interface, wherein the state label comprises a normal response interface and an abnormal response interface;
s2, scanning a dock interface state label of the tested system, and forming a test interface set by using all dock interfaces with the state label as an abnormal response interface;
s3, analyzing a test interface set by using a preset decision model, and judging abnormal result classification of the Mock interface, wherein the abnormal result classification comprises one type of abnormality, two types of abnormality and unknown abnormality, the one type of abnormality corresponds to an effective defect of a tested system, the two types of abnormality corresponds to a third party service defect of a non-tested system, and the unknown abnormality corresponds to other defects except the one type of abnormality and the two types of abnormality;
s4, outputting corresponding abnormal information and generating a matched alarm when judging that the abnormal result classification of the Mock interface belongs to one type of abnormality;
s5, when the abnormal result classification of the Mock interface is judged to belong to the class II abnormality, isolating the external dependence corresponding to the Mock interface and re-executing the step S3;
and S6, stopping executing the test and outputting unknown abnormal information when judging that the abnormal result classification of the Mock interface belongs to the unknown abnormality.
2. The method of claim 1, wherein the pre-set decision model comprises a packaged AC automaton model.
3. The method of claim 2, wherein the packaged AC automaton model is created by the method of:
a1, configuring an abnormal identifier, wherein the abnormal identifier comprises an environment abnormal identifier, a program logic abnormal identifier and other abnormal identifiers;
a2, configuring corresponding identification data according to the abnormal identification to form an abnormal detection model;
a3, respectively constructing corresponding dictionary trees according to different abnormal identifiers of the abnormal detection model;
a4, respectively constructing mismatch pointers for all nodes in the dictionary tree;
a5, configuring a decision set of output results of each dictionary tree.
4. The method of claim 3, wherein configuring the decision set for each dictionary tree output result comprises:
setting the value of the dictionary tree output result, wherein the range of the value of the dictionary tree output result is 1 or 0;
and configuring the combined decision of dictionary tree output results among the different identifiers.
5. The method of claim 4, wherein the combining decision of dictionary tree output results between the anomaly identifications comprises:
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 1, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as a class-II anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 0, the anomaly result is classified as other anomalies;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 0, and the output result of other anomaly identification dictionary trees is 1, the anomaly result is classified as a class-II anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 0, the anomaly results are classified as one type of anomaly;
when the output result of the environment anomaly identification dictionary tree is 0, the output result of the program logic anomaly identification dictionary tree is 1, and the output result of other anomaly identification dictionary trees is 1, the anomaly results are classified as one type of anomaly.
6. The method of claim 3, wherein the packaged AC automaton model further comprises:
and configuring independent execution threads for each dictionary tree.
7. An automated testing system for interface isolation control, comprising:
the state label configuration module is used for configuring and modifying the state label for the dock interface;
the test set generating module is used for scanning the Mock interface state labels of the tested system, and forming a test interface set by taking the state labels as all Mock interfaces of the abnormal response interfaces;
the abnormal classification judging module is used for analyzing the test interface set by using a preset decision model and judging abnormal result classification of the Mock interface;
and the execution feedback module is used for classifying and executing corresponding operations according to the abnormal result of the Mock interface and feeding back matched information.
8. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
9. An electronic device comprising a processor and a memory;
the memory is used for storing a state label and a preset decision model;
the processor is configured to perform the method of any one of claims 1 to 6 by invoking a status tag and a preset decision model.
10. A computer program product comprising a computer program and/or instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 6.
CN202310031707.8A 2023-01-10 2023-01-10 Automatic test method and system for interface isolation control Pending CN116244188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310031707.8A CN116244188A (en) 2023-01-10 2023-01-10 Automatic test method and system for interface isolation control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310031707.8A CN116244188A (en) 2023-01-10 2023-01-10 Automatic test method and system for interface isolation control

Publications (1)

Publication Number Publication Date
CN116244188A true CN116244188A (en) 2023-06-09

Family

ID=86634206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310031707.8A Pending CN116244188A (en) 2023-01-10 2023-01-10 Automatic test method and system for interface isolation control

Country Status (1)

Country Link
CN (1) CN116244188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331850A (en) * 2023-12-01 2024-01-02 云筑信息科技(成都)有限公司 Test method combining function test and interface automation test

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331850A (en) * 2023-12-01 2024-01-02 云筑信息科技(成都)有限公司 Test method combining function test and interface automation test
CN117331850B (en) * 2023-12-01 2024-03-15 云筑信息科技(成都)有限公司 Test method combining function test and interface automation test

Similar Documents

Publication Publication Date Title
US20200019488A1 (en) Application Test Automate Generation Using Natural Language Processing and Machine Learning
CN105205003A (en) Automated testing method and device based on clustering system
CN105630685A (en) Method and device for testing program interface
US20090089688A1 (en) Generating test scenarios using reusable triggers indicating graphical user interface (gui) elements and actions
CN105528290A (en) Construction method of script-based embedded software simulation and test integrated platform
CN107911251B (en) Network equipment configuration method, device and medium
CN116244188A (en) Automatic test method and system for interface isolation control
EP3379436A1 (en) Method and apparatus for testing design of satellite wiring harness and signal processing units
CN111651365B (en) Automatic interface testing method and device
CN111444052A (en) Production testing method, system and device thereof
US8762780B2 (en) Conducting an application-aware test in a virtual environment
CN110928796A (en) Automatic change test platform
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN114567558B (en) Method, device, equipment and medium for configuring virtual network card by computer cluster
CN115687156A (en) Jmeter-based interface automatic testing method and device
CN115348200A (en) CAN communication function test method and test system
KR102201845B1 (en) Automation unit test method of multi-task based software and system for the same
US20120167077A1 (en) Bulk data management in a virtual environment
CN112858876A (en) Self-adaptive chip automatic testing method
CN112035300A (en) Server BMC automatic test system, method, storage medium and electronic device
US20230419007A1 (en) System and method for generating encapsulated error signature during functional simulation
US11868766B2 (en) Method and system for identifying duplicate cascading style sheets (CSS) selector declarations
CN112115046B (en) Software fault positioning method, device and terminal
CN115904852B (en) Automatic test method, equipment and medium for data processor
CN114116453B (en) Method, device, equipment and readable medium for testing case association configuration information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination