CN112817853A - Automatic test method, system and electronic equipment - Google Patents

Automatic test method, system and electronic equipment Download PDF

Info

Publication number
CN112817853A
CN112817853A CN202110131286.7A CN202110131286A CN112817853A CN 112817853 A CN112817853 A CN 112817853A CN 202110131286 A CN202110131286 A CN 202110131286A CN 112817853 A CN112817853 A CN 112817853A
Authority
CN
China
Prior art keywords
test
interface
information
data processing
processing system
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.)
Withdrawn
Application number
CN202110131286.7A
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.)
Beijing Qibao Xinan Technology Co ltd
Original Assignee
Beijing Qibao Xinan Technology Co 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 Beijing Qibao Xinan Technology Co ltd filed Critical Beijing Qibao Xinan Technology Co ltd
Priority to CN202110131286.7A priority Critical patent/CN112817853A/en
Publication of CN112817853A publication Critical patent/CN112817853A/en
Withdrawn 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/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides an automatic test method, a system and electronic equipment, wherein the method comprises the following steps: acquiring alarm information of the data processing system; extracting interface information in the alarm information; automatically selecting a test case to perform interface test and/or user interface test based on the interface information; and generating a test report according to the test result. The invention can effectively solve the problem of long troubleshooting time caused by manually checking the webpage log by service personnel, effectively reduces manual operation, improves testing efficiency, realizes more automatic testing process and further improves system safety.

Description

