CN111552603A - Mobile payment machine tool testing method and testing system - Google Patents

Mobile payment machine tool testing method and testing system Download PDF

Info

Publication number
CN111552603A
CN111552603A CN202010180931.XA CN202010180931A CN111552603A CN 111552603 A CN111552603 A CN 111552603A CN 202010180931 A CN202010180931 A CN 202010180931A CN 111552603 A CN111552603 A CN 111552603A
Authority
CN
China
Prior art keywords
mobile payment
test terminal
terminal
screen
payment
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
CN202010180931.XA
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.)
Wuhan Xiaoma Liancheng Technology Co ltd
Original Assignee
Wuhan Xiaoma Liancheng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Xiaoma Liancheng Technology Co ltd filed Critical Wuhan Xiaoma Liancheng Technology Co ltd
Priority to CN202010180931.XA priority Critical patent/CN111552603A/en
Publication of CN111552603A publication Critical patent/CN111552603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a test method and a test system for a mobile payment machine, wherein the test method comprises the following steps: the method comprises the steps that a test terminal controls a mobile payment terminal to refresh a payment code according to a first time interval, and a screen projection interface of the payment code is obtained in a screen projection mode; screen capture is carried out on the screen projection interface according to a second time interval to obtain a screen capture image; and providing the screen shot image for a mobile payment instrument to process. Because the mobile payment terminal is projected to the test terminal, refreshing of the payment page of the mobile payment terminal is automatically controlled by the test terminal without manual work, and the test terminal can automatically capture a large number of screens, thereby overcoming the defect that the mobile payment terminal in the prior art does not allow automatic screen capture. The mobile payment machine tool testing method can partially or even completely replace manual working procedures, and the provided large number of payment codes are beneficial to meeting the requirement of mobile payment machine tool program operation stability testing, so that the product quality of the mobile payment machine tool can be improved, and the related production cost can be reduced.

Description

