CN111061625A - Automatic testing method and device applied to out-of-order password keyboard - Google Patents

Automatic testing method and device applied to out-of-order password keyboard Download PDF

Info

Publication number
CN111061625A
CN111061625A CN201911126793.0A CN201911126793A CN111061625A CN 111061625 A CN111061625 A CN 111061625A CN 201911126793 A CN201911126793 A CN 201911126793A CN 111061625 A CN111061625 A CN 111061625A
Authority
CN
China
Prior art keywords
password
character
information
value
playback
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911126793.0A
Other languages
Chinese (zh)
Inventor
潘莉
刘羽
张伟龙
王东
杨超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911126793.0A priority Critical patent/CN111061625A/en
Publication of CN111061625A publication Critical patent/CN111061625A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an automatic testing method and device applied to an out-of-order password keyboard, and relates to the field of testing. One embodiment of the method comprises: 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. The implementation mode overcomes 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, can automatically test the disorder password keyboard, avoids the problem that scripts cannot be played back in the automatic test process due to the disorder password keyboard function in the application, and improves the efficiency and the quality of the application automatic test.

Description

Automatic testing method and device applied to out-of-order password keyboard
Technical Field
The invention relates to the field of testing, in particular to an automatic testing method and device applied to an out-of-order password keyboard.
Background
Before the application is on-line, the function of the application needs to be tested, and the prior art generally uses an automatic test tool for testing: and recording automatic test scripts for each function of the application, finding application defects in playback, and improving the application quality. Among them, for the virtual keyboard function, an out-of-order password keyboard is generally used for security.
Because the positions of the characters are unordered and random when the unordered keyboard is started every time, when the recorded automatic script is played back again on other terminals, the simulated click can be carried out according to the coordinate position when the script is recorded, and because the character position of the unordered keyboard is changed when the script is played back, the click input password is carried out according to the position when the script is recorded, the password input during the playback is often wrong, so that the automatic script cannot be normally played back.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
on one hand, the method for modifying the corresponding codes has higher requirements on developers and is easy to introduce new defects; on the other hand, the modified version of the tested program is not consistent with the actual version of the online program, so that defects are easy to escape, and the application quality of the program is difficult to guarantee.
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.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a main flow of an automated testing method applied to an out-of-order cryptographic keyboard according to an embodiment of the present invention;
FIG. 2 is a block diagram of the major modules of an automated test equipment for out-of-order keypads according to the present invention;
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 cryptographic keyboard, in accordance with an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
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, the automatic testing apparatus 200 applied to the out-of-order cryptographic keyboard includes:
an obtaining module 201, configured to, when a script is recorded, obtain password operation information input during recording;
a password value determining module 202, configured to determine password value information according to the input password operation information during recording based on the first mapping table;
the playback 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 determining password value module 202 further includes: establishing a first corresponding table; and the number of the first and second groups,
the playback 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 password value determining module 202 establishes the first correspondence table as follows, or the playback 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 the password 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, the playback 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 a character segmentation unit 301, a character segmentation unit 302, a character position storage unit 303, a character value searching unit 304, a password recording unit 305 and a simulated click password keyboard unit 306; wherein the content of the first and second substances,
the character 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;
the character 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 character position storage unit 303;
the character position storage unit 303 may be configured to store the character coordinate information and the character value sent by the character 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 character value 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 character position storage unit 303 according to character coordinate information of the password input by the tester, and send the character value to the password recording unit 305;
the password recording unit 305 may be configured to store the password value sent by the character 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 character position storage unit 303;
the simulated click password 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 character position 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 unordered password keyboard interface 400;
step S402: the character 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: the character segmentation unit 422 sends the segmented character picture and the character coordinate information to the character recognition unit 423;
step S404: the character recognition unit 423 recognizes all the single character images sent from the character segmentation unit 422 using an image recognition technique;
step S405: the character recognition unit 423 sends the recognized character value and the corresponding character coordinate information to the character position storage unit 424;
step S406: the character position storage unit 424 receives the character coordinate information and the character value sent by the character 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 character value search unit 425;
step S408: the character value lookup unit 425 extracts the password character coordinate information input by the tester;
step S409: the character value lookup unit 425 transmits the password character coordinate information to the character position storage unit 424;
step S410: the character position 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 character value search unit 425;
step S411: the character value lookup unit 425 will send the password character value to the password recording unit 426;
step S412: the password recording unit 426 stores the password character value sent by the character value 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 disorder code keyboard interface 400;
step S414: the character 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 the character segmentation unit 422 are sent to the character recognition unit 423;
step S416: the character recognition unit 423 recognizes all the single character images sent from the character segmentation unit 422 using an image recognition technique;
step S417: the character recognition unit 423 sends the recognized character value and the corresponding character coordinate information to the character position storage unit 424;
step S418: the character position storage unit 424 receives the character coordinate information and the character value sent by the character 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: the password recording unit 426 reads the stored password value from the memory of the unit and sends the password value to the character position storage unit 424;
step S420: the character position 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 click password keyboard unit 427;
step S421: the simulated click password keyboard unit 427 simulates the tester clicking the coordinate position according to the password character coordinate information returned by the character position storage unit 424 to input the correct password value.
Fig. 5 illustrates an exemplary 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, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 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 the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal 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.
The terminal 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.
The server 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 the terminal 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 the server 505, and accordingly, the automated testing apparatus applied to the out-of-order password keyboard is generally disposed in the server 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 a computer 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, the computer 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 a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage 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 the communication section 609, and/or installed from the removable 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.

Claims (10)

1. An automated testing method applied to an out-of-order password keyboard is characterized by comprising the following steps:
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.
2. The method of claim 1, wherein the first mapping table or the second mapping table is created 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.
3. The method of claim 2, wherein determining password value information from said record-time entered password operation information based on a first mapping table comprises:
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.
4. The method of claim 2, wherein determining playback coordinate information from the cryptographic value information based on a second correspondence table comprises:
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.
5. An automated testing device for use with out-of-order keypads, 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.
6. The apparatus of claim 5, wherein the means for determining the password value establishes the first mapping table as follows, or wherein the means for playing back establishes the second mapping 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.
7. The apparatus of claim 6, wherein said means for determining a password value determines password value information from said input password operation information at the time of recording based on a first mapping table, comprising:
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.
8. The apparatus of claim 6, wherein the playback module determines playback coordinate information from the password value information based on a second mapping table, comprising:
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.
9. An automated test electronics for use with out-of-order keypads comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201911126793.0A 2019-11-18 2019-11-18 Automatic testing method and device applied to out-of-order password keyboard Pending CN111061625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911126793.0A CN111061625A (en) 2019-11-18 2019-11-18 Automatic testing method and device applied to out-of-order password keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911126793.0A CN111061625A (en) 2019-11-18 2019-11-18 Automatic testing method and device applied to out-of-order password keyboard

Publications (1)

Publication Number Publication Date
CN111061625A true CN111061625A (en) 2020-04-24

Family

ID=70297824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911126793.0A Pending CN111061625A (en) 2019-11-18 2019-11-18 Automatic testing method and device applied to out-of-order password keyboard

Country Status (1)

Country Link
CN (1) CN111061625A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950291A (en) * 2020-06-22 2020-11-17 北京百度网讯科技有限公司 Semantic representation model generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266571A (en) * 2008-04-22 2008-09-17 中国科学院软件研究所 Credible password module test case creation method and its test system
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
RU2015112961A (en) * 2014-04-09 2016-10-27 Хун-Чиэнь ЧОУ METHOD AND DEVICE FOR PASSWORD CHECK FOR INPUT PASSWORD CHECK AND COMPUTER SYSTEM CONTAINING PASSWORD CHECK
CN108154055A (en) * 2018-01-10 2018-06-12 上海展扬通信技术有限公司 Cipher-code input method, mobile terminal and storage medium
CN109033772A (en) * 2018-08-09 2018-12-18 北京云测信息技术有限公司 A kind of input method and device of verification information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266571A (en) * 2008-04-22 2008-09-17 中国科学院软件研究所 Credible password module test case creation method and its test system
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
RU2015112961A (en) * 2014-04-09 2016-10-27 Хун-Чиэнь ЧОУ METHOD AND DEVICE FOR PASSWORD CHECK FOR INPUT PASSWORD CHECK AND COMPUTER SYSTEM CONTAINING PASSWORD CHECK
CN108154055A (en) * 2018-01-10 2018-06-12 上海展扬通信技术有限公司 Cipher-code input method, mobile terminal and storage medium
CN109033772A (en) * 2018-08-09 2018-12-18 北京云测信息技术有限公司 A kind of input method and device of verification information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950291A (en) * 2020-06-22 2020-11-17 北京百度网讯科技有限公司 Semantic representation model generation method and device, electronic equipment and storage medium
CN111950291B (en) * 2020-06-22 2024-02-23 北京百度网讯科技有限公司 Semantic representation model generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109034069B (en) Method and apparatus for generating information
CN104866542A (en) POI data verification method and device
CN110019263B (en) Information storage method and device
CN109862100B (en) Method and device for pushing information
CN110070076B (en) Method and device for selecting training samples
CN110858172A (en) Automatic test code generation method and device
CN113592535B (en) Advertisement recommendation method and device, electronic equipment and storage medium
CN110866205B (en) Method and apparatus for storing information
CN108921138B (en) Method and apparatus for generating information
WO2021023171A1 (en) Method and apparatus for test script recording time selection
CN111061625A (en) Automatic testing method and device applied to out-of-order password keyboard
CN109034085B (en) Method and apparatus for generating information
CN111813685A (en) Automatic testing method and device
CN109522429B (en) Method and apparatus for generating information
CN111581098A (en) Interface data transfer storage method, device, server and storage medium
CN115022201B (en) Data processing function test method, device, equipment and storage medium
CN110348438A (en) A kind of picture character identifying method, device and electronic equipment based on artificial nerve network model
US20210271720A1 (en) Method and apparatus for sending information
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115328736A (en) Probe deployment method, device, equipment and storage medium
CN112988583A (en) Method and device for testing syntax compatibility of database
CN114499984A (en) Identity authentication method, device, equipment and medium based on AI and RPA
CN113626301A (en) Method and device for generating test script
CN112379967A (en) Simulator detection method, device, equipment and medium
CN112860538A (en) Method and device for performing interface regression test based on online log

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220923

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424