Automatic test method, system and electronic equipment
Technical Field
The invention relates to the field of computer information processing, in particular to an automatic test method, an automatic test system and electronic equipment.
Background
With the development of software technology, more and more software provides services for users through platforms, and a third party can customize required services according to platform provided interfaces, so that the software often relates to interface testing nowadays. Interfaces are predefined functions that are intended to provide applications and developers the ability to access a set of routines based on certain software or hardware without having to access source code or understand the details of the internal workings. The interface test is a test of submitting input data to an interface, obtaining a return result and analyzing whether the result meets expectations. Various system commands, test tools, and even programming techniques may be involved in the interface testing.
At present, there are two basic ways for the interface automation test. The first way is to package each test case as a function and then to automate the interface function test by calling the function. The other mode is that all test cases are packaged into a file, and then an automatic script reads the test cases one by one to complete the interface test. In addition, the existing automated tests may be divided into an automated test of a unit layer, an automated test of an integration/interface layer, and an automated test of a User Interface (UI) layer. In addition, in the existing automatic test flow, automatic tests of different levels are independently performed. For example, a common UI automation test framework can only unilaterally implement UI tests on a client, and when a UI test operation involves background logic such as interface call, the UI test operation is often implemented by manually executing a request interface, which results in a great deal of manual operations. In addition, after receiving the production environment alarm, service personnel manually check the logs and troubleshoot the problems one by one, and the problems of long troubleshooting time and the like exist due to huge log content.
Therefore, there is a need to provide a more automated automatic test method.
Disclosure of Invention
In order to effectively reduce manual operation, save time and resources, improve the testing efficiency and realize a more effective and faster automatic testing process. The invention provides an automatic test method, which is used for automatically positioning and testing errors of a data processing system running on line, wherein the data processing system comprises a server, a data interface and a client, and comprises the following steps: acquiring alarm information of the data processing system; extracting interface information in the alarm information; automatically selecting a test case to perform interface test and/or user interface test based on the interface information; and generating a test report according to the test result.
Preferably, the automatically selecting the test case for the interface test and/or the user interface test further includes: and analyzing and judging the corresponding interface to be tested according to the acquired alarm information and the extracted interface information, automatically selecting a test case, and configuring test parameters for testing.
Preferably, the automatically selecting a test case and configuring test parameters to perform a test includes: and positioning the interface to be tested, the page of the user interface and the name and the position of the page element, triggering a corresponding test case according to the positioning result, and determining to perform the interface test, the user interface test or perform the interface test and the user interface test simultaneously.
Preferably, the triggering of the corresponding test case includes automatically selecting an interface test case and a front-end test case.
Preferably, after generating the test report according to the test result, the method further comprises: and analyzing the test report, and further judging whether to perform secondary test.
Preferably, the generating a test report according to the test result further comprises: and positioning the problem nodes of the interfaces or the user interfaces according to a preset judgment strategy, wherein the preset judgment strategy comprises the problem nodes, reason analysis information and coping strategies corresponding to the interface information and the user interfaces respectively.
Preferably, the acquiring the alarm information of the data processing system further includes: and monitoring the sending information and the response information of each interface and each user interface of the data processing system in real time, and identifying and acquiring the alarm information in the sending information and the response information.
Preferably, the warning message includes an error prompt message, a web page error message, and a parameter error message.
Preferably, the interface information includes an interface calling mode, an interface address, and an interface parameter.
In addition, the present invention also provides an automatic test system, which is used for automatically performing error positioning and testing on a data processing system running on line, wherein the data processing system comprises a server, a data interface and a client, and comprises: the acquisition module is used for acquiring the alarm information of the data processing system; the extraction module is used for extracting the interface information in the alarm information; the test module automatically selects a test case to carry out interface test and/or user interface test based on the interface information; and the generating module is used for generating a test report according to the test result.
Preferably, the system further comprises an analysis and judgment module, wherein the analysis and judgment module analyzes and judges the corresponding interface to be tested according to the acquired alarm information and the extracted interface information, automatically selects a test case, and configures test parameters for testing.
Preferably, the method further comprises the following steps: and positioning the interface to be tested, the page of the user interface and the name and the position of the page element, triggering a corresponding test case according to the positioning result, and determining to perform the interface test, the user interface test or perform the interface test and the user interface test simultaneously.
Preferably, the triggering of the corresponding test case includes automatically selecting an interface test case and a front-end test case.
Preferably, the method further comprises the following steps: and analyzing the test report, and further judging whether to perform secondary test.
Preferably, the method further comprises the following steps: and positioning the problem nodes of the interfaces or the user interfaces according to a preset judgment strategy, wherein the preset judgment strategy comprises the problem nodes, reason analysis information and coping strategies corresponding to the interface information and the user interfaces respectively.
Preferably, the monitoring system further comprises a monitoring module, wherein the monitoring module is used for monitoring the sending information and the response information of each interface and each user interface of the data processing system in real time, and identifying and acquiring the alarm information in the sending information and the response information.
Preferably, the warning message includes an error prompt message, a web page error message, and a parameter error message.
Preferably, the interface information includes an interface calling mode, an interface address, and an interface parameter.
In addition, the present invention also provides an electronic device, wherein the electronic device includes: a processor; and a memory storing computer executable instructions that, when executed, cause the processor to perform the automated testing method of the present invention.
Further, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs which, when executed by a processor, implement the automatic test method of the present invention.
Advantageous effects
Compared with the prior art, the method and the system can acquire the alarm information of the data processing system more quickly and effectively and automatically analyze the alarm information by monitoring each interface and each user interface of the data processing system at regular time; the problem corresponding interface and the user interface can be positioned more quickly and effectively, the problem of long problem troubleshooting time caused by the fact that business personnel manually check the webpage logs can be effectively solved, manual operation is effectively reduced, and testing efficiency is improved; the method can realize a more automatic test process, can realize simultaneous interface test and user interface test, and can automatically generate a test result; the test efficiency can be further improved, the system safety can be further improved, and the test efficiency can be further improved.
Drawings
In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects obtained more clear, the following will describe in detail the embodiments of the present invention with reference to the accompanying drawings. It should be noted, however, that the drawings described below are only illustrations of exemplary embodiments of the invention, from which other embodiments can be derived by those skilled in the art without inventive faculty.
FIG. 1 is a flow chart of one example of an automatic test method of the present invention.
FIG. 2 is a flow chart of another example of an automatic test method of the present invention.
FIG. 3 is a flow chart of yet another example of an automatic test method of the present invention.
Fig. 4 is a schematic block diagram of an example of an automatic test system of embodiment 2 of the present invention.
Fig. 5 is a schematic structural block diagram of another example of the automatic test system of embodiment 2 of the present invention.
Fig. 6 is a schematic structural block diagram of still another example of an automatic test system of embodiment 2 of the present invention.
Fig. 7 is a block diagram of an exemplary embodiment of an electronic device according to the present invention.
Fig. 8 is a block diagram of an exemplary embodiment of a computer-readable medium according to the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor systems and/or microcontroller systems.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, or sections, these terms should not be construed as limiting. These phrases are used to distinguish one from another. For example, a first device may also be referred to as a second device without departing from the spirit of the present invention.
The term "and/or" and/or "includes any and all combinations of one or more of the associated listed items.
In view of the above problems, the present invention provides an automatic testing method, which can quickly and effectively obtain the alarm information of the data processing system through timing monitoring, quickly locate the corresponding interface of the problem, automatically generate a test report, repair the problem in time, improve the testing efficiency, and realize a more effective and faster automatic testing process.
In order that the objects, technical solutions and advantages of the present invention will become more apparent, the present invention will be further described in detail with reference to the accompanying drawings in conjunction with the following specific embodiments.
Example 1
Hereinafter, an embodiment of an automatic test method of the present invention will be described with reference to fig. 1 to 3.
FIG. 1 is a flow chart of one example of an automatic test method of the present invention.
As shown in fig. 1, the method of the present invention mainly comprises the following steps.
And step S101, acquiring alarm information of the data processing system.
And step S102, extracting interface information in the alarm information.
And S103, automatically selecting a test case to perform interface test and/or user interface test based on the interface information.
And step S104, generating a test report according to the test result.
In this example, a method for automatically error locating and testing a data processing system operating online includes a server, a data interface, and a client.
First, in step S101, alarm information of the data processing system is acquired.
As shown in fig. 2, a step S201 of performing timing monitoring on each data interface (which may be simply referred to as each interface) and user interface in the data processing system running online is further included.
In step S201, each interface and each user interface in the data processing system running online are monitored at regular time.
For example, a monitor file is written by Python, and monitoring is performed by executing the file.
Preferably, the transmission information and the response information of each interface and each user interface in different production environments, for example, are monitored in real time, and the alarm information in the transmission information and the response information is identified and acquired.
Specifically, the warning information includes error prompt information, web page error information, and parameter error information.
Further, the warning information also includes interface information, client information, and the like.
For example, in an application scenario such as data interaction between a server and a client, warning information may appear, and there may be multiple possible types, and therefore, in order to capture different types of warning information more comprehensively and more quickly, multiple different information capture rules are preset.
For example, in the process of accessing a web page, a common error type is that a resource loading error occurs in the web page, for example, a loading error of resources such as pictures, videos, and documents occurs in the web page, and therefore, an error capturing rule corresponding to the resource loading error is also preset. Specifically, an error tag of a resource loading error is preset, and whether the error tag of the resource loading error exists in the webpage interaction data is monitored to confirm that the resource loading error is monitored.
As another example, the error type of the web page error may be a web request exception. The network request exception is an interface request error when a page is requested from a server, which is commonly called an interface request error when the page is operated. Specifically, the network request exception includes: the method comprises the steps of representing that no network request abnormity of a webpage corresponding to a link exists, namely commonly-called 404 errors; and characterizing network access anomalies due to server errors, namely commonly referred to as 500 errors, network request anomalies such as 400 errors, and the like. Under the above condition, the identification code corresponding to the network request abnormality may be preset, and whether the corresponding identification code exists in the network interaction data or not may be monitored. For example, the identification code is 404 error, 500 error, etc.
Therefore, the alarm information of the data processing system can be acquired more quickly and effectively by carrying out the timing monitoring on each interface and each user interface.
It should be noted that the above description is only given by way of example, and the present invention is not limited thereto.
Next, in step S102, interface information in the alarm information is extracted.
In this example, when the warning information is monitored, the monitoring analysis module automatically analyzes the warning information and extracts the loan information corresponding to the error.
For example, Python is used to write an analyzer file, and the monitoring and analyzing module implements an automatic analyzing function by executing the file.
Specifically, the interface information includes an interface calling mode, an interface address, and an interface parameter.
For example, when 5 production environments are running in the data processing system running online, and a warning message (500 errors in this example) is detected in the interaction data between the client and the server in the second production environment, the warning message is automatically analyzed to extract the interface information in the warning message, and the warning message and the extracted interface information are sent to the relevant service personnel (e.g., operation and maintenance personnel).
Therefore, the warning information can be automatically analyzed, the problem (or error) corresponding interface and the user interface can be positioned more quickly and effectively, and the problem that the problem troubleshooting time is long due to the fact that business personnel manually check the webpage logs can be effectively solved.
It should be noted that the above description is only given by way of example, and the present invention is not limited thereto.
Next, in step S103, based on the interface information, a test case is automatically selected for interface testing and/or user interface testing.
In this example, a preset test case template is further included for interface testing and/or user interface testing.
Specifically, a first type of test case template for interface testing is preset according to an interface type, a test data type and data volume, an interface calling parameter and the like.
For example, the interface type includes an interface for interaction between the client and the server, a communication interface between the server and the background, and the like.
Furthermore, a second type of test case template for the user interface test is preset according to the test contents, test parameters and the like of the pages and page elements of the user interfaces of different applications.
Furthermore, a third type test case template for interface test and user interface test is preset.
It should be noted that the above description is only given as a preferred example, and the present invention is not limited thereto.
In this example, according to the acquired alarm information and the extracted interface information, the corresponding interface to be tested is analyzed and judged, a test case is automatically selected, and test parameters are configured for testing.
Specifically, based on the analysis and judgment result, a test case is automatically selected from a preset test template, and test parameters are configured to perform corresponding tests.
In another example, based on the interface information extracted in step S102, names and positions of interfaces to be tested, pages of the user interface, and page elements are located.
Preferably, according to the positioning result, automatically triggering the corresponding test case, and determining to perform the interface test, the user interface test or both the interface test and the user interface test.
Specifically, the triggering of the corresponding test case includes automatically selecting an interface test case and a front-end test case, in other words, automatically acquiring a first-type test case template, a second-type test case template, or a third-type test case template.
Therefore, a more automatic test process can be realized, the interface test and the user interface test can be simultaneously carried out, and the test efficiency can be further improved.
It should be noted that the above description is only given by way of example, and the present invention is not limited thereto.
Next, in step S104, a test report is generated based on the test result.
As shown in fig. 3, a step S301 of determining whether to perform a secondary test after generating a test report according to the test result is further included.
In step S301, after generating a test report according to the test result, it is determined whether to perform a secondary test to optimize the generated test report.
Specifically, the test report is analyzed, and whether to perform a secondary test is further determined.
Further, the analyzing the test report comprises: and positioning the problem (or error) node of the interface or the user interface according to a preset judgment strategy, wherein the preset judgment strategy comprises the problem (or error) node, reason analysis information and coping strategy which respectively correspond to each interface information and the user interface.
Preferably, based on the report analysis result, it is determined whether the problem (or error) node of the interface or the user interface is a repairable problem node, and in case that it is determined that the problem node is a repairable problem node, the problem node is repaired in real time, and a secondary test is performed. Therefore, the system safety after repair can be further ensured, and the generated test report can be optimized.
Therefore, the invention can realize more automatic test process, can realize simultaneous interface test and user interface test, and automatically generate test result, thereby further improving system safety and test efficiency.
It should be noted that the above description is only given as an example, and the present invention is not limited to the above description, and other examples may be adaptively adjusted according to actual situations.
The procedures of the above-described method are merely for illustrating the present invention, and the order and number of the steps are not particularly limited. In addition, the steps in the method can be split into two or three steps, or some steps can be combined into one step, and the steps are adjusted according to practical examples.
Compared with the prior art, the method and the system can acquire the alarm information of the data processing system more quickly and effectively and automatically analyze the alarm information by monitoring each interface and each user interface of the data processing system at regular time; the problem corresponding interface and the user interface can be positioned more quickly and effectively, the problem of long problem troubleshooting time caused by the fact that business personnel manually check the webpage logs can be effectively solved, manual operation is effectively reduced, and testing efficiency is improved; the method can realize a more automatic test process, can realize simultaneous interface test and user interface test, and can automatically generate a test result; the test efficiency can be further improved, the system safety can be further improved, and the test efficiency can be further improved.
Those skilled in the art will appreciate that all or part of the steps to implement the above-described embodiments are implemented as programs (computer programs) executed by a computer data processing apparatus. When the computer program is executed, the method provided by the invention can be realized. Furthermore, the computer program may be stored in a computer readable storage medium, which may be a readable storage medium such as a magnetic disk, an optical disk, a ROM, a RAM, or a storage array composed of a plurality of storage media, such as a magnetic disk or a magnetic tape storage array. The storage medium is not limited to centralized storage, but may be distributed storage, such as cloud storage based on cloud computing.
Embodiments of the automatic test system of the present invention are described below, which may be used to perform method embodiments of the present invention. Details described in the system embodiments of the invention should be considered supplementary to the above-described method embodiments; reference is made to the above-described method embodiments for details not disclosed in the system embodiments of the invention.
Example 2
Referring to fig. 4, 5 and 6, the present invention further provides an automatic test system 400 for automatically performing error location and test on a data processing system running online, where the data processing system includes a server, a data interface and a client, and includes: an obtaining module 401, configured to obtain alarm information of the data processing system; an extracting module 402, configured to extract interface information in the alarm information; the test module 403 is used for automatically selecting a test case to perform interface test and/or user interface test based on the interface information; the generating module 404 generates a test report according to the test result.
As shown in fig. 5, the apparatus further includes an analysis and judgment module 501, where the analysis and judgment module 501 analyzes and judges a corresponding interface to be tested according to the acquired alarm information and the extracted interface information, automatically selects a test case, and configures test parameters for testing.
Preferably, the method further comprises the following steps: and positioning the interface to be tested, the page of the user interface and the name and the position of the page element, triggering a corresponding test case according to the positioning result, and determining to perform the interface test, the user interface test or perform the interface test and the user interface test simultaneously.
Preferably, the triggering of the corresponding test case includes automatically selecting an interface test case and a front-end test case.
Preferably, the method further comprises the following steps: and analyzing the test report, and further judging whether to perform secondary test.
Preferably, the method further comprises the following steps: and positioning the problem nodes of the interfaces or the user interfaces according to a preset judgment strategy, wherein the preset judgment strategy comprises the problem nodes, reason analysis information and coping strategies corresponding to the interface information and the user interfaces respectively.
As shown in fig. 6, the system further includes a monitoring module 601, where the monitoring module 601 is configured to monitor the transmission information and the response information of each interface and each user interface of the data processing system in real time, and identify and acquire alarm information in the transmission information and the response information.
Preferably, the warning message includes an error prompt message, a web page error message, and a parameter error message.
Preferably, the interface information includes an interface calling mode, an interface address, and an interface parameter.
In embodiment 2, the same portions as those in embodiment 1 are not described.
Compared with the prior art, the method and the system can acquire the alarm information of the data processing system more quickly and effectively and automatically analyze the alarm information by monitoring each interface and each user interface of the data processing system at regular time; the problem corresponding interface and the user interface can be positioned more quickly and effectively, the problem of long problem troubleshooting time caused by the fact that business personnel manually check the webpage logs can be effectively solved, manual operation is effectively reduced, and testing efficiency is improved; the method can realize a more automatic test process, can realize simultaneous interface test and user interface test, and can automatically generate a test result; the test efficiency can be further improved, the system safety can be further improved, and the test efficiency can be further improved.
Those skilled in the art will appreciate that the modules in the above-described system embodiments may be distributed in the system as described, and that corresponding variations may be made in one or more systems other than the above-described embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Example 3
Embodiments of the electronic device of the present invention are described below, which may be considered as specific physical implementations of the above-described embodiments of the method and system of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or system described above; for details not disclosed in the embodiments of the electronic device of the invention, reference may be made to the above-described method or system embodiments.
Fig. 7 is a block diagram of an exemplary embodiment of an electronic device according to the present invention. An electronic apparatus 200 according to this embodiment of the present invention is described below with reference to fig. 7. The electronic device 200 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, the electronic device 200 is embodied in the form of a general purpose computing device. The components of the electronic device 200 may include, but are not limited to: at least one processing unit 210, at least one memory unit 220, a bus 230 connecting different system components (including the memory unit 220 and the processing unit 210), a display unit 240, and the like.
Wherein the storage unit stores program code executable by the processing unit 210 to cause the processing unit 210 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic device processing method section of the present specification. For example, the processing unit 210 may perform the steps as shown in fig. 1.
The memory unit 220 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)2201 and/or a cache memory unit 2202, and may further include a read only memory unit (ROM) 2203.
The storage unit 220 may also include a program/utility 2204 having a set (at least one) of program modules 2205, such program modules 2205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 230 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 200 may also communicate with one or more external devices 300 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 200, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 200 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 250. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 260. The network adapter 260 may communicate with other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to carry out the above-described methods of the invention.
As shown in fig. 8, the computer program may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution device, system, or apparatus. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or system programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing detailed description of the embodiments has described the objects, solutions, and advantages of the present invention in further detail, it is to be understood that the present invention is not inherently related to any particular computer, virtual machine, or electronic device, but may be implemented in various general-purpose systems. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.

