CN113791939A - Method, system and medium for automatic testing of self-service terminal - Google Patents

Method, system and medium for automatic testing of self-service terminal Download PDF

Info

Publication number
CN113791939A
CN113791939A CN202110915332.2A CN202110915332A CN113791939A CN 113791939 A CN113791939 A CN 113791939A CN 202110915332 A CN202110915332 A CN 202110915332A CN 113791939 A CN113791939 A CN 113791939A
Authority
CN
China
Prior art keywords
test
hardware module
hardware
module
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110915332.2A
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.)
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN202110915332.2A priority Critical patent/CN113791939A/en
Publication of CN113791939A publication Critical patent/CN113791939A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files

Abstract

The invention discloses a method, a system and a medium for automatic testing of a self-service terminal, wherein the method comprises the following steps: acquiring a hardware module and setting a universal interface of the hardware module; executing packaging operation according to the universal interface of the hardware module to obtain a hardware module plug-in; constructing a hardware module configuration file and an integration test configuration file; executing loading operation according to the hardware module configuration file; generating a hardware module list and a hardware module function list according to the integrated trial configuration file; constructing an integrated test flow set; executing hierarchical traversal operation, and executing unified interface calling operation according to a reflection calling method to obtain a test completion flow of a plurality of hardware modules; executing test operation according to the completed test flow to obtain a test result; generating a test report according to the test result; through the mode, the invention realizes the unified automatic test of each hardware module of the self-service terminal, assists related personnel to set up equipment production maintenance work, and improves the working efficiency.

Description

