Disclosure of Invention
In view of this, embodiments of the present invention provide an automated testing method and apparatus for an out-of-order password keyboard, which can perform automated testing on the out-of-order password keyboard, and avoid the problem that a script cannot be played back in an automated testing process due to the occurrence of the out-of-order and out-of-order password keyboard function in an application, thereby improving efficiency and quality of automated testing of the application.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided an automated testing method applied to an out-of-order password keyboard, including:
when the script is recorded, password operation information input during recording is acquired;
determining password value information according to the input password operation information during recording based on the first corresponding table;
when the script is played back, determining playback coordinate information according to the password value information based on a second corresponding table; and inputting password operation during playback according to the playback coordinate information.
Optionally, before determining the password value information according to the password operation information input during recording, the method further includes: establishing a first corresponding table; and the number of the first and second groups,
before determining the playback coordinate information according to the password value information, the method further comprises: and establishing a second corresponding table.
Optionally, the first mapping table or the second mapping table is established by the following method:
acquiring keyboard image information; the keyboard image information includes: keyboard picture information and keyboard coordinate information;
segmenting the keyboard image and determining single character image information; the single character image information includes: single character picture information, character coordinate information corresponding to the single character;
identifying the single character according to the single character picture information, and determining the character value of the single character;
determining the corresponding relation between the character value and the character coordinate according to the character value of a single character and the character coordinate information corresponding to the single character; taking a set formed by all corresponding relations as a corresponding table; when the script is recorded, the corresponding table is a first corresponding table; and when the script is played back, the corresponding table is a second corresponding table.
Optionally, determining password value information according to the password operation information input during recording based on the first mapping table includes:
determining the coordinate information of the password characters during recording according to the password operation information input during recording;
searching a password character value corresponding to the coordinate information of the password character during recording based on a first corresponding table; and taking the searched password character value as the password value information.
Optionally, determining playback coordinate information according to the password value information based on a second correspondence table includes:
searching the playback password character coordinate corresponding to the password value based on a second corresponding table;
and taking the searched character coordinates of the password during playback as the playback coordinate information.
According to another aspect of the embodiments of the present invention, there is provided an automatic testing apparatus for an out-of-order password keyboard, comprising:
the acquisition module is used for acquiring password operation information input during recording when the script is recorded;
the password value determining module is used for determining password value information according to the password operation information input during recording based on the first corresponding table;
the playback module is used for determining playback coordinate information according to the password value information based on the second corresponding table when the script is played back; and inputting password operation during playback according to the playback coordinate information.
Optionally, before the determining the password value information according to the password operation information input during recording, the determining the password value module further includes: establishing a first corresponding table; and the number of the first and second groups,
before determining the playback coordinate information according to the password value information, the playback module further includes: and establishing a second corresponding table.
Optionally, the password value determining module establishes the first correspondence table by using the following method, or the playback module establishes the second correspondence table by using the following method:
acquiring keyboard image information; the keyboard image information includes: keyboard picture information and keyboard coordinate information;
segmenting the keyboard image and determining single character image information; the single character image information includes: single character picture information, character coordinate information corresponding to the single character;
identifying the single character according to the single character picture information, and determining the character value of the single character;
determining the corresponding relation between the character value and the character coordinate according to the character value of a single character and the character coordinate information corresponding to the single character; taking a set formed by all corresponding relations as a corresponding table; when the script is recorded, the corresponding table is a first corresponding table; and when the script is played back, the corresponding table is a second corresponding table.
Optionally, the determining the password value module determines password value information according to the password operation information input during recording based on a first mapping table, and includes:
determining the coordinate information of the password characters during recording according to the password operation information input during recording;
searching a password character value corresponding to the coordinate information of the password character during recording based on a first corresponding table; and taking the searched password character value as the password value information.
Optionally, the determining, by the playback module, the playback coordinate information according to the password value information based on the second mapping table includes:
searching the playback password character coordinate corresponding to the password value based on a second corresponding table;
and taking the searched character coordinates of the password during playback as the playback coordinate information.
According to another aspect of an embodiment of the present invention, there is provided an automated test electronics for use with an out-of-order cryptographic keyboard, comprising:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the automated testing method applied to the out-of-order password keyboard provided by the invention.
According to a further aspect of an embodiment of the present invention, there is provided a computer readable medium, on which a computer program is stored, the program, when executed by a processor, implementing the automated testing method applied to an out-of-order cryptographic keyboard provided by the present invention.
One embodiment of the above invention has the following advantages or benefits: because the technical means that the password value is determined according to the password operation information input during recording based on the established first character-coordinate corresponding table during recording of the script, and the password operation input during playback is executed according to the playback password coordinate determined by the password value based on the established second character-coordinate corresponding table during playback of the script is adopted, the technical problems of low efficiency and high time and labor cost caused by the current method of bypassing the function of the disorder password keyboard and modifying the corresponding code are solved, the technical effect of automatically testing the disorder password keyboard is achieved, the problem that the script cannot be played back in the automatic testing process due to the disorder password keyboard function in application is avoided, and the efficiency and the quality of the application automatic testing are improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of an automated testing method applied to an out-of-order password keyboard according to an embodiment of the present invention, as shown in fig. 1, including:
step S101, when a script is recorded, password operation information input during recording is acquired;
step S102, determining password value information according to the password operation information input during recording based on a first corresponding table;
step S103, determining playback coordinate information according to the password value information based on a second corresponding table when the script is played back; and inputting password operation during playback according to the playback coordinate information.
The disorder password keyboard can be a self-defined password keyboard program module in program application, such as a virtual keyboard used when a password is input in related application in the financial field; when the program application is started every time, the positions of the characters in the disorder password keyboard can be disordered and random, so that the security of inputting the password by a user can be greatly guaranteed by using the disorder password keyboard.
When the script is recorded, the operation of inputting the password can be the operation of clicking the disordered password keyboard on the terminal screen manually or by means of external equipment by a user (such as a tester and a trial user), or the operation of inputting the password in the disordered password keyboard on the terminal screen by the user (such as the tester and the trial user) by utilizing a terminal entity keyboard, or the operation of simulating the user to input the password by the script for inputting the password, which is written by a developer;
at the time of script playback, the operation of inputting the password at the time of playback can be automatically executed by simulating clicking of a password keyboard unit in a program.
The invention adopts the technical means that the password value is determined according to the password operation information input during recording based on the established first character-coordinate corresponding table during script recording, and then the password operation input during playback is executed according to the replay password coordinate determined based on the established second character-coordinate corresponding table during script playback, thereby overcoming the technical problems of low efficiency and high time and labor cost caused by the current method of bypassing the function of the disorder password keyboard and modifying the corresponding code, further being capable of automatically testing the disorder password keyboard, avoiding the problem that the script cannot be played back during the automatic testing process due to the disorder password keyboard function in application, and improving the efficiency and the quality of the automatic testing of application.
In some embodiments, before determining password value information according to the password operation information input at the time of recording, the method further includes: establishing a first corresponding table; and the number of the first and second groups,
before determining the playback coordinate information according to the password value information, the method further comprises: and establishing a second corresponding table.
In some embodiments, the first correspondence table or the second correspondence table is established by:
acquiring keyboard image information; the keyboard image information includes: keyboard picture information and keyboard coordinate information;
segmenting the keyboard image and determining single character image information; the single character image information includes: single character picture information, character coordinate information corresponding to the single character;
identifying the single character according to the single character picture information, and determining the character value of the single character;
determining the corresponding relation between the character value and the character coordinate according to the character value of a single character and the character coordinate information corresponding to the single character; taking a set formed by all corresponding relations as a corresponding table; when the script is recorded, the corresponding table is a first corresponding table; and when the script is played back, the corresponding table is a second corresponding table.
The first corresponding table can be established in a script recording stage, and the second corresponding table can be established in a script playback stage;
when a disorder password keyboard interface appears in a screen, acquiring keyboard information in an image storage form, dividing a keyboard picture into single character images; then, the character images are identified, and the character value corresponding to each character image is determined; meanwhile, the coordinate information of each character can be recorded, the coordinate information of the characters is corresponding to the values, and a set formed by all corresponding relations is stored as a corresponding table; when the script is recorded, the stored corresponding table is a first corresponding table; during script playback, the stored corresponding table is a second corresponding table for use in subsequent steps;
specifically, when the keyboard picture is segmented, the coordinate position and the overall size of the password keyboard can be located first, then the size and the shape of the character image to be segmented are obtained through process sequence calculation, and finally segmentation is carried out.
In some embodiments, determining password value information according to the password operation information input at the time of recording based on the first correspondence table includes:
determining the coordinate information of the password characters during recording according to the password operation information input during recording;
searching a password character value corresponding to the coordinate information of the password character during recording based on a first corresponding table; and taking the searched password character value as the password value information.
The password input operation information can be the operation of inputting a password during recording; in the automatic script recording stage, the operation of inputting the password can be received and stored according to the input or clicking sequence, namely, the clicked characters are recorded in sequence, and further, the ordered character values can be found out according to the sequence based on the first corresponding table, and the ordered character values are stored as password information.
In some embodiments, determining playback coordinate information from the cryptographic value information based on a second correspondence table includes:
searching the playback password character coordinate corresponding to the password value based on a second corresponding table;
and taking the searched character coordinates of the password during playback as the playback coordinate information.
In the script playback stage, character information to be input can be extracted from the password value information one by one, coordinate positions corresponding to the character values in the script playback stage are found out in sequence based on the second corresponding table, the ordered coordinate positions are used as playback coordinate information to be input, a correct password is input to enable password verification to pass, and therefore automatic testing can be normally executed.
Fig. 2 is a schematic diagram of the main modules of an automatic testing apparatus applied to an out-of-order cryptographic keyboard according to an embodiment of the present invention, and as shown in fig. 2, theautomatic testing apparatus 200 applied to the out-of-order cryptographic keyboard includes:
an obtainingmodule 201, configured to, when a script is recorded, obtain password operation information input during recording;
a passwordvalue determining module 202, configured to determine password value information according to the input password operation information during recording based on the first mapping table;
theplayback module 203 is used for determining playback coordinate information according to the password value information based on the second corresponding table when the script is played back; and inputting password operation during playback according to the playback coordinate information.
The disorder password keyboard can be a self-defined password keyboard program module in program application, such as a virtual keyboard used when a password is input in related application in the financial field; when the program application is started every time, the positions of the characters in the disorder password keyboard can be disordered and random, so that the security of inputting the password by a user can be greatly guaranteed by using the disorder password keyboard.
When the script is recorded, the operation of inputting the password can be the operation of clicking the disordered password keyboard on the terminal screen manually or by means of external equipment by a user (such as a tester and a trial user), or the operation of inputting the password in the disordered password keyboard on the terminal screen by the user (such as the tester and the trial user) by utilizing a terminal entity keyboard, or the operation of simulating the user to input the password by the script for inputting the password, which is written by a developer;
at the time of script playback, the operation of inputting the password at the time of playback can be automatically executed by simulating clicking of a password keyboard unit in a program.
The invention adopts the technical means that the password value is determined according to the password operation information input during recording based on the established first character-coordinate corresponding table during script recording, and then the password operation input during playback is executed according to the replay password coordinate determined based on the established second character-coordinate corresponding table during script playback, thereby overcoming the technical problems of low efficiency and high time and labor cost caused by the current method of bypassing the function of the disorder password keyboard and modifying the corresponding code, further being capable of automatically testing the disorder password keyboard, avoiding the problem that the script cannot be replayed during the automatic testing process caused by the disorder password keyboard function in application, and improving the efficiency and the quality of the application automatic testing.
In some embodiments, before determining the password value information according to the password operation information input during the recording, the determiningpassword value module 202 further includes: establishing a first corresponding table; and the number of the first and second groups,
theplayback module 203 further includes, before determining the playback coordinate information according to the password value information: and establishing a second corresponding table.
In some embodiments, the passwordvalue determining module 202 establishes the first correspondence table as follows, or theplayback module 203 establishes the second correspondence table as follows:
acquiring keyboard image information; the keyboard image information includes: keyboard picture information and keyboard coordinate information;
segmenting the keyboard image and determining single character image information; the single character image information includes: single character picture information, character coordinate information corresponding to the single character;
identifying the single character according to the single character picture information, and determining the character value of the single character;
determining the corresponding relation between the character value and the character coordinate according to the character value of a single character and the character coordinate information corresponding to the single character; taking a set formed by all corresponding relations as a corresponding table; when the script is recorded, the corresponding table is a first corresponding table; and when the script is played back, the corresponding table is a second corresponding table.
The first corresponding table can be established in a script recording stage, and the second corresponding table can be established in a script playback stage;
when a disorder password keyboard interface appears in a screen, dividing a keyboard picture into individual single character images, identifying the character images, and determining a character value corresponding to each character image; meanwhile, the coordinate information of each character can be recorded, the coordinate information of the characters is corresponding to the values, and a set formed by all corresponding relations is stored as a corresponding table; when the script is recorded, the stored corresponding table is a first corresponding table; during script playback, the stored corresponding table is a second corresponding table for use in subsequent steps;
specifically, when the keyboard picture is segmented, the coordinate position and the overall size of the password keyboard can be located first, then the size and the shape of the character image to be segmented are obtained through process sequence calculation, and finally segmentation is carried out.
In some embodiments, the determining thepassword value module 202 determines the password value information according to the password operation information input during recording based on the first mapping table, including:
determining the coordinate information of the password characters during recording according to the password operation information input during recording;
searching a password character value corresponding to the coordinate information of the password character during recording based on a first corresponding table; and taking the searched password character value as the password value information.
The password input operation information can be the operation of inputting a password during recording; in the automatic script recording stage, the operation of inputting the password can be received and stored according to the input or clicking sequence, namely, the clicked characters are recorded in sequence, and then the ordered characters can be found out according to the sequence based on the first corresponding table and stored as password information.
In some embodiments, theplayback module 203 determines the playback coordinate information according to the password value information based on the second correspondence table, including:
searching the playback password character coordinate corresponding to the password value based on a second corresponding table;
and taking the searched character coordinates of the password during playback as the playback coordinate information.
In the script playback stage, character information to be input can be extracted from the password value information one by one, coordinate positions corresponding to the character values in the script playback stage are found out in sequence based on the second corresponding table, the ordered coordinate positions are used as playback coordinate information to be input, a correct password is input to enable password verification to pass, and therefore automatic testing can be normally executed.
The technical solution is described in detail below with a specific embodiment:
in the embodiment of the invention, a tester can automatically test the function of the disorder password keyboard by using the method provided by the invention; in the script recording stage, after entering the disorder password keyboard interface, the method provided by the invention is utilized to determine the real and accurate password information; in the script playback stage, after entering the disorder password keyboard interface, the stored real and accurate password information is used for determining the password coordinate information to be input, so that the automatic test of the disorder password keyboard function can be smoothly executed. In particular, the amount of the solvent to be used,
FIG. 3 is a block diagram of an apparatus for automated testing of an out-of-order keypad according to an embodiment of the present invention; FIG. 4 is a flowchart illustrating an exemplary process for performing automated testing for use with an out-of-order keypad, in accordance with an embodiment of the present invention.
As shown in fig. 3, includes: the system comprises acharacter segmentation unit 301, acharacter segmentation unit 302, a characterposition storage unit 303, a charactervalue searching unit 304, apassword recording unit 305 and a simulated clickpassword keyboard unit 306; wherein,
thecharacter segmentation unit 301 may be configured to perform image segmentation on each character in the password keyboard, and record coordinate information of each image after segmentation;
thecharacter recognition unit 302 may be configured to recognize all the single character images sent by the character segmentation program by using an image recognition technology, and send the recognized character values and the corresponding character coordinate information to the characterposition storage unit 303;
the characterposition storage unit 303 may be configured to store the character coordinate information and the character value sent by thecharacter recognition unit 302, establish a correspondence table between the character value and the coordinate, search for corresponding coordinate information/character value according to the received character value/coordinate information, and return a result;
the charactervalue searching unit 304 may be configured to find a character value by searching the correspondence table between the character value and the coordinate in the characterposition storage unit 303 according to character coordinate information of the password input by the tester, and send the character value to thepassword recording unit 305;
thepassword recording unit 305 may be configured to store the password value sent by thecharacter searching unit 304 in the script entry stage as the input password value in the script playback stage. A script playback stage, in which the stored password value is read from the memory and sent to the characterposition storage unit 303;
the simulated clickpassword keyboard unit 306 may be configured to simulate a tester to click a coordinate position according to the password character coordinate position information returned by the characterposition storage unit 303.
As shown in fig. 4, the execution process of the automated test applied to the out-of-order password keyboard in the embodiment of the present invention includes the following steps:
steps S401 to S412 are processes of determining and storing password information by a tester at an automated script recording stage, and include:
step S401: a tester starts the tested application in the mobile application automatic test platform, records a preorder test script and enters the unorderedpassword keyboard interface 400;
step S402: thecharacter segmentation unit 422 performs image segmentation on each character in the password keyboard, and records coordinate information of each character image after segmentation;
step S403: thecharacter segmentation unit 422 sends the segmented character picture and the character coordinate information to thecharacter recognition unit 423;
step S404: thecharacter recognition unit 423 recognizes all the single character images sent from thecharacter segmentation unit 422 using an image recognition technique;
step S405: thecharacter recognition unit 423 sends the recognized character value and the corresponding character coordinate information to the characterposition storage unit 424;
step S406: the characterposition storage unit 424 receives the character coordinate information and the character value sent by thecharacter recognition unit 423, and establishes a corresponding relation table of the character value and the coordinate at the recording stage, and stores the table as a first corresponding table;
step S407: the tester inputs the password on the terminal, and the password is received by the charactervalue search unit 425;
step S408: the charactervalue lookup unit 425 extracts the password character coordinate information input by the tester;
step S409: the charactervalue lookup unit 425 transmits the password character coordinate information to the characterposition storage unit 424;
step S410: the characterposition storage unit 424 determines a password character value corresponding to the password character coordinate by searching the first corresponding table, and returns the password character value to the charactervalue search unit 425;
step S411: the charactervalue lookup unit 425 will send the password character value to thepassword recording unit 426;
step S412: thepassword recording unit 426 stores the password character value sent by the charactervalue searching unit 425; the password character value can be used as input password information in a script playback stage;
steps S413 to S421 are processes of inputting a correct password value according to the stored password information by the tester at the playback stage of the automation script, and include:
step S413: a tester starts a script playback tool in the mobile application automation test platform, and the scripts are sequentially executed and played back to the disordercode keyboard interface 400;
step S414: thecharacter segmentation unit 422 performs image segmentation on each character in the password keyboard, and records coordinate information of each character image after segmentation;
step S415: the character picture and the character coordinate information after being segmented by thecharacter segmentation unit 422 are sent to thecharacter recognition unit 423;
step S416: thecharacter recognition unit 423 recognizes all the single character images sent from thecharacter segmentation unit 422 using an image recognition technique;
step S417: thecharacter recognition unit 423 sends the recognized character value and the corresponding character coordinate information to the characterposition storage unit 424;
step S418: the characterposition storage unit 424 receives the character coordinate information and the character value sent by thecharacter recognition unit 423, and establishes a corresponding relation table of the character value and the coordinate at the playback stage, and stores the table as a second corresponding table;
step S419: thepassword recording unit 426 reads the stored password value from the memory of the unit and sends the password value to the characterposition storage unit 424;
step S420: the characterposition storage unit 424 determines the password character coordinate information corresponding to the password character value by searching the second corresponding table, and sends the password character coordinate information to the simulated clickpassword keyboard unit 427;
step S421: the simulated clickpassword keyboard unit 427 simulates the tester clicking the coordinate position according to the password character coordinate information returned by the characterposition storage unit 424 to input the correct password value.
Fig. 5 illustrates anexemplary system architecture 500 of an automated testing method applied to an out-of-order cryptographic keyboard or an automated testing apparatus applied to an out-of-order cryptographic keyboard to which embodiments of the present invention may be applied.
As shown in fig. 5, thesystem architecture 500 may includeterminal devices 501, 502, 503, anetwork 504, and aserver 505. Thenetwork 504 serves to provide a medium for communication links between theterminal devices 501, 502, 503 and theserver 505.Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use theterminal devices 501, 502, 503 to interact with aserver 505 over anetwork 504 to receive or send messages or the like. Theterminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
Theterminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
Theserver 505 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using theterminal devices 501, 502, 503. The background management server can analyze and process the received data such as the product information inquiry request and feed back the processing result to the terminal equipment.
It should be noted that the automated testing method applied to the out-of-order password keyboard provided by the embodiment of the present invention is generally executed by theserver 505, and accordingly, the automated testing apparatus applied to the out-of-order password keyboard is generally disposed in theserver 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of acomputer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, thecomputer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from astorage section 608 into a Random Access Memory (RAM) 603. In theRAM 603, various programs and data necessary for the operation of thesystem 600 are also stored. TheCPU 601,ROM 602, andRAM 603 are connected to each other via abus 604. An input/output (I/O)interface 605 is also connected tobus 604.
The following components are connected to the I/O interface 605: aninput portion 606 including a keyboard, a mouse, and the like; anoutput portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; astorage section 608 including a hard disk and the like; and acommunication section 609 including a network interface card such as a LAN card, a modem, or the like. Thecommunication section 609 performs communication processing via a network such as the internet. Thedriver 610 is also connected to the I/O interface 605 as needed. Aremovable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on thedrive 610 as necessary, so that a computer program read out therefrom is mounted in thestorage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through thecommunication section 609, and/or installed from theremovable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises an acquisition module, a password value determination module and a playback module. The names of these modules do not in some cases form a limitation on the modules themselves, and for example, the acquiring module may also be described as a "module that sends a picture acquiring request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: step S101, when a script is recorded, password operation information input during recording is acquired; step S102, determining password value information according to the password operation information input during recording based on a first corresponding table; step S103, determining playback coordinate information according to the password value information based on a second corresponding table when the script is played back; and inputting password operation during playback according to the playback coordinate information.
According to the technical scheme of the embodiment of the invention, because the established first character-coordinate corresponding table is adopted when the script is recorded, determining the password value according to the input password operation information during recording, and then playing back the script based on the established second character-coordinate corresponding table, a technical means for determining the coordinates of the playback password to be input based on the password value and performing the password input operation during playback, therefore, the technical problems of low efficiency and high time and labor cost caused by the current method of bypassing the function of the disorder password keyboard and modifying the corresponding codes are solved, therefore, the technical effect of automatically testing the disorder and disorder password keyboard is achieved, the problem that scripts cannot be played back in the automatic testing process due to the disorder and disorder password keyboard function in the application is solved, and the efficiency and the quality of the application automatic testing are improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.