Claims (10)

1. An automatic test method is used for automatically positioning and testing errors of a data processing system running on line, wherein the data processing system comprises a server, a data interface and a client, and the method is characterized by comprising the following steps:
acquiring alarm information of the data processing system;
extracting interface information in the alarm information;
automatically selecting a test case to perform interface test and/or user interface test based on the interface information;
and generating a test report according to the test result.
2. The automatic testing method of claim 1, wherein the automatically selecting a test case for interface testing and/or user interface testing further comprises:
and analyzing and judging the corresponding interface to be tested according to the acquired alarm information and the extracted interface information, automatically selecting a test case, and configuring test parameters for testing.
3. The automatic testing method of claim 1 or 2, wherein the automatically selecting a test case and configuring test parameters for testing comprises:
and positioning the interface to be tested, the page of the user interface and the name and the position of the page element, triggering a corresponding test case according to the positioning result, and determining to perform the interface test, the user interface test or perform the interface test and the user interface test simultaneously.
4. The automatic testing method of any one of claims 1 to 3, wherein triggering the corresponding test case comprises automatically selecting an interface test case and a front-end test case.
5. The automated testing method of any of claims 1-4, further comprising, after generating a test report based on the test results:
and analyzing the test report, and further judging whether to perform secondary test.
6. The automated testing method of any of claims 1 to 5, wherein the generating a test report from test results further comprises:
and positioning the problem nodes of the interfaces or the user interfaces according to a preset judgment strategy, wherein the preset judgment strategy comprises the problem nodes, reason analysis information and coping strategies corresponding to the interface information and the user interfaces respectively.
7. The automatic test method of any one of claims 1 to 6, wherein the obtaining alarm information for the data processing system further comprises:
and monitoring the sending information and the response information of each interface and each user interface of the data processing system in real time, and identifying and acquiring the alarm information in the sending information and the response information.
8. An automatic test system for automatically performing error location and test on a data processing system running on line, the data processing system comprising a server, a data interface and a client, the automatic test system comprising:
the acquisition module is used for acquiring the alarm information of the data processing system;
the extraction module is used for extracting the interface information in the alarm information;
the test module automatically selects a test case to carry out interface test and/or user interface test based on the interface information;
and the generating module is used for generating a test report according to the test result.
9. An electronic device, wherein the electronic device comprises:
a processor; and the number of the first and second groups,
a memory storing computer-executable instructions that, when executed, cause the processor to perform the automatic test method of any one of claims 1 to 7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the automatic test method of any one of claims 1 to 7.
CN202110131286.7A 2021-01-30 2021-01-30 Automatic test method, system and electronic equipment Withdrawn CN112817853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110131286.7A CN112817853A (en) 2021-01-30 2021-01-30 Automatic test method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110131286.7A CN112817853A (en) 2021-01-30 2021-01-30 Automatic test method, system and electronic equipment

