CN105374131A - Method and device for automatic testing - Google Patents
Method and device for automatic testing Download PDFInfo
- Publication number
- CN105374131A CN105374131A CN201510713273.5A CN201510713273A CN105374131A CN 105374131 A CN105374131 A CN 105374131A CN 201510713273 A CN201510713273 A CN 201510713273A CN 105374131 A CN105374131 A CN 105374131A
- Authority
- CN
- China
- Prior art keywords
- self
- service
- test
- test case
- data
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 362
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000009471 action Effects 0.000 claims description 21
- 238000012545 processing Methods 0.000 claims description 20
- 238000012546 transfer Methods 0.000 claims description 12
- 230000008859 change Effects 0.000 claims description 9
- 238000004088 simulation Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 6
- 230000010354 integration Effects 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims description 2
- 238000007405 data analysis Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 17
- 238000013480 data collection Methods 0.000 description 4
- 238000000151 deposition Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 230000032683 aging Effects 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F19/00—Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
- G07F19/20—Automatic teller machines [ATMs]
- G07F19/209—Monitoring, auditing or diagnose of functioning of ATMs
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Cash Registers Or Receiving Machines (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a method and device for automatic testing. The method comprises the steps that running data of self-service equipment in a preset area is acquired; a testing case is generated automatically according to the data; the testing case is sent to the self-service equipment; the self-service equipment can then carry out the automatic testing according to the testing case; the testing case comprises the testing of testing information corresponding to at least one business type; results of the automatic testing are obtained; a testing report is generated; data under different application contexts is acquired according to an actual use environment; and an automatic testing system tests dynamic and intelligent adjustment after production of the self-service equipment, so that real scenes in the actual use environment can be simulated as much as possible; and accuracy and pertinence of the testing are improved. Thanks to reduction of manual interferences and manual data analysis courses, product quality of the self-service equipment can be improved more effectively.
Description
Technical Field
The embodiment of the invention relates to the technical field of self-service terminal equipment, in particular to an automatic testing method and device.
Background
At present, in the automatic test of self-service terminal equipment, the test can be carried out only according to the service specified in a test script file compiled in advance. I.e. generally only mechanically repetitive operations can be performed, such as: after a certain service process (also called a service scene) is recorded or set, the test is performed according to the original process. For the ATM, if the execution scenario originally set is: inquiry, withdrawal, transfer and encryption change, and only the action is executed according to the established flow during subsequent playback.
Such a test scenario is inconsistent with the scenario actually executed on the actual operating environment of the actual self-service device. That is, in the actual operating environment of the self-service device, it is impossible for each cardholder to operate according to the established flow. But the business processes of withdrawal, deposit, transfer, password change, inquiry and the like are random, and the parameters of each business such as the withdrawal amount are not fixed and unchangeable. The set scene is used for carrying out pressure (aging) test, and the scene similar to the actual operation environment of the self-service equipment cannot be accurately simulated, so that the result obtained under the test environment is inconsistent with the result obtained under the actual operation environment of the self-service equipment, and even great difference can be generated to influence the test effect.
In addition, the functions are not exactly the same for different ATM models. For example, the recycling model can perform deposit, cardless deposit, etc., while the teller model does not. Therefore, if a certain business processing flow is fixed, it is obviously not suitable for different businesses on different models.
Moreover, if some cases with abnormal service processing are to be executed, branches in the program not only have normal service flow branches, but also have branches with abnormal processing, the executed probabilities of the branches are very different, and how to fully ensure the pressure test of the flow branches by using limited test resources and test time, that is, during the pressure test, each branch in the program is tested with the probability that the program is executed in normal operation, so that the test quality is ensured to the maximum extent in the limited test time, and the test cost is saved.
Disclosure of Invention
The embodiment of the invention aims to provide an automatic testing method and device, and aims to solve the problem of combining the test of a self-service terminal with an actual operating environment.
To achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method of automated testing, the method comprising:
acquiring running data of self-service equipment in a preset area;
automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type;
and acquiring a result after the automatic test and generating a test report.
Preferably, the acquiring data of the self-service device running in the preset area includes:
acquiring data of business operation of the self-service equipment through network transmission, wherein the data comprises action instructions triggered by a user on the self-service equipment, parameters corresponding to the action instructions and interval time among the action instructions; or,
and acquiring data of business operation of the self-service equipment encrypted according to a preset rule through a mobile storage medium.
Preferably, the acquiring data of the self-service device running in the preset area includes:
and extracting data stored in different formats when the self-service equipment of different transaction types performs business operation, wherein the different transaction types comprise only withdrawal, only deposit or deposit and withdrawal integration, and the different formats comprise logs, texts, databases or preset specific formats.
Preferably, the sending the test case to the self-service device includes:
judging the service types to be tested, which are included in the test cases, wherein the service types comprise deposit, withdrawal, transfer, inquiry or password change, and the test cases comprise test cases formed by combining at least one service type;
sending the test case to self-service equipment executing the service type;
and carrying out simulation test according to the acquired data corresponding to the service type and the test case input by the user.
Preferably, after acquiring the data of the self-service device running in the preset area, the method further includes:
and when the user uses the self-service terminal to carry out service operation, recording the service type and the card number information and/or the serial number information corresponding to the service type.
Preferably, the method further comprises:
and storing the test cases suitable for the self-service equipment of different transaction types in a public test case library according to a preset storage method.
Preferably, after the automatically generating a test case according to the data and sending the test case to the self-service device, the method further includes:
after testing a test case on the self-service terminal, randomly selecting another test case from the test case library for testing;
the random selection of another service type from the test case library for testing comprises the following steps:
judging the transaction type of the self-service terminal;
selecting a test case which can be used for the self-service terminal from the test case library according to a preset algorithm according to the transaction type;
and running the test case on the self-service terminal and acquiring a test result.
In a second aspect, an apparatus for automated testing, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring the running data of the self-service equipment in a preset area;
the sending module is used for automatically generating a test case according to the data and sending the test case to the self-service equipment so that the self-service equipment can automatically test according to the test case, and the test case comprises test information corresponding to at least one service type;
and the second acquisition module is used for acquiring the result after the automatic test and generating a test report.
Preferably, the first obtaining module includes:
the self-service equipment comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring data of business operation of the self-service equipment through network transmission, and the data comprises action instructions triggered by a user on the self-service equipment, parameters corresponding to the action instructions and interval time among the action instructions; or,
and the second acquisition unit is used for acquiring data of business operation of the self-service equipment encrypted according to a preset rule through a mobile storage medium.
Preferably, the first obtaining module includes:
the extraction unit is used for extracting data stored in different formats when self-service equipment of different transaction types performs business operations, wherein the different transaction types comprise only withdrawal, only deposit or deposit and withdrawal, and the different formats comprise logs, texts, databases or preset specific formats.
Preferably, the sending module includes:
the judging unit is used for judging the service types to be tested, which are included in the test cases, wherein the service types comprise deposit, withdrawal, transfer, inquiry or encryption change, and the test cases comprise test cases formed by combining at least one service type;
the sending unit is used for sending the test case to self-service equipment executing the service type;
and the testing unit is used for carrying out simulation testing according to the acquired data which is input by the user and corresponds to the service type and the testing case.
Preferably, the apparatus further comprises:
and the recording module is used for recording the service type and the card number information and/or the serial number information corresponding to the service type when the user uses the self-service terminal to perform service operation.
Preferably, the apparatus further comprises:
and the storage module is used for storing the test cases suitable for the self-service equipment of different transaction types in a public test case library according to a preset storage method.
Preferably, the apparatus further comprises:
the self-service terminal is used for testing one test case, and then randomly selecting another test case from the test case library to test;
the selection module comprises:
the judging unit is used for judging the transaction type of the self-service terminal;
the selection unit is used for selecting a test case which can be used for the self-service terminal from the test case library according to a preset algorithm according to the transaction type;
and the third acquisition unit is used for running the test case on the self-service terminal and acquiring a test result.
The embodiment of the invention obtains the running data of the self-service equipment in the preset area; automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type; the method comprises the steps of obtaining results after automatic testing, generating a test report, obtaining data under different application scenes from an actual use environment, and carrying out dynamic and intelligent adjustment testing by using a set of automatic testing system after self-service equipment is produced, so that the real situation under the actual use environment is simulated as much as possible, and the accuracy and pertinence of the testing are improved. And because manual intervention is reduced, the process of manually analyzing data is reduced, and the product quality of the self-service equipment is better guaranteed.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a method for automated testing in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of a second embodiment of a method for automated testing in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a third embodiment of a method for automated testing in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart illustrating a fourth embodiment of a method for automated testing in accordance with an embodiment of the present invention;
FIG. 5 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of a first obtaining module according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of a first obtaining module according to an embodiment of the present invention;
FIG. 8 is a functional block diagram of a sending module according to an embodiment of the present invention;
FIG. 9 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention;
FIG. 10 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention;
FIG. 11 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention;
FIG. 12 is a functional block diagram of a selection module according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of an automated testing method according to an embodiment of the present invention.
In one embodiment, the method for automated testing includes:
step 101, acquiring running data of self-service equipment in a preset area;
preferably, the acquiring data of the self-service device running in the preset area includes:
acquiring data of business operation of the self-service equipment through network transmission, wherein the data comprises action instructions triggered by a user on the self-service equipment, parameters corresponding to the action instructions and interval time among the action instructions; or,
and acquiring data of business operation of the self-service equipment encrypted according to a preset rule through a mobile storage medium.
Specifically, data of the self-service equipment running in an actual running environment is collected, so that the reality and the effectiveness of the data are ensured, and typical application scenes (namely specific places) are collected during data collection, wherein the typical application scenes comprise supermarkets, markets, communities, schools and the like;
the data of the self-service equipment running in the actual running environment of the self-service equipment is collected, namely, various signals input by a user are acquired in the execution process of the respective self-service equipment, namely, self-service parameters received by the running system are acquired, and the parameters comprise action parameters of interaction with the self-service equipment when the user inserts/takes a card, inputs a key, takes/puts a bank note, takes a receipt and the like and the interval time of each parameter when the user carries out self-service.
Further, in step 101, data acquisition processing is performed on the self-service device, the data acquisition system works in a device running mode, and when a certain transaction is completed, relevant data is automatically recorded. When the self-service equipment meets the condition that the resource information and the hardware information of the self-service equipment are consistent with one of the machine information under the test environment, the automatic triggering data acquisition function is used for acquiring data, and the specific triggering mechanism comprises:
1a) when the self-service equipment detects that the mobile storage medium is accessed, the collected data are automatically named according to a certain rule after being encrypted and sent to the mobile storage medium.
1b) And after receiving legal control information sent by the front-end system or the monitoring system, the self-service equipment automatically transmits the acquired data to a specified test server.
Preferably, the acquiring data of the self-service device running in the preset area includes:
and extracting data stored in different formats when the self-service equipment of different transaction types performs business operation, wherein the different transaction types comprise only withdrawal, only deposit or deposit and withdrawal integration, and the different formats comprise logs, texts, databases or preset specific formats.
Specifically, further, in step 101, the collected self-service device data information is analyzed and processed, and a specific processing mode and mechanism include:
2a) the method can process file data types with different formats, including log files, text files and database files, and files with certain specific formats.
2b) The data processing conditions can be set, and the content required by the user can be screened through combination of the conditions, such as different transaction types.
The combination of conditions herein refers to the following but is not limited to: the transaction type of the collected data, if the software to be tested does not have or provide or open the transaction, the collection of the data is abandoned; if two machines of a certain network are a deposit machine and a cash dispenser respectively, the data of the two machines are collected together and used as a test case of the software to be tested of the circulating all-in-one machine which distributes the network.
2c) The data information which is newly added can be automatically analyzed and processed, the processed data can be backed up and filed, the whole process is automatically completed, and manual intervention is not needed.
The analysis processing here refers to the consistency processing of the format of the acquired data, extracting uniform information content, and storing the information content in the database.
102, automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type;
preferably, the sending the test case to the self-service device includes:
judging the service types to be tested, which are included in the test cases, wherein the service types comprise deposit, withdrawal, transfer, inquiry or password change, and the test cases comprise test cases formed by combining at least one service type;
sending the test case to self-service equipment executing the service type;
and carrying out simulation test according to the acquired data corresponding to the service type and the test case input by the user.
Specifically, extracting a test case in a test library, and judging the service type of the test case;
3a) executing the test case on self-service equipment provided with software to be tested capable of providing the service type, and performing simulation input on user input parameters and time intervals thereof in the process of executing the test case so as to obtain the most real test effect;
3b) and summarizing and counting the execution results of all the self-service equipment executing the test case to obtain the test report content of the test case.
And 103, acquiring the result after the automatic test and generating a test report.
Specifically, the generation of the single self-service equipment automatic test report or the generation of the batch self-service equipment automatic test report can be realized.
After the self-service equipment completes all preset test cases, the test report subsystem starts to process data collection and processing, the self-service equipment test report subsystem can generate a single self-service equipment test report according to relevant templates and settings, and sends information to a test responsible person or transmits the information to a data acquisition server according to set conditions so as to provide data for batch test reports.
After the test report of the single self-service equipment is generated and data are transmitted to the designated data acquisition server, the batch test report subsystem processes data information on all the single self-service equipment, generates a final report of all the self-service equipment in the current batch after automatic testing, and automatically transmits the final report to relevant personnel for reference in a mail mode.
The embodiment of the invention obtains the running data of the self-service equipment in the preset area; automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type; the method comprises the steps of obtaining results after automatic testing, generating a test report, obtaining data under different application scenes from an actual use environment, and carrying out dynamic and intelligent adjustment testing by using a set of automatic testing system after self-service equipment is produced, so that the real situation under the actual use environment is simulated as much as possible, and the accuracy and pertinence of the testing are improved. And because manual intervention is reduced, the process of manually analyzing data is reduced, and the product quality of the self-service equipment is better guaranteed.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating a second embodiment of the automated testing method according to the embodiment of the present invention.
On the basis of the first embodiment, after the data of the self-service device operation in the preset area is obtained, the method further includes:
and 104, recording the service type and the card number information and/or the serial number information corresponding to the service type when the user uses the self-service terminal to perform service operation.
Specifically, the automatic testing system of the self-service equipment starts to record mark information, wherein the mark information is service information such as card number part information and serial number information which can identify service characteristics of each time and is recorded by the service system of the self-service equipment when a user using the self-service equipment performs service operation, so that data information related to the service can be conveniently and rapidly searched and searched in data stored in the automatic testing system of the self-service equipment, and the service can be conveniently subjected to statistical analysis and summary work.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flow chart illustrating a third embodiment of the method for automated testing according to the embodiment of the present invention.
On the basis of the first embodiment, the method further includes step 105, and step 105 is not limited to be before or after step 102 and step 103:
and 105, storing the test cases suitable for the self-service equipment of different transaction types in a public test case library according to a preset storage method.
Specifically, a case or a case sequence can be randomly extracted from a test case library of the model to be tested according to whether the model is a circular machine, a machine is only taken or stored, and the actual operation condition is close to.
The case sequence refers to a case group formed by a group of services which are acquired in an operating environment and are sequentially carried out by deposit, withdrawal, account transfer, inquiry, secret change and the like.
If the machine type is a circulating machine type, the transaction test of withdrawing money and depositing money can be provided at the same time; if the machine type is the machine type only, only a withdrawal transaction test is provided, and a deposit transaction test is shielded; if the machine type is deposit-only type, only deposit transaction is provided and the withdrawal transaction test is shielded.
Of course, the above three models can provide other services such as encryption, inquiry, transfer, etc. in addition to depositing and withdrawing, as long as the model has and opens the services.
Selecting test cases or test case sequences of various services corresponding to the machine type according to the machine type to form a test case library of the machine type; the test cases or test case sequences suitable for all the machine types can be put into a public test case library.
Example four
Referring to fig. 4, fig. 4 is a flowchart illustrating a fourth embodiment of the method for automated testing according to the embodiment of the present invention.
On the basis of the first embodiment, after the automatically generating a test case according to the data and sending the test case to the self-service device, the method further includes:
step 106, after testing one test case on the self-service terminal, randomly selecting another test case from the test case library for testing;
the random selection of another service type from the test case library for testing comprises the following steps:
judging the transaction type of the self-service terminal;
selecting a test case which can be used for the self-service terminal from the test case library according to a preset algorithm according to the transaction type;
and running the test case on the self-service terminal and acquiring a test result.
Specifically, after testing one service, one service is randomly selected from the test case library for testing, so as to realize the pressure test of different service mixtures of the machine. The probability of each service selected randomly can be carried out according to the historical experience of the proportion occupied by each service in the actual operation of the model (namely, the probability is carried out on the basis of data analysis and processing);
the test case is for all models of self-service equipment, but only if the model has the function of the service type of the test case, the test case can be tested on the model, for example, a certain test case for withdrawing money can only be selected for the self-service equipment of a cash dispenser model, but cannot be selected for testing on a deposit-only machine with deposit function.
In fact, performing such a test requires the following steps:
1) judging the model of the testing machine where the software to be tested belongs;
2) according to the model, randomly selecting a test case or test case sequence which can be used for the model from a test database;
3) executing the test case by the test machine;
4) and acquiring test result data.
EXAMPLE five
Referring to fig. 5, fig. 5 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention.
In a fifth embodiment, the apparatus for automated testing comprises:
a first obtaining module 501, configured to obtain data of operation of a self-service device in a preset area;
preferably, referring to fig. 6, fig. 6 is a functional module schematic diagram of a first obtaining module according to an embodiment of the present invention.
The first obtaining module 501 includes:
a first obtaining unit 601, configured to obtain data of a service operation performed by the self-service device through network transmission, where the data includes an action instruction triggered by a user on the self-service device, a parameter corresponding to the action instruction, and an interval time between various action instructions; or,
a second obtaining unit 602, configured to obtain, through a mobile storage medium, data of performing a service operation on the self-service device encrypted according to a preset rule.
Specifically, data of the self-service equipment running in an actual running environment is collected, so that the reality and the effectiveness of the data are ensured, and typical application scenes (namely specific places) are collected during data collection, wherein the typical application scenes comprise supermarkets, markets, communities, schools and the like;
the data of the self-service equipment running in the actual running environment of the self-service equipment is collected, namely, various signals input by a user are acquired in the execution process of the respective self-service equipment, namely, self-service parameters received by the running system are acquired, and the parameters comprise action parameters of interaction with the self-service equipment when the user inserts/takes a card, inputs a key, takes/puts a bank note, takes a receipt and the like and the interval time of each parameter when the user carries out self-service.
Furthermore, the self-service equipment is subjected to data acquisition and processing, the data acquisition system works in an equipment operation mode, and relevant data can be automatically recorded after a certain transaction is completed. When the self-service equipment meets the condition that the resource information and the hardware information of the self-service equipment are consistent with one of the machine information under the test environment, the automatic triggering data acquisition function is used for acquiring data, and the specific triggering mechanism comprises:
1a) when the self-service equipment detects that the mobile storage medium is accessed, the collected data are automatically named according to a certain rule after being encrypted and sent to the mobile storage medium.
1b) And after receiving legal control information sent by the front-end system or the monitoring system, the self-service equipment automatically transmits the acquired data to a specified test server.
Preferably, referring to fig. 7, fig. 7 is a functional module schematic diagram of a first obtaining module according to an embodiment of the present invention.
The first obtaining module 501 includes:
the extracting unit 700 is configured to extract data stored in different formats when the self-service device of different transaction types performs business operations, where the different transaction types include only withdrawal, only deposit, or deposit and withdraw, and the different formats include logs, texts, databases, or preset specific formats.
Specifically, further, the collected self-service device data information is analyzed and processed, and the specific processing mode and mechanism include:
2a) the method can process file data types with different formats, including log files, text files and database files, and files with certain specific formats.
2b) The setting of data processing conditions can be carried out, and the required content of the data processing system can be screened through the combination of conditions, such as different transaction types.
The combination of conditions herein refers to the following but is not limited to: the transaction type of the collected data, if the software to be tested does not have or provide or open the transaction, the collection of the data is abandoned; if two machines of a certain network are a deposit machine and a cash dispenser respectively, the data of the two machines are collected together and used as a test case of the software to be tested of the circulating all-in-one machine which distributes the network.
2c) The system can automatically analyze and process newly added data information, backup and archive processed data, and automatically complete the whole process without manual intervention.
The analysis processing here refers to the consistency processing of the format of the acquired data, extracting uniform information content, and storing the information content in the database.
A sending module 502, configured to automatically generate a test case according to the data, and send the test case to the self-service device, so that the self-service device performs an automatic test according to the test case, where the test case includes test information corresponding to at least one service type to be tested;
preferably, referring to fig. 8, fig. 8 is a functional module diagram of a sending module according to an embodiment of the present invention.
The sending module 502 includes:
the judging unit 801 is configured to judge the service types to be tested included in the test case, where the service types include deposit, withdrawal, transfer, inquiry, or encryption, and the test case includes a test case formed by combining at least one service type;
a sending unit 802, configured to send the test case to a self-service device that executes the service type;
and the testing unit 803 is configured to perform a simulation test according to the obtained data corresponding to the service type and the test case, which are input by the user.
Specifically, extracting a test case in a test library, and judging the service type of the test case;
3a) executing the test case on self-service equipment provided with software to be tested capable of providing the service type, and performing simulation input on user input parameters and time intervals thereof in the process of executing the test case so as to obtain the most real test effect;
3b) and summarizing and counting the execution results of all the self-service equipment executing the test case to obtain the test report content of the test case.
And a second obtaining module 503, configured to obtain a result after the automated test, and generate a test report.
Specifically, the generation of the single self-service equipment automatic test report or the generation of the batch self-service equipment automatic test report can be realized.
After the self-service equipment completes all preset test cases, the test report subsystem starts to process data collection and processing, the self-service equipment test report subsystem can generate a single self-service equipment test report according to relevant templates and settings, and sends information to a test responsible person or transmits the information to a data acquisition server according to set conditions so as to provide data for batch test reports.
After the test report of the single self-service equipment is generated and data are transmitted to the designated data acquisition server, the batch test report subsystem processes data information on all the single self-service equipment, generates a final report of all the self-service equipment in the current batch after automatic testing, and automatically transmits the final report to relevant personnel for reference in a mail mode.
The embodiment of the invention obtains the running data of the self-service equipment in the preset area; automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type; the method comprises the steps of obtaining results after automatic testing, generating a test report, obtaining data under different application scenes from an actual use environment, and carrying out dynamic and intelligent adjustment testing by using a set of automatic testing system after self-service equipment is produced, so that the real situation under the actual use environment is simulated as much as possible, and the accuracy and pertinence of the testing are improved. And because manual intervention is reduced, the process of manually analyzing data is reduced, and the product quality of the self-service equipment is better guaranteed.
EXAMPLE six
Referring to fig. 9, fig. 9 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention.
On the basis of the fifth embodiment, the apparatus further includes:
a recording module 504, configured to record a service type and card number information and/or serial number information corresponding to the service type when the user uses the self-service terminal to perform a service operation.
Specifically, the automatic testing system of the self-service equipment starts to record mark information, wherein the mark information is service information such as card number part information and serial number information which can identify service characteristics of each time and is recorded by the service system of the self-service equipment when a user using the self-service equipment performs service operation, so that data information related to the service can be conveniently and rapidly searched and searched in data stored in the automatic testing system of the self-service equipment, and the service can be conveniently subjected to statistical analysis and summary work.
EXAMPLE seven
Referring to fig. 10, fig. 10 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention.
On the basis of the fifth embodiment, the method further comprises the following steps:
and the storage module 505 is configured to store the test cases applicable to the self-service devices of different transaction types in a public test case library according to a preset storage method.
Specifically, a case or a case sequence can be randomly extracted from a test case library of the model to be tested according to whether the model is a circular machine, a machine is only taken or stored, and the actual operation condition is close to.
The case sequence refers to a case group formed by a group of services which are acquired in an operating environment and are sequentially carried out by deposit, withdrawal, account transfer, inquiry, secret change and the like.
If the machine type is a circulating machine type, the transaction test of withdrawing money and depositing money can be provided at the same time; if the machine type is the machine type only, only a withdrawal transaction test is provided, and a deposit transaction test is shielded; if the machine type is deposit-only type, only deposit transaction is provided and the withdrawal transaction test is shielded.
Of course, the above three models can provide other services such as encryption, inquiry, transfer, etc. in addition to depositing and withdrawing, as long as the model has and opens the services.
Selecting test cases or test case sequences of various services corresponding to the machine type according to the machine type to form a test case library of the machine type; the test cases or test case sequences suitable for all the machine types can be put into a public test case library.
Example eight
Referring to fig. 11, fig. 11 is a functional block diagram of an apparatus for automated testing according to an embodiment of the present invention.
On the basis of the fifth embodiment, the apparatus further includes:
a selecting module 506, configured to randomly select another test case from the test case library for testing after testing one test case on the self-service terminal;
preferably, referring to fig. 12, fig. 12 is a functional block diagram of a selecting module according to an embodiment of the present invention.
The selecting module 506 includes:
a judging unit 1201, configured to judge a transaction type of the self-service terminal;
a selecting unit 1202, configured to select, according to the transaction type, one test case that can be used for the self-service terminal from the test case library according to a preset algorithm;
a third obtaining unit 1203, configured to run the test case on the self-service terminal and obtain a test result.
Specifically, after testing one service, one service is randomly selected from the test case library for testing, so as to realize the pressure test of different service mixtures of the machine. The probability of each service selected randomly can be carried out according to the historical experience of the proportion occupied by each service in the actual operation of the model (namely, the probability is carried out on the basis of data analysis and processing);
the test case is for all models of self-service equipment, but only if the model has the function of the service type of the test case, the test case can be tested on the model, for example, a certain test case for withdrawing money can only be selected for the self-service equipment of a cash dispenser model, but cannot be selected for testing on a deposit-only machine with deposit function.
In fact, performing such a test requires the following steps:
1) judging the model of the testing machine where the software to be tested belongs;
2) according to the model, randomly selecting a test case or test case sequence which can be used for the model from a test database;
3) executing the test case by the test machine;
4) and acquiring test result data.
The technical principle of the embodiment of the present invention is described above in conjunction with the specific embodiments. The description is only intended to explain the principles of embodiments of the invention and should not be taken in any way as limiting the scope of the embodiments of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive step, and these embodiments will fall within the scope of the present invention.
Claims (14)
1. A method of automated testing, the method comprising:
acquiring running data of self-service equipment in a preset area;
automatically generating a test case according to the data, and sending the test case to the self-service equipment so that the self-service equipment performs automatic testing according to the test case, wherein the test case comprises test information corresponding to at least one service type;
and acquiring a result after the automatic test and generating a test report.
2. The method of claim 1, wherein the obtaining data of self-service device operation in a preset area comprises:
acquiring data of business operation of the self-service equipment through network transmission, wherein the data comprises action instructions triggered by a user on the self-service equipment, parameters corresponding to the action instructions and interval time among the action instructions; or,
and acquiring data of business operation of the self-service equipment encrypted according to a preset rule through a mobile storage medium.
3. The method of claim 1, wherein the obtaining data of self-service device operation in a preset area comprises:
and extracting data stored in different formats when the self-service equipment of different transaction types performs business operation, wherein the different transaction types comprise only withdrawal, only deposit or deposit and withdrawal integration, and the different formats comprise logs, texts, databases or preset specific formats.
4. The method of claim 1, wherein the sending the test case to the self-service device comprises:
judging the service types to be tested, which are included in the test cases, wherein the service types comprise deposit, withdrawal, transfer, inquiry or password change, and the test cases comprise test cases formed by combining at least one service type;
sending the test case to self-service equipment executing the service type;
and carrying out simulation test according to the acquired data corresponding to the service type and the test case input by the user.
5. The method of any one of claims 1 to 4, wherein after acquiring data of self-service device operation in a preset area, further comprising:
and when the user uses the self-service terminal to carry out service operation, recording the service type and the card number information and/or the serial number information corresponding to the service type.
6. The method of any one of claims 1 to 4, further comprising:
and storing the test cases suitable for the self-service equipment of different transaction types in a public test case library according to a preset storage method.
7. The method of any one of claims 1 to 4, wherein after automatically generating a test case according to the data and sending the test case to the self-service device, the method further comprises:
after testing a test case on the self-service terminal, randomly selecting another test case from the test case library for testing;
the random selection of another service type from the test case library for testing comprises the following steps:
judging the transaction type of the self-service terminal;
selecting a test case which can be used for the self-service terminal from the test case library according to a preset algorithm according to the transaction type;
and running the test case on the self-service terminal and acquiring a test result.
8. An apparatus for automated testing, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring the running data of the self-service equipment in a preset area;
the sending module is used for automatically generating a test case according to the data and sending the test case to the self-service equipment so that the self-service equipment can automatically test according to the test case, and the test case comprises test information corresponding to at least one service type;
and the second acquisition module is used for acquiring the result after the automatic test and generating a test report.
9. The apparatus of claim 8, wherein the first obtaining module comprises:
the self-service equipment comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring data of business operation of the self-service equipment through network transmission, and the data comprises action instructions triggered by a user on the self-service equipment, parameters corresponding to the action instructions and interval time among the action instructions; or,
and the second acquisition unit is used for acquiring data of business operation of the self-service equipment encrypted according to a preset rule through a mobile storage medium.
10. The apparatus of claim 8, wherein the first obtaining module comprises:
the extraction unit is used for extracting data stored in different formats when self-service equipment of different transaction types performs business operations, wherein the different transaction types comprise only withdrawal, only deposit or deposit and withdrawal, and the different formats comprise logs, texts, databases or preset specific formats.
11. The apparatus of claim 8, wherein the sending module comprises:
the judging unit is used for judging the service types to be tested, which are included in the test cases, wherein the service types comprise deposit, withdrawal, transfer, inquiry or encryption change, and the test cases comprise test cases formed by combining at least one service type;
the sending unit is used for sending the test case to self-service equipment executing the service type;
and the testing unit is used for carrying out simulation testing according to the acquired data which is input by the user and corresponds to the service type and the testing case.
12. The apparatus of any one of claims 8 to 11, further comprising:
and the recording module is used for recording the service type and the card number information and/or the serial number information corresponding to the service type when the user uses the self-service terminal to perform service operation.
13. The apparatus of any one of claims 8 to 11, further comprising:
and the storage module is used for storing the test cases suitable for the self-service equipment of different transaction types in a public test case library according to a preset storage method.
14. The apparatus of any one of claims 8 to 11, further comprising:
the self-service terminal is used for testing one test case, and then randomly selecting another test case from the test case library to test;
the selection module comprises:
the judging unit is used for judging the transaction type of the self-service terminal;
the selection unit is used for selecting a test case which can be used for the self-service terminal from the test case library according to a preset algorithm according to the transaction type;
and the third acquisition unit is used for running the test case on the self-service terminal and acquiring a test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510713273.5A CN105374131A (en) | 2015-10-28 | 2015-10-28 | Method and device for automatic testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510713273.5A CN105374131A (en) | 2015-10-28 | 2015-10-28 | Method and device for automatic testing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105374131A true CN105374131A (en) | 2016-03-02 |
Family
ID=55376294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510713273.5A Pending CN105374131A (en) | 2015-10-28 | 2015-10-28 | Method and device for automatic testing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105374131A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101420A (en) * | 2018-07-20 | 2018-12-28 | 中国邮政储蓄银行股份有限公司 | Determine the method, apparatus and system, terminal of Test Strategy |
CN110245089A (en) * | 2019-06-21 | 2019-09-17 | 深圳前海微众银行股份有限公司 | Stress testing method, device, equipment and computer-readable storage medium |
CN114113950A (en) * | 2021-12-07 | 2022-03-01 | 国网上海能源互联网研究院有限公司 | A mobile detection system and detection method for power distribution equipment |
CN115167173A (en) * | 2022-06-21 | 2022-10-11 | 重庆长安汽车股份有限公司 | Method for recording results of intelligent driving simulation cluster test |
US11928047B2 (en) | 2021-09-28 | 2024-03-12 | International Business Machines Corporation | Contextual data generation for application testing in mixed reality simulations |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377759A (en) * | 2008-08-26 | 2009-03-04 | 中国工商银行股份有限公司 | Automatic interface test system |
CN101827346A (en) * | 2009-03-04 | 2010-09-08 | 中国移动通信集团上海有限公司 | Automatic test method and device for charge system |
CN102184135A (en) * | 2011-04-19 | 2011-09-14 | 中国工商银行股份有限公司 | Instruction script based test method and system in bank system |
US20110321127A1 (en) * | 2001-01-19 | 2011-12-29 | C-Sam, Inc. | Transactional services |
CN102937932A (en) * | 2011-08-16 | 2013-02-20 | 中国银联股份有限公司 | Automated testing device and method of integrated heterogeneous testing tool |
CN102955738A (en) * | 2012-11-13 | 2013-03-06 | 中原工学院 | Driving and driven hybrid testing method for simulation system |
CN104133771A (en) * | 2014-08-13 | 2014-11-05 | 五八同城信息技术有限公司 | Testing method and device |
CN104461863A (en) * | 2014-10-29 | 2015-03-25 | 中国建设银行股份有限公司 | Service system testing method, device and system |
CN104572433A (en) * | 2013-10-29 | 2015-04-29 | 中国银联股份有限公司 | Method and device for testing financial information system |
CN104866424A (en) * | 2015-05-22 | 2015-08-26 | 国云科技股份有限公司 | A Method of Designing Software Test Cases Based on Scenario Analysis |
-
2015
- 2015-10-28 CN CN201510713273.5A patent/CN105374131A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110321127A1 (en) * | 2001-01-19 | 2011-12-29 | C-Sam, Inc. | Transactional services |
CN101377759A (en) * | 2008-08-26 | 2009-03-04 | 中国工商银行股份有限公司 | Automatic interface test system |
CN101827346A (en) * | 2009-03-04 | 2010-09-08 | 中国移动通信集团上海有限公司 | Automatic test method and device for charge system |
CN102184135A (en) * | 2011-04-19 | 2011-09-14 | 中国工商银行股份有限公司 | Instruction script based test method and system in bank system |
CN102937932A (en) * | 2011-08-16 | 2013-02-20 | 中国银联股份有限公司 | Automated testing device and method of integrated heterogeneous testing tool |
CN102955738A (en) * | 2012-11-13 | 2013-03-06 | 中原工学院 | Driving and driven hybrid testing method for simulation system |
CN104572433A (en) * | 2013-10-29 | 2015-04-29 | 中国银联股份有限公司 | Method and device for testing financial information system |
CN104133771A (en) * | 2014-08-13 | 2014-11-05 | 五八同城信息技术有限公司 | Testing method and device |
CN104461863A (en) * | 2014-10-29 | 2015-03-25 | 中国建设银行股份有限公司 | Service system testing method, device and system |
CN104866424A (en) * | 2015-05-22 | 2015-08-26 | 国云科技股份有限公司 | A Method of Designing Software Test Cases Based on Scenario Analysis |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109101420A (en) * | 2018-07-20 | 2018-12-28 | 中国邮政储蓄银行股份有限公司 | Determine the method, apparatus and system, terminal of Test Strategy |
CN110245089A (en) * | 2019-06-21 | 2019-09-17 | 深圳前海微众银行股份有限公司 | Stress testing method, device, equipment and computer-readable storage medium |
CN110245089B (en) * | 2019-06-21 | 2025-04-04 | 深圳前海微众银行股份有限公司 | Stress testing method, device, equipment and computer readable storage medium |
US11928047B2 (en) | 2021-09-28 | 2024-03-12 | International Business Machines Corporation | Contextual data generation for application testing in mixed reality simulations |
CN114113950A (en) * | 2021-12-07 | 2022-03-01 | 国网上海能源互联网研究院有限公司 | A mobile detection system and detection method for power distribution equipment |
CN115167173A (en) * | 2022-06-21 | 2022-10-11 | 重庆长安汽车股份有限公司 | Method for recording results of intelligent driving simulation cluster test |
CN115167173B (en) * | 2022-06-21 | 2024-08-16 | 重庆长安汽车股份有限公司 | Result recording method for intelligent driving simulation cluster test |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105405221A (en) | Method and device for automated test | |
CN106649063B (en) | Method and system for monitoring time-consuming data during program operation | |
CN107102947B (en) | ATM transaction flow testing device and method | |
CN105374131A (en) | Method and device for automatic testing | |
CN112650688B (en) | Automated regression testing method, associated device and computer program product | |
CN111061696B (en) | Method and device for analyzing transaction message log | |
CN110515830A (en) | Operation trace method for visualizing, device, equipment and storage medium | |
CN105740707A (en) | Malicious file identification method and device | |
CN113242159B (en) | Application access relation determining method and device | |
CN112882957B (en) | Test task validity checking method and device | |
CN109544014B (en) | Anti-fraud method and device based on historical data playback | |
US9734042B1 (en) | System, method, and computer program for automated parameterized software testing | |
CN112433948A (en) | Simulation test system and method based on network data analysis | |
CN106201887B (en) | A kind of verification method and device of off-line data task | |
CN110941830B (en) | Vulnerability data processing method and device | |
CN105405220A (en) | Method and device for automated test | |
CN111339540A (en) | Computer accounting data anti-theft device and control method thereof | |
CN115269415A (en) | Interface test system and method based on simulation scene use case | |
CN119886793A (en) | Enterprise credit information evaluation system and method | |
CN113190461A (en) | System testing method and device and server | |
CN113095450A (en) | Two-dimensional code data acquisition method and system, electronic device and storage medium | |
CN117632718A (en) | Bank counter channel system transaction service testing method and device | |
CN106970862B (en) | Memory jitter automatic test method and device | |
CN114640507B (en) | WebShell detection method, webShell detection device and storage medium | |
CN112650796A (en) | Automatic application data collection and storage management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |
|
RJ01 | Rejection of invention patent application after publication |