Method, system and medium for automatic testing of self-service terminal
Technical Field
The invention relates to the technical field of self-service terminal testing, in particular to a system, a method and a medium for automatic testing of a self-service terminal.
Background
With the continuous progress and development of scientific technology, key tasks are gradually transferred to self-service terminal equipment for processing in the industries of banks, securities, insurance, communication, electric power and the like. The integrated information system is used for replacing manpower, and meanwhile, the intelligent and simplified self-service terminal equipment is gradually and more tended to develop according to the development direction of the self-service terminal equipment.
Many self-service terminal equipment adopt the tall and erect system of ann as operating system, use tall and erect system of ann as operating system's self-service terminal equipment, possess intelligent, more convenient, high efficiency, low cost, stability advantage such as being difficult for makeing mistakes by force. However, in the continuous development process, some problems are also exposed, and particularly, in the aspects of unit testing, integration testing and the like of each hardware module in the production process of the integrated device, the problems of different manufacturers of each hardware module, complicated firmware models, difficulty in completing the unit testing, integration testing, pressure testing and the like of each module and the integrated device exist. The existing processing scheme can only be developed according to the hardware module conditions of different devices, so that simple unit testing of specific devices is realized, and different types of testing of all modules in all integrated devices by using the same platform cannot be well realized.
Disclosure of Invention
The invention mainly solves the problem that the existing self-service terminal test scheme can not realize the test of different types on all modules in all integrated equipment by using the same platform.
In order to solve the above problems, the present invention adopts a technical solution that: the method for automatically testing the self-service terminal comprises the following steps:
initialization: acquiring a plurality of hardware modules and setting a plurality of hardware module universal interfaces; according to the hardware module universal interface, performing packaging operation on the hardware modules to obtain a plurality of hardware module plug-ins;
constructing a configuration file: constructing a hardware module configuration file according to the parameter information of the hardware module to be tested; constructing an integrated test configuration file according to the test information of the hardware module to be tested;
configuring test information: according to the hardware module configuration file, loading operation is carried out on the hardware module plug-in; generating a hardware module list and a hardware module function list according to the integrated test configuration file; constructing an integrated test flow set according to the hardware module list and the hardware module function list;
and (3) executing the test: executing hierarchical traversal operation on the integrated test flow set, and executing unified interface calling operation on the test information according to a reflection calling method to obtain a plurality of finished test flows of the hardware modules; executing test operation according to the completed test flow to obtain a test result;
and (3) generating a test report: and generating a test report according to the test result.
Further, the step of performing a test further comprises:
and (3) hierarchical traversal: performing hierarchical traversal on the hardware module list and the hardware module function list on the integrated test flow set to obtain test function interfaces of a plurality of hardware modules to be tested;
reflection calling: calling the hardware module universal interfaces of the plurality of test function interfaces according to the reflection calling method to obtain the finished test flow;
binding a general interface: adding the hardware module universal interface to the integrated test flow set according to the hardware module list;
obtaining a test result: and testing the hardware module to be tested according to the completed testing process to obtain the testing result.
Further, the completion test process comprises a plurality of hardware module test processes; the step of obtaining test results further comprises:
acquiring the number of the hardware module test flows in the finished test flow, and judging:
if the number is one, executing the hardware module test flow to obtain the test result;
if the number is more than one, calling a hardware module test flow execution strategy.
Further, the hardware module test flow execution strategy comprises:
numbering a plurality of hardware module test flows according to the number according to the sequence of the hardware module test flows in the completed test flow;
executing a first hardware module test process to obtain a first process result, and judging the first process result:
if the first process result is successful, executing the next hardware module test process;
if the first flow result is failure, executing the test of the hardware module to be tested to finish the judgment operation, and obtaining a judgment result;
if the judgment result is that the hardware module to be tested has completely finished testing, recording the testing result, and entering the step of generating a testing report;
and if the judgment result is that the test of all the hardware modules to be tested is not completed, executing the next hardware module test flow.
Further, the step of executing the test of the hardware module to be tested to complete the judgment operation and obtaining the judgment result further comprises:
acquiring the number of the current hardware module test flow, and comparing the number with the quantity:
if the number is smaller than the number, setting the judgment result as that the test of all the hardware modules to be tested is not completed;
and if the number is equal to the number, setting the judgment result as that the hardware module to be tested has completely finished testing.
Further, the step of acquiring the plurality of hardware modules and setting the universal interfaces of the plurality of hardware modules further comprises:
the method comprises the steps of obtaining a plurality of hardware modules, classifying the hardware modules according to a first rule to obtain a plurality of hardware module groups, and setting a hardware module universal interface for each hardware module group.
Further, the step of executing a loading operation on the hardware module plug-in according to the hardware module configuration file further includes:
and reading the parameter information in the hardware module configuration file, acquiring the corresponding hardware module plug-in according to the parameter information, and loading the hardware module plug-in.
Further, the step of generating a test report further comprises:
storing the test result to the integrated test flow set according to the hardware module list and the hardware module function list;
and traversing and outputting the integrated test flow set to obtain a test report.
A system for automated testing of self-service terminals, comprising: the device comprises an initialization module, a configuration file building module, a test information configuring module, a test executing module and a test report generating module;
the initialization module is used for acquiring a plurality of hardware modules and setting a plurality of hardware module universal interfaces; according to the hardware module universal interface, performing packaging operation on the hardware modules to obtain a plurality of hardware module plug-ins;
the configuration file constructing module is used for constructing a hardware module configuration file according to the parameter information of the hardware module to be tested; constructing an integrated test configuration file according to the test information of the hardware module to be tested;
the configuration test information module is used for executing loading operation on the hardware module plug-in according to the hardware module configuration file; generating a hardware module list and a hardware module function list according to the integrated trial configuration file; constructing an integrated test flow set according to the hardware module list and the hardware module function list;
the execution test module is used for executing hierarchical traversal operation on the integrated test flow set and executing unified interface calling operation on the test information according to a reflection calling method to obtain a plurality of finished test flows of the hardware module; executing test operation according to the completed test flow to obtain a test result;
the test report generation module is used for generating a test report according to the test result;
the execution test module comprises a hierarchical traversal unit, a reflection calling unit, a binding universal interface unit and a test result obtaining unit;
the hierarchical traversal unit is used for performing hierarchical traversal on the hardware module list and the hardware module function list on the integrated test flow set to obtain test function interfaces of a plurality of hardware modules to be tested;
the reflection calling unit is used for calling the hardware module universal interfaces of the plurality of test function interfaces according to the reflection calling method to obtain the finished test flow;
the binding general interface unit is used for adding the hardware module general interface to the integrated test flow set according to the hardware module list;
the test result obtaining unit is used for testing the hardware module to be tested according to the completed test flow to obtain the test result.
The invention also provides a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the method for automatically testing the self-service terminal are realized.
The invention has the beneficial effects that:
1. the automatic testing method of the self-service terminal can realize the functions of uniform unit testing, integrated testing, delivery testing and the like of each hardware module of the self-service terminal, provides uniform interfaces, does not need to carry out specific development testing according to different manufacturers, different models and different versions, reduces the testing cost and improves the testing work efficiency;
2. the automatic testing system of the self-service terminal can realize the utilization of reflection to call a general interface, class loading and plug-in management technology, designs a uniform interface, tests and maintains a hardware module of the self-service terminal, and has strong applicability and high matching degree;
3. the medium for the automatic test of the self-service terminal can realize the storage of the test results of all modules in a specified file format, and is convenient for subsequent inquiry and test flow tracking.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for automated testing of a self-service terminal according to embodiment 1 of the present invention;
FIG. 2 is a flow chart of the test execution steps of the method for automated testing of a self-service terminal according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a system for automated testing of a self-service terminal according to embodiment 2 of the present invention;
fig. 4 is a schematic diagram of a test execution module of the system for automated testing of a self-service terminal according to embodiment 2 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. 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 invention.
In the description of the present invention, it should be noted that, unless explicitly specified or limited otherwise, terms such as "hardware module", "generic interface", "package", "plug-in", "parameter information", "configuration file", "test information", "load", "aggregate", "hierarchy", "traverse", "reflection call", "function interface", "completion test flow", "policy", and the like, are to be understood in a broad sense. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Example 1
The embodiment of the invention provides a method for automatically testing a self-service terminal, please refer to fig. 1 and fig. 2, which includes the following steps:
s100, initialization:
the method comprises the steps of obtaining data provided by different hardware module manufacturers, obtaining a plurality of hardware modules, classifying the hardware modules according to a first rule, namely the type of the hardware module, classifying the hardware modules of the same type and different types of the hardware module manufacturers to obtain a plurality of hardware module groups, and setting a hardware module general interface for each hardware module group.
And according to the set universal interface of the hardware module, re-packaging the hardware modules of different manufacturers, different models and different versions to obtain a plurality of hardware module plug-ins.
S200, constructing a configuration file:
acquiring all hardware modules of the self-service terminal to be tested, storing parameter information of each hardware module in a local module configuration file through a uniform format, and constructing a hardware module configuration file, wherein the parameter information of the hardware module comprises a hardware module type, a hardware module name, a hardware module model, a connection port, firmware, a functional interface and the like.
And storing the test information of each hardware module in a local equipment integration configuration file through a uniform format to construct an integration test configuration file, wherein the test information of the hardware module comprises a hardware module type, a hardware module function, test parameters, a test flow, test execution times and the like.
S300, configuring test information:
reading parameter information in the hardware module configuration file, namely the type of the hardware module, the name of the hardware module and the model of the hardware module, acquiring the developed corresponding hardware module plug-in according to the parameter information, and loading the acquired hardware module plug-in.
And after the loading of the hardware module plug-in is finished, reading the integrated test configuration file, acquiring the test flow in the integrated test configuration file, and automatically generating a module list to be tested according to the test flow.
And reading the function test flow of the hardware module in the integrated test configuration file, and automatically generating a hardware module function list to be tested.
And orderly storing the hardware module list and the hardware module function list in the integrated test flow set.
S400, executing a test:
s401, hierarchical traversal:
and carrying out hierarchical traversal on the hardware module list and the hardware module function list on the integrated test flow set to obtain a plurality of test function interfaces of the hardware module to be tested of the self-service terminal to be tested after classification.
S402, reflection calling:
and calling the hardware module universal interfaces corresponding to the plurality of test function interfaces according to the reflection calling method, and realizing all the test function interfaces in a unified manner to obtain a finished test flow, namely the test flow of all the hardware modules of the self-service terminal to be tested.
S403, binding a universal interface:
and adding the called universal interface of the hardware module to the position of the hardware module corresponding to the called universal interface in the integrated test flow set, so that the universal interface is convenient to use when a test report is generated subsequently.
S404, obtaining a test result:
acquiring the number of the hardware module test flows in the finished test flow, and judging the number:
if the number is one, executing a hardware module test flow to obtain a test result;
if the number is more than one, numbering a plurality of hardware module test flows according to the number according to the sequence of completing the hardware module test flows in the test flows, wherein the numbering starts from 1, and the hardware module test flows are executed according to the sequence;
firstly, executing a first hardware module test process to obtain a first process result, and judging the first process result:
if the first process result is successful, executing the next hardware module test process, namely executing the second hardware module test process;
if the first process result is failure, acquiring the number of the currently executed hardware module test process, and judging the number:
if the serial number is less than the number of the test flows of the hardware module, the hardware module to be tested does not complete the test, and the next test flow of the hardware module is continuously executed;
if the serial number is equal to the number of the test processes of the hardware modules, the hardware modules to be tested are completely tested, the test result is recorded, and the step of S500 for generating the test report is entered.
S500, generating a test report:
and storing the test result to the integrated test flow set according to the hardware module corresponding to the test result.
And circularly traversing the integrated test flow set, storing the test result into a local specified directory in a file mode according to a specified format, and displaying the test result in a specified mode to provide visual test result display for a tester.
Example 2
An embodiment of the present invention further provides a system for automated testing of a self-service terminal, please refer to fig. 3 and 4, including: the device comprises an initialization module, a configuration file building module, a test information configuring module, a test executing module and a test report generating module;
an initialization module:
the initialization module is used for acquiring a plurality of hardware modules and setting a plurality of hardware module universal interfaces; according to the hardware module universal interface, performing packaging operation on the hardware modules to obtain a plurality of hardware module plug-ins;
specifically, the initialization module acquires data provided by different hardware module manufacturers, acquires a plurality of hardware modules, classifies the hardware modules according to a first rule, namely the type of the hardware module, classifies the hardware modules of the same type and different types of the hardware module manufacturers to obtain a plurality of hardware module groups, and sets a hardware module universal interface for each hardware module group.
And the initialization module repackages the hardware modules of different manufacturers, different models and different versions according to the set universal interfaces of the hardware modules to obtain a plurality of hardware module plug-ins.
And a configuration file building module:
the configuration file constructing module is used for constructing a hardware module configuration file according to the parameter information of the hardware module to be tested; constructing an integrated test configuration file according to the test information of the hardware module to be tested;
specifically, the configuration file building module obtains all hardware modules of the self-service terminal to be tested, stores parameter information of each hardware module in a local module configuration file through a uniform format, and builds a hardware module configuration file, wherein the parameter information of the hardware module comprises a hardware module type, a hardware module name, a hardware module model, a connection port, firmware, a functional interface and the like.
The configuration file building module stores the test information of each hardware module in a local device integration configuration file through a uniform format, and builds an integration test configuration file, wherein the test information of the hardware module comprises a hardware module type, a hardware module function, a test parameter, a test flow, test execution times and the like.
A test information configuration module:
the configuration test information module is used for executing loading operation on the hardware module plug-in according to the hardware module configuration file; generating a hardware module list and a hardware module function list according to the integrated trial configuration file; constructing an integrated test flow set according to the hardware module list and the hardware module function list;
specifically, the configuration test information module reads parameter information, i.e., a hardware module type, a hardware module name, and a hardware module model, in the hardware module configuration file, acquires a corresponding developed hardware module plug-in according to the parameter information, and loads the acquired hardware module plug-in.
And after the hardware module plug-in is loaded, the configuration test information module reads the integrated test configuration file, acquires the test flow therein, and automatically generates a module list to be tested according to the test flow.
And the configuration test information module reads the function test flow of the hardware module in the integrated test configuration file and automatically generates a hardware module function list to be tested.
And the configuration test information module orderly stores the hardware module list and the hardware module function list in the integrated test flow set.
Executing the test module:
the execution test module is used for executing hierarchical traversal operation on the integrated test flow set and executing unified interface calling operation on the test information according to the reflection calling method to obtain the finished test flows of the hardware modules; executing test operation according to the completed test flow to obtain a test result; the execution test module comprises a hierarchical traversal unit, a reflection calling unit, a binding universal interface unit and a test result obtaining unit;
a hierarchical traversal unit:
the hierarchical traversal unit is used for performing hierarchical traversal on the hardware module list and the hardware module function list of the integrated test flow set to obtain test function interfaces of a plurality of hardware modules to be tested;
specifically, the hierarchical traversal unit performs hierarchical traversal on a hardware module list and a hardware module function list of the integrated test flow set to obtain test function interfaces of the hardware modules to be tested of the self-service terminal to be tested after classification.
A reflection calling unit:
the reflection calling unit is used for calling hardware module universal interfaces of a plurality of test function interfaces according to the reflection calling method to obtain a finished test flow;
specifically, the reflection calling unit calls hardware module universal interfaces corresponding to the plurality of test function interfaces according to the reflection calling method, and all the test function interfaces are realized in a unified manner, so that a finished test flow, namely a test flow of all the hardware modules of the self-service terminal to be tested is obtained.
Binding a universal interface unit:
the binding general interface unit is used for adding a hardware module general interface to the integrated test flow set according to the hardware module list;
specifically, the binding general interface unit adds the called hardware module general interface to the position of the corresponding hardware module in the integrated test flow set, so that the binding general interface unit is convenient to use when a test report is subsequently generated.
A test result obtaining unit:
the test result obtaining unit is used for testing the hardware module to be tested according to the completed test flow to obtain a test result;
specifically, the test result obtaining unit obtains the number of the hardware module test processes in the test process, and judges the number:
if the number is one, executing a hardware module test flow to obtain a test result;
if the number is more than one, numbering a plurality of hardware module test flows according to the number according to the sequence of completing the hardware module test flows in the test flows, wherein the numbering starts from 1, and the hardware module test flows are executed according to the sequence;
firstly, executing a first hardware module test process to obtain a first process result, and judging the first process result:
if the first process result is successful, executing the next hardware module test process, namely executing the second hardware module test process;
if the first process result is failure, acquiring the number of the currently executed hardware module test process, and judging the number:
if the serial number is less than the number of the test flows of the hardware module, the hardware module to be tested does not complete the test, and the next test flow of the hardware module is continuously executed;
if the serial number is equal to the number of the test processes of the hardware modules, the hardware modules to be tested are completely tested, the test result is recorded, and a test report generation module is entered.
A test report generation module:
the test report generation module is used for generating a test report according to the test result;
specifically, the test report generation module stores the test result in the integrated test flow set according to the hardware module corresponding to the test result.
And the test report generation module performs cycle traversal on the integrated test flow set, stores the test result into a local specified directory in a file mode according to a specified format, and displays the test result in a specified mode to provide visual test result display for a tester.
Example 3
This embodiment 3 has a computer-readable storage medium for storing computer software instructions for implementing the method for automated testing of a self-service terminal according to embodiment 1, which includes a program configured for the method for automated testing of a self-service terminal; specifically, the executable program may be embedded in the system for automated testing of a self-service terminal described in embodiment 2, so that the system for automated testing of a self-service terminal may implement the method for automated testing of a self-service terminal described in embodiment 1 by executing the embedded executable program.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for automatically testing a self-service terminal is characterized by comprising the following steps:
initialization: acquiring a plurality of hardware modules and setting a plurality of hardware module universal interfaces; according to the hardware module universal interface, performing packaging operation on the hardware modules to obtain a plurality of hardware module plug-ins;
constructing a configuration file: constructing a hardware module configuration file according to the parameter information of the hardware module to be tested; constructing an integrated test configuration file according to the test information of the hardware module to be tested;
configuring test information: according to the hardware module configuration file, loading operation is carried out on the hardware module plug-in; generating a hardware module list and a hardware module function list according to the integrated test configuration file; constructing an integrated test flow set according to the hardware module list and the hardware module function list;
and (3) executing the test: executing hierarchical traversal operation on the integrated test flow set, and executing unified interface calling operation on the test information according to a reflection calling method to obtain a plurality of finished test flows of the hardware modules; executing test operation according to the completed test flow to obtain a test result;
and (3) generating a test report: and generating a test report according to the test result.
2. The method for automated testing of self-service terminals according to claim 1, characterized in that:
the step of performing a test further comprises:
and (3) hierarchical traversal: performing hierarchical traversal on the hardware module list and the hardware module function list on the integrated test flow set to obtain test function interfaces of a plurality of hardware modules to be tested;
reflection calling: calling the hardware module universal interfaces of the plurality of test function interfaces according to the reflection calling method to obtain the finished test flow;
binding a general interface: adding the hardware module universal interface to the integrated test flow set according to the hardware module list;
obtaining a test result: and testing the hardware module to be tested according to the completed testing process to obtain the testing result.
3. The method for the automated testing of the self-service terminal according to claim 2, wherein:
the finished test process comprises a plurality of hardware module test processes; the step of obtaining test results further comprises:
acquiring the number of the hardware module test flows in the finished test flow, and judging:
if the number is one, executing the hardware module test flow to obtain the test result;
if the number is more than one, calling a hardware module test flow execution strategy.
4. The method for automated testing of self-service terminals according to claim 3, characterized in that:
the hardware module test flow execution strategy comprises the following steps:
numbering a plurality of hardware module test flows according to the number according to the sequence of the hardware module test flows in the completed test flow;
executing a first hardware module test process to obtain a first process result, and judging the first process result:
if the first process result is successful, executing the next hardware module test process;
if the first flow result is failure, executing the test of the hardware module to be tested to finish the judgment operation, and obtaining a judgment result;
if the judgment result is that the hardware module to be tested has completely finished testing, recording the testing result, and entering the step of generating a testing report;
and if the judgment result is that the test of all the hardware modules to be tested is not completed, executing the next hardware module test flow.
5. The method for automated testing of self-service terminals according to claim 4, wherein:
the step of executing the test of the hardware module to be tested to complete the judgment operation and obtaining the judgment result further comprises:
acquiring the number of the current hardware module test flow, and comparing the number with the quantity:
if the number is smaller than the number, setting the judgment result as that the test of all the hardware modules to be tested is not completed;
and if the number is equal to the number, setting the judgment result as that the hardware module to be tested has completely finished testing.
6. The method for automated testing of self-service terminals according to claim 1, characterized in that:
the step of acquiring the plurality of hardware modules and setting the universal interfaces of the plurality of hardware modules further comprises:
the method comprises the steps of obtaining a plurality of hardware modules, classifying the hardware modules according to a first rule to obtain a plurality of hardware module groups, and setting a hardware module universal interface for each hardware module group.
7. The method for automated testing of self-service terminals according to claim 1, characterized in that:
the step of executing a load operation on the hardware module plug-in according to the hardware module configuration file further comprises:
and reading the parameter information in the hardware module configuration file, acquiring the corresponding hardware module plug-in according to the parameter information, and loading the hardware module plug-in.
8. The method for the automated testing of the self-service terminal according to claim 2, wherein:
the step of generating a test report further comprises:
storing the test result to the integrated test flow set according to the hardware module list and the hardware module function list;
and traversing and outputting the integrated test flow set to obtain a test report.
9. A system for automated testing of self-service terminals, comprising: the device comprises an initialization module, a configuration file building module, a test information configuring module, a test executing module and a test report generating module;
the initialization module is used for acquiring a plurality of hardware modules and setting a plurality of hardware module universal interfaces; according to the hardware module universal interface, performing packaging operation on the hardware modules to obtain a plurality of hardware module plug-ins;
the configuration file constructing module is used for constructing a hardware module configuration file according to the parameter information of the hardware module to be tested; constructing an integrated test configuration file according to the test information of the hardware module to be tested;
the configuration test information module is used for executing loading operation on the hardware module plug-in according to the hardware module configuration file; generating a hardware module list and a hardware module function list according to the integrated trial configuration file; constructing an integrated test flow set according to the hardware module list and the hardware module function list;
the execution test module is used for executing hierarchical traversal operation on the integrated test flow set and executing unified interface calling operation on the test information according to a reflection calling method to obtain a plurality of finished test flows of the hardware module; executing test operation according to the completed test flow to obtain a test result;
the test report generation module is used for generating a test report according to the test result;
the execution test module comprises a hierarchical traversal unit, a reflection calling unit, a binding universal interface unit and a test result obtaining unit;
the hierarchical traversal unit is used for performing hierarchical traversal on the hardware module list and the hardware module function list on the integrated test flow set to obtain test function interfaces of a plurality of hardware modules to be tested;
the reflection calling unit is used for calling the hardware module universal interfaces of the plurality of test function interfaces according to the reflection calling method to obtain the finished test flow;
the binding general interface unit is used for adding the hardware module general interface to the integrated test flow set according to the hardware module list;
the test result obtaining unit is used for testing the hardware module to be tested according to the completed test flow to obtain the test result.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, performs the method steps of a self-service terminal automated test of any of claims 1-8.
CN202110915332.2A 2021-08-10 2021-08-10 Method, system and medium for automatic testing of self-service terminal Pending CN113791939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915332.2A CN113791939A (en) 2021-08-10 2021-08-10 Method, system and medium for automatic testing of self-service terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915332.2A CN113791939A (en) 2021-08-10 2021-08-10 Method, system and medium for automatic testing of self-service terminal