Publications (1)

Publication Number Publication Date
CN112817853A true CN112817853A (en) 2021-05-18

Family

ID=75860482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110131286.7A Withdrawn CN112817853A (en) 2021-01-30 2021-01-30 Automatic test method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112817853A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282499A (en) * 2021-05-31 2021-08-20 长沙市到家悠享家政服务有限公司 Method, system, device and medium for creating test data
CN114466399A (en) * 2021-12-20 2022-05-10 中盈优创资讯科技有限公司 Automatic dial testing method and device for mobile service
CN116541270A (en) * 2023-03-27 2023-08-04 深圳国家金融科技测评中心有限公司 Method and device for testing adaptation verification of operating system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282499A (en) * 2021-05-31 2021-08-20 长沙市到家悠享家政服务有限公司 Method, system, device and medium for creating test data
CN113282499B (en) * 2021-05-31 2024-02-09 长沙市到家悠享家政服务有限公司 Method, system, equipment and medium for creating test data
CN114466399A (en) * 2021-12-20 2022-05-10 中盈优创资讯科技有限公司 Automatic dial testing method and device for mobile service
CN116541270A (en) * 2023-03-27 2023-08-04 深圳国家金融科技测评中心有限公司 Method and device for testing adaptation verification of operating system
CN116541270B (en) * 2023-03-27 2024-01-02 深圳国家金融科技测评中心有限公司 Method and device for testing adaptation verification of operating system

