CN112597021A - Bank counter transaction automatic testing method and device based on linkage printer - Google Patents

Bank counter transaction automatic testing method and device based on linkage printer Download PDF

Info

Publication number
CN112597021A
CN112597021A CN202011550905.8A CN202011550905A CN112597021A CN 112597021 A CN112597021 A CN 112597021A CN 202011550905 A CN202011550905 A CN 202011550905A CN 112597021 A CN112597021 A CN 112597021A
Authority
CN
China
Prior art keywords
result
test
transaction
playback
picture
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
CN202011550905.8A
Other languages
Chinese (zh)
Inventor
赵璞
李桢
张佳俊
王刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202011550905.8A priority Critical patent/CN112597021A/en
Publication of CN112597021A publication Critical patent/CN112597021A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

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

Abstract

The invention provides a bank counter transaction automatic test method and device based on a linkage printer, which are used for carrying out a complete test process of a bank counter linkage printer test transaction, obtaining and storing a result picture by reversely processing a print result file instead of printing the print result file to a paper file link by a printer. Based on the invention, the full-process automatic test of bank counter transaction based on the linkage printer can be realized, and the problems of missed printing, mistaken printing and the like can be quickly identified.

Description

Bank counter transaction automatic testing method and device based on linkage printer
Technical Field
The invention relates to the technical field of automatic testing, in particular to a bank counter transaction automatic testing method and device based on a linkage printer.
Background
At present, for bank counter transaction using a linkage printer as an external device, a test method of manually executing transaction, entity printing and manual comparison is generally adopted for testing. The linkage printer of the business system connection entity is needed to execute the successful test transaction, the content to be printed is processed by the driving of the printing tool and then is transmitted to the printer, and the content is printed on the paper voucher.
Because the transaction involves the physical peripheral, the execution part of the physical peripheral cannot be processed by the automated testing tool, and the operation of the physical peripheral requires human intervention. Therefore, automated testing of bank counter transactions based on linked printers cannot be achieved. And the printed paper content can only be identified and compared manually, so that the process is time-consuming and low in accuracy.
Disclosure of Invention
In view of the above, in order to solve the above problems, the present invention provides a method and an apparatus for automated testing of bank counter transactions based on a linkage printer, and the technical scheme is as follows:
a bank counter transaction automatic testing method based on a linkage printer comprises the following steps:
acquiring a transaction recording script, wherein the transaction recording script can represent the process of test transaction execution, generating a printing result file through linkage printer driving, and obtaining and storing a result picture by reversely processing the printing result file;
the transaction recording script is played back to obtain a result picture played back this time;
and acquiring a standard result picture of the test transaction, and determining the test result of the playback by comparing the result picture of the playback with the standard result picture.
Preferably, the acquiring the transaction recording script includes:
starting an interface-level automatic testing tool;
recording a system interface which executes the test transaction execution, generates a printing result file through a linkage printer drive and obtains and stores a result picture by reversely processing the printing result file through the interface-level automatic test tool;
and closing the interface-level automatic testing tool, and acquiring the transaction recording script output by the interface-level automatic testing tool.
Preferably, the determining the test result of the current playback by comparing the result picture of the current playback with the standard result picture includes:
respectively identifying the result picture played back this time and the standard result picture based on an image identification algorithm, wherein the image identification result comprises data and the position of the data;
respectively comparing the data in the result picture played back this time with the data in the standard result picture and the position of the data;
if the data in the result picture played back this time and the data in the standard result picture are the same, determining that the playback test is successful;
and if the result picture played back at this time is different from the data in the standard result picture or the position of the data, determining that the playback test at this time fails.
Preferably, the method further comprises:
acquiring script playback parameters;
and repeatedly returning and executing the step of playing back the transaction recording script for multiple times according to the script playback parameters so as to obtain result pictures and test results of multiple times of playback.
Preferably, the method further comprises:
selecting a result picture with a test result as a comparison picture for each result picture with a test result as a test failure;
and re-determining the test result corresponding to the result picture by comparing the result picture with the comparison picture.
Preferably, the method further comprises:
and writing the result pictures played back for multiple times and the latest test result into a comparison result report. .
An automated testing device for counter transactions of banks based on a linkage printer, the device comprising:
the transaction recording module is used for acquiring a transaction recording script, wherein the transaction recording script can represent the process of executing test transaction, generating a printing result file through the driving of a linkage printer, and acquiring and storing a result picture by reversely processing the printing result file;
the transaction playback module is used for playing back the transaction recording script to obtain a result picture played back this time;
and the image comparison module is used for acquiring a standard result picture of the test transaction and determining the test result of the playback by comparing the result picture of the playback with the standard result picture.
Preferably, the transaction recording module is specifically configured to:
starting an interface-level automatic testing tool; recording a system interface which executes the test transaction execution, generates a printing result file through a linkage printer drive and obtains and stores a result picture by reversely processing the printing result file through the interface-level automatic test tool; and closing the interface-level automatic testing tool, and acquiring the transaction recording script output by the interface-level automatic testing tool.
Preferably, the image comparison module, configured to determine the test result of the current playback by comparing the result picture of the current playback with the standard result picture, is specifically configured to:
respectively identifying the result picture played back this time and the standard result picture based on an image identification algorithm, wherein the image identification result comprises data and the position of the data; respectively comparing the data in the result picture played back this time with the data in the standard result picture and the position of the data; if the data in the result picture played back this time and the data in the standard result picture are the same, determining that the playback test is successful; and if the result picture played back at this time is different from the data in the standard result picture or the position of the data, determining that the playback test at this time fails.
Preferably, the transaction playback module is further configured to:
acquiring script playback parameters; and repeatedly returning and executing the step of playing back the transaction recording script for multiple times according to the script playback parameters so as to obtain result pictures and test results of multiple times of playback.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a bank counter transaction automatic test method and device based on a linkage printer, which are used for carrying out a complete test process of a bank counter linkage printer test transaction, obtaining and storing a result picture by reversely processing a print result file instead of printing the print result file to a paper file link by a printer. Based on the invention, the full-process automatic test of bank counter transaction based on the linkage printer can be realized, and the problems of missed printing, mistaken printing and the like can be quickly identified.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a method for automated testing of counter transaction of a bank based on a linkage printer according to an embodiment of the present invention;
FIG. 2 is a flow chart of a part of a method for automated testing of counter transaction of a bank based on a linkage printer according to an embodiment of the present invention;
FIG. 3 is a flow chart of a part of a method for automated testing of counter transaction of a bank based on a linkage printer according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an automated testing apparatus for bank counter transaction based on a linkage printer according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
At present, the automatic testing field of the bank counter system is divided into the following types aiming at the counter transaction testing technology of the linkage printer:
(1) adopting a mode of entity printing and manual comparison; (2) replacing the entity printer with the virtual printer, acquiring data content to be printed for storage, and comparing a printing result passing through the virtual printer with the stored printing data; (3) the printing program interface reads the printing test data to obtain a printing result, and the printing result is compared with the fields of the printing test data.
The above technique has the following problems: (1) by adopting the modes of entity printing and manual comparison, although the test related to the printer counter transaction can be realized, the test process depends on the participation of people, and the automation of the test process and the automation of the comparison and judgment of the test result cannot be realized; (2) the method comprises the steps that printing data are compared depending on a virtual printer, although an automatic test can be realized, virtual equipment cannot realize the test of the actual driving function of the printer, and the test of a voucher printed by counter transaction comprises whether printing content is accurate or not and whether a printing position is correct or not; (3) although the driver can be tested, only the accuracy of the print content can be determined, and the print position accuracy cannot be tested, as in (2).
Therefore, the invention provides a bank counter transaction automatic test scheme based on the linkage printer. To understand the present invention, the related concepts are first explained:
bank counter transaction: the function of the business system used by business personnel at the bank counter is realized, and the service to customers is realized through the function.
Linkage printer driving: the printer manufacturer writes a configuration file, has a specific processing function, realizes the communication between the system and the printer and enables the printer to work normally.
Image recognition: refers to a technique of processing, analyzing and understanding an image with a computer to recognize various patterns of objects and objects.
Automated testing: the human-driven test behavior is converted into a process executed by a machine.
Interface level automated test tool: and recording the functions of the system interface, and then playing back to achieve the tool for testing the system functions.
The embodiment of the invention provides a bank counter transaction automatic testing method based on a linkage printer, and the flow chart of the method is shown in figure 1, and the method comprises the following steps:
and S10, acquiring a transaction recording script, wherein the transaction recording script can represent the process of executing the test transaction, generating a printing result file through the linkage printer driver, and acquiring and storing a result picture by reversely processing the printing result file.
In the embodiment of the invention, for a test transaction, an interface-level automatic test tool can be used for executing the test transaction, a printing result file is generated by linkage printer driving, and the process of obtaining and storing a result picture by reversely processing the printing result file is recorded to generate a corresponding script, namely a transaction recording script, which is used for playback when the test transaction is executed for multiple times.
In a specific implementation process, the step S10 "acquiring the transaction recording script" may adopt the following steps, and a flowchart of the method is shown in fig. 2:
and S101, starting the interface-level automatic testing tool.
In the embodiment of the invention, before the test transaction is executed, the interface-level automatic test tool is started to record.
And S102, recording a system interface which executes the test transaction, generates a printing result file through the linkage printer driver and obtains and stores a result picture through reversely processing the printing result file through the interface-level automatic test tool.
In the embodiment of the invention, an operator operates the business system to execute the test transaction of the bank counter, and the interface level automatic test tool records the system interface of each step of the test transaction.
And after the test transaction is successfully executed, namely a printing certificate link is entered, the business system calls a linkage printer driver, printing certificate data are transmitted to the linkage printer driver, and the printing certificate data are processed by the linkage printer driver to generate a printing result file.
Further, the file content in the printing result file can be converted into a result picture through a fixed reverse processing method, so that the printing result file can be restored into the picture without damage, namely the result picture, and the picture is stored in a designated storage area or storage equipment.
It should be noted that all system interfaces involved in the process of executing the test transaction, generating the print result file through the printer driver, and obtaining and storing the result picture by reversely processing the print result file are recorded by the interface-level automation test tool.
And S103, closing the interface level automatic testing tool and acquiring the transaction recording script output by the interface level automatic testing tool.
In the embodiment of the invention, after the saved result picture is confirmed, an operator can close the interface level automatic testing tool in a shortcut key mode, and at the moment, the interface level automatic testing tool can convert all data recorded by the interface level automatic testing tool into the transaction recording script and output the transaction recording script.
Through the process, all system interfaces of a test transaction, which are executed to generate a printing result file by linking with a printer driver and then reversely process the printing result file to obtain and store a result picture, can be obtained. And subsequently playing back the transaction recording script once, namely, performing a full-flow test on the test transaction once.
And S20, playing back the transaction recording script to obtain the result picture of the playback.
In the embodiment of the invention, once the transaction recording script is played back, the test transaction can be tested once, and the result picture played back at this time can be correspondingly obtained.
And S30, acquiring a standard result picture of the test transaction, and determining the test result of the playback by comparing the result picture of the playback with the standard result picture.
In the embodiment of the present invention, the standard result picture may be a result picture that is confirmed by an operator to meet requirements when recording a transaction recording script, and may also be a picture obtained from another channel, which is not limited herein.
Further, the result picture and the standard result picture which are played back at the time are respectively identified by using an image identification algorithm so as to compare the identification results of the result picture and the standard result picture, thereby judging whether the result picture and the standard result picture are consistent, if so, determining that the playback test is successful, otherwise, failing.
In a specific implementation process, in step S30, "determining the test result of the current playback by comparing the result picture of the current playback with the standard result picture" may adopt the following steps, and a flowchart of the method is shown in fig. 3:
s301, respectively identifying data in the result picture and the standard result picture played back at the current time based on an image identification algorithm, wherein the image identification result comprises the content of the data and the position of the data.
In the embodiment of the invention, the content of the data in the identified picture and the position of the data can be obtained through an image identification algorithm. In addition, in order to improve the accuracy of the position comparison, the embodiment of the invention can also preset a position deviation threshold value, and the threshold value is used as a passing criterion of the comparison.
S302, the contents of the data in the result picture played back this time and the standard result picture are compared respectively, and the position of the data is compared.
And S303, if the contents of the data and the positions of the data in the result picture and the standard result picture which are played back at the time are the same, determining that the playback test is successful.
In the embodiment of the invention, for the content of the data, whether the result picture played back at this time is completely consistent with the standard result picture needs to be compared. For example, if the actual position deviation of the data related to the result picture and the standard result picture played back this time is smaller than the threshold, it indicates that the positions of the data are the same, and otherwise, the positions of the data are different.
S304, if the contents of the data in the result picture played back at this time and the standard result picture or the position of the data are different, determining that the playback test at this time fails.
In some other embodiments, to implement the automated retest, the following steps may be further performed in the embodiments of the present invention:
acquiring script playback parameters; and repeating and returning to the step 20 for multiple times according to the script playback parameters to obtain the result pictures and the test results of the multiple times of playback.
In the embodiment of the invention, the script playback parameters comprise playback time, playback times and the like, and the steps S20-S30 are triggered and executed under the corresponding playback time according to the script playback parameters, so as to obtain the result picture and the test result corresponding to the playback. Of course, if played back multiple times, multiple sets of result pictures and test results may be obtained. Therefore, the automatic execution of the complete flow of the test transaction can be realized, and the transaction automatic test is realized.
On this basis, in order to increase the accuracy of the alignment, the embodiment of the present invention further comprises the following steps:
selecting a result picture with a test result as a comparison picture for each result picture with a test result as a test failure; and re-determining the test result corresponding to the result picture by comparing the result picture with the comparison picture.
In the embodiment of the invention, after the transaction recording script is played back for multiple times, the result picture and the test result corresponding to each playback can be obtained. For the result picture in which the test result is the test failure, the result picture can be compared for the second time, specifically, a result picture in which the test result is the test success is randomly selected as a standard picture for the second comparison, that is, a comparison picture, and the two are compared according to the image recognition algorithm related to the step S30 to re-determine the test result.
It should be noted that the test result of the second comparison re-determination is the final test result regardless of the success of the test or the identification of the test.
On the basis, the result pictures played back for multiple times and the test results which are compared twice and are latest can be written into the result report. In addition, the test results of all the result pictures in the result report can be comprehensively compared to obtain relevant data of the transaction automation test, such as success rate, failure rate and the like.
The bank counter transaction automatic test method based on the linkage printer provided by the embodiment of the invention has the advantages that for the complete test process of the bank counter linkage printer test transaction, the link of printing the result file to the paper file instead of the printer is obtained and stored by reversely processing the print result file, the test transaction execution is carried out, the print result file is generated by the drive processing of the linkage printer, the result picture is obtained and stored by reversely processing the print result file, the complete recording of the process can be realized, the transaction recording script is obtained, then the automatic execution of the test transaction is realized by the playback of the transaction recording script, the result pictures are automatically compared, the played back test result is determined, and the full-process automatic test is realized. Based on the invention, the full-process automatic test of bank counter transaction based on the linkage printer can be realized, and the problems of missed printing, mistaken printing and the like can be quickly identified.
Based on the automated testing method for bank counter transaction based on the linkage printer provided by the embodiment, the embodiment of the invention correspondingly provides a device for executing the automated testing method for bank counter transaction based on the linkage printer, and the structural schematic diagram of the device is shown in fig. 4, and the method comprises the following steps:
the transaction recording module 10 is used for acquiring a transaction recording script, wherein the transaction recording script can represent the process of executing a test transaction, generating a printing result file through the driving of a linkage printer, and acquiring and storing a result picture by reversely processing the printing result file;
the transaction playback module 20 is configured to play back the transaction recording script to obtain a result picture of the playback;
the image comparison module 30 is configured to obtain a standard result picture of the test transaction, and determine a test result of the playback by comparing the result picture of the playback with the standard result picture.
Optionally, the transaction recording module 10 is specifically configured to:
starting an interface-level automatic testing tool; recording a system interface which executes test transaction execution, generates a printing result file through linkage printer driving and obtains and stores a result picture through reversely processing the printing result file by an interface-level automatic test tool; and closing the interface level automatic testing tool and obtaining the transaction recording script output by the interface level automatic testing tool.
Optionally, the image comparison module 30 is configured to determine the test result of the current playback by comparing the result picture of the current playback with the standard result picture, and is specifically configured to:
respectively identifying data in the result picture and the standard result picture which are played back at the time based on an image identification algorithm, wherein the image identification result comprises the content of the data and the position of the data; respectively comparing the contents of the data in the result picture and the standard result picture which are played back at this time and the position of the data; if the contents of the data and the positions of the data in the result picture and the standard result picture which are played back at this time are the same, determining that the playback test is successful; and if the contents of the data in the result picture played back at this time and the standard result picture or the position of the data are different, determining that the playback test at this time fails.
Optionally, the transaction playback module 20 is further configured to:
acquiring script playback parameters; and repeatedly returning and executing the step of playing back the transaction recording script for multiple times according to the script playback parameters so as to obtain result pictures and test results of multiple times of playback.
Optionally, the image comparison module 30 is further configured to:
selecting a result picture with a test result as a comparison picture for each result picture with a test result as a test failure; and re-determining the test result corresponding to the result picture by comparing the result picture with the comparison picture.
Optionally, the image comparison module 30 is further configured to:
and writing the result pictures played back for multiple times and the latest test result into a comparison result report.
It should be noted that, the detailed functions of the modules may refer to the corresponding disclosure of the automated testing method for bank counter transaction based on the linked printer, and are not described herein again.
The bank counter transaction automatic testing device based on the linkage printer provided by the embodiment of the invention has the advantages that for the complete testing process of the bank counter linkage printer testing transaction, the link of printing the result file to the paper file instead of the printer is obtained and stored by reversely processing the printing result file, the test transaction execution is carried out, the printing result file is generated by the driving processing of the linkage printer, the result picture is obtained and stored by reversely processing the printing result file, the complete recording of the process can be realized, the transaction recording script is obtained, then the automatic execution of the test transaction is realized by the playback of the transaction recording script, the result pictures are automatically compared, the played back test result is determined, and the full-process automatic testing is realized. Based on the invention, the full-process automatic test of bank counter transaction based on the linkage printer can be realized, and the problems of missed printing, mistaken printing and the like can be quickly identified.
The method and the device for automatically testing the bank counter transaction based on the linkage printer are described in detail, a specific example is applied to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include or include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A bank counter transaction automatic testing method based on a linkage printer is characterized by comprising the following steps:
acquiring a transaction recording script, wherein the transaction recording script can represent the process of test transaction execution, generating a printing result file through linkage printer driving, and obtaining and storing a result picture by reversely processing the printing result file;
the transaction recording script is played back to obtain a result picture played back this time;
and acquiring a standard result picture of the test transaction, and determining the test result of the playback by comparing the result picture of the playback with the standard result picture.
2. The method of claim 1, wherein obtaining a transaction recording script comprises:
starting an interface-level automatic testing tool;
recording a system interface which executes the test transaction execution, generates a printing result file through a linkage printer drive and obtains and stores a result picture by reversely processing the printing result file through the interface-level automatic test tool;
and closing the interface-level automatic testing tool, and acquiring the transaction recording script output by the interface-level automatic testing tool.
3. The method of claim 1, wherein the determining the test result of the current playback by comparing the result picture of the current playback with the standard result picture comprises:
respectively identifying data in the result picture played back this time and the standard result picture based on an image identification algorithm, wherein the image identification result comprises the content of the data and the position of the data;
respectively comparing the contents of the data in the result picture played back this time with the contents of the data in the standard result picture and the positions of the data;
if the contents and the positions of the data in the result picture of the playback and the standard result picture are the same, determining that the playback test is successful;
and if the contents of the data or the positions of the data in the result picture of the playback and the standard result picture are different, determining that the playback test fails.
4. The method of claim 1, further comprising:
acquiring script playback parameters;
and repeatedly returning and executing the step of playing back the transaction recording script for multiple times according to the script playback parameters so as to obtain result pictures and test results of multiple times of playback.
5. The method of claim 4, further comprising:
selecting a result picture with a test result as a comparison picture for each result picture with a test result as a test failure;
and re-determining the test result corresponding to the result picture by comparing the result picture with the comparison picture.
6. The method of claim 5, further comprising:
and writing the result pictures played back for multiple times and the latest test result into a comparison result report.
7. The utility model provides a bank counter transaction automation testing arrangement based on linkage printer which characterized in that, the device includes:
the transaction recording module is used for acquiring a transaction recording script, wherein the transaction recording script can represent the process of executing test transaction, generating a printing result file through the driving of a linkage printer, and acquiring and storing a result picture by reversely processing the printing result file;
the transaction playback module is used for playing back the transaction recording script to obtain a result picture played back this time;
and the image comparison module is used for acquiring a standard result picture of the test transaction and determining the test result of the playback by comparing the result picture of the playback with the standard result picture.
8. The apparatus of claim 7, wherein the transaction recording module is specifically configured to:
starting an interface-level automatic testing tool; recording a system interface which executes the test transaction execution, generates a printing result file through a linkage printer drive and obtains and stores a result picture by reversely processing the printing result file through the interface-level automatic test tool; and closing the interface-level automatic testing tool, and acquiring the transaction recording script output by the interface-level automatic testing tool.
9. The apparatus according to claim 7, wherein the image comparison module, configured to determine the test result of the current playback by comparing the result picture of the current playback with the standard result picture, is specifically configured to:
respectively identifying data in the result picture played back this time and the standard result picture based on an image identification algorithm, wherein the image identification result comprises the content of the data and the position of the data; respectively comparing the contents of the data in the result picture played back this time with the contents of the data in the standard result picture and the positions of the data; if the contents and the positions of the data in the result picture of the playback and the standard result picture are the same, determining that the playback test is successful; and if the contents of the data or the positions of the data in the result picture of the playback and the standard result picture are different, determining that the playback test fails.
10. The apparatus of claim 7, wherein the transaction playback module is further configured to:
acquiring script playback parameters; and repeatedly returning and executing the step of playing back the transaction recording script for multiple times according to the script playback parameters so as to obtain result pictures and test results of multiple times of playback.
CN202011550905.8A 2020-12-24 2020-12-24 Bank counter transaction automatic testing method and device based on linkage printer Pending CN112597021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011550905.8A CN112597021A (en) 2020-12-24 2020-12-24 Bank counter transaction automatic testing method and device based on linkage printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011550905.8A CN112597021A (en) 2020-12-24 2020-12-24 Bank counter transaction automatic testing method and device based on linkage printer

Publications (1)

Publication Number Publication Date
CN112597021A true CN112597021A (en) 2021-04-02

Family

ID=75200926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011550905.8A Pending CN112597021A (en) 2020-12-24 2020-12-24 Bank counter transaction automatic testing method and device based on linkage printer

Country Status (1)

Country Link
CN (1) CN112597021A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662087A (en) * 2023-05-12 2023-08-29 深圳市威立印技术有限公司 Printer software testing system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2968782B1 (en) * 1998-05-11 1999-11-02 日本電気ソフトウェア株式会社 Print result automatic evaluation method
CN103034460A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Method and device for testing printer driver
CN109308250A (en) * 2017-07-26 2019-02-05 上海富瀚微电子股份有限公司 A kind of GUI automated testing method and system
CN109446055A (en) * 2018-09-04 2019-03-08 中国平安人寿保险股份有限公司 Print routine test method, device, computer equipment and storage medium
CN110275834A (en) * 2019-06-25 2019-09-24 中国工商银行股份有限公司 User interface automatization test system and method
CN111782521A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Printing automation test method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2968782B1 (en) * 1998-05-11 1999-11-02 日本電気ソフトウェア株式会社 Print result automatic evaluation method
CN103034460A (en) * 2011-09-30 2013-04-10 北大方正集团有限公司 Method and device for testing printer driver
CN109308250A (en) * 2017-07-26 2019-02-05 上海富瀚微电子股份有限公司 A kind of GUI automated testing method and system
CN109446055A (en) * 2018-09-04 2019-03-08 中国平安人寿保险股份有限公司 Print routine test method, device, computer equipment and storage medium
CN110275834A (en) * 2019-06-25 2019-09-24 中国工商银行股份有限公司 User interface automatization test system and method
CN111782521A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Printing automation test method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662087A (en) * 2023-05-12 2023-08-29 深圳市威立印技术有限公司 Printer software testing system and method

Similar Documents

Publication Publication Date Title
CN109086203B (en) Page detection method and device
US8645912B2 (en) System and method for use in replaying software application events
US10162742B2 (en) System and method for end to end performance response time measurement based on graphic recognition
CN115080398A (en) Automatic interface test system and method
CN114419622A (en) Method and system for judging scanning mode of scanning pen, electronic device and readable storage medium
CN112597021A (en) Bank counter transaction automatic testing method and device based on linkage printer
CN114546881A (en) Application software testing method, electronic device and computer readable storage medium
CN115629968A (en) Test data recording method and device
CN108595332B (en) Software testing method and device
CN114253841A (en) Test script generation method and device and storage medium
CN110008074B (en) Method, device and equipment for automatically testing and inquiring upper-layer interface of hardware information
CN101556552A (en) Test method of basic input output system
CN111782521B (en) Printing automation test method and device
CN114756448A (en) Automatic testing system and method for reduction degree of user interface
CN110633976B (en) Virtual resource transfer method and device
JP2017138863A (en) Information processing device and information processing program
CN112559377A (en) Method and device for generating first test case
CN113296660A (en) Image processing method and device and electronic equipment
CN110795355A (en) Method and device for detecting memory leakage
JP2003006001A (en) Test device of job processing software
CN112863084B (en) Intelligent sales terminal, and testing method, device and system of intelligent sales terminal
US11874764B2 (en) Method and system for guaranteeing game quality by using artificial intelligence agent
CN116578438B (en) Automatic detection method and device suitable for aging transformation
CN112312148B (en) Business function starting method and device, electronic equipment and storage medium
CN113094265B (en) Analysis method and analysis device for test script and electronic 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