CN113515447A - System automation test method and device - Google Patents

System automation test method and device Download PDF

Info

Publication number
CN113515447A
CN113515447A CN202110538261.9A CN202110538261A CN113515447A CN 113515447 A CN113515447 A CN 113515447A CN 202110538261 A CN202110538261 A CN 202110538261A CN 113515447 A CN113515447 A CN 113515447A
Authority
CN
China
Prior art keywords
test
configuration file
preset configuration
field
file
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.)
Granted
Application number
CN202110538261.9A
Other languages
Chinese (zh)
Other versions
CN113515447B (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110538261.9A priority Critical patent/CN113515447B/en
Publication of CN113515447A publication Critical patent/CN113515447A/en
Application granted granted Critical
Publication of CN113515447B publication Critical patent/CN113515447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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 embodiment of the application provides a system automation test method and a device, which can also be used in the financial field, and the method comprises the following steps: acquiring a system program file and analyzing codes to obtain analyzed system program codes; determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display; the method and the device can automatically execute the system test operation and ensure the universality of subsystem test when the subsystem is newly added.

Description

System automation test method and device
Technical Field
The application relates to the field of automatic testing, can also be used in the field of finance, and particularly relates to a system automatic testing method and device.
Background
At present, the overseas branch information system of the bank has some special business requirements on the basis of similar functions of most parts. For overseas branch information systems, the current main test method is as follows: when the modification only involves a certain branch, in addition to the overall test of the modification function of the branch with the modification, the related functions of all other branches are also required to be tested to verify whether defects are introduced due to the modification. When the transformation involves all branches, all branch functions need to be tested. The manual test consumes a large amount of manpower, the general automatic test also needs to maintain the automatic scripts of each branch, the test workload is also large, and the input-output ratio is not high.
In summary, at present, there is no automatic testing scheme that can reasonably and efficiently solve the overseas branch information system, and therefore, how to provide a new scheme to solve the above technical problems is a technical problem to be solved urgently in the field.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a system automatic test method and device, which can automatically execute system test operation and ensure the universality of subsystem test when a subsystem is newly added.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a system automation test method, including:
acquiring a system program file and analyzing codes to obtain analyzed system program codes;
and determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display.
Further, the obtaining a system program file and performing code analysis to obtain the analyzed system program code includes:
and acquiring a set programming language file in a system program file and analyzing codes to obtain each original field and corresponding original data value under a target object class in the set programming language file.
Further, before the determining the target test field in the system program code according to the preset configuration file, the method includes:
acquiring a corresponding preset configuration file according to a preset configuration file storage path and system environment information;
and analyzing the preset configuration file to obtain each test field and a corresponding test data value.
Further, the determining a target test field in the system program code according to a preset configuration file includes:
determining a target test field in each original field according to the test field in the preset configuration file;
and performing data comparison on the original data value of the target test field according to the test data value in the preset configuration file, judging that the test result is passed if the comparison is successful, and otherwise, judging that the test result is not passed.
In a second aspect, the present application provides a system automation test apparatus, comprising:
the system code analysis module is used for acquiring a system program file and analyzing codes to obtain the analyzed system program codes;
and the system code testing module is used for determining a target testing field in the system program code according to a preset configuration file, testing the data value of the target testing field according to the preset configuration file, obtaining a system testing result, generating a testing report and visually displaying the testing report.
Further, the system code parsing module comprises:
and the object class analysis unit is used for acquiring a set programming language file in the system program file and analyzing codes to obtain each original field and corresponding original data value in the set programming language file.
Further, still include:
the configuration file acquisition unit is used for acquiring a corresponding preset configuration file according to a preset configuration file storage path and system environment information;
and the configuration file analysis unit is used for analyzing the preset configuration file to obtain each test field and a corresponding test data value.
Further, the system code testing module comprises:
a target test field determining unit, configured to determine a target test field in each original field according to a test field in the preset configuration file;
and the data comparison unit is used for performing data comparison on the original data value of the target test field according to the test data value in the preset configuration file, judging that the test result is passed if the comparison is successful, and judging that the test result is not passed if the comparison is not successful.
In a third aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the system automation test method.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for automated testing of a system as described.
According to the technical scheme, the target test field in each system program code is determined through the reusable configuration file, so that the method and the device can be widely applied to each subsystem, and meanwhile, the comparison automation test is statically performed, and the system test operation is automatically executed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating an automated testing method of a system according to an embodiment of the present disclosure;
FIG. 2 is a second flowchart illustrating an automated system testing method according to an embodiment of the present application;
FIG. 3 is a third flowchart illustrating an automated system testing method according to an embodiment of the present application;
FIG. 4 is a block diagram of an exemplary embodiment of an apparatus for automated testing of a system;
FIG. 5 is a second block diagram of an automated system testing apparatus according to an embodiment of the present application;
FIG. 6 is a third block diagram of an automated system testing apparatus according to an embodiment of the present application;
FIG. 7 is a fourth block diagram of an automatic test apparatus of the system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Considering that when the modification only involves a certain subsystem, in addition to the overall test of the modification function of the subsystem with modification, the related functions of all other subsystems need to be tested to verify whether defects are introduced due to the modification. When all subsystems are involved in the modification, all subsystem functions need to be tested. The application provides a system automation test method and device, which can be widely applied to various subsystems, simultaneously statically carry out comparison automation test and automatically execute system test operation.
In order to automatically execute a system test operation and ensure universality of subsystem tests when a subsystem is newly added, the present application provides an embodiment of a system automation test method, which is described with reference to fig. 1 and specifically includes the following contents:
step S101: and acquiring a system program file and analyzing codes to obtain the analyzed system program codes.
Optionally, the application may obtain a specific programming language file in the system program file to perform code analysis, take a JAVA file as an example, obtain JAVA code contents in the system, and may analyze a corresponding relationship between the original field and the original data value.
Step S102: and determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display.
Optionally, the method and the device for testing the system can predefine a specific target test field and a corresponding target data value which need to be tested on the system by presetting a configuration file, and during specific operation, the stored configuration file can be read according to a file path and system environment information provided by a user, and configuration data in the configuration file can be read to obtain the target data value of the specified target test field.
Optionally, the test process of the present application may be automatically executed by an automatic execution script program, and the comparison automatic test is statically developed from the root.
Optionally, the target test field in each original field is determined through the test field of the configuration file, and then the original data value of the target test field is subjected to data comparison according to the test data value in the preset configuration file, if the comparison is successful, the test result is determined to be passed, otherwise, the test result is determined to be not passed, and the specific data comparison process may be, for example: and putting the read original data value into a variable A, putting the read target data value of the same test target into a variable B, comparing the values of A and B, and storing the comparison result into a variable C. There are three alignments at this time: perfect match, perfect mismatch, similar.
Meanwhile, the method and the device can also summarize the operation results of all the test targets and generate a visual branch test report in a list form. The list content comprises versions, line names, test targets (such as currencies), comparison results (complete matching, complete mismatching and similarity), and specific original data can be viewed through comparison result links.
As can be seen from the above description, the system automation test method provided in the embodiment of the present application can determine the target test field in each system program code through the reusable configuration file, so that the method can be widely applied to each subsystem, and simultaneously perform the comparison automation test statically, and automatically execute the system test operation.
In order to accurately test a plurality of systems or a plurality of subsystems of a certain system, in an embodiment of the system automation test method of the present application, the step S101 may further include the following steps:
and acquiring a set programming language file in a system program file and analyzing codes to obtain each original field and corresponding original data value under a target object class in the set programming language file.
Optionally, the application may obtain a specific programming language file in the system program file to perform code analysis, take a JAVA file as an example, obtain JAVA code contents in the system, and may analyze a corresponding relationship between the original field and the original data value.
In order to flexibly test the universality of the system, in an embodiment of the system automation test method of the present application, referring to fig. 2, the following contents may be further included before the step S102:
step S201: and acquiring a corresponding preset configuration file according to a preset configuration file storage path and system environment information.
Step S202: and analyzing the preset configuration file to obtain each test field and a corresponding test data value.
Optionally, the method and the device for testing the system can predefine a specific target test field and a corresponding target data value which need to be tested on the system by presetting a configuration file, and during specific operation, the stored configuration file can be read according to a file path and system environment information provided by a user, and configuration data in the configuration file can be read to obtain the target data value of the specified target test field.
In order to accurately perform the system test, in an embodiment of the system automation test method of the present application, referring to fig. 3, the step S102 may further include the following steps:
step S301: and determining a target test field in each original field according to the test field in the preset configuration file.
Step S302: and performing data comparison on the original data value of the target test field according to the test data value in the preset configuration file, judging that the test result is passed if the comparison is successful, and otherwise, judging that the test result is not passed.
Optionally, the target test field in each original field is determined through the test field of the configuration file, and then the original data value of the target test field is subjected to data comparison according to the test data value in the preset configuration file, if the comparison is successful, the test result is determined to be passed, otherwise, the test result is determined to be not passed, and the specific data comparison process may be, for example: and putting the read original data value into a variable A, putting the read target data value of the same test target into a variable B, comparing the values of A and B, and storing the comparison result into a variable C. There are three alignments at this time: perfect match, perfect mismatch, similar.
In order to automatically execute the system test operation and ensure the universality of the subsystem test when a subsystem is added, the present application provides an embodiment of a system automation test apparatus for implementing all or part of the contents of the system automation test method, and referring to fig. 4, the system automation test apparatus specifically includes the following contents:
and the system code analysis module 10 is used for acquiring a system program file and analyzing codes to obtain the analyzed system program codes.
The system code testing module 20 is configured to determine a target testing field in the system program code according to a preset configuration file, perform a data value test on the target testing field according to the preset configuration file, obtain a system testing result, generate a testing report, and perform a visual display.
As can be seen from the above description, the system automation test apparatus provided in the embodiment of the present application can determine the target test field in each system program code through the reusable configuration file, so that the apparatus can be widely applied to each subsystem, and simultaneously perform the comparison automation test statically, and automatically execute the system test operation.
In order to accurately test a plurality of systems or a plurality of subsystems of a certain system, in an embodiment of the system automation test apparatus of the present application, referring to fig. 5, the system code analysis module 10 includes:
and the object class analysis unit 11 is configured to obtain a set programming language file in the system program file, perform code analysis, and obtain each original field and a corresponding original data value in the set programming language file.
In order to flexibly test the universality of the system, in an embodiment of the system automation test device of the present application, referring to fig. 6, the following contents are further included:
the configuration file obtaining unit 31 is configured to obtain a corresponding preset configuration file according to a preset configuration file storage path and system environment information.
And a configuration file analyzing unit 32, configured to analyze the preset configuration file to obtain each test field and a corresponding test data value.
In order to accurately perform the system test, in an embodiment of the system automation test apparatus of the present application, referring to fig. 7, the system code test module 20 includes:
and a target test field determining unit 21, configured to determine a target test field in each original field according to the test field in the preset configuration file.
And the data comparison unit 22 is configured to perform data comparison on the original data value of the target test field according to the test data value in the preset configuration file, and determine that the test result is passed if the comparison is successful, or determine that the test result is not passed if the comparison is not successful.
In order to automatically execute a system test operation and ensure universality of subsystem tests when a subsystem is newly added, an embodiment of an electronic device for implementing all or part of contents in the system automatic test method is provided in the present application, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the system automatic testing device and relevant equipment such as a core service system, a user terminal, a relevant database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may be implemented with reference to the embodiments of the system automation test method and the system automation test apparatus in the embodiments, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), an in-vehicle device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the system automation test method may be executed on the electronic device side as described above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 8 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 8, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this FIG. 8 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the system automated test method functions may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step S101: and acquiring a system program file and analyzing codes to obtain the analyzed system program codes.
Step S102: and determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display.
As can be seen from the above description, the electronic device provided in the embodiment of the present application determines the target test field in each system program code through the reusable configuration file, so that the electronic device can be widely applied to each subsystem, and simultaneously performs the comparison automation test statically, and executes the system test operation automatically.
In another embodiment, the system automation test apparatus may be configured separately from the central processing unit 9100, for example, the system automation test apparatus may be configured as a chip connected to the central processing unit 9100, and the functions of the system automation test method may be implemented by the control of the central processing unit.
As shown in fig. 8, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 8; further, the electronic device 9600 may further include components not shown in fig. 8, which may be referred to in the art.
As shown in fig. 8, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, 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 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all the steps in the system automation test method with a server or a client as an execution subject in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the system automation test method with a server or a client as an execution subject in the foregoing embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: and acquiring a system program file and analyzing codes to obtain the analyzed system program codes.
Step S102: and determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display.
As can be seen from the above description, the computer-readable storage medium provided in the embodiment of the present application determines the target test field in each system program code through the reusable configuration file, so that the computer-readable storage medium can be widely applied to each subsystem, and simultaneously performs the comparison automation test statically and executes the system test operation automatically.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, 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 (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 means 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.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for automated testing of a system, the method comprising:
acquiring a system program file and analyzing codes to obtain analyzed system program codes;
and determining a target test field in the system program code according to a preset configuration file, and performing data value test on the target test field according to the preset configuration file to obtain a system test result, generate a test report and perform visual display.
2. The method according to claim 1, wherein the obtaining a system program file and performing code analysis to obtain the analyzed system program code comprises:
and acquiring a set programming language file in a system program file and analyzing codes to obtain each original field and corresponding original data value under a target object class in the set programming language file.
3. The method for automatically testing the system according to claim 2, wherein before determining the target test field in the system program code according to the preset configuration file, the method comprises:
acquiring a corresponding preset configuration file according to a preset configuration file storage path and system environment information;
and analyzing the preset configuration file to obtain each test field and a corresponding test data value.
4. The method for automatically testing the system according to claim 3, wherein the determining the target test field in the system program code according to the preset configuration file comprises:
determining a target test field in each original field according to the test field in the preset configuration file;
and performing data comparison on the original data value of the target test field according to the test data value in the preset configuration file, judging that the test result is passed if the comparison is successful, and otherwise, judging that the test result is not passed.
5. A system automation test device, comprising:
the system code analysis module is used for acquiring a system program file and analyzing codes to obtain the analyzed system program codes;
and the system code testing module is used for determining a target testing field in the system program code according to a preset configuration file, testing the data value of the target testing field according to the preset configuration file, obtaining a system testing result, generating a testing report and visually displaying the testing report.
6. The system automation test device of claim 5 wherein the system code parsing module comprises:
and the object class analysis unit is used for acquiring a set programming language file in the system program file and analyzing codes to obtain each original field and corresponding original data value in the set programming language file.
7. The system automated testing apparatus of claim 6, further comprising:
the configuration file acquisition unit is used for acquiring a corresponding preset configuration file according to a preset configuration file storage path and system environment information;
and the configuration file analysis unit is used for analyzing the preset configuration file to obtain each test field and a corresponding test data value.
8. The system automated testing apparatus of claim 7, wherein the system code testing module comprises:
a target test field determining unit, configured to determine a target test field in each original field according to a test field in the preset configuration file;
and the data comparison unit is used for performing data comparison on the original data value of the target test field according to the test data value in the preset configuration file, judging that the test result is passed if the comparison is successful, and judging that the test result is not passed if the comparison is not successful.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for automated testing of a system according to any of claims 1 to 4 are performed when the program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for automated testing of a system according to any one of claims 1 to 4.
CN202110538261.9A 2021-05-18 2021-05-18 Automatic testing method and device for system Active CN113515447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110538261.9A CN113515447B (en) 2021-05-18 2021-05-18 Automatic testing method and device for system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110538261.9A CN113515447B (en) 2021-05-18 2021-05-18 Automatic testing method and device for system

Publications (2)

Publication Number Publication Date
CN113515447A true CN113515447A (en) 2021-10-19
CN113515447B CN113515447B (en) 2024-04-26

Family

ID=78064445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110538261.9A Active CN113515447B (en) 2021-05-18 2021-05-18 Automatic testing method and device for system

Country Status (1)

Country Link
CN (1) CN113515447B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637634A (en) * 2022-03-04 2022-06-17 珠海海奇半导体有限公司 Method and system for entering chip test mode and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214139A1 (en) * 2006-03-10 2007-09-13 Roach James A System and method for mapping data in a multi-valued data structure
CN110162463A (en) * 2019-04-19 2019-08-23 平安普惠企业管理有限公司 Method for testing software, device and electronic equipment based on automated test tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214139A1 (en) * 2006-03-10 2007-09-13 Roach James A System and method for mapping data in a multi-valued data structure
CN110162463A (en) * 2019-04-19 2019-08-23 平安普惠企业管理有限公司 Method for testing software, device and electronic equipment based on automated test tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637634A (en) * 2022-03-04 2022-06-17 珠海海奇半导体有限公司 Method and system for entering chip test mode and electronic equipment

Also Published As

Publication number Publication date
CN113515447B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN111159049A (en) Automatic interface testing method and system
CN112463634B (en) Software testing method and device under micro-service architecture
CN111897738B (en) Automatic testing method and device based on atomic service
CN110059064B (en) Log file processing method and device and computer readable storage medium
CN113515447B (en) Automatic testing method and device for system
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN111767558A (en) Data access monitoring method, device and system
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN113791984B (en) Automatic interface testing method and device
CN113434423A (en) Interface test method and device
CN114840421A (en) Log data processing method and device
CN114285657A (en) Firewall security policy change verification method and device
CN112905464A (en) Application running environment data processing method and device
CN113076262A (en) Automatic webpage testing method and device
CN113656050A (en) Method and device for generating version number
CN114880229A (en) Batch file testing method and device
CN113609017A (en) Interface test case generation method and device
CN112905491B (en) Software test effectiveness analysis method and device
CN113419953A (en) Test data processing method, device and system
CN114968794A (en) Knowledge graph-based application program automatic testing method and device
CN111930620A (en) Application running environment data processing method and device
CN113050943A (en) Code verification method and device based on local development environment
CN114968792A (en) Method and device for determining influence range of component modification
CN113705830A (en) Data processing method and device based on DPU
CN113110828A (en) Front-end prototype debugging method and device

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
GR01 Patent grant
GR01 Patent grant