Similar Documents

Publication Publication Date Title
US10872034B2 (en) Method, device and computer program product for executing test cases
US10102113B2 (en) Software test automation systems and methods
CN112817853A (en) Automatic test method, system and electronic equipment
CN112019401B (en) Internet of vehicles application safety testing method, device and system and electronic equipment
CN111209166B (en) Automatic inspection system for B/S architecture service system
CN111309505B (en) Page exception handling method and device and electronic equipment
CN113014445B (en) Operation and maintenance method, device and platform for server and electronic equipment
CN110806970A (en) Client test method and device based on simulation server response and electronic equipment
CN114356785B (en) Data processing method and device, electronic equipment and storage medium
CN110851471A (en) Distributed log data processing method, device and system
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN111309621A (en) Interface test method, system, equipment and storage medium
Wu et al. Assessing the quality of industrial avionics software: an extensive empirical evaluation
CN115514677B (en) Method and system for server dial testing
CN110795338B (en) Front-end and back-end interaction-based automatic testing method and device and electronic equipment
CN114490337A (en) Debugging method, debugging platform, equipment and storage medium
US11449408B2 (en) Method, device, and computer program product for obtaining diagnostic information
CN111309311B (en) Vulnerability detection tool generation method, device, equipment and readable storage medium
CN117667716A (en) Page testing method and device and electronic equipment
CN115237778A (en) Code engineering test method and device, electronic equipment and storage medium
CN117435464A (en) Software testing method and device, electronic equipment and computer readable storage medium
CN113190453A (en) User interface testing method, device, server and medium
CN114116519A (en) Interface test method and device, electronic equipment and storage medium
CN117520201A (en) Reverse ambiguity test method and device, electronic equipment and storage medium
CN115576571A (en) PC OS system installation checking method, system, computer device and storage medium

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210518