Mobile payment machine tool testing method and testing system
Technical Field
The invention relates to the technical field of mobile payment, in particular to a mobile payment machine testing method and a mobile payment machine testing system.
Background
The mobile payment is widely applied in the public trip field, and hardware manufacturers related to all payment machines and tools often need to perform tests such as collection, analysis, verification, business transaction generation and the like on a large number of payment codes so as to test the stability of programs of the payment machines and tools. In the prior art, generally, a payment code on a mobile payment terminal is manually refreshed for a payment machine to identify, and due to the problems of safety and the like, the payment code needs to be refreshed once every a period of time to generate a new code, and the new code is frequently refreshed once every one minute. Therefore, when the test is carried out, a specially-assigned person is required to click the interface for a plurality of times in a long time, the test efficiency is low, and the cost is high. There are also studies to consider automatic screenshot of the payment page generated by the mobile payment terminal to reduce manual operation, however, due to security, the mobile payment terminal disables the screenshot authority of the payment code, and this scheme is not feasible.
Disclosure of Invention
In view of the above, the present invention has been made to provide a mobile payment instrument testing method that overcomes or at least partially solves the above-mentioned problems.
In a first aspect, an embodiment of the present invention provides a mobile payment instrument testing method, including the following steps:
the method comprises the steps that a test terminal controls a mobile payment terminal to refresh a payment code according to a first time interval, and a screen projection interface of the payment code is obtained in a screen projection mode;
screen capture is carried out on the screen projection interface according to a second time interval to obtain a screen capture image;
and providing the screen shot image for a mobile payment instrument to process.
Further, the test terminal receives a processing result of the mobile payment machine on the screen shot image.
Furthermore, the test terminal controls the mobile payment terminal to refresh the payment code according to the first time interval through the ADB command.
Further, the screen capture to obtain the screen capture image further includes:
carrying out screenshot on a preset coordinate position; or capturing the target window according to a preset rule to perform screenshot.
Furthermore, the test terminal comprises a main test terminal and at least one slave test terminal, and the main test terminal and the slave test terminals are respectively connected with different mobile payment terminals;
the slave test terminal also sends the obtained screen capture image to the master test terminal;
the main test terminal also provides the received screen shot images of the auxiliary test terminal for the payment machine to process.
In a second aspect, an embodiment of the present invention provides a mobile payment device testing method, which is used for simulating a multi-user payment scenario, and includes the following steps:
the test terminal controls each mobile payment terminal to refresh the payment code according to a third time interval according to a preset first rule, and a screen projection interface of the payment code is obtained in a screen projection mode;
performing screen capture on the target screen projection interface according to a second preset rule and a fourth time interval to obtain a screen capture image;
and providing the screen shot image for a mobile payment instrument to process.
In a third aspect, an embodiment of the present invention provides a mobile payment device testing system, including a testing terminal and mobile payment terminals corresponding to the testing terminal one by one, where:
the mobile payment terminal is used for establishing a screen projection relation with the test terminal, projecting the payment code to the test terminal, and receiving the control of the test terminal to refresh the payment code at a preset first time interval;
the mobile payment terminal is used for refreshing the payment code at a preset first time interval and acquiring a screen projection interface of the payment code; and the screen shot interface is also used for carrying out screen shot on the screen shot interface according to a second time interval to obtain a screen shot image and providing the screen shot image for the mobile payment machine tool to process.
In a fourth aspect, an embodiment of the present invention provides a mobile payment device testing system, including a testing terminal and a mobile payment terminal, where the testing terminal and the mobile payment terminal are in a one-to-many relationship, where:
the mobile payment terminal is used for establishing a screen projection relation with the test terminal, projecting the payment code to the test terminal, and receiving the control of the test terminal to refresh the payment code at a preset third time interval;
the test terminal is used for controlling the mobile payment terminal to refresh the payment code according to a preset first rule and a third time interval, and is used for acquiring a screen projection interface of the payment code; and the screen capture module is also used for carrying out screen capture on the target screen projection interface according to a second preset rule and a second time interval to obtain a screen capture image and providing the screen capture image for the mobile payment machine to process
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
because the mobile payment end is projected to the test terminal, refreshing of a payment page of the mobile payment end is automatically controlled by the test terminal, manual work is not needed, and the test terminal can automatically capture a large amount of screen capture images to be acquired by a mobile payment machine, so that the defect that the mobile payment end in the prior art does not allow automatic screen capture is overcome.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a mobile payment device testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a mobile payment device testing method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a method for testing a mobile payment device according to a third embodiment of the present invention;
fig. 4 is a flowchart of a mobile payment device testing method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile payment device testing system according to a fifth embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another mobile payment instrument testing system according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile payment device testing system according to a sixth embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile payment instrument testing system according to a sixth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the problems of manual work and low testing efficiency in the prior art, the embodiment of the invention provides a mobile payment machine testing method.
Example one
The embodiment of the invention provides a mobile payment machine and tool testing method, which is shown in a combined figure 1 and comprises the following steps:
s101, the test terminal controls the mobile payment terminal to refresh the payment code according to a first time interval, and a screen projection interface of the payment code is obtained in a screen projection mode.
The test terminal can be a PC, a tablet computer, a notebook computer and the like, can establish a screen projection relation with the mobile payment terminal, and is provided with a display. The screen projection relation between the mobile payment terminal and the test terminal can be established by utilizing the self-contained software of the mobile payment terminal or the third-party screen projection software. For example, an android mobile phone has a multi-screen interaction function, an apple mobile phone has a screen mirroring function, third-party screen projection software has a quick screen recording master and the like. The open source tool Scrcpy can also be used for modifying according to requirements and supporting screen projection according to the serial number of the mobile payment terminal. Of course, the video transmission flow between the mobile payment terminal and the test terminal can also be established according to the preset rule. The method for establishing the video transmission flow between the mobile payment terminal and the test terminal may refer to the prior art, and is not described herein again.
The mobile payment software that has more commonly used now mainly adopts the two-dimensional code as the payment code including paying treasured, little letter etc. from the security perspective, and the user need adopt different two-dimensional codes when paying at every turn, for example the payment is precious to have and requires same user in 3s to brush the sign indicating number and not pass through, all needs the manual two-dimensional code that refreshes during consequently prior art test.
In the embodiment of the invention, for realizing the automatic refreshing of the payment page of the mobile payment terminal, a more convenient method is that the test terminal controls the mobile payment terminal to refresh the payment page through an ADB command. For example, by using
adb shell input (x, y) command, where (x, y) may locate the upper left corner of the mobile payroll payment page. The coordinate location may be displayed in developer mode.
And the test terminal can also adjust the size or brightness when displaying a screen projection interface corresponding to the payment code of the mobile payment terminal.
And S102, performing screen capture on the screen-shot interface obtained in the step S101 according to a second time interval to obtain a screen-shot image.
If the screen projection interface is arranged at a fixed position of a display of the test terminal, a screen shot can be taken at the coordinate position each time. In some cases, the screen projection interface position cannot be accurately positioned, or an accurate screenshot image cannot be obtained at a preset coordinate position after the screen projection interface is shielded, and then a target window can be captured according to a preset rule to perform screenshot. For example, the test terminal can be positioned to an interface needing screen capturing according to the process number (PID) of the current screen projection program.
In some embodiments, a screen shot by a SCRcpy software can be used, the screen shot is a professional software for controlling the mobile phone by a computer, the connection in two modes of USB and Wi-Fi is supported, three operating systems of Windows, MacOS and Linux are used, any application does not need to be installed on the mobile phone, root is not needed, and the use is extremely convenient. Since the QuickGrab tool of the Scrcpy software only has a mac version at present, the QuickGrab tool can be modified according to the code of the open source of the QuickGrab and transplanted to other platforms. It will be appreciated that other screen capture software may be used.
In this embodiment, the frequency of screen capture by the test terminal is not suitable to be greater than the refresh frequency of the payment code of the mobile payment terminal, otherwise, repeated screen capture is performed on the same screen capture interface, and the same screen capture image is used for the test of the payment machine, thereby undoubtedly reducing the test efficiency. The second time interval is therefore preferably greater than or equal to the first time interval.
S103, providing the screen capture image for a mobile payment machine to process.
According to different application scenes, the mobile payment device may be different equipment, for example, in the field of travel payment, the mobile payment device may be a POS device arranged on a bus or a gate arranged in a subway, and the like. And a proper distance is set between the display of the test terminal and the payment machine so that the payment machine can better identify and analyze the screenshot image. The payment tool analyzes the acquired screen capture image into the payment information in the form of a character string containing the identity, the payment mode, a time stamp (the generation time of the payment code) and the safety verification information of the user, and verifies the validity and the legality of the payment information through a verification program. If the verification is passed, the information such as the line information, the equipment ID and the like contained in the mobile payment equipment and the payment information are also used for generating business transaction information. If the verification is not passed, the payment code is prompted to be wrong. In practical application, the service transaction information is used for charging and deducting fee of the background system, and in the embodiment, the operation condition of the program of the mobile payment machine is only tested, so that the embodiment does not relate to related content of the background system.
The result of the screen capture image processing by the mobile payment machine tool can be stored in the mobile payment machine tool and also can be sent to the test terminal for the fast check of the tester. And the tester judges whether the mobile payment machine can continuously and normally work or not according to the processing results generated by a large number of mobile payment machines. For example, the mobile payment terminal adopts WeChat payment, but the processing result generated by the mobile payment device is that the payment code is invalid, and then it can be determined that the verification function of the mobile payment device has a fault.
If the response speed of the mobile payment machine can be matched with the generation speed of the screen capture image, the mobile payment machine acquires the screen capture image once when the test terminal generates the screen capture image. If the response speed of the payment machine is lower than the generation speed of the screen capture image, the screen capture image can be temporarily stored, and then the screen capture image is displayed according to the speed matched with the mobile payment machine for the mobile payment machine to collect.
In other embodiments, the process of steps S101-S103 may be directly implemented as an automated script or program, completely replacing manual operations.
According to the embodiment of the invention, the mobile payment end is projected to the test terminal, the refreshing of the payment page of the mobile payment end is automatically controlled by the test terminal, no manual work is needed, and the test terminal can automatically capture a large amount of screen capture images for the mobile payment machine to collect, so that the defect that the mobile payment end in the prior art does not allow automatic screen capture is overcome, therefore, the mobile payment machine testing method can partially or even completely replace manual work procedures, the provided large amount of payment codes is beneficial to meeting the requirement of the mobile payment machine program operation stability testing, the product quality of the mobile payment machine can be improved, and the related production cost can be reduced.
Example two
In other embodiments, a mobile payment instrument testing method, shown in conjunction with fig. 2, comprises the steps of:
s201, the test terminal controls the mobile payment terminal to refresh the payment code according to a first time interval, and a screen projection interface of the payment code is obtained in a screen projection mode.
The test terminal comprises a main test terminal and at least one slave test terminal, and the main test terminal and the slave test terminals respectively receive screen projection of different mobile payment terminals.
The screen projection relation between the mobile payment terminal and the main test terminal and the screen projection relation between the mobile payment terminal and the auxiliary test terminal can be established by utilizing the self-contained software of the mobile payment terminal or the third-party screen projection software. For example, an android mobile phone has a multi-screen interaction function, an apple mobile phone has a screen mirroring function, third-party screen projection software has a quick screen recording master and the like. The open source tool Scrcpy can also be used for modifying according to requirements and supporting screen projection according to the serial number of the mobile payment terminal. Of course, the video transmission flow between the mobile payment terminal and the test terminal can also be established according to the preset rule. The method for establishing the video transmission flow between the mobile payment terminal and the test terminal may refer to the prior art, and is not described herein again.
In the embodiment of the invention, for realizing the automatic refreshing of the payment page of the mobile payment terminal, a convenient method is that the main test terminal and the auxiliary test terminal control the mobile payment terminal to refresh the payment page through an ADB command. For example, by using
adb shell input (x, y) command, where (x, y) may locate the upper left corner of the mobile payroll payment page. The coordinate location may be displayed in developer mode.
And S202, performing screen capture on the screen-shot interface obtained in the step S201 according to a second time interval to obtain a screen-shot image. .
If the screen projection interface is arranged at a fixed position of a display of the test terminal, a screen shot can be taken at the coordinate position each time. In some cases, the screen projection interface position cannot be accurately positioned, or an accurate screenshot image cannot be obtained at a preset coordinate position after the screen projection interface is shielded, and then a target window can be captured according to a preset rule to perform screenshot. For example, the test terminal can be positioned to an interface needing screen capturing according to the process number (PID) of the current screen projection program.
In this embodiment, the frequency of screen capture performed by the main test terminal and the auxiliary test terminal is not suitable to be greater than the frequency of refreshing the payment code of the mobile payment terminal, otherwise, repeated screen capture is performed on the same screen capture interface, and the same screen capture image is used for testing the payment machine, so that the test efficiency is undoubtedly reduced. The second time interval is therefore preferably greater than or equal to the first time interval. Of course, the second time interval of the master test terminal and the slave test terminal may be different.
And S203, the slave test terminal sends the obtained screen capture image to the master test terminal.
The slave test terminal can send the screen capture images to the master test terminal in real time in a local area network mode and the like, and can also package and send a plurality of stored screen capture images to the master test terminal in a public network file mode and the like.
And S204, the main test terminal provides the screen capture image obtained by the local screenshot and the received screen capture image of the auxiliary test terminal for the payment machine tool to identify and analyze.
And the payment machine analyzes the screen shot image into code data, and verifies the code data. The result of the code data mobile payment machine for processing the screen shot image can be stored in the mobile payment machine and can also be sent to the test terminal.
The master test terminal can sequentially display a screen capture image obtained by local screenshot and a screen capture image of the slave test terminal; or all screen capture images of the main test terminal and the slave test terminal can be stored firstly, and then each screen capture image is displayed according to the speed matched with the mobile payment machine. The main test terminal adopts which display mode to mainly analyze the response speed according to the identification of the mobile payment machine
In other embodiments, the process of steps S101-S103 may be directly implemented as an automated script or program, completely replacing manual operations.
Compared with the first embodiment, the embodiment of the invention can facilitate cooperative work, namely screen capture images generated by a plurality of slave test terminals can be verified at the master test terminal, and the efficiency of testing the mobile payment machine tool is further improved.
EXAMPLE III
In other embodiments, in order to simulate a multi-user scenario, a method for testing a mobile payment instrument, as shown in fig. 3, further includes the following steps:
s301, the test terminal controls each mobile payment terminal to refresh the payment code according to a third time interval according to a preset first rule, and a screen projection interface of the payment code is obtained in a screen projection mode.
The test terminal can be a PC, a tablet computer, a notebook computer and the like, can establish a screen projection relation with the mobile payment terminal, and is provided with a display. The screen projection relation between the mobile payment terminal and the test terminal can be established by utilizing the self-contained software of the mobile payment terminal or the third-party screen projection software. The open source tool Scrcpy can also be used for modifying according to requirements and supporting screen projection according to the serial number of the mobile payment terminal. Of course, the video transmission flow between the mobile payment terminal and the test terminal can also be established according to the preset rule.
The embodiment of the invention can obtain the serial numbers of all mobile payment terminals through the adb devices command, and then realize screen projection by using the following commands:
sequence number of scrcpy-s
Such as a mobile paymate serial number 59cb696f, the specific command is scrcpy-s 59cb696 f. By adopting the method, the screen of each mobile payment terminal can be projected to the display of the test terminal.
The first preset rule may include: and the test terminal refreshes the payment code of the mobile payment terminal simultaneously or according to a preset time sequence. The adb-s 59cb696f shell input (x, y) command may be used to locate the upper left corner of the mobile payroll payment page with serial number 59cb696f to effect a refresh of the payment page.
If the test terminal refreshes the payment code of the mobile payment end at the same time, the third time interval may be the same as the first time interval in the first embodiment, and if the test terminal refreshes the payment code of the mobile payment end according to the preset time sequence, the third time interval may be a plurality of first time intervals.
And S302, performing screen capture on the screen-shot interface obtained in the step S301 according to a second preset rule and a fourth time interval to obtain a screen-shot image.
The screen projection interfaces of a plurality of mobile payment terminals are arranged on the screen of the test terminal, but the mobile test machine can only recognize and analyze one screen projection interface at a time, so that different screen projection interfaces can be selected in a certain sequence to perform screen capture. The second preset rule can be that screen capture is carried out on the coordinate position of the screen capture interface of the target mobile payment terminal. For example, a screen projection relationship is established between the mobile payment terminal A, the mobile payment terminal B, the mobile payment terminal C and the mobile payment terminal D and the test terminal, and a screen projection interface is arranged at a fixed position of a display of the test terminal, so that screen capture can be performed according to the coordinate position of each screen projection interface, such as (D-C-B-A) each time.
In some cases, the screen projection interface position cannot be accurately positioned, or an accurate screenshot image cannot be obtained at a preset coordinate position after the screen projection interface is shielded, and then a target window can be captured according to a preset rule to perform screenshot. For example, the test terminal can be positioned to an interface needing screen capture according to a process number (PID) of a current screen capture program, and then screen capture is carried out by using a QuickGrab tool of scrcpy software.
In the embodiment, the fourth time interval is set according to the specific situation of the third time interval, so as to ensure that a different screen capture interface can be obtained each time.
And S303, providing the screen shot image for the mobile payment machine to process.
The screen projection interfaces corresponding to different mobile payment ends are generally located at different positions of a display, and in order to facilitate identification and analysis of the mobile payment machine, the generated screen capture images are preferably arranged at the same coordinate position.
And the payment machine analyzes the screen shot image into code data, and verifies the code data. The result of the code data mobile payment machine for processing the screen capture image can be stored in the mobile payment machine, and can also be sent to a test terminal for a tester to quickly check the processing result.
If the response speed of the mobile payment machine can be matched with the generation speed of the screen capture image, the mobile payment machine acquires the screen capture image once when the test terminal generates the screen capture image. If the response speed of the payment machine is lower than the generation speed of the screen capture image, the screen capture image can be temporarily stored, and then the screen capture image is displayed according to the speed matched with the mobile payment machine for the mobile payment machine to collect.
In other embodiments, the process of steps S301-S303 may be directly scripted or programmed to automate, completely replacing manual operations.
The test terminal is connected with the mobile payment terminals, the payment condition of multiple users can be simulated, the mobile payment terminals are projected to the test terminal, refreshing of the payment page of the mobile payment terminals is automatically controlled by the test terminal, manual work is not needed, the test terminal can automatically screen-capture to obtain a large number of payment codes for controllable test, and the defect that the mobile payment terminals in the prior art do not allow automatic screen capture is overcome. The mobile payment machine tool testing method can partially or even completely replace manual working procedures, and the provided large number of payment codes are beneficial to meeting the requirement of mobile payment machine tool program operation stability testing, so that the product quality of the mobile payment machine tool can be improved, and the related production cost can be reduced.
Example four
In some examples, compared with the embodiment, the test terminal comprises a main test terminal and at least one slave test terminal, and the mobile payment instrument test method, which is shown in combination with fig. 4, comprises the following steps:
s401, the test terminal controls each mobile payment terminal to refresh the payment code according to a third time interval according to a preset first rule, and a screen projection interface of the payment code is obtained in a screen projection mode.
The test terminal comprises a main test terminal and at least one slave test terminal, and the main test terminal and the slave test terminals respectively receive screen projection of different mobile payment terminals.
The screen projection relation between the mobile payment terminal and the test terminal can be established by utilizing the self-contained software of the mobile payment terminal or the third-party screen projection software. The open source tool Scrcpy can also be used for modifying according to requirements and supporting screen projection according to the serial number of the mobile payment terminal. Of course, the video transmission flow between the mobile payment terminal and the test terminal can also be established according to the preset rule.
The embodiment of the invention can obtain the serial numbers of all mobile payment terminals through the adb devices command, and then realize screen projection by using the following commands:
sequence number of scrcpy-s
Such as a mobile paymate serial number 59cb696f, the specific command is scrcpy-s 59cb696 f. By adopting the method, the screen of each mobile payment terminal can be projected to the display of the test terminal.
The first preset rule may include: and the test terminal refreshes the payment code of the mobile payment terminal simultaneously or according to a preset time sequence. The adb-s 59cb696f shell input (x, y) command may be used to locate the upper left corner of the mobile payroll payment page with serial number 59cb696f to effect a refresh of the payment page.
If the test terminal refreshes the payment code of the mobile payment end at the same time, the third time interval may be the same as the first time interval in the first embodiment, and if the test terminal refreshes the payment code of the mobile payment end according to the preset time sequence, the third time interval may be a plurality of first time intervals.
And S402, performing screen capture on the screen-shot interface obtained in the step S301 according to a second preset rule and a fourth time interval to obtain a screen-shot image.
The screen projection interfaces of a plurality of mobile payment terminals are arranged on the screen of the test terminal, but the mobile test machine can only recognize and analyze one screen projection interface at a time, so that different screen projection interfaces can be selected in a certain sequence to perform screen capture. The second preset rule can be that screen capture is carried out on the coordinate position of the screen capture interface of the target mobile payment terminal. For example, a screen projection relationship is established between the mobile payment terminal A, the mobile payment terminal B, the mobile payment terminal C and the mobile payment terminal D and the test terminal, and a screen projection interface is arranged at a fixed position of a display of the test terminal, so that screen capture can be performed according to the coordinate position of each screen projection interface, such as (D-C-B-A) each time.
In some cases, the screen projection interface position cannot be accurately positioned, or an accurate screenshot image cannot be obtained at a preset coordinate position after the screen projection interface is shielded, and then a target window can be captured according to a preset rule to perform screenshot. For example, the test terminal can be positioned to an interface needing screen capture according to a process number (PID) of a current screen capture program, and then screen capture is carried out by using a QuickGrab tool of scrcpy software.
In the embodiment, the fourth time interval is set according to the specific situation of the third time interval, so as to ensure that a different screen capture interface can be obtained each time.
And S403, the slave test terminal sends the obtained screen capture image to the master test terminal.
The slave test terminal can send the screen capture images to the master test terminal in real time in a local area network mode and the like, and can also package and send a plurality of stored screen capture images to the master test terminal in a public network file mode and the like.
And S404, the main test terminal provides the screen capture image obtained by the local screenshot and the received screen capture image of the auxiliary test terminal for recognition and analysis of the payment machine tool.
The screen projection interfaces corresponding to different mobile payment ends are generally located at different positions of a display, and in order to facilitate identification and analysis of the mobile payment machine, the generated screen capture images are preferably arranged at the same coordinate position.
And the payment machine analyzes the screen shot image into code data, and verifies the code data. The result of the code data mobile payment machine for processing the screen capture image can be stored in the mobile payment machine, and can also be sent to a test terminal for a tester to quickly check the processing result.
The master test terminal can sequentially display a screen capture image obtained by local screenshot and a screen capture image of the slave test terminal; or all screen capture images of the main test terminal and the slave test terminal can be stored firstly, and then each screen capture image is displayed according to the speed matched with the mobile payment machine. The main test terminal adopts which display mode mainly depends on the identification and analysis response speed of the mobile payment machine.
Compared with the embodiment, the embodiment of the invention can conveniently cooperate, namely, the payment codes generated by a plurality of slave test terminals can be verified at the master test terminal, thereby being beneficial to further improving the test efficiency of the mobile payment machine.
EXAMPLE five
The embodiment of the invention provides a mobile payment machine testing system, which is shown in fig. 5, and the system comprises a testing terminal 10 and mobile payment terminals 20 corresponding to the testing terminal, wherein in the embodiment, three testing terminals 10 and three mobile payment terminals 20 are provided respectively.
The mobile payment terminal 20 may be a mobile phone, a smart watch, a tablet computer, and the like, and is configured to establish a screen projection relationship with the test terminal 10, project the payment code to the test terminal 10, and receive control of the test terminal 10 to refresh the payment code at a preset first time interval.
The mobile payment terminal 20 may have a screen projection function or install third-party screen projection software, or may establish a video transmission flow between the mobile payment terminal 20 and the test terminal 10 according to a preset rule.
The test terminal 10 comprises a display 11 and a processor 12, wherein the display 11 is used for displaying a screen projection interface corresponding to the payment code of the mobile payment terminal 20. The processor 12 is configured to control the mobile payment terminal 20 to refresh the payment code at a preset first time interval, and is configured to obtain a screen-projection interface of the payment code; and the screen shot interface is also used for carrying out screen shot on the screen shot interface according to a second time interval to obtain a screen shot image and providing the screen shot image for the mobile payment machine tool to process.
Because the mobile payment terminal 20 is projected to the test terminal 10, refreshing of a payment page of the mobile payment terminal 20 is automatically controlled by the test terminal 10, manual work is not needed, and the test terminal 10 can automatically capture a large number of screens so as to overcome the defect that the mobile payment terminal 20 in the prior art does not allow automatic screen capture, the mobile payment machine and tool test system can partially or even completely replace manual work procedures, and a large number of provided payment codes are beneficial to meeting the test requirement of the program operation stability of a mobile payment machine and tool, the product quality of the mobile payment machine and tool can be improved, and the related production cost can be reduced. .
Since the display of each test terminal 10 can be processed by only one payment machine, three payment machines are required to complete the test of the payment codes of the three mobile payment terminals 20.
Preferably, as shown in fig. 6, the test terminal 10 includes a master test terminal 10 and two slave test terminals 10, and the slave test terminals 10 are further configured to send the obtained screenshot image to the master test terminal 10; the master test terminal 10 provides the screenshot image of the local screenshot together with the screenshot image of the received slave test terminal 10 for payment instrument processing verification.
The screen capture interfaces generated by the plurality of slave test terminals 10 of the test system are all sent to the master test terminal 10, so that the test of the payment codes of the three mobile payment terminals 20 can be realized only by aligning one payment machine with the display of the master test terminal 10. The test system is beneficial to cooperative work, improves the test efficiency and reduces the test cost.
In this example, reference may be made to the first embodiment and the second embodiment for a specific work flow of the mobile payment device testing system, which is not described herein again.
EXAMPLE six
The embodiment of the invention provides a mobile payment machine testing system, which is shown in a combined figure 7 and comprises a testing terminal 10 and a mobile payment terminal 20, wherein the testing terminal 10 and the mobile payment terminal 20 are in a one-to-many relationship, three testing terminals 10 are arranged in the figure, and each testing terminal 10 is respectively connected with 2 mobile payment terminals 20, so that a multi-user payment scene can be simulated, and the accuracy of testing can be improved.
The mobile payment terminal 20 may be a mobile phone, a smart watch, a tablet computer, and the like, and is configured to establish a screen projection relationship with the test terminal 10, project the payment code to the test terminal 10, and receive control of the test terminal 10 to refresh the payment code at a preset third time interval. The system is used for establishing a screen projection relation with the test terminal 10 according to a preset first rule, projecting the payment code to the test terminal 10, and receiving control of the test terminal 10 to refresh the payment code at a preset time interval. Presetting a first rule includes: each mobile payment terminal 20 establishes a screen-casting relationship with the test terminal 10 according to a preset time sequence, or each mobile payment terminal 20 simultaneously establishes a screen-casting relationship with the test terminal 10.
The test terminal 10 comprises a display 11 and a processor 12, wherein the display 11 is used for displaying a screen projection interface corresponding to the payment code of the mobile payment terminal 20. The processor 12 is configured to control the mobile payment terminal 20 to refresh the payment code according to a preset first rule at a third time interval, and to obtain a screen projection interface of the payment code; and the screen capture module is also used for carrying out screen capture on the target screen projection interface according to a second preset rule and a second time interval to obtain a screen capture image and providing the screen capture image for the mobile payment machine tool to process.
Since the display of each test terminal 10 can only be identified and analyzed by one payment machine, three payment machines are required to complete the test of the payment codes of the three mobile payment terminals 20.
Preferably, as shown in fig. 8, the test terminal 10 includes a master test terminal 10 and two slave test terminals 10, and the slave test terminals 10 are further configured to send the obtained screenshot image to the master test terminal 10; the master test terminal 10 provides the locally generated screen capture image along with the received screen capture image of the slave test terminal 10 for processing by the payment instrument.
The screen capture interfaces generated by the plurality of slave test terminals 10 of the test system are all sent to the master test terminal 10, so that the test of the payment codes of the three mobile payment terminals 20 can be realized only by aligning one payment machine with the display of the master test terminal 10. The test system is beneficial to cooperative work, improves the test efficiency and reduces the test cost.
In this example, the specific work flow of the mobile payment device testing system may refer to the third embodiment and the fourth embodiment, which are not described herein again.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. Of course, the processor and the storage medium may reside as discrete components in a user terminal.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in memory units and executed by processors. The memory unit may be implemented within the processor or external to the processor, in which case it can be communicatively coupled to the processor via various means as is known in the art.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".

Claims (14)

1. A mobile payment machine testing method is characterized by comprising the following steps:
the method comprises the steps that a test terminal controls a mobile payment terminal to refresh a payment code according to a first time interval, and a screen projection interface of the payment code is obtained in a screen projection mode;
screen capture is carried out on the screen projection interface according to a second time interval to obtain a screen capture image;
and providing the screen shot image for a mobile payment instrument to process.
2. The mobile payment instrument testing method of claim 1, further comprising: and the test terminal receives the processing result of the mobile payment machine on the screen shot image.
3. The mobile payment instrument testing method of claim 1, wherein taking the screenshot to obtain the screenshot further comprises:
carrying out screenshot on a preset coordinate position; or capturing the target window according to a preset rule to perform screenshot.
4. The mobile payment instrument testing method of claim 1, wherein the test terminal comprises a master test terminal and at least one slave test terminal, and the master test terminal and the slave test terminal are respectively connected with different mobile payment terminals;
the slave test terminal also sends the obtained screen capture image to the master test terminal;
the main test terminal also provides the received screen shot images of the auxiliary test terminal for the payment machine to process.
5. A mobile payment machine testing method is characterized by comprising the following steps:
the test terminal controls each mobile payment terminal to refresh the payment code according to a third time interval according to a preset first rule, and a screen projection interface of the payment code is obtained in a screen projection mode;
performing screen capture on the target screen projection interface according to a second preset rule and a fourth time interval to obtain a screen capture image;
and providing the screen shot image for a mobile payment instrument to process.
6. The mobile payment instrument testing method of claim 5, further comprising: and the test terminal receives the processing result of the mobile payment machine on the screen shot image.
7. The mobile payment instrument testing method of claim 5, wherein the first preset rule comprises: and the test terminal refreshes the payment code of the mobile payment terminal simultaneously or according to a preset time sequence.
8. The mobile payment instrument testing method of claim 5, wherein the second preset rule comprises:
screen capture is carried out on the coordinate position of a screen projection interface of the target mobile payment terminal; or capturing the target window according to a preset rule to perform screenshot.
9. The mobile payment instrument testing method of claim 5, further comprising:
and setting the obtained screen capture image at a preset position for a mobile payment machine to collect.
10. The mobile payment instrument testing method of claim 5, wherein the test terminal comprises a master test terminal and at least one slave test terminal, and the master test terminal and the slave test terminal are respectively connected with different mobile payment terminals;
the slave test terminal also sends the obtained screen capture image to the master test terminal;
the main test terminal also provides the received screen shot images of the auxiliary test terminal for the payment machine to process.
11. The utility model provides a mobile payment machines test system which characterized in that, includes test terminal, mobile payment end, wherein:
the mobile payment terminal is used for establishing a screen projection relation with the test terminal, projecting the payment code to the test terminal, and receiving the control of the test terminal to refresh the payment code at a preset first time interval;
the mobile payment terminal is used for refreshing the payment code at a preset first time interval and acquiring a screen projection interface of the payment code; and the screen shot interface is also used for carrying out screen shot on the screen shot interface according to a second time interval to obtain a screen shot image and providing the screen shot image for the mobile payment machine tool to process.
12. The mobile payment instrument testing system of claim 11, wherein the test terminal comprises a master test terminal and at least one slave test terminal, the slave test terminal further configured to send the captured screen image to the master test terminal; the main test terminal is also used for providing the received screen shot images of the auxiliary test terminal for the payment machine to process.
13. The utility model provides a mobile payment machines test system which characterized in that, includes test terminal and mobile payment end, test terminal and mobile payment end are one-to-many relation, wherein:
the mobile payment terminal is used for establishing a screen projection relation with the test terminal, projecting the payment code to the test terminal, and receiving the control of the test terminal to refresh the payment code at a preset third time interval;
the test terminal is used for controlling the mobile payment terminal to refresh the payment code according to a preset first rule and a third time interval, and is used for acquiring a screen projection interface of the payment code; and the screen capture module is also used for carrying out screen capture on the target screen projection interface according to a second preset rule and a second time interval to obtain a screen capture image and providing the screen capture image for the mobile payment machine tool to process.
14. The mobile payment instrument testing system of claim 13, wherein the testing terminal comprises a master testing terminal and at least one slave testing terminal, the slave testing terminal further configured to send the captured screen images to the master testing terminal; the main test terminal is also used for providing the received screen shot images of the auxiliary test terminal for the payment machine to process.
CN202010180931.XA 2020-03-16 2020-03-16 Mobile payment machine tool testing method and testing system Pending CN111552603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010180931.XA CN111552603A (en) 2020-03-16 2020-03-16 Mobile payment machine tool testing method and testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010180931.XA CN111552603A (en) 2020-03-16 2020-03-16 Mobile payment machine tool testing method and testing system

Publications (1)

Publication Number Publication Date
CN111552603A true CN111552603A (en) 2020-08-18

Family

ID=71998018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010180931.XA Pending CN111552603A (en) 2020-03-16 2020-03-16 Mobile payment machine tool testing method and testing system

Country Status (1)

Country Link
CN (1) CN111552603A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419945A (en) * 2021-05-30 2021-09-21 武汉卡比特信息有限公司 Interconnection-based automatic testing method and system
CN113641570A (en) * 2021-06-29 2021-11-12 银联商务股份有限公司 Test method and terminal
CN114691007A (en) * 2022-04-12 2022-07-01 Oppo广东移动通信有限公司 Screen capture method, screen capture system, screen capture device, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419945A (en) * 2021-05-30 2021-09-21 武汉卡比特信息有限公司 Interconnection-based automatic testing method and system
CN113419945B (en) * 2021-05-30 2022-07-01 武汉卡比特信息有限公司 Interconnection-based automatic testing method and system
CN113641570A (en) * 2021-06-29 2021-11-12 银联商务股份有限公司 Test method and terminal
CN114691007A (en) * 2022-04-12 2022-07-01 Oppo广东移动通信有限公司 Screen capture method, screen capture system, screen capture device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111552603A (en) Mobile payment machine tool testing method and testing system
CN108959068B (en) Software interface testing method, device and storage medium
CN104123219A (en) Method and device for testing software
CN105653438B (en) The striding course automated testing method and device of Android device
CN107040535B (en) Method, device and system for monitoring login of mobile application channel and storage medium
CN105095083A (en) Mobile phone interface screenshot test method and device used in Android system
CN104780407A (en) Automatic testing method and automatic testing system for set top box
CN110659569A (en) Electronic signature method, device, storage medium and electronic equipment
CN111198815A (en) User interface compatibility testing method and device
CN110308346A (en) Cockpit display system automatic test approach and system based on image recognition
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
CN109840212B (en) Function test method, device and equipment of application program and readable storage medium
CN109581104B (en) Method for testing touch screen of vehicle-mounted entertainment system
KR101792864B1 (en) System and Method for verifying application
CN106201787A (en) Terminal control method and device
CN114942890B (en) User interface testing method, device, equipment and medium
CN116719736A (en) Test case generation method and device for testing software interface
CN109460226B (en) Test certificate image generation method, device, equipment and storage medium
CN114264904A (en) Full liquid crystal instrument testing method and system based on simulation and machine vision
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN109840203B (en) VR (virtual reality) automatic testing method based on message mapping
CN111552604A (en) Mobile payment machine program test method, test system and test terminal
CN110806981A (en) Application program testing method, device, equipment and storage medium
CN115495299B (en) Method, system and medium for intelligent QC software detection and identification uploading

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