CN113010416A - Bank counter transaction automatic testing method and device - Google Patents

Bank counter transaction automatic testing method and device Download PDF

Info

Publication number
CN113010416A
CN113010416A CN202110217114.1A CN202110217114A CN113010416A CN 113010416 A CN113010416 A CN 113010416A CN 202110217114 A CN202110217114 A CN 202110217114A CN 113010416 A CN113010416 A CN 113010416A
Authority
CN
China
Prior art keywords
window
bank
transaction
counter
counter transaction
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
CN202110217114.1A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110217114.1A priority Critical patent/CN113010416A/en
Publication of CN113010416A publication Critical patent/CN113010416A/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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a bank counter transaction automatic testing method and a device, which can be used in the field of finance, wherein the method comprises the following steps: determining a counter transaction window of the current bank transaction terminal according to the mouse position information; acquiring pre-stored test data; and executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data. The invention determines the counter transaction window of the current bank transaction terminal according to the mouse position information, directly acquires each window of the operated transaction, and then calls the keyboard and the mouse method of the operating system to operate the window, thereby being not influenced by factors such as image identification, resolution ratio and the like, and achieving stable automatic test effect and success rate.

Description

Bank counter transaction automatic testing method and device
Technical Field
The invention relates to an automatic testing technology, in particular to a bank counter transaction automatic testing method and device.
Background
At present, the test of bank counter transaction is mainly based on manual test or automatic test is carried out through an image recognition technology, but the image recognition technology is often influenced by various factors such as computer resolution, personal display setting and the like, so that inaccurate identification or identification failure is caused, and the success rate of automatic test is reduced or transaction error is reported.
In summary, at present, there is no reasonable solution to the problem of automated testing of bank counter transactions, and therefore how to provide a new solution to solve the above technical problems is a technical problem to be solved in the art.
Disclosure of Invention
In order to overcome at least one defect of the automated test of bank counter transaction in the prior art, the invention provides an automated test method of bank counter transaction, which comprises the following steps:
determining a counter transaction window of the current bank transaction terminal according to the mouse position information;
acquiring pre-stored test data;
and executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
In the embodiment of the present invention, the determining the counter transaction window of the current bank terminal according to the mouse position information includes:
determining the coordinates of the mouse according to the position information of the mouse;
acquiring a JAVA window handle of counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and determining the current counter transaction window according to the JAVA window handle.
In an embodiment of the present invention, the determining the current counter transaction window according to the JAVA window handle includes:
acquiring the rectangular information of the current counter transaction window according to the JAVA window handle;
and executing flashing operation on the current counter transaction window according to the rectangular information.
In the embodiment of the present invention, the acquiring of the pre-stored test data includes:
acquiring a file storage path provided by a user;
and acquiring pre-stored test data according to the file storage path.
In the embodiment of the present invention, the executing of the automated test of the bank counter transaction according to the determined counter transaction window and the obtained test data includes:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to perform test operation so as to execute the automated test of the bank counter transaction.
Meanwhile, the invention also provides an automatic testing device for bank counter transaction, which comprises:
the window determining module is used for determining a counter transaction window of the current bank transaction terminal according to the mouse position information;
the test data acquisition module is used for acquiring pre-stored test data;
and the test execution module is used for executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
In the embodiment of the present invention, the window determining module includes:
the coordinate acquisition unit is used for determining the coordinates of the mouse according to the position information of the mouse;
the window handle acquiring unit is used for acquiring the JAVA window handle of the counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and the window determining unit is used for determining the current counter transaction window according to the JAVA window handle.
In the embodiment of the invention, the automatic test of the bank counter transaction executed by the test execution module according to the determined counter transaction window and the acquired test data comprises the following steps:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to execute test operation so as to automatically test the counter transaction of the bank.
Meanwhile, the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the method when executing the computer program.
Meanwhile, the invention also provides a computer readable storage medium, and a computer program for executing the method is stored in the computer readable storage medium.
The invention provides a bank counter transaction automatic test method and a device, which determine a counter transaction window of a current bank transaction terminal according to mouse position information; acquiring pre-stored test data; and executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data. The method comprises the steps of identifying JAVA class names in a JAVA process at the bottom layer of an operating system, determining a counter transaction window of a current bank transaction terminal according to mouse position information, directly acquiring JAVA classes and attributes corresponding to each window and an input field of operated transactions, and calling a keyboard and a mouse method of the operating system to operate the windows. Because the operation is carried out based on the program process class, the method is not influenced by factors such as image identification, resolution ratio and the like, and can achieve stable automatic test effect and success rate.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an automated testing method for counter transactions of a bank provided by the present invention;
FIG. 2 is a block diagram of an automated testing device for counter transactions in a bank according to an embodiment of the present invention;
FIG. 3 is a diagram of an apparatus for obtaining JAVA handle according to an embodiment of the present invention;
FIG. 4 is a diagram of a test data reading apparatus provided in an embodiment of the present invention;
FIG. 5 is a diagram of a JAVA handle and test data manipulation apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram of a processing result output device according to an embodiment of the present invention;
FIG. 7 is a flow chart of an automated testing apparatus for counter transactions of a bank provided in an embodiment of the present invention;
FIG. 8 is a block diagram of an automated testing apparatus for counter transactions in a bank according to the present invention;
fig. 9 is a schematic diagram of an electronic device provided in an embodiment of the 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.
At present, bank counter transaction is automatically tested by an image recognition technology, but the image recognition technology is often influenced by various factors such as computer resolution, personal display setting and the like, so that inaccurate recognition or failed recognition is caused, and the success rate of automatic testing or transaction error reporting is reduced; acquiring pre-stored test data; executing the automated test of the bank counter transaction according to the determined counter transaction window and the obtained test data; the invention provides a bank counter transaction automatic test method and device based on JAVA class processing, wherein JAVA class names in a JAVA process at the bottom layer of an operating system are identified, JAVA classes and attributes corresponding to windows and input fields of operated transactions are directly obtained, and counter transaction windows of a current bank transaction terminal are determined according to mouse position information. Because the operation is carried out based on the program process class, the method is not influenced by factors such as image identification, resolution ratio and the like, and can achieve stable automatic test effect and success rate.
As shown in fig. 1, the automated testing method for bank counter transaction provided by the present invention includes:
step S101, determining a counter transaction window of a current bank transaction terminal according to the mouse position information;
step S102, obtaining pre-stored test data;
and step S103, executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
The invention provides an automated testing method for bank counter transaction, which determines the counter transaction window of the current bank transaction terminal according to the mouse position information to realize the automated testing method for bank counter transaction based on JAVA class processing. Because the operation is carried out based on the program process class, the method is not influenced by factors such as image identification, resolution ratio and the like, and can achieve stable automatic test effect and success rate.
Specifically, in the embodiment of the present invention, the determining the counter transaction window of the current bank terminal according to the mouse position information includes:
determining the coordinates of the mouse according to the position information of the mouse;
acquiring a JAVA window handle of counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and determining the current counter transaction window according to the JAVA window handle.
Namely, in the embodiment of the invention, according to the coordinate of the current mouse, the JAVA window handle of the currently selected bank transaction terminal is acquired, and the rectangular information of the current window is acquired at the same time.
And acquiring the coordinates of the current mouse position according to the mouse position. In an embodiment of the invention, the coordinates of the mouse are obtained by using a windows operating system API function.
And acquiring the currently selected JAVA window handle of the bank transaction terminal according to the coordinates of the current mouse. I.e., using the windows operating system API to obtain the JAVA window handle.
In an embodiment of the present invention, the determining the current counter transaction window according to the JAVA window handle includes:
acquiring the rectangular information of the current counter transaction window according to the JAVA window handle;
and executing flashing operation on the current counter transaction window according to the rectangular information.
And acquiring the coordinates of the current mouse position according to the mouse position, acquiring the coordinates of the mouse by using a windows operating system API function, and acquiring the currently selected JAVA window handle of the bank transaction terminal according to the coordinates of the current mouse. I.e., using the windows operating system API to obtain the JAVA window handle. Further, current window rectangle information is obtained according to the coordinates of the current mouse, a window rectangle is obtained by using a windows operating system API, and then the selected window flickers by using an API method, so that a user can know which window is selected.
In the embodiment of the present invention, the acquiring of the pre-stored test data includes:
acquiring a file storage path provided by a user;
and acquiring pre-stored test data according to the file storage path.
And reading the file storing the test data according to the file path provided by the user, and then reading the test data in the file. The method specifically comprises the following steps: and reading the file for storing the test data according to the file path provided by the user, reading the test data in the file, and acquiring the data value of the specified field.
In the embodiment of the present invention, the executing of the automated test of the bank counter transaction according to the determined counter transaction window and the obtained test data includes:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to perform test operation so as to execute the automated test of the bank counter transaction.
In the embodiment of the invention, according to the acquired JAVA window handle and the read test data, WINAPI is called to execute mouse and keyboard operations on the bank transaction terminal for the corresponding JAVA window, and the acquired test data is used as the input test data to execute the automated test of the bank counter transaction. In this embodiment, according to the JAVA window handle, the WINAPI is called to execute a mouse operation on the bank transaction terminal for the corresponding JAVA window, and a teller operation is simulated.
The embodiment of the invention provides a JAVA class processing-based automated testing method and a JAVA class processing-based automated testing device for counter transactions of banks. Because the operation is carried out based on the program process class, the method is not influenced by factors such as image identification, resolution ratio and the like, and can achieve stable automatic test effect and success rate. In the embodiment of the invention, by identifying the JAVA class name in the JAVA process at the bottom layer of the operating system, the stable automatic testing effect and success rate of bank counter transaction can be achieved. Its advantages are as follows:
and (3) system stabilization: the operation is stable, and the script can not be interrupted due to the reasons of resolution ratio and the like;
the expansibility is strong: can be copied to different computers for operation;
the efficiency is improved: compared with an image recognition script, the system has the advantage that the efficiency is obviously improved.
The technical solution of the present invention is further described in detail below with reference to a specific embodiment, and the system and the method of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 2, it is a structure diagram of an automated testing system for counter transaction of bank provided by the present invention, which includes:
the JAVA handle acquiring apparatus 1: and acquiring the coordinates of the current mouse, acquiring the currently selected JAVA window handle of the bank transaction terminal according to the coordinates of the current mouse, and acquiring the rectangular information of the current window.
The test data reading device 2: reading a file storing test data according to a file path provided by a user, reading the test data in the file, and acquiring a data value of a designated field.
The JAVA handle and test data operating apparatus 3: calling WINAPI to execute mouse and keyboard operation to bank transaction terminal according to the information read by JAVA handle obtaining device 1 and test data reading device 2, wherein the test data to be input uses the data obtained from test data reading device 2.
Processing result output means 4: judging the operation result of the JAVA handle and the test data operation device 3, and if the operation is successful, outputting success information; and if the operation fails, outputting failure information.
Fig. 3 is a schematic diagram of an internal structure of the JAVA handle acquiring apparatus 1 in the present embodiment, and as shown in fig. 3, the JAVA handle acquiring apparatus 1 includes:
mouse coordinate acquisition unit 11: for obtaining the coordinates of the current mouse position.
In this embodiment, the method for obtaining the coordinates of the mouse includes: and obtaining by using a windows operating system API method GetCursorPos (& M), and storing in a variable M.
Window handle acquisition unit 12: and acquiring the currently selected JAVA window handle of the bank transaction terminal according to the coordinates of the current mouse.
In this embodiment, the obtaining method is: and obtaining W (WindowFromPoint) (M) by using a windows operating system API method, and storing the obtained W in a variable W, wherein the used variable M is the variable obtained from the mouse coordinate obtaining unit 11.
Window rectangle acquisition unit 13: and the method is used for acquiring the rectangular information of the current window according to the coordinates of the current mouse.
The acquisition method of the embodiment is as follows: GetWindowRect (W, & R) acquires a window rectangle R, wherein the variable W used is the variable acquired from the window handle acquisition unit 12.
Then using the API method: rectangle (r.left, r.top, r.right, r.bottom) flickers the selected window, so that the user knows which window was selected.
Fig. 4 is a schematic diagram of an internal structure of the test data reading apparatus 2, in this embodiment, the test data reading apparatus 2 includes:
the document reading unit 21: and the file storage module is used for reading the file for storing the test data according to the file path provided by the user.
Examples are as follows: f ═ OpenXlsx (E: \ test data. et), the file path and file name are saved in variable F.
The field reading unit 22: and reading the test data in the file, and acquiring the data value of the specified field.
Examples are as follows: t — ReadXlsx (F, number of rows and columns), where the variable F is obtained from the file reading unit 21, and the number of rows and columns is specified by the user, and the value thereof is read into the variable T.
FIG. 5 is a schematic diagram illustrating an internal structure of the JAVA handle and test data manipulator 3, wherein the JAVA handle and test data manipulator 3 comprises:
the mouse operation unit 31: and calling WINAPI to execute mouse operation on the bank transaction terminal according to the information read by the device 1 and corresponding JAVA window, and simulating teller operation. Examples are as follows:
clicking a mouse: s ═ leftclick (W), where the variable W is acquired from the window handle acquisition unit 12 of the apparatus 1.
And after the processing is finished, returning the processing result to the variable S, if the processing is successful, returning to 1, and otherwise, returning to 0.
The keyboard operation unit 32: calling WINAPI to execute keyboard operation on a bank transaction terminal according to the information read by the device 1 and the device 2 for the corresponding JAVA window, wherein the test data needing to be input uses the data acquired from the device 2; the window object of the operation is acquired from the apparatus 1. Examples are as follows:
inputting data: s — SendKeys (W, T), where the variable W is acquired from the window handle acquisition unit 12 of the device 1 and the variable T is acquired from the field reading unit 22 of the device 2.
And after the processing is finished, returning the processing result to the variable S, if the processing is successful, returning to 1, and otherwise, returning to 0.
Fig. 6 is a block diagram showing the processing result output apparatus 4, wherein the processing result output apparatus 4 includes:
the exception processing output unit 41: and judging the operation result of the JAVA handle and the test data operation device 3, and if the operation fails, outputting failure information.
Examples are as follows:
Figure BDA0002954198020000081
the variable S is obtained from the JAVA handle and the test data manipulator 3.
Normal processing output unit 42: and judging the operation result of the JAVA handle and the test data operation device 3, and if the operation is successful, outputting success information.
Examples are as follows:
examples are as follows:
Figure BDA0002954198020000082
the embodiment of the invention provides a JAVA class processing-based bank counter transaction automatic test system, which directly obtains corresponding JAVA classes and attributes of each window and input field of operated transaction by identifying JAVA class names in a JAVA process at the bottom layer of an operating system, and then calls a keyboard and mouse method of the operating system to operate the JAVA classes and attributes. Because the operation is carried out based on the program process class, the method is not influenced by factors such as image identification, resolution ratio and the like, and can achieve stable automatic test effect and success rate.
As shown in fig. 7, a processing flow of the automated testing method for bank counter transaction provided in the embodiment of the present invention includes the following steps:
step S701: the application starts to boot.
Step S702: and acquiring the coordinates of the current mouse, acquiring the currently selected JAVA window handle of the bank transaction terminal according to the coordinates of the current mouse, and acquiring the rectangular information of the current window. The acquisition may be repeated multiple times.
Step S703: reading a file storing test data according to a file path provided by a user, reading the test data in the file, and acquiring a data value of a designated field.
Step S704: and calling WINAPI to corresponding JAVA window according to the information read by the devices 2 and 3 to execute mouse and keyboard operation on the bank transaction terminal, wherein the test data needing to be input uses the data acquired from the device 2.
Step S705: and judging the operation result of the device 3 and outputting corresponding information.
Step S706: if the operation is successful, success information is output.
Step S707: and if the operation fails, outputting failure information.
According to the automated testing method for counter transaction of bank provided by the embodiment, the stable automated testing effect and success rate of counter transaction of bank can be achieved by identifying the JAVA class name in the bottom JAVA process of the operating system. The operation is stable, the script can not be interrupted due to reasons such as resolution ratio, and the automatic testing method for bank counter transaction improves the efficiency: compared with an image recognition script, the system has the advantage that the efficiency is obviously improved.
The bank counter transaction automatic test method and the bank counter transaction automatic test device provided by the invention can be used in the financial field or other fields, and it needs to be noted that the bank counter transaction automatic test method and the bank counter transaction automatic test device can be used for bank counter transaction automatic test in the financial field and can also be used for easy automatic test in any fields except the financial field, and the application field of the bank counter transaction automatic test method and the bank counter transaction automatic test device is not limited.
Meanwhile, an embodiment of the present invention further provides an automated testing apparatus for bank counter transactions, as shown in fig. 8, the apparatus includes:
a window determination module 801, configured to determine a counter transaction window of a current bank transaction terminal according to the mouse position information;
a test data acquiring module 802, configured to acquire pre-stored test data;
and the test execution module 803 is used for executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
In the embodiment of the present invention, the window determining module 801 obtains the coordinates of the current mouse, and obtains the JAVA window handle of the currently selected bank transaction terminal according to the coordinates of the current mouse, and obtains the rectangle information of the current window at the same time.
The test data obtaining module 802 reads a file storing the test data according to a file path provided by a user, and then reads the test data in the file to obtain a data value of the specified field.
The test execution module 803 calls WINAPI to execute mouse and keyboard operations on the bank transaction terminal for the corresponding JAVA window according to the acquired JAVA window handle and the read test data, wherein the test data to be input uses the data acquired from the test data reading device 2.
In the embodiment of the present invention, the window determining module includes:
the coordinate acquisition unit is used for determining the coordinates of the mouse according to the position information of the mouse;
the window handle acquiring unit is used for acquiring the JAVA window handle of the counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and the window determining unit is used for determining the current counter transaction window according to the JAVA window handle.
For those skilled in the art, the implementation of the automated testing apparatus for counter transaction in a bank provided by the present invention can be clearly understood through the description of the foregoing embodiments, and details are not repeated herein.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, and the like, but is not limited thereto. In this embodiment, the electronic device may refer to the embodiments of the method and the apparatus, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
Fig. 9 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 9, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the automated testing function for bank counter transactions may be integrated into the central processor 100. The central processor 100 may be configured to control as follows:
determining a counter transaction window of the current bank transaction terminal according to the mouse position information;
acquiring pre-stored test data;
and executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
In the embodiment of the present invention, the determining the counter transaction window of the current bank terminal according to the mouse position information includes:
determining the coordinates of the mouse according to the position information of the mouse;
acquiring a JAVA window handle of counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and determining the current counter transaction window according to the JAVA window handle.
In an embodiment of the present invention, the determining the current counter transaction window according to the JAVA window handle includes:
acquiring the rectangular information of the current counter transaction window according to the JAVA window handle;
and executing flashing operation on the current counter transaction window according to the rectangular information.
In the embodiment of the present invention, the acquiring of the pre-stored test data includes:
acquiring a file storage path provided by a user;
and acquiring pre-stored test data according to the file storage path.
In the embodiment of the present invention, the executing of the automated test of the bank counter transaction according to the determined counter transaction window and the obtained test data includes:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to perform test operation so as to execute the automated test of the bank counter transaction.
As shown in fig. 9, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in FIG. 9; furthermore, the electronic device 600 may also comprise components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
Embodiments of the present invention further provide a computer-readable program, where when the program is executed in an electronic device, the program causes a computer to execute the automated testing method for bank counter transactions in the electronic device according to the above embodiments.
The embodiment of the invention also provides a storage medium stored with a computer readable program, wherein the computer readable program enables a computer to execute the automated test of the bank counter transaction in the electronic device.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments that fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An automated testing method for counter transactions of banks is characterized by comprising the following steps:
determining a counter transaction window of the current bank transaction terminal according to the mouse position information;
acquiring pre-stored test data;
and executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
2. The automated testing method for bank counter transactions according to claim 1, wherein the determining of the counter transaction window of the current bank terminal according to the mouse position information comprises:
determining the coordinates of the mouse according to the position information of the mouse;
acquiring a JAVA window handle of counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and determining the current counter transaction window according to the JAVA window handle.
3. The automated test method for banking counter transactions according to claim 2, wherein said determining a current counter transaction window according to said JAVA window handle comprises:
acquiring the rectangular information of the current counter transaction window according to the JAVA window handle;
and executing flashing operation on the current counter transaction window according to the rectangular information.
4. The automated test method for bank counter transactions of claim 1, wherein said obtaining pre-stored test data comprises:
acquiring a file storage path provided by a user;
and acquiring pre-stored test data according to the file storage path.
5. The automated testing method for bank counter transactions according to claim 2, wherein said performing automated testing of bank counter transactions according to the determined counter transaction window and the acquired test data comprises:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to perform test operation so as to execute the automated test of the bank counter transaction.
6. An automated testing device for counter transactions of banks is characterized in that the device comprises:
the window determining module is used for determining a counter transaction window of the current bank transaction terminal according to the mouse position information;
the test data acquisition module is used for acquiring pre-stored test data;
and the test execution module is used for executing the automated test of the bank counter transaction according to the determined counter transaction window and the acquired test data.
7. The automated banking transaction testing device as claimed in claim 6, wherein said window determining module comprises:
the coordinate acquisition unit is used for determining the coordinates of the mouse according to the position information of the mouse;
the window handle acquiring unit is used for acquiring the JAVA window handle of the counter transaction of the current bank transaction terminal according to the coordinates of the mouse;
and the window determining unit is used for determining the current counter transaction window according to the JAVA window handle.
8. The automated testing apparatus for bank counter transactions according to claim 7, wherein the performing module for performing automated testing of bank counter transactions according to the determined counter transaction window and the obtained testing data comprises:
and inputting the acquired test data into the determined counter transaction window according to the JAVA window handle to execute test operation so as to automatically test the counter transaction of the bank.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 5.
CN202110217114.1A 2021-02-26 2021-02-26 Bank counter transaction automatic testing method and device Pending CN113010416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110217114.1A CN113010416A (en) 2021-02-26 2021-02-26 Bank counter transaction automatic testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110217114.1A CN113010416A (en) 2021-02-26 2021-02-26 Bank counter transaction automatic testing method and device

