CN108009057B - Test method and device for password input, storage medium and electronic equipment - Google Patents

Test method and device for password input, storage medium and electronic equipment Download PDF

Info

Publication number
CN108009057B
CN108009057B CN201711123399.2A CN201711123399A CN108009057B CN 108009057 B CN108009057 B CN 108009057B CN 201711123399 A CN201711123399 A CN 201711123399A CN 108009057 B CN108009057 B CN 108009057B
Authority
CN
China
Prior art keywords
tested
input
password
terminal
character string
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.)
Active
Application number
CN201711123399.2A
Other languages
Chinese (zh)
Other versions
CN108009057A (en
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201711123399.2A priority Critical patent/CN108009057B/en
Publication of CN108009057A publication Critical patent/CN108009057A/en
Application granted granted Critical
Publication of CN108009057B publication Critical patent/CN108009057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a test method, a test device, a storage medium and an electronic device for password input. The method comprises the following steps: when a character string password to be tested and a test trigger instruction input by a user are received, acquiring first configuration information of a terminal to be tested; determining a coordinate conversion relation according to second configuration information and first configuration information of a reference terminal which are stored in advance; determining the coordinates of each character in the character string password to be tested in the second input keyboard according to the coordinate and coordinate conversion relation of each character in the character string password to be tested in the first input keyboard; and sending a test instruction to the terminal to be tested, wherein the instruction is used for controlling the input process of replaying the character string password to be tested on the second input keyboard by the terminal to be tested according to the coordinates of each character in the character string password to be tested in the second input keyboard. Therefore, the success rate of password input can be improved, the cross-equipment stable input of the password and the parameterization of the password input are realized, and the test efficiency is ensured.

Description

Test method and device for password input, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a test method and apparatus for password input, a storage medium, and an electronic device.
Background
In mobile applications, especially financial mobile applications, special password input boxes are packaged, and input elements in such password input boxes are usually difficult to identify, so that the difficulty in testing the performance of the mobile applications in password input is increased undoubtedly.
At present, the performance test of the mobile application in the aspect of password input is mainly completed based on coordinates, that is, firstly, a character string password to be tested is recorded on the first terminal based on the coordinates, and then, the input process of the character string password to be tested is played back on the terminal to be tested according to the coordinates. However, the configuration information such as the screen sizes of the first terminal and the terminal to be tested may be different, which may cause a deviation between the password actually input in the terminal to be tested and the character string password to be tested, and it is difficult to ensure the stability of the cross-device password input. In addition, each time a password input test is performed, each character in the to-be-tested character string password needs to be recorded once, and parameterization cannot be performed, so that the CPU load of the test terminal is increased, and the test efficiency is low.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a test method, an apparatus, a storage medium, and an electronic device for password input.
In order to achieve the above object, the present disclosure provides a test method for password input, including:
when a character string password to be tested and a test trigger instruction input by a user are received, acquiring first configuration information of a terminal to be tested;
determining a coordinate conversion relation according to prestored second configuration information of the reference terminal and the first configuration information, wherein the coordinate conversion relation is used for expressing the conversion relation between the coordinate of each input character in a first input keyboard of the reference terminal and the coordinate of a corresponding input character in a second input keyboard of the terminal to be tested, and the first input keyboard and the second input keyboard have the same keyboard layout;
determining the coordinates of each character in the character string password to be tested in the second input keyboard according to the coordinates of each character in the character string password to be tested in the first input keyboard and the coordinate conversion relation;
and sending a test instruction to the terminal to be tested, wherein the test instruction is used for controlling the terminal to be tested to replay the input process of the character string password to be tested on the second input keyboard according to the coordinates of all characters in the character string password to be tested in the second input keyboard.
Optionally, the first configuration information includes a first screen resolution and a first screen density of the terminal to be tested;
the second configuration information includes a second screen resolution and a second screen density of the reference terminal.
Optionally, the determining a coordinate transformation relationship according to the prestored second configuration information and the prestored first configuration information of the reference terminal includes:
the determining, according to second configuration information and the first configuration information of a reference terminal stored in advance, a coordinate conversion relationship by the following formula:
Figure BDA0001467883690000021
wherein (x)2i,y2i) Representing the coordinates of the ith character in the character string password to be tested in the second input keyboard; (x)1i,y1i) Representing the coordinates of the ith character in the character string password to be tested in the first input keyboard;
Figure BDA0001467883690000031
respectively representing the first screen resolution and the second screen resolution; den1、Den2Respectively representing the first screen density and the second screen density; correcx、correcyRespectively representing the correction factors in the X-axis direction and the Y-axis direction.
Optionally, the method further comprises:
acquiring an actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard;
when the actual input password is completely matched with the character string password to be tested, outputting a first prompt message for representing successful password input test;
and when the actual input password is not completely matched with the character string password to be tested, outputting a second prompt message for representing that the password input test fails.
The present disclosure also provides a testing apparatus for password input, including:
the first acquisition module is used for acquiring first configuration information of the terminal to be tested when a character string password to be tested and a test trigger instruction input by a user are received;
the first determining module is used for determining a coordinate conversion relationship according to prestored second configuration information of the reference terminal and the first configuration information acquired by the first acquiring module, wherein the coordinate conversion relationship is used for indicating the conversion relationship between the coordinates of each input character in a first input keyboard of the reference terminal and the coordinates of the corresponding input character in a second input keyboard of the terminal to be tested, and the first input keyboard and the second input keyboard have the same keyboard layout;
the second determining module is used for determining the coordinates of each character in the character string password to be tested in the second input keyboard according to the coordinates of each character in the character string password to be tested in the first input keyboard and the coordinate conversion relation determined by the first determining module;
and the sending module is used for sending a test instruction to the terminal to be tested, wherein the test instruction is used for controlling the terminal to be tested to play back the input process of the character string password to be tested on the second input keyboard according to the coordinates of each character in the character string password to be tested determined by the second determining module in the second input keyboard.
Optionally, the first configuration information includes a first screen resolution and a first screen density of the terminal to be tested;
the second configuration information includes a second screen resolution and a second screen density of the reference terminal.
Optionally, the first determining module is configured to determine the coordinate transformation relationship according to a prestored second configuration information of the reference terminal and the first configuration information by using the following formula:
Figure BDA0001467883690000041
wherein (x)2i,y2i) Representing the coordinates of the ith character in the character string password to be tested in the second input keyboard; (x)1i,y1i) Representing the coordinates of the ith character in the character string password to be tested in the first input keyboard;
Figure BDA0001467883690000042
respectively representing the first screen resolution and the second screen resolution; den1、Den2Respectively representing the first screen density and the second screen density; correcx、correcyRespectively representing the correction factors in the X-axis direction and the Y-axis direction.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring an actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard;
the first output module is used for outputting a first prompt message for representing successful password input test when the actual input password is completely matched with the character string password to be tested;
and the second output module is used for outputting a second prompt message for representing the failure of the password input test when the actual input password is not completely matched with the character string password to be tested.
The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of the above-mentioned testing method for password input provided by the present disclosure.
The present disclosure also provides an electronic device, comprising:
the present disclosure provides the above computer-readable storage medium; and
one or more processors to execute the program in the computer-readable storage medium.
In the technical scheme, a coordinate conversion relation is determined according to the acquired first configuration information of the terminal to be tested and the locally stored second configuration information of the reference terminal, and each character in the character string password to be tested is mapped to the second input keyboard of the terminal to be tested from the first input keyboard of the reference terminal according to the conversion relation, so that the purpose of playing back the input process of the character string password to be tested on the second input keyboard is achieved. Therefore, the success rate of password input can be improved, and the password can be stably input across equipment. In addition, for the same terminal to be tested, the test operation of inputting the password for multiple times can be realized only by determining the coordinate conversion relation once, namely the parameterization of the password input can be realized, and thus the test efficiency is ensured.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a schematic diagram illustrating one implementation environment in accordance with an example embodiment.
FIG. 2 is a flow diagram illustrating a testing method for password entry in accordance with an exemplary embodiment.
Fig. 3A and 3B are schematic layout views illustrating a first input keypad of a reference terminal according to an exemplary embodiment.
FIG. 4 is a flow chart illustrating a test method for password entry in accordance with another exemplary embodiment.
FIG. 5 is a block diagram illustrating a testing device for password entry in accordance with an exemplary embodiment.
FIG. 6 is a block diagram illustrating a testing device for password entry in accordance with another exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
FIG. 1 is a schematic diagram illustrating one implementation environment in accordance with an example embodiment. As shown in FIG. 1, the implementation environment may include: a terminal to be tested 110 and a test terminal 120. The terminal to be tested 110 and the test terminal 120 may communicate with each other via bluetooth, ZigBee network, WiFi network, 2G network, 3G network, 4G network, data line, etc. The terminal to be tested 110 may be, for example, a smart phone, a tablet computer, a smart wearable device, and the like, and the testing terminal 120 may be, for example, a notebook computer, a desktop computer, and the like. In fig. 1, the terminal to be tested 110 is a smart phone, and the testing terminal 120 is a notebook computer.
FIG. 2 is a flow diagram illustrating a testing method for password entry in accordance with an exemplary embodiment. As shown in fig. 2, the method may include the following steps.
In step 201, when a character string password to be tested and a test trigger instruction input by a user are received, first configuration information of a terminal to be tested is acquired.
In the present disclosure, the test method for password input may be applied to a test terminal, such as the test terminal 120 shown in fig. 1. The character string password to be tested can be composed of at least one of letters, numbers and symbols; the first configuration information may include a first screen resolution and a first screen density of the terminal to be tested.
When a user needs to test the password input performance of a terminal to be tested, a character string password to be tested, which is expected to be tested, can be input into the test terminal, and a test start button is triggered.
In step 202, a coordinate transformation relationship is determined according to the pre-stored second configuration information of the reference terminal and the pre-stored first configuration information of the terminal to be tested.
In the present disclosure, the second configuration information may include a second screen resolution and a second screen density of the reference terminal. The second screen resolution may be the same as or different from the first screen resolution, and the second screen density may be the same as or different from the first screen density, depending on the actual configurations of the terminal to be tested and the reference terminal. Also, the second configuration information may be information set by the tester and stored in the storage unit of the test terminal, for example, the second screen resolution is 720 × 1280, and the second screen density is 320 dpi. In addition, the second configuration information of the reference terminal may be information that the test terminal acquires by communicating with the reference terminal and that is stored in a storage unit of the test terminal. For example, the test terminal may send a second configuration information request message to the reference terminal, the reference terminal may send its second configuration information to the test terminal after receiving the second configuration information request message, and the test terminal receives the second configuration information and stores the second configuration information in a local corresponding storage unit.
In addition, the coordinate conversion relationship may be used to represent a conversion relationship between coordinates of each input character in a first input keyboard of the reference terminal and coordinates of a corresponding input character in a second input keyboard of the terminal to be tested, wherein the first input keyboard and the second input keyboard have the same keyboard layout, and the first input keyboard and the second input keyboard may each include a numeric input keyboard and/or an alphabetic input keyboard.
Illustratively, the test terminal may determine the coordinate conversion relationship by the following equation (1):
Figure BDA0001467883690000081
wherein (x)2i,y2i) Indicating that the ith character in the character string password to be tested is at the secondInputting coordinates in the keyboard; (x)1i,y1i) Representing the coordinates of the ith character in the character string password to be tested in the first input keyboard;
Figure BDA0001467883690000082
respectively representing a first screen resolution and the second screen resolution; den1、Den2Respectively representing a first screen density and a second screen density; correcx、correcyRespectively representing the correction factors in the X-axis direction and the Y-axis direction.
In addition, the correction factor correcx、correcyThe second configuration information of the reference terminal and the first configuration information of the terminal to be tested may be set by the tester, or may be a default empirical value, for example, correcx=correcy=1。
In step 203, the coordinates of each character in the character string password to be tested in the second input keyboard of the terminal to be tested are determined according to the coordinates of each character in the character string password to be tested in the first input keyboard of the reference terminal and the coordinate conversion relation.
In the present disclosure, the coordinates of each character in the first input keyboard of the reference terminal may be preset by a tester. Taking a password input test of mobile banking application as an example, the layout of the first input keyboard of the reference terminal is shown in fig. 3A and 3B, wherein the setting of the coordinates of each character in the first input keyboard by the tester may be as follows:
LocationMap={'q':'[30,860]','g':'[350,988]','3':'[70,1220][583,872][94,1220]',……}
where the coordinates of the character "q" in the first input keyboard are (30,60), the coordinates of the character "g" are (350,988), and the coordinates of the character "3" are (70,1220) (583,872) (94,1220) (where (70,1220) represents the coordinates of the button 31 ("123") entering the numeric input keyboard, (583,872) represents the coordinates of the character "3" in the numeric input keyboard, and (94,1220) represents the coordinates of the button 32 ("abc") returning to the alphabetic input keyboard).
After the test terminal receives the to-be-tested character string password, the coordinates of the characters in the to-be-tested character string password in the first input keyboard can be determined in sequence according to the coordinates of the characters in the set first input keyboard, and then the characters in the to-be-tested character string password are mapped to the second input keyboard of the to-be-tested terminal according to the coordinate conversion relation determined in the step 202, namely the coordinates of the characters in the to-be-tested character string password in the second input keyboard of the to-be-tested terminal are determined.
In step 204, a test instruction is sent to the terminal to be tested.
In this disclosure, the test instruction may be used to control the terminal to be tested to replay the input process of the character string password to be tested on the second input keyboard according to the coordinates of each character in the character string password to be tested in the second input keyboard. And after the testing terminal determines the coordinates of each character in the character string password to be tested in the second input keyboard, the testing terminal plays back the input process of the character string password to be tested, and thus the character string password to be tested is input into the password input box. Specifically, the terminal to be tested can sequentially simulate and click the operation of the buttons of the characters at the coordinate positions in the second input keyboard on the second input keyboard according to the sequence of the characters in the character string password to be tested, so as to complete the playback of the input process of the character string password to be tested.
In the technical scheme, a coordinate conversion relation is determined according to the acquired first configuration information of the terminal to be tested and the locally stored second configuration information of the reference terminal, and each character in the character string password to be tested is mapped to the second input keyboard of the terminal to be tested from the first input keyboard of the reference terminal according to the conversion relation, so that the purpose of playing back the input process of the character string password to be tested on the second input keyboard is achieved. Therefore, the success rate of password input can be improved, and the password can be stably input across equipment. In addition, for the same terminal to be tested, the test operation of inputting the password for multiple times can be realized only by determining the coordinate conversion relation once, namely the parameterization of the password input can be realized, and thus the test efficiency is ensured.
FIG. 4 is a flow chart illustrating a test method for password entry in accordance with another exemplary embodiment. As shown in fig. 4, the above method may further include the following steps.
In step 205, the actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard is obtained.
In step 206, when the actual input password is completely matched with the character string password to be tested, a first prompt message for representing that the password input test is successful is output.
In step 207, when the actual input password does not completely match the character string password to be tested, a second prompt message for indicating that the password input test fails is output.
In the disclosure, in order to facilitate a tester to conveniently and quickly obtain a test result of password input, after a character string password to be tested is input into a password input box, a terminal to be tested can send an actual input password input into the password input box to the test terminal, after the test terminal receives the actual input password, the test terminal can perform character string matching with the character string password to be tested received before, when the actual input password and the character string password are completely matched, the step 206 is executed, namely, a first prompt message for representing that the password input test is successful is output, and when the actual input password and the character string password are not completely matched, the step 207 is executed, namely, a second prompt message for representing that the password input test is failed is output. For example, the test terminal may output the first prompt message and the second prompt message in a pop-up window manner, and may also send the first prompt message and the second prompt message to a smart terminal device (e.g., a smart phone, a smart wearable device, etc.) in communication with the test terminal.
FIG. 5 is a block diagram illustrating a testing device for password entry in accordance with an exemplary embodiment. As shown in fig. 5, the apparatus 500 may include: the first obtaining module 501 is configured to obtain first configuration information of a terminal to be tested when a test trigger instruction and a character string password to be tested, which are input by a user, are received; a first determining module 502, configured to determine a coordinate transformation relationship according to second configuration information of a pre-stored reference terminal and the first configuration information acquired by the first acquiring module 501, where the coordinate transformation relationship is used to indicate a transformation relationship between coordinates of each input character in a first input keyboard of the reference terminal and coordinates of a corresponding input character in a second input keyboard of the terminal to be tested, and the first input keyboard and the second input keyboard have the same keyboard layout; a second determining module 503, configured to determine coordinates of each character in the to-be-tested character string password in the second input keyboard according to the coordinates of each character in the to-be-tested character string password in the first input keyboard and the coordinate conversion relationship determined by the first determining module 502; a sending module 504, configured to send a test instruction to the terminal to be tested, where the test instruction is used to control the terminal to be tested to play back an input process of the character string password to be tested on the second input keyboard according to coordinates of each character in the character string password to be tested in the second input keyboard, which are determined by the second determining module 503.
Optionally, the first configuration information includes a first screen resolution and a first screen density of the terminal to be tested; the second configuration information includes a second screen resolution and a second screen density of the reference terminal.
Optionally, the first determining module 502 is configured to determine the coordinate transformation relationship according to the above equation (1) according to the pre-stored second configuration information of the reference terminal and the first configuration information.
FIG. 6 is a block diagram illustrating a testing device for password entry in accordance with another exemplary embodiment. As shown in fig. 6, the apparatus 500 may further include: a second obtaining module 505, configured to obtain an actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard; a first output module 506, configured to output a first prompt message used for representing that a password input test is successful when the actual input password is completely matched with the to-be-tested string password; and a second output module 507, configured to output a second prompt message for indicating that the password input test fails when the actual input password does not completely match the character string password to be tested.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an electronic device 700 in accordance with an example embodiment. As shown in fig. 7, the electronic device 700 may include: a processor 701, a memory 702, multimedia components 703, input/output (I/O) interfaces 704, and communication components 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the above-mentioned test method for inputting a password. The memory 702 is used to store various types of data to support operation at the electronic device 700, such as instructions for any application or method operating on the electronic device 700 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 705 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described test method for password input.
In another exemplary embodiment, a computer readable storage medium comprising program instructions, such as the memory 702 comprising program instructions, executable by the processor 701 of the electronic device 700 to perform the above-described test method for password input is also provided.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A test method for password entry, comprising:
when a character string password to be tested and a test trigger instruction input by a user are received, acquiring first configuration information of a terminal to be tested, wherein the first configuration information comprises a first screen resolution and a first screen density of the terminal to be tested;
determining a coordinate conversion relationship according to prestored second configuration information of a reference terminal and the first configuration information, wherein the coordinate conversion relationship is used for representing the conversion relationship between the coordinates of each input character in a first input keyboard of the reference terminal and the coordinates of a corresponding input character in a second input keyboard of the terminal to be tested, the first input keyboard and the second input keyboard have the same keyboard layout, and the second configuration information comprises a second screen resolution and a second screen density of the reference terminal;
determining the coordinates of each character in the character string password to be tested in the second input keyboard according to the coordinates of each character in the character string password to be tested in the first input keyboard and the coordinate conversion relation;
and sending a test instruction to the terminal to be tested, wherein the test instruction is used for controlling the terminal to be tested to replay the input process of the character string password to be tested on the second input keyboard according to the coordinates of all characters in the character string password to be tested in the second input keyboard.
2. The method according to claim 1, wherein the determining a coordinate transformation relation according to the pre-stored second configuration information of the reference terminal and the first configuration information comprises:
the determining, according to second configuration information and the first configuration information of a reference terminal stored in advance, a coordinate conversion relationship by the following formula:
Figure FDA0002763278310000011
wherein (x)2i,y2i) Representing the coordinates of the ith character in the character string password to be tested in the second input keyboard; (x)1i,y1i) Representing the coordinates of the ith character in the character string password to be tested in the first input keyboard;
Figure FDA0002763278310000021
respectively representing the first screen resolution and the second screen resolution; den1、Den2Respectively representing the first screen density and the second screen density; correcx、correcyRespectively representing the correction factors in the X-axis direction and the Y-axis direction.
3. The method of claim 1, further comprising:
acquiring an actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard;
when the actual input password is completely matched with the character string password to be tested, outputting a first prompt message for representing successful password input test;
and when the actual input password is not completely matched with the character string password to be tested, outputting a second prompt message for representing that the password input test fails.
4. A test device for password entry, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring first configuration information of a terminal to be tested when a character string password to be tested and a test trigger instruction input by a user are received, and the first configuration information comprises a first screen resolution and a first screen density of the terminal to be tested;
the first determining module is configured to determine a coordinate transformation relationship according to second configuration information of a pre-stored reference terminal and the first configuration information acquired by the first acquiring module, where the coordinate transformation relationship is used to indicate a transformation relationship between coordinates of each input character in a first input keyboard of the reference terminal and coordinates of a corresponding input character in a second input keyboard of the terminal to be tested, the first input keyboard and the second input keyboard have the same keyboard layout, and the second configuration information includes a second screen resolution and a second screen density of the reference terminal;
the second determining module is used for determining the coordinates of each character in the character string password to be tested in the second input keyboard according to the coordinates of each character in the character string password to be tested in the first input keyboard and the coordinate conversion relation determined by the first determining module;
and the sending module is used for sending a test instruction to the terminal to be tested, wherein the test instruction is used for controlling the terminal to be tested to play back the input process of the character string password to be tested on the second input keyboard according to the coordinates of each character in the character string password to be tested determined by the second determining module in the second input keyboard.
5. The apparatus of claim 4, wherein the first determining module is configured to determine the coordinate transformation relationship according to a prestored second configuration information of the reference terminal and the first configuration information by the following formula:
Figure FDA0002763278310000031
wherein (x)2i,y2i) Representing the word to be testedCoordinates of the ith character in the string password in the second input keyboard; (x)1i,y1i) Representing the coordinates of the ith character in the character string password to be tested in the first input keyboard;
Figure FDA0002763278310000032
respectively representing the first screen resolution and the second screen resolution; den1、Den2Respectively representing the first screen density and the second screen density; correcx、correcyRespectively representing the correction factors in the X-axis direction and the Y-axis direction.
6. The apparatus of claim 4, further comprising:
the second acquisition module is used for acquiring an actual input password input to the terminal to be tested after the input process of the character string password to be tested is played back on the second input keyboard;
the first output module is used for outputting a first prompt message for representing successful password input test when the actual input password is completely matched with the character string password to be tested;
and the second output module is used for outputting a second prompt message for representing the failure of the password input test when the actual input password is not completely matched with the character string password to be tested.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
8. An electronic device, comprising:
the computer-readable storage medium recited in claim 7; and
one or more processors to execute the program in the computer-readable storage medium.
CN201711123399.2A 2017-11-14 2017-11-14 Test method and device for password input, storage medium and electronic equipment Active CN108009057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711123399.2A CN108009057B (en) 2017-11-14 2017-11-14 Test method and device for password input, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711123399.2A CN108009057B (en) 2017-11-14 2017-11-14 Test method and device for password input, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108009057A CN108009057A (en) 2018-05-08
CN108009057B true CN108009057B (en) 2021-04-02

Family

ID=62052281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711123399.2A Active CN108009057B (en) 2017-11-14 2017-11-14 Test method and device for password input, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108009057B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026651B (en) * 2019-11-25 2024-01-16 东软集团股份有限公司 Test method, device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022687A (en) * 2014-04-22 2015-11-04 腾讯科技(深圳)有限公司 Implementation method and device of sliding operation in automated testing scheme
CN105653056A (en) * 2015-12-17 2016-06-08 北京奇虎科技有限公司 Input method test method and device
CN106991343A (en) * 2016-01-11 2017-07-28 仁宝电脑工业股份有限公司 Secure payment device and its safe payment method
CN107193476A (en) * 2017-05-10 2017-09-22 北京百度网讯科技有限公司 Data inputting method and device, computer equipment and computer-readable recording medium
CN107273736A (en) * 2017-05-10 2017-10-20 百富计算机技术(深圳)有限公司 Cipher-code input method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101645291B1 (en) * 2009-12-21 2016-08-03 삼성전자주식회사 Image forming apparatus with touch screen and method for editing input letter thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022687A (en) * 2014-04-22 2015-11-04 腾讯科技(深圳)有限公司 Implementation method and device of sliding operation in automated testing scheme
CN105653056A (en) * 2015-12-17 2016-06-08 北京奇虎科技有限公司 Input method test method and device
CN106991343A (en) * 2016-01-11 2017-07-28 仁宝电脑工业股份有限公司 Secure payment device and its safe payment method
CN107193476A (en) * 2017-05-10 2017-09-22 北京百度网讯科技有限公司 Data inputting method and device, computer equipment and computer-readable recording medium
CN107273736A (en) * 2017-05-10 2017-10-20 百富计算机技术(深圳)有限公司 Cipher-code input method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于Kinect的隔空人手键盘输入 》;张仲一;《中国传媒大学学报(自然科学版)》;20131016;第20卷(第3期);第68-71,46页 *

Also Published As

Publication number Publication date
CN108009057A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
US11057216B2 (en) Protection method and protection system of system partition key data and terminal
JP6997343B2 (en) How to quickly open an application or application function, and a terminal
CN109075820B (en) Bluetooth pairing method, terminal device and readable storage medium
US20120260202A1 (en) Customized launching of applications
CN104572042A (en) Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment
US20150099590A1 (en) Cloud server and method for providing cloud game service
CN110875871A (en) Management method of instant messaging application and electronic equipment
CN107861848B (en) Gesture password testing method and device, readable storage medium and electronic equipment
CN108009057B (en) Test method and device for password input, storage medium and electronic equipment
CN110704030A (en) Interface configuration information generation method and device, electronic equipment and storage medium
CN105468606B (en) Webpage saving method and device
CN111148007B (en) Tone quality adjusting method, wireless transmitting equipment, tone quality adjusting system and medium
CN104991857A (en) Method and apparatus for trace debugging
JP2016051229A (en) Information processing apparatus, control method of information processing apparatus, and program
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN111026800B (en) Data export method and device, electronic equipment and storage medium
CN109413714B (en) User agent information processing method, device, storage medium and terminal
CN105025482B (en) Communication information processing method and equipment thereof
JP5910654B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN107968799A (en) A kind of information acquisition method, terminal device and system
CN112416210A (en) Information encryption and decryption method, system, storage medium and electronic equipment
CN112214404A (en) Mobile application testing method and device, storage medium and electronic equipment
CN113760688A (en) Remote debugging method, system, webpage server, equipment and storage medium
KR102180955B1 (en) Method for transmitting and receiving phonetic data
CN116450534B (en) Method, device, equipment and medium for generating mobile terminal application program

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
GR01 Patent grant
GR01 Patent grant