Publications (1)

Publication Number Publication Date
CN113791939A true CN113791939A (en) 2021-12-14

Family

ID=78875845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915332.2A Pending CN113791939A (en) 2021-08-10 2021-08-10 Method, system and medium for automatic testing of self-service terminal

Country Status (1)

Country Link
CN (1) CN113791939A (en)

Similar Documents

Publication Publication Date Title
CN102236672B (en) A kind of data lead-in method and device
CN102024504B (en) Logic test method and device suitable for reactor protection system
CN102043719B (en) Method for testing IEC61850 configuration description file
CN107239392A (en) A kind of method of testing, device and terminal
CN111399828B (en) Model-driven logic device modeling method and terminal
CN108255714A (en) Interface document builds test method and terminal device
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
CN110109831A (en) Automated test frame system, automated testing method and terminal device
CN112181854A (en) Method, device, equipment and storage medium for generating flow automation script
CN107357721B (en) Method and device for testing system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN112732237B (en) Method and system for constructing code-free development technology model
CN107491298A (en) A kind of button object automatic scanning method and system
CN113791939A (en) Method, system and medium for automatic testing of self-service terminal
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN104615539A (en) Measurement parameter processing method and system
CN113568603B (en) Component object creating and interface method calling method, terminal and storage device
CN115495363A (en) Software testing method, electronic equipment and readable storage medium
CN112015560B (en) Device for building IT infrastructure
CN113052501A (en) Automatic safe operation and maintenance method and terminal based on assets
CN113535581A (en) Test script generation method, device, equipment and computer readable storage medium
CN113297157A (en) Machine file processing method and system
CN112419582A (en) Method for reading social security card information based on BS architecture, card reading device and medical self-service equipment
CN114020350B (en) Android system-based terminal off-load equipment detection method, system and medium
CN115756439B (en) Method and device for arranging state machine engine and computer equipment

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