Publications (1)

Publication Number Publication Date
CN113010416A true CN113010416A (en) 2021-06-22

Family

ID=76387199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110217114.1A Pending CN113010416A (en) 2021-02-26 2021-02-26 Bank counter transaction automatic testing method and device

Country Status (1)

Country Link
CN (1) CN113010416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089849A (en) * 2021-11-08 2022-02-25 北京明朝万达科技股份有限公司 Mouse control method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN107102947A (en) * 2017-05-12 2017-08-29 中国工商银行股份有限公司 ATM transaction flows test device and method
CN109542440A (en) * 2018-11-29 2019-03-29 金蝶软件(中国)有限公司 To the operating method and device of window, computer installation and readable storage medium storing program for executing
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN107102947A (en) * 2017-05-12 2017-08-29 中国工商银行股份有限公司 ATM transaction flows test device and method
CN109542440A (en) * 2018-11-29 2019-03-29 金蝶软件(中国)有限公司 To the operating method and device of window, computer installation and readable storage medium storing program for executing
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089849A (en) * 2021-11-08 2022-02-25 北京明朝万达科技股份有限公司 Mouse control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108073519B (en) Test case generation method and device
CN109741755B (en) Voice awakening word threshold management device and method for managing voice awakening word threshold
CN111427803B (en) Automated random test method, apparatus, computer device and medium
CN109033772B (en) Verification information input method and device
WO2013075612A1 (en) Auto login method and device
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN107729246B (en) Auxiliary test method, device and equipment for target application and storage medium
CN110209569B (en) Interface test method, interface test device and storage medium
CN107832099A (en) A kind of client release compatible method, apparatus and storage medium
CN109684125B (en) Method, device, equipment and storage medium for repairing DDR physical damage
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
US20160062601A1 (en) Electronic device with touch screen and method for moving application functional interface
EP2631769A2 (en) Apparatus and Method of Handling a Touch Input in a Terminal
CN106484779B (en) File operation method and device
CN113010416A (en) Bank counter transaction automatic testing method and device
CN107153608B (en) Code detection method and code detection device
CN112711640A (en) Method and device for configuring business handling process
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN115687146A (en) BIOS (basic input output System) test method and device, computer equipment and storage medium
CN115588458A (en) Storage device testing method, system, device and readable storage medium
US20150067656A1 (en) Methods and Systems for Testing Interactions Between Mobile Applications
CN112596725A (en) Grading method and grading device for programming works, terminal equipment and storage medium
CN113050936A (en) Front-end data processing method and device based on integrated development environment
CN112860585A (en) Test script assertion generation method and device
CN112717372A (en) Cloud game control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination