CN110188031A - Electronic device, keyboard and APP compatibility test method and storage medium - Google Patents
Electronic device, keyboard and APP compatibility test method and storage medium Download PDFInfo
- Publication number
- CN110188031A CN110188031A CN201910316549.4A CN201910316549A CN110188031A CN 110188031 A CN110188031 A CN 110188031A CN 201910316549 A CN201910316549 A CN 201910316549A CN 110188031 A CN110188031 A CN 110188031A
- Authority
- CN
- China
- Prior art keywords
- keyboard
- app
- vector
- calling
- real
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 16
- 238000012360 testing method Methods 0.000 claims abstract description 84
- 238000004458 analytical method Methods 0.000 claims abstract description 52
- 239000013598 vector Substances 0.000 claims description 98
- 238000000034 method Methods 0.000 claims description 20
- 230000008569 process Effects 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 7
- 238000010009 beating Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to compatibility test, a kind of keyboard and APP compatibility test method are proposed, comprising: the operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generate test script;The starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and the real-time pictures of keyboard are intercepted after the completion of testing keyboard and calling;Similarity according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture obtains keyboard and the compatibility analysis result of APP based on the similarity.It can be automatically performed the test of keyboard Yu APP compatibility, improve testing efficiency and accuracy.In addition, the present invention also proposes a kind of electronic device and storage medium.
Description
Technical field
The present invention relates to mobile application functional test fields more particularly to a kind of electronic device, keyboard and APP compatibility to survey
Method for testing and storage medium.
Background technique
With the development of computer technology, the function of various mobile applications (APP) is also stronger and stronger.But with movement
Application function increases, and will lead to the problem for occurring compatibility between each function.For example, between mobile application and input keyboard
Compatibility issue.Currently, improving the efficiency of input text to promote user experience, mobile device usually has a variety of defeated
Enter keyboard, such as pure digi-tal input keyboard, the input keyboard that letter is exchanged with number, spcial character such as input mailbox shortcut key@
The input keyboard etc. of character.Cause mobile application that there can be compatibility issue when calling these keyboards, and is directed to mobile application
Tester is needed exist for by means of manual recurrence with the compatibility issue of keyboard, and testing efficiency is low and accuracy rate is not high.
Summary of the invention
In view of this, the present invention proposes a kind of electronic device, keyboard and APP compatibility test method and storage medium, energy
It is enough automatically performed the test of keyboard Yu APP compatibility, improves testing efficiency and accuracy.
Firstly, to achieve the above object, the present invention proposes a kind of electronic device, the electronic device include memory and
The processor connecting with the memory, the processor are used to execute the keyboard stored on the memory and APP compatibility
Test program, the keyboard and APP compatibility test program realize following steps when being executed by the processor:
A1, the operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generates test script;
A2, the starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and surveying
Try the real-time pictures that keyboard is obtained after the completion of keyboard calls;
A3, the phase according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture
Like degree, keyboard and the compatibility analysis result of APP are obtained based on the similarity.
Preferably, the step A1 includes:
The operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes that user clicks
The test script of the first time point of the corresponding keyboard coordinate information of keyboard and click the keyboard coordinate information.
Preferably, in the step A2, the step of the real-time pictures that keyboard is obtained after the completion of testing keyboard and calling
Suddenly include:
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuous arrangement
Multiple pictures;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, described section
Taking picture is the real-time pictures.
Preferably, the step A3 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis, institute are carried out to the second vector described in first vector sum
Stating the second vector is the vector that keyboard calls tracing point to generate in the predetermined standard for calling direction complete call;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that be directed to key
The compatibility test result of disk and APP pass through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, really
Surely do not pass through for the compatibility test result of keyboard and APP.
Preferably, described the step of carrying out vectorized process to the real-time pictures, obtaining the first vector, includes:
According to the starting flow nodes of the keyboard, the calling direction of keyboard is determined;
Keyboard in the real-time pictures is obtained in the boundary point information for calling direction;
The calling tracing point that keyboard is determined according to the boundary point information generates to obtain described based on the calling tracing point
First vector.
In addition, to achieve the goals above, the present invention also proposes a kind of keyboard and APP compatibility test method, the side
Method includes the following steps:
S1, the operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generates test script;
S2, the starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and surveying
Try the real-time pictures that keyboard is obtained after the completion of keyboard calls;
S3, the phase according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture
Like degree, keyboard and the compatibility analysis result of APP are obtained based on the similarity.
Preferably, the step S1 includes:
The operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes that user clicks
The test script of the first time point of the corresponding keyboard coordinate information of keyboard and click the keyboard coordinate information.
Preferably, in the step S2, the step of the real-time pictures that keyboard is obtained after the completion of testing keyboard and calling
Suddenly include:
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuous arrangement
Multiple pictures;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, described section
Taking picture is the real-time pictures.
Preferably, the step S3 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis, institute are carried out to the second vector described in first vector sum
Stating the second vector is the vector that keyboard calls tracing point to generate in the predetermined standard for calling direction complete call;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that be directed to key
The compatibility test result of disk and APP pass through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, really
Surely do not pass through for the compatibility test result of keyboard and APP.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable
Storage medium is stored with keyboard and APP compatibility test program, and the keyboard and APP compatibility test program can be by least one
Processor executes, so that the step of at least one described processor executes keyboard and APP compatibility test method as described above.
Electronic device, keyboard and APP compatibility test method proposed by the invention and storage medium, by being based on user
Operation instruction information and keyboard layout information that APP calls keyboard are clicked, test script is generated;It is determined according to the test script
The starting flow nodes of the keyboard are called, while being tested, and intercept the real-time of keyboard after the completion of testing keyboard and calling
Picture;Similarity according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture,
Keyboard and the compatibility analysis result of APP are obtained based on the similarity.The survey of keyboard Yu APP compatibility can be automatically performed
Examination improves testing efficiency and accuracy.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of electronic device one proposed by the present invention;
Fig. 2 is the program module schematic diagram of keyboard and APP compatibility test program in one embodiment of electronic device of the present invention;
Fig. 3 is the implementation flow chart of keyboard of the present invention Yu the preferred embodiment of APP compatibility test method.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the optional hardware structure schematic diagram of electronic device one proposed by the present invention.In the present embodiment,
Electronic device 10 may include, but be not limited only to, and connection memory 11, processor 12, net can be in communication with each other by communication bus 14
Network interface 13.It should be pointed out that Fig. 1 illustrates only the electronic device 10 with component 11-14, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes at least a type of computer readable storage medium, computer readable storage medium
Including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), quiet
State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM)
Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 11 can be electronics dress
Set 10 internal storage unit, such as the hard disk or memory of electronic device 10.In further embodiments, memory 11 can also be with
It is the outer packet storage device of electronic device 10, such as the plug-in type hard disk being equipped on electronic device 10, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, it stores
Device 11 can also both including electronic device 10 internal storage unit and also including its outer packet storage device.In the present embodiment, storage
Device 11 is installed on the operating system and types of applications software of electronic device 10, such as keyboard and APP compatibility commonly used in storage
Test program etc..In addition, memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is commonly used in control electronic device 10
Overall operation.In the present embodiment, program code or processing data of the processor 12 for being stored in run memory 11, such as
The keyboard of operation and APP compatibility test program etc..
Network interface 13 may include radio network interface or wired network interface, and network interface 13 is commonly used in filling in electronics
It sets and establishes communication connection between 10 and other electronic equipments.
Communication bus 14 is for realizing the communication connection between component 11-13.
Fig. 1 illustrates only the electronic device 10 with component 11-14 and keyboard and APP compatibility test program, still
It should be understood that, it is not required that implement all components shown, the implementation that can be substituted is more or less component.
Optionally, electronic device 10 can also include user interface (not shown in figure 1), and user interface may include display
Device, input unit such as keyboard, wherein user interface can also be including standard wireline interface and wireless interface etc..
Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCD and show
Device and OLED touch device etc..Further, display is alternatively referred to as display screen or display unit, for being shown in electronic device
Information is handled in 10 and for showing visual user interface.
Optionally, in some embodiments, electronic device 10 can also include that audio unit (does not show in audio unit Fig. 1
Out), audio unit can be in call signal reception pattern, call mode, logging mode, speech recognition mould in electronic device 10
When under the isotypes such as formula, broadcast reception mode, received or storage audio data is converted into audio signal;Further
Ground, electronic device 10 can also include audio output unit, and the audio signal that audio output unit converts audio unit exports,
And audio output unit can also provide the relevant audio output of specific function that executes to electronic device 10 (such as calling is believed
Number receive sound, message sink sound etc.), audio output unit may include loudspeaker, buzzer etc..
Optionally, in some embodiments, electronic device 10 can also include alarm unit (not shown), alarm list
Member can provide output and the generation of event is notified electron device 10.Typical event may include calling reception, message
Reception, key signals input, touch input etc..Other than audio or video export, alarm unit can be with different sides
Formula provides output with the generation of notification event.For example, alarm unit can provide output in the form of vibration, exhaled when receiving
Cry, message or it is some other can make electronic device 10 enter communication pattern when, alarm unit can provide tactile output (that is,
Vibration) to notify to user.
In one embodiment, when the keyboard and APP compatibility test program stored in memory 11 is executed by processor 12,
Realize following operation:
A1 clicks the operation instruction information and keyboard layout information that APP calls keyboard based on user, generates test script;
Specifically, the operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes using
The test script of the first time point of the corresponding keyboard coordinate information of family point beating keyboard and click the keyboard coordinate information.Wherein,
Keyboard layout is the key figure of distribution mode or definition on keyboard.Keyboard layout described herein is by soft in computer
Part determines that the keyboard layout information refers to the character on keyboard layout and key.
A2, the starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and surveying
Try the real-time pictures that keyboard is obtained after the completion of keyboard calls;
Specifically, in the present embodiment, described the step of intercepting the real-time pictures of keyboard after the completion of testing keyboard and calling
Include:
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuous arrangement
Multiple pictures;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, described section
Taking picture is the real-time pictures.
It specifically, will be described in shooting within the predefined period (such as in 1 minute) in the embodiment of the present invention
Keyboard-video is saved, and guarantees the real-time pictures of interception by the way that above-mentioned video is cut into multiple continuously arranged pictures
The integrality of middle keypad information.Further, if disposably showing multiple above-mentioned pictures on the display screen of terminal, on
Stating multiple pictures can seem very compact in the display screen of terminal, and therefore, when showing multiple above-mentioned pictures, terminal can be upper
It states multiple pictures and is shown in the form being segmented, such display mode is conducive to the part picture that user chooses multiple above-mentioned pictures
Face, wherein the foundation of above-mentioned multiple pictures segmentation display can be size, the size for the picture being cut into of terminal display screen with
And the quantity for the picture being cut into;Alternatively, terminal can also be shown multiple above-mentioned pictures in a manner of projecting virtual display
In the virtual display of projection, the embodiment of the present invention is without limitation.
A3, the phase according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture
Like degree, keyboard and the compatibility analysis result of APP are obtained based on the similarity.
Specifically, the step A3 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis is carried out to the second vector described in first vector sum;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that be directed to key
The compatibility test result of disk and APP pass through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, really
Surely do not pass through for the compatibility test result of keyboard and APP.
Wherein, second vector representation is that keyboard is raw in the standard calling tracing point for calling direction complete call
At vector.
Specifically, described the step of carrying out vectorized process to the real-time pictures, obtaining the first vector includes: according to institute
The starting flow nodes for stating keyboard determine the calling direction of keyboard;Keyboard is obtained in the real-time pictures in the calling direction
Boundary point information;The calling tracing point that keyboard is determined according to the boundary point information is generated based on the calling tracing point
To first vector.
Specifically, in the present embodiment, it according to the calculation method of cosine similarity, obtains described in first vector sum
Similarity between two vectors, for example, the calculation formula of the cosine similarity are as follows:
Wherein, S indicates that cosine similarity, A and B indicate vector space, | | A | | and | | B | | indicate vector space A and B
Absolute value.In the present embodiment, A indicates that first vector, B indicate second vector.
By above-mentioned thing embodiment it is found that electronic device proposed by the present invention, calls keyboard by clicking APP based on user
Operation instruction information and keyboard layout information generate test script;It is determined according to the test script and calls rising for the keyboard
Beginning flow nodes, while being tested, and the real-time pictures of keyboard are intercepted after the completion of testing keyboard and calling;According to predetermined
Similarity analysis rule analysis described in similarity between real-time pictures and QWERTY keyboard picture, obtained based on the similarity
The compatibility analysis result of keyboard and APP.It can be automatically performed the test of keyboard Yu APP compatibility, improve testing efficiency and standard
True property.
In addition, keyboard of the invention is different from the function that APP compatibility test program is realized according to its each section, can use
Program module with the same function is described.Please refer to shown in Fig. 2, be in one embodiment of electronic device of the present invention keyboard with
The program module schematic diagram of APP compatibility test program.In the present embodiment, keyboard and APP compatibility test program are each according to it
The difference for the function that part is realized can be divided into and obtain the determining calling module 202 of generation module 201, first and mark
Remember analysis module 203 and the second determining module 204.By above description it is found that the so-called program module of the present invention refers to energy
The series of computation machine program instruction section for enough completing specific function, than program more suitable for description keyboard and APP compatibility test
Implementation procedure of the program in electronic device 10.The functions or operations step that the module 201-204203 is realized is and above
Similar, and will not be described here in detail, illustratively, such as wherein:
Generation module 201 is used to click the operation instruction information and keyboard layout information that APP calls keyboard based on user, raw
At test script;
Calling module 202 is used for according to the determining starting flow nodes for calling the keyboard of the test script, while into
Row is tested, and the real-time pictures of keyboard are obtained after the completion of testing keyboard and calling;
Analysis module 203 is used for real-time pictures and QWERTY keyboard according to predetermined similarity analysis rule analysis
Similarity between picture obtains keyboard and the compatibility analysis result of APP based on the similarity.
In addition, the present invention also proposes a kind of keyboard and APP compatibility test method, please refer to shown in Fig. 3, the keyboard with
APP compatibility test method includes the following steps:
S301 clicks the operation instruction information and keyboard layout information that APP calls keyboard based on user, generates test foot
This;
Specifically, the operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes using
The test script of the first time point of the corresponding keyboard coordinate information of family point beating keyboard and click the keyboard coordinate information.Wherein,
Keyboard layout is the key figure of distribution mode or definition on keyboard.Keyboard layout described herein is by soft in computer
Part determines that the keyboard layout information refers to the character on keyboard layout and key.
S302, the starting flow nodes of the calling keyboard are determined according to the test script, while being tested, and
Test the real-time pictures that keyboard is obtained after the completion of keyboard calls;
Specifically, in the present embodiment, described the step of intercepting the real-time pictures of keyboard after the completion of testing keyboard and calling
Include:
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuous arrangement
Multiple pictures;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, described section
Taking picture is the real-time pictures.
It specifically, will be described in shooting within the predefined period (such as in 1 minute) in the embodiment of the present invention
Keyboard-video is saved, and guarantees the real-time pictures of interception by the way that above-mentioned video is cut into multiple continuously arranged pictures
The integrality of middle keypad information.Further, if disposably showing multiple above-mentioned pictures on the display screen of terminal, on
Stating multiple pictures can seem very compact in the display screen of terminal, and therefore, when showing multiple above-mentioned pictures, terminal can be upper
It states multiple pictures and is shown in the form being segmented, such display mode is conducive to the part picture that user chooses multiple above-mentioned pictures
Face, wherein the foundation of above-mentioned multiple pictures segmentation display can be size, the size for the picture being cut into of terminal display screen with
And the quantity for the picture being cut into;Alternatively, terminal can also be shown multiple above-mentioned pictures in a manner of projecting virtual display
In the virtual display of projection, the embodiment of the present invention is without limitation.
S303, according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture
Similarity obtains keyboard and the compatibility analysis result of APP based on the similarity.
Specifically, the step S303 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis is carried out to the second vector described in first vector sum;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that be directed to key
The compatibility test result of disk and APP pass through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, really
Surely do not pass through for the compatibility test result of keyboard and APP.
Wherein, second vector representation is that keyboard is raw in the standard calling tracing point for calling direction complete call
At vector.
Specifically, described the step of carrying out vectorized process to the real-time pictures, obtaining the first vector includes: according to institute
The starting flow nodes for stating keyboard determine the calling direction of keyboard;Keyboard is obtained in the real-time pictures in the calling direction
Boundary point information;The calling tracing point that keyboard is determined according to the boundary point information is generated based on the calling tracing point
To first vector.
Specifically, in the present embodiment, it according to the calculation method of cosine similarity, obtains described in first vector sum
Similarity between two vectors, for example, the calculation formula of the cosine similarity are as follows:
Wherein, S indicates that cosine similarity, A and B indicate vector space, | | A | | and | | B | | indicate vector space A and B
Absolute value.In the present embodiment, A indicates that first vector, B indicate second vector.
By above-mentioned thing embodiment it is found that keyboard proposed by the present invention and APP compatibility test method, by being based on user's point
Operation instruction information and keyboard layout information that APP calls keyboard are hit, test script is generated;It is determined and is adjusted according to the test script
It with the starting flow nodes of the keyboard, while being tested, and intercepts the real-time picture of keyboard after the completion of testing keyboard and calling
Face;Similarity according to predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture, base
Keyboard and the compatibility analysis result of APP are obtained in the similarity.It can be automatically performed the test of keyboard Yu APP compatibility,
Improve testing efficiency and accuracy.
In addition, the present invention also proposes a kind of computer readable storage medium, stored on the computer readable storage medium
There are keyboard and APP compatibility test program, following behaviour is realized when the keyboard and APP compatibility test program are executed by processor
Make:
The operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generates test script;
The starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and testing
Keyboard obtains the real-time pictures of keyboard after the completion of calling;
It is similar between real-time pictures and QWERTY keyboard picture according to predetermined similarity analysis rule analysis
Degree, obtains keyboard and the compatibility analysis result of APP based on the similarity.
Specifically, the operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes using
The test script of the first time point of the corresponding keyboard coordinate information of family point beating keyboard and click the keyboard coordinate information.Wherein,
Keyboard layout is the key figure of distribution mode or definition on keyboard.Keyboard layout described herein is by soft in computer
Part determines that the keyboard layout information refers to the character on keyboard layout and key.
Specifically, in the present embodiment, described the step of intercepting the real-time pictures of keyboard after the completion of testing keyboard and calling
Include:
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuous arrangement
Multiple pictures;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, described section
Taking picture is the real-time pictures.
It specifically, will be described in shooting within the predefined period (such as in 1 minute) in the embodiment of the present invention
Keyboard-video is saved, and guarantees the real-time pictures of interception by the way that above-mentioned video is cut into multiple continuously arranged pictures
The integrality of middle keypad information.Further, if disposably showing multiple above-mentioned pictures on the display screen of terminal, on
Stating multiple pictures can seem very compact in the display screen of terminal, and therefore, when showing multiple above-mentioned pictures, terminal can be upper
It states multiple pictures and is shown in the form being segmented, such display mode is conducive to the part picture that user chooses multiple above-mentioned pictures
Face, wherein the foundation of above-mentioned multiple pictures segmentation display can be size, the size for the picture being cut into of terminal display screen with
And the quantity for the picture being cut into;Alternatively, terminal can also be shown multiple above-mentioned pictures in a manner of projecting virtual display
In the virtual display of projection, the embodiment of the present invention is without limitation.
Specifically, the real-time pictures according to predetermined similarity analysis rule analysis and QWERTY keyboard picture
Between similarity, the step of compatibility analysis result of keyboard and APP are obtained based on the similarity includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis is carried out to the second vector described in first vector sum;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that be directed to key
The compatibility test result of disk and APP pass through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, really
Surely do not pass through for the compatibility test result of keyboard and APP.
Wherein, second vector representation is that keyboard is raw in the standard calling tracing point for calling direction complete call
At vector.
Specifically, described the step of carrying out vectorized process to the real-time pictures, obtaining the first vector includes: according to institute
The starting flow nodes for stating keyboard determine the calling direction of keyboard;Keyboard is obtained in the real-time pictures in the calling direction
Boundary point information;The calling tracing point that keyboard is determined according to the boundary point information is generated based on the calling tracing point
To first vector.
Specifically, in the present embodiment, it according to the calculation method of cosine similarity, obtains described in first vector sum
Similarity between two vectors, for example, the calculation formula of the cosine similarity are as follows:
Wherein, S indicates that cosine similarity, A and B indicate vector space, | | A | | and | | B | | indicate vector space A and B
Absolute value.In the present embodiment, A indicates that first vector, B indicate second vector.
By above-mentioned analysis it is found that computer readable storage medium proposed by the present invention, clicks APP tune by being based on user
With the operation instruction information and keyboard layout information of keyboard, test script is generated;It is determined according to the test script described in calling
The starting flow nodes of keyboard, while being tested, and the real-time pictures of keyboard are intercepted after the completion of testing keyboard and calling;According to
Similarity described in predetermined similarity analysis rule analysis between real-time pictures and QWERTY keyboard picture is based on the phase
Keyboard and the compatibility analysis result of APP are obtained like degree.It can be automatically performed the test of keyboard Yu APP compatibility, improve test
Efficiency and accuracy.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.The above is only of the invention excellent
Embodiment is selected, is not intended to limit the scope of the invention, it is all using made by description of the invention and accompanying drawing content etc.
Structure or equivalent process transformation are imitated, is applied directly or indirectly in other relevant technical fields, and is similarly included in the present invention
Scope of patent protection in.
Claims (10)
1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that connect with the memory
Device, the processor are used to execute the keyboard and APP compatibility test program, the keyboard and APP stored on the memory
Compatibility test program realizes following steps when being executed by the processor:
A1, the operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generates test script;
A2, the starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and in feeler switch
Disk obtains the real-time pictures of keyboard after the completion of calling;
It is A3, similar between real-time pictures and QWERTY keyboard picture according to predetermined similarity analysis rule analysis
Degree, obtains keyboard and the compatibility analysis result of APP based on the similarity.
2. electronic device as described in claim 1, which is characterized in that the step A1 includes:
The operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes user's point beating keyboard
The test script of the first time point of corresponding keyboard coordinate information and click the keyboard coordinate information.
3. electronic device as described in claim 1, which is characterized in that described to be called in test keyboard in the step A2
The step of real-time pictures of acquisition keyboard include: after the completion
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuously arranged more
Open picture;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, the interception picture
Face is the real-time pictures.
4. electronic device as described in claim 1, which is characterized in that the step A3 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis carried out to the second vector described in first vector sum, described the
Two vectors are the vector that keyboard calls tracing point to generate in the predetermined standard for calling direction complete call;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that for keyboard with
The compatibility test result of APP passes through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, it is determined that needle
The compatibility test result of keyboard and APP are not passed through.
5. electronic device as claimed in claim 4, which is characterized in that it is described that vectorized process is carried out to the real-time pictures,
The step of obtaining the first vector include:
According to the starting flow nodes of the keyboard, the calling direction of keyboard is determined;
Keyboard in the real-time pictures is obtained in the boundary point information for calling direction;
The calling tracing point that keyboard is determined according to the boundary point information generates to obtain described first based on the calling tracing point
Vector.
6. a kind of keyboard and APP compatibility test method, which is characterized in that described method includes following steps:
S1, the operation instruction information and keyboard layout information that APP calls keyboard are clicked based on user, generates test script;
S2, the starting flow nodes for calling the keyboard are determined according to the test script, while being tested, and in feeler switch
Disk obtains the real-time pictures of keyboard after the completion of calling;
It is S3, similar between real-time pictures and QWERTY keyboard picture according to predetermined similarity analysis rule analysis
Degree, obtains keyboard and the compatibility analysis result of APP based on the similarity.
7. keyboard as claimed in claim 6 and APP compatibility test method, which is characterized in that the step S1 includes:
The operation instruction information and keyboard layout information that APP calls keyboard are clicked according to user, generating includes user's point beating keyboard
The test script of the first time point of corresponding keyboard coordinate information and click the keyboard coordinate information.
8. keyboard as claimed in claim 6 and APP compatibility test method, which is characterized in that described in the step S2
The step of real-time pictures of acquisition keyboard, includes: after the completion of testing keyboard and calling
After the completion of testing keyboard calling, the instruction for shooting the keyboard is issued;
After the keyboard-video for detecting shooting within the predefined period, the video is cut into continuously arranged more
Open picture;
In predetermined multiple above-mentioned pictures of display screen display;
The capturing picture that response user selects from multiple pictures of the predetermined display screen display, the interception picture
Face is the real-time pictures.
9. keyboard as claimed in claim 6 and APP compatibility test method, which is characterized in that the step S3 includes:
Vectorized process is carried out to the real-time pictures, obtains the first vector;
Pre-stored second vector is obtained, similarity analysis carried out to the second vector described in first vector sum, described the
Two vectors are the vector that keyboard calls tracing point to generate in the predetermined standard for calling direction complete call;
If the similarity of first vector and second vector is greater than preset similarity threshold, it is determined that for keyboard with
The compatibility test result of APP passes through;
If the similarity of first vector and second vector is less than or equal to preset similarity threshold, it is determined that needle
The compatibility test result of keyboard and APP are not passed through.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has keyboard and APP compatibility test
Program, the keyboard can be executed with APP compatibility test program by least one processor, so that at least one described processor
The step of executing the keyboard and APP compatibility test method as described in any one of claim 6-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910316549.4A CN110188031A (en) | 2019-04-19 | 2019-04-19 | Electronic device, keyboard and APP compatibility test method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910316549.4A CN110188031A (en) | 2019-04-19 | 2019-04-19 | Electronic device, keyboard and APP compatibility test method and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110188031A true CN110188031A (en) | 2019-08-30 |
Family
ID=67714793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910316549.4A Pending CN110188031A (en) | 2019-04-19 | 2019-04-19 | Electronic device, keyboard and APP compatibility test method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110188031A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981954A (en) * | 2012-11-28 | 2013-03-20 | 百度国际科技(深圳)有限公司 | Compatibility test method for input method and electronic device |
CN104657639A (en) * | 2015-02-02 | 2015-05-27 | 中国科学院数据与通信保护研究教育中心 | Test method and system of operation system identity authentication mechanism |
US20150309589A1 (en) * | 2014-04-23 | 2015-10-29 | Wistron Corporation | Electronic device and associated control method and computer program product |
CN105653056A (en) * | 2015-12-17 | 2016-06-08 | 北京奇虎科技有限公司 | Input method test method and device |
US20170109039A1 (en) * | 2015-10-19 | 2017-04-20 | Apple Inc. | Devices, Methods, and Graphical User Interfaces for Keyboard Interface Functionalities |
US20170124497A1 (en) * | 2015-10-28 | 2017-05-04 | Fractal Industries, Inc. | System for automated capture and analysis of business information for reliable business venture outcome prediction |
CN107292936A (en) * | 2017-05-18 | 2017-10-24 | 湖南大学 | A kind of Chinese character style vectorization method |
CN107506296A (en) * | 2017-07-19 | 2017-12-22 | 北京金山安全软件有限公司 | Input method testing method and device, electronic equipment and storage medium |
-
2019
- 2019-04-19 CN CN201910316549.4A patent/CN110188031A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981954A (en) * | 2012-11-28 | 2013-03-20 | 百度国际科技(深圳)有限公司 | Compatibility test method for input method and electronic device |
US20150309589A1 (en) * | 2014-04-23 | 2015-10-29 | Wistron Corporation | Electronic device and associated control method and computer program product |
CN104657639A (en) * | 2015-02-02 | 2015-05-27 | 中国科学院数据与通信保护研究教育中心 | Test method and system of operation system identity authentication mechanism |
US20170109039A1 (en) * | 2015-10-19 | 2017-04-20 | Apple Inc. | Devices, Methods, and Graphical User Interfaces for Keyboard Interface Functionalities |
US20170124497A1 (en) * | 2015-10-28 | 2017-05-04 | Fractal Industries, Inc. | System for automated capture and analysis of business information for reliable business venture outcome prediction |
CN105653056A (en) * | 2015-12-17 | 2016-06-08 | 北京奇虎科技有限公司 | Input method test method and device |
CN107292936A (en) * | 2017-05-18 | 2017-10-24 | 湖南大学 | A kind of Chinese character style vectorization method |
CN107506296A (en) * | 2017-07-19 | 2017-12-22 | 北京金山安全软件有限公司 | Input method testing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11467855B2 (en) | Application preloading method and device, storage medium and terminal | |
CN106060378B (en) | Apparatus and method for setting photographing module | |
EP2990940B1 (en) | Icon display method and apparatus | |
EP3404552A1 (en) | Method, system and device for testing and readable storage medium | |
US8893054B2 (en) | Devices, systems, and methods for conveying gesture commands | |
CN108376094B (en) | Notification message display method and device, computer equipment and storage medium | |
US20090002324A1 (en) | Method, Apparatus and Computer Program Product for Providing a Scrolling Mechanism for Touch Screen Devices | |
EP3584710B1 (en) | Method and apparatus for controlling display of mobile terminal, and storage medium | |
CN109876433B (en) | Position prompting method of game role, terminal device and storage medium | |
WO2019047728A1 (en) | Method for opening shortcut function, device, mobile terminal, and storage medium | |
CN110058999A (en) | Electronic device, application exception localization method and storage medium | |
KR102206053B1 (en) | Apparatas and method for changing a input mode according to input method in an electronic device | |
KR20150051816A (en) | Method for operating message application and electronic device implementing the same | |
CN106210231B (en) | A kind of method and mobile terminal of information processing | |
US10446912B2 (en) | Electronic device and method of improving antenna performance thereof | |
CN109634841A (en) | Electronic device, automatic interface testing method and storage medium | |
CN110737711A (en) | Report exporting method and device, computer equipment and storage medium | |
CN108845733B (en) | Screen capture method, device, terminal and storage medium | |
CN106155676B (en) | Access control method and device for application program and terminal | |
CN110188031A (en) | Electronic device, keyboard and APP compatibility test method and storage medium | |
CN110175114A (en) | Test terminal, APP and camera compatibility test method and storage medium | |
CN110191013A (en) | Electronic device, the Mock test method of more capital's interfaces and storage medium | |
CN114629800B (en) | Visual generation method, device, terminal and storage medium for industrial control network target range | |
CN115878491A (en) | Interface abnormity detection method and device, electronic equipment, storage medium and chip | |
CN109451295A (en) | A kind of method and system obtaining virtual information |
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 |