CN109634788A - A kind of terminal adaptation verification method and system, terminal - Google Patents
A kind of terminal adaptation verification method and system, terminal Download PDFInfo
- Publication number
- CN109634788A CN109634788A CN201710930361.XA CN201710930361A CN109634788A CN 109634788 A CN109634788 A CN 109634788A CN 201710930361 A CN201710930361 A CN 201710930361A CN 109634788 A CN109634788 A CN 109634788A
- Authority
- CN
- China
- Prior art keywords
- detected
- page
- application
- terminal
- standard picture
- 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
- 238000012795 verification Methods 0.000 title claims abstract description 61
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006978 adaptation Effects 0.000 title claims abstract description 40
- 230000002159 abnormal effect Effects 0.000 claims description 15
- 238000013507 mapping Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 3
- 238000012360 testing method Methods 0.000 abstract description 25
- 230000008569 process Effects 0.000 abstract description 18
- 230000003993 interaction Effects 0.000 abstract description 4
- 238000012986 modification Methods 0.000 abstract description 3
- 230000004048 modification Effects 0.000 abstract description 3
- 238000001514 detection method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012549 training Methods 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/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- 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
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
This application provides terminal adaptation verification method and system, terminal, wherein terminal adaptation verification method, comprising: in the case where running application to be detected and showing the page, intercept the page as image to be detected;Obtain standard picture corresponding with the page described in the application to be detected;It compares described image to be detected and the standard picture obtains verification result.It without the business rule and rules of interaction be concerned about in application in the application, is used for each application, so without repeating modification test script.Therefore, verification process provided by the present application is relatively simple, and verification efficiency can be improved.
Description
Technical field
This application involves field of communication technology more particularly to a kind of terminal adaptation verification method and systems, terminal.
Background technique
As the technology of terminal develops, terminal models are continuously increased.Due to the operating system of each model terminal, performance,
Resolution ratio is not quite similar, so needing whether test application is adapted in each model terminal at popularization and application (APP), that is, tests
Card applies whether can be used normally in each model terminal.
Currently, usually installing test script at the terminal, test application is tested using test script.But it surveys
This needs of training change with the change of application.Therefore, verifying application whether adaptive terminal during need constantly to tie up
Test script is protected, so testing efficiency is lower.
Summary of the invention
In consideration of it, the application provides a kind of terminal adaptation verification method and system, terminal, can compare image to be detected and
Standard picture simultaneously obtains verification result, due to Maintenance free test script so testing efficiency can be improved.
To achieve the goals above, this application provides following technical characteristics:
A kind of terminal adaptation verification method, comprising:
In the case where running application to be detected and showing the page, the page is intercepted as image to be detected;
Obtain standard picture corresponding with the page described in the application to be detected;
It compares described image to be detected and the standard picture obtains verification result.
Optionally, the described image to be detected of the comparison and the standard picture obtain verification result, comprising:
Feature extraction is carried out to described image to be detected and the standard picture respectively, obtains fisrt feature point set and the
Two set of characteristic points;
Compare the fisrt feature point set and the second feature point set;
Distinguishing characteristics point if it exists, it is determined that the application to be detected adaptation failure on the terminal;
Distinguishing characteristics point if it does not exist, it is determined that the application to be detected is adapted to successfully on the terminal.
Optionally, the comparison fisrt feature point set and the second feature point set, comprising:
For fisrt feature point in the fisrt feature point set:
The fisrt feature point is calculated at a distance from multiple characteristic points in the second feature point set, and in multiple characteristic points
Distance in determine lowest distance value, if the lowest distance value be less than pre-determined distance, it is determined that the fisrt feature point and it is described most
The corresponding second feature point of small distance value is consistent;If the lowest distance value is greater than pre-determined distance, it is determined that the fisrt feature point
For distinguishing characteristics point.
Optionally, further includes: the distinguishing characteristics point is marked in described image to be detected.
Optionally, before comparing described image to be detected and standard picture acquisition verification result, further includes: obtain
First grey level histogram of described image to be detected;Determine whether described image to be detected deposits based on first grey level histogram
In exception;
If it is abnormal to determine that described image to be detected exists based on first grey level histogram, it is determined that described to be detected to answer
With adaptation failure on the terminal;
If determining described image to be detected there is no abnormal based on first grey level histogram, enter comparison it is described to
The step of detection image and the standard picture obtain verification result.
It is optionally, described to determine described image to be detected with the presence or absence of abnormal based on first grey level histogram, comprising:
Multiple brightness values are determined by the sequence of pixel quantity from high to low in first grey level histogram;
First and value of the corresponding pixel quantity of the multiple brightness value are calculated, and calculates the corresponding picture of all brightness values
Second and value of prime number amount;
If described first and value with described second and value ratio greater than the first preset threshold, it is determined that the mapping to be checked
It is abnormal as existing;
If described first and value with described second and be worth ratio less than the first preset threshold, it is determined that the mapping to be checked
As there is no abnormal.
Optionally, before comparing described image to be detected and standard picture acquisition verification result, further includes: obtain
First grey level histogram of described image to be detected and the second grey level histogram of the standard picture;Calculate first gray scale
The similarity of histogram and second grey level histogram;
If the similarity is less than the second preset threshold, it is determined that adaptation is lost on the terminal for the application to be detected
It loses;
If the similarity is greater than the second preset threshold, enters the described image to be detected of comparison and the standard picture obtains
The step of obtaining verification result.
A kind of terminal, comprising:
Memory, for storing standard picture corresponding with the page in application to be detected;
Processor, for intercepting the page as to be detected in the case where running application to be detected and showing the page
Image obtains standard picture corresponding with the page described in the application to be detected from the memory, compares described to be detected
Image and the standard picture obtain verification result.
A kind of terminal adaptation verification method, comprising:
Receive the look-up command comprising application identities and page iden-tity that terminal is sent;
Search standard picture corresponding with the application identities and the page iden-tity;
The standard picture is sent to the terminal.
A kind of terminal adaptation verifying system, comprising:
Terminal, for intercepting the page as mapping to be checked in the case where running application to be detected and showing the page
Picture sends the application identities comprising the application to be detected and extremely services with the inquiry instruction of page corresponding page mark
Device obtains the standard picture that institute's server is sent, and compares described image to be detected and the standard picture obtains verification result;
Server, for receiving the look-up command comprising the application identities and the page iden-tity of terminal transmission, and
Standard picture corresponding with the application identities and the page iden-tity is searched, sends the standard picture to the terminal.
A kind of terminal adaptation verification method, comprising:
Terminal is obtained in the page for running application to be detected and show page in the case where is intercepted, and using the page as
Image to be detected;
Obtain standard picture corresponding with the page described in the application to be detected;
It compares described image to be detected and the standard picture obtains verification result.
A kind of terminal adaptation verifying system, comprising:
Terminal, for intercepting the page as mapping to be checked in the case where running application to be detected and showing the page
Picture sends the application identities comprising the application to be detected and the inquiry instruction and described with page corresponding page mark
Image to be detected is to server;
Server, for receive terminal transmission the look-up command comprising the application identities and the page iden-tity and
Image to be detected searches standard picture corresponding with the application identities and the page iden-tity, compares described image to be detected
Verification result is obtained with the standard picture.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application carries out screenshot to the page in terminal operating application process and obtains image to be detected, and it is corresponding to obtain the page
Standard picture, compare image to be detected and standard picture and obtain verification result.
Without the business rule and rules of interaction be concerned about in application in the application, used for each application, so nothing
It need to repeat modification test script.Therefore, verification process provided by the present application is relatively simple, and verification efficiency can be improved.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of terminal adaptation verifying system disclosed in the embodiment of the present application;
Fig. 2 a-2b is a kind of flow chart of terminal adaptation verification method embodiment one disclosed in the embodiment of the present application;
Fig. 3 is a kind of flow chart of terminal adaptation verification method embodiment two disclosed in the embodiment of the present application;
Fig. 4 is a kind of flow chart of terminal adaptation verification method embodiment two disclosed in the embodiment of the present application;
Fig. 5 is a kind of terminal adaptation verification method example schematic disclosed in the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of server disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Term is explained:
Grey level histogram: the brightness value that each pixel is all made of 0-255 on gray level image indicates, horizontal axis is represented 0-255
Brightness value, the functional image of the pixel quantity of corresponding brightness value, referred to as grey level histogram in vertical pivot representative image.
The application does not use test script to test application, but is stored in advance using one or more interfaces
Vision figure.Vision figure is image namely the page corresponding standard picture of the designer when designing the page.
Theoretically, terminal shows that the page should be consistent with standard picture in operation application process.Therefore, lead in the application
Cross verifying terminal operation application process in show whether the page consistent with standard picture, come verify application on the terminal whether
Adaptation.
For the ease of skilled in the art realises that, this application provides a kind of terminal adaptation verify system, including service
Device 100 and multiple terminals 200.The application can collect each vision figure to be detected using multiple pages in advance, and (vision figure is
The page diagram of designer's design), and using each vision figure to be detected using multiple pages as the standard of multiple pages
Image.
It is understood that each page all has a page iden-tity.For example, each page corresponds to one at the terminal
A network address, can be using network address as page iden-tity.It is, of course, also possible to be used as page iden-tity using other marks, do not limit again
It is fixed.
For the ease of searching the corresponding standard picture of the page, server 100 using distributed storage mode store it is each to
Multiple page iden-tities and corresponding standard picture in detection application.
Referring to table 1, server 100 stores the schematic diagram of the standard picture of multiple pages in each application to be detected.Table 1
Since adaptation verification process is consistent on each terminal for application to be detected, so this implementation is to be checked with one
Survey is applied for the adaptation verification process of a terminal, is described in detail.
According to one embodiment of the application, a kind of terminal adaptation verification method embodiment one is provided.Referring to fig. 2 a or
2b, terminal adaptation verification method the following steps are included:
Step S201: server 100 sends the installation kit of application to be detected to terminal 200.
Step S202: terminal 200 receives the installation kit of application to be detected, installs and runs application to be detected.
Step S203: terminal 200 running application to be detected and in the case where show the page, intercept the page be used as to
Detection image.
Terminal 200 can send net to the corresponding application server of application to be detected during running application to be detected
Network request (for example, by taking application to be detected is the client of bank as an example, then application server is the corresponding server of bank), and
Receive the network response data that application server is sent.
Terminal 200 can receive and show that network response data, i.e. terminal can show net in running application process to be detected
The corresponding page of network response data.
Terminal 200 can execute shot operation to the page and be based on using the page being truncated to as image to be detected so as to subsequent
Whether image to be detected verifying application to be detected is adapted at the terminal.
A referring to fig. 2, the first implementation after providing step S203: terminal 100 compare described image to be detected and
The standard picture obtains verification result.
Step S2041: terminal 200 obtains the corresponding page iden-tity of the page, and sending includes application identities and page iden-tity
Inquiry instruction to server 100.
Step S2051: after server 100 receives the inquiry instruction comprising application identities and page iden-tity, in database
It is middle to search and application identities and the corresponding standard picture of page iden-tity, transmission standard picture to terminal 200.
Since the standard picture to be detected using each page is stored in server 100 in advance, so, search with
Application identities and the corresponding standard picture of page iden-tity.The standard picture is that be detected apply should show just in the page
True image.
Step 2061: terminal 200 compares image to be detected and standard picture obtains testing result.
If image to be detected is consistent with standard picture, it is determined that application to be detected is adapted to successfully at the terminal;Conversely, if to
Detection image is inconsistent with standard picture, it is determined that application to be detected adaptation failure at the terminal.
Step S2071: terminal 200 sends terminal iidentification, application identities and testing result to server 100.
Terminal can summarize testing result to server after obtaining testing result.
Step S208: server 200 shows application identities, terminal iidentification and testing result.
Terminal iidentification, application identities and the testing result that the available terminal of server 200 is sent, and can be according to application
Mark carries out Classifying Sum, so as to check each testing result to be detected applied in multiple terminals.
B referring to fig. 2, second of implementation after providing step S203: server 200 compares described image to be detected
Verification result is obtained with the standard picture.
Step S2042: terminal 200 obtains the corresponding page iden-tity of the page, and sends looking into for application identities and page iden-tity
Instruction, terminal iidentification and image to be detected are ask to server 100.
Step S2052: server 100 receive the inquiry instruction comprising application identities and page iden-tity, terminal iidentification with
And after image to be detected, search and application identities and the corresponding standard picture of page iden-tity in the database.
Since the standard picture to be detected using each page is stored in server 100 in advance, so, search with
Application identities and the corresponding standard picture of page iden-tity.The standard picture is that be detected apply should show just in the page
True image.
Step 2062: server 100 compares image to be detected and standard picture obtains testing result.
If image to be detected is consistent with standard picture, it is determined that application to be detected is adapted to successfully at the terminal;Conversely, if to
Detection image is inconsistent with standard picture, it is determined that application to be detected adaptation failure at the terminal.
Step S2072: server 200 shows application identities, terminal iidentification and testing result.
Server 200 is to carry out Classifying Sum according to application identities, so as to check each to be detected apply multiple
The testing result of terminal.
By the above technological means, may be implemented it is following the utility model has the advantages that
The application carries out screenshot to the page in terminal operating application process and obtains image to be detected, and it is corresponding to obtain the page
Standard picture, compare image to be detected and standard picture and obtain verification result.
In the present embodiment, without the business rule and rules of interaction being concerned about in application, used for each application, so
Without repeating to modify test script.Therefore, verification process provided by the present application is relatively simple, and verification efficiency can be improved.
According to another embodiment provided by the present application, a kind of terminal adaptation verification method embodiment two is provided.Referring to Fig. 3,
The following steps are included:
Step S301: in the case where running application to be detected and showing the page, the page is intercepted as mapping to be checked
Picture.Detailed process may refer to embodiment shown in Fig. 2, and details are not described herein.
Step S302: standard picture corresponding with the page described in the application to be detected is obtained.Detailed process can join
Embodiment as shown in Figure 2, details are not described herein.
Step S303: first grey level histogram of described image to be detected is obtained.
Gray proces are carried out to described image to be detected, and obtain the grey level histogram of image to be detected.For the ease of area
Point, referred to as the first grey level histogram.
0-255 brightness value is represented with horizontal axis in grey level histogram, vertical pivot indicates the corresponding pixel quantity of brightness value.First ash
Degree histogram includes the corresponding pixel quantity of each brightness value in image to be detected.
Step S304: it is abnormal to determine that described image to be detected whether there is based on first grey level histogram, if it exists
It is abnormal, then S305 is entered step, it is abnormal if it does not exist then to enter step S306.
It is understood that pixel quantity is dispersed on each brightness value in the grey level histogram of normal picture, will not go out
The case where existing several brightness values occupy a large amount of pixel quantities.If there are a small amount of several brightness values to occupy a large amount of pixel quantities, show
Image occurs abnormal.
It may include: that image to be detected white screen occurs, one in image to be detected that abnormal situation, which occurs, in image to be detected
Or multiple pictures do not load, situations such as fuzzy etc. occurs in image to be detected.
One embodiment is provided according to the application, referring to fig. 4, this step may include:
Step S401: being ranked up brightness value by pixel quantity based on the first histogram, obtains ranking results.
Step S402: multiple brightness values are obtained by the sequence of pixel quantity from high to low in ranking results, and calculate institute
State first and value of the corresponding pixel quantity of multiple brightness values and second and value of the corresponding pixel quantity of all brightness values.
Assuming that the brightness value quantity of default settings is 3, then according to pixel quantity from high to low suitable in ranking results
Sequence obtains 3 brightness values and obtains the corresponding pixel quantity of 3 brightness values, calculates the of the corresponding pixel quantity of 3 brightness values
One and value, and, calculate second and value of the corresponding pixel quantity of all brightness values.
First and value indicate that pixel quantity summation shared by the brightness value positioned at preceding 3, second and value indicate all brightness values
Shared pixel quantity summation.
Step S403: calculating described first and is worth the ratio with described second and value.
Step S404: judging whether the ratio is greater than the first preset threshold, if then entering step S405, if otherwise into
Enter step S406.
Assuming that the first preset threshold is 0.9, then in first and value with second and the ratio that is worth greater than 0.9 in the case where, table
The bright brightness value positioned at preceding 3 already takes up 90% pixel quantity of image to be detected, shows that image to be detected is abnormal at this time.
First and value with second and value ratio be not more than 0.9 in the case where, show be located at preceding 3 brightness value do not occupy
90% pixel quantity of image to be detected, shows that image to be detected is normal.
Step S405: if the ratio of described first and value and described second and value is greater than the first preset threshold, it is determined that institute
It states image to be detected and there is exception.
Step S406: if the ratio of described first and value and described second and value is less than the first preset threshold, it is determined that institute
Stating image to be detected, there is no abnormal.
It is then returned to Fig. 3, enters step S305: determining the application to be detected adaptation failure on the terminal.
Step S306: the second grey level histogram of the standard picture is obtained.
If determining that described image to be detected there is no exception, continues to figure to be detected based on first grey level histogram
As being verified.
In order to verify to image to be detected, the grey level histogram of standard picture is calculated, for the ease of distinguishing, referred to as the
Two grey level histograms.
Step S307: the similarity of first grey level histogram and second grey level histogram is calculated.
Theoretically, image to be detected under normal circumstances should be consistent with standard picture.Therefore, the first intensity histogram is calculated
The similarity of figure and the second grey level histogram.
This process has been mature technology, and many algorithms have had encapsulation function, and details are not described herein.
Step S308: judging whether similarity is greater than the second preset threshold, if otherwise entering step S305, if entering
Step S309.
Theoretically, in the case where application is adapted at the terminal, the grey level histogram of image to be detected and standard picture
Similarity should be less than the second preset threshold.If the similarity of the grey level histogram of image to be detected and standard picture is greater than second
Preset threshold, then it represents that apply and fail in terminal adaptation.
Step S309: carrying out feature extraction to described image to be detected and the standard picture respectively, obtains fisrt feature
Point set and second feature point set.
In the case that the similarity of the grey level histogram of image to be detected and standard picture should be less than the second preset threshold,
Illustrate that image to be detected is consistent with the grey level histogram of standard picture.Then, then to image to be detected and standard picture carry out special
Whether sign compares, consistent with standard picture to verify image to be detected.
Using feature extraction algorithm feature extraction is carried out to image to be detected and standard picture respectively, obtains fisrt feature collection
It closes and second feature point set.
For example, the fisrt feature point set of image to be detected includes this 5 characteristic points of P1, P2, P3, P4 and P5, standard drawing
The second feature point set of picture includes tri- characteristic points of P1, P2, P3.Each characteristic point is indicated using the position coordinates of pixel.
Step S310: the fisrt feature point set and the second feature point set are compared.
It is consistent for fisrt feature point implementation procedure each in fisrt feature point set, therefore, with one first
For characteristic point, it is illustrated.
Fisrt feature point is calculated at a distance from each characteristic point in second feature point set.That is, being calculated separately by taking P1 as an example
P1 tri- characteristic point distances D1, D2 and D3 of P1, P2, P3 in second feature point set.
Fisrt feature point is ranked up at a distance from each characteristic point in second feature point set, obtains minimum range
Value.Continue the example above, available lowest distance value D1.
Judge whether lowest distance value is less than pre-determined distance.Wherein pre-determined distance be indicate two characteristic points it is consistent away from
From.
If the lowest distance value is less than pre-determined distance, it is determined that the fisrt feature point is corresponding with the lowest distance value
Second feature point is consistent.Continue above-mentioned distance, in the case where D1 is less than pre-determined distance, it is determined that P1 and second feature point set
In P1 it is consistent.
If the lowest distance value is greater than pre-determined distance, it is determined that the fisrt feature point is distinguishing characteristics point.
If lowest distance value is greater than pre-determined distance, it is determined that not consistent with the fisrt feature point in second feature point set
Characteristic point, accordingly, it is determined that the fisrt feature point be distinguishing characteristics point.
After all characteristic points are performed both by the above process in fisrt feature point set, fisrt feature point set and the is obtained
The similar features point and distinguishing characteristics point of two set of characteristic points.
Step S311: distinguishing characteristics point if it exists, it is determined that the application to be detected adaptation failure on the terminal.
Referring to Fig. 5, distinguishing characteristics point can be marked out in image to be detected, so that user checks distinguishing characteristics point.
Step S312: distinguishing characteristics point if it does not exist, it is determined that the application to be detected is adapted to successfully on the terminal.
Through the above it can be seen that the present embodiment has the advantages that
The application carries out screenshot to the page in terminal operating application process and obtains image to be detected, and it is corresponding to obtain the page
Standard picture, compare image to be detected and standard picture and obtain verification result.
In the present embodiment, without the business rule and rules of interaction being concerned about in application, used for each application, so
Without repeating to modify test script.Therefore, verification process provided by the present application is relatively simple, and verification efficiency can be improved.
Referring to Fig. 6, present invention also provides a kind of terminals, including memory and processor.
Memory, for storing standard picture corresponding with the page in application to be detected;
Processor, for intercepting the page as to be detected in the case where running application to be detected and showing the page
Image obtains standard picture corresponding with the page described in the application to be detected from the memory, compares described to be detected
Image and the standard picture obtain verification result.
Present invention also provides a kind of terminal adaptations to verify device, is integrated in terminal, comprising:
Interception unit, for intercepting the page as to be checked in the case where running application to be detected and showing the page
Altimetric image;
Acquiring unit, for obtaining standard picture corresponding with the page described in the application to be detected;
Comparison unit obtains verification result for comparing described image to be detected and the standard picture.
About the specific implementation process of terminal and terminal adaptation verifying device, embodiment shown in Fig. 3 may refer to, herein
It repeats no more.
Referring to Fig. 7, present invention also provides a kind of servers, comprising:
Communication module, the page intercepted for obtaining terminal in the case where running application to be detected and showing the page;
Verification result is sent to the terminal;
Processor, for using the page as image to be detected;It obtains corresponding with the page described in the application to be detected
Standard picture;It compares described image to be detected and the standard picture obtains verification result.
About the specific implementation process of server, embodiment shown in Fig. 3 may refer to, details are not described herein.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin
It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present application
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft
Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer,
Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the application
Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (13)
1. a kind of terminal adaptation verification method characterized by comprising
In the case where running application to be detected and showing the page, the page is intercepted as image to be detected;
Obtain standard picture corresponding with the page described in the application to be detected;
It compares described image to be detected and the standard picture obtains verification result.
2. the method as described in claim 1, which is characterized in that the described image to be detected of the comparison and the standard picture obtain
Obtain verification result, comprising:
Feature extraction is carried out to described image to be detected and the standard picture respectively, obtains fisrt feature point set and the second spy
Levy point set;
Compare the fisrt feature point set and the second feature point set;
Distinguishing characteristics point if it exists, it is determined that the application to be detected adaptation failure on the terminal;
Distinguishing characteristics point if it does not exist, it is determined that the application to be detected is adapted to successfully on the terminal.
3. method according to claim 2, which is characterized in that the comparison fisrt feature point set and second spy
Levy point set, comprising:
For fisrt feature point in the fisrt feature point set:
The fisrt feature point is calculated at a distance from multiple characteristic points in the second feature point set, and in multiple characteristic point distances
Middle determining lowest distance value, if the lowest distance value is less than pre-determined distance, it is determined that the fisrt feature point and the most narrow spacing
From being worth, corresponding second feature point is consistent;If the lowest distance value is greater than pre-determined distance, it is determined that the area fisrt feature Dian Wei
Other characteristic point.
4. method as claimed in claim 2 or claim 3, which is characterized in that further include:
The distinguishing characteristics point is marked in described image to be detected.
5. the method as described in claim 1, which is characterized in that comparing described image to be detected and standard picture acquisition
Before verification result, further includes:
Obtain first grey level histogram of described image to be detected;
Determine described image to be detected with the presence or absence of abnormal based on first grey level histogram;
If it is abnormal to determine that described image to be detected exists based on first grey level histogram, it is determined that described to be detected to apply
Failure is adapted in the terminal;
If determining described image to be detected based on first grey level histogram, there is no exceptions, and it is described to be detected to enter comparison
The step of image and the standard picture obtain verification result.
6. method as claimed in claim 5, which is characterized in that it is described determined based on first grey level histogram it is described to be checked
Altimetric image is with the presence or absence of abnormal, comprising:
Multiple brightness values are determined by the sequence of pixel quantity from high to low in first grey level histogram;
First and value of the corresponding pixel quantity of the multiple brightness value are calculated, and calculates the corresponding pixel number of all brightness values
Second and value of amount;
If described first and value with described second and value ratio greater than the first preset threshold, it is determined that described image to be detected is deposited
In exception;
If described first and value with described second and be worth ratio less than the first preset threshold, it is determined that described image to be detected is not
There are exceptions.
7. the method as described in claim 1, which is characterized in that comparing described image to be detected and standard picture acquisition
Before verification result, further includes:
Obtain first grey level histogram of described image to be detected and the second grey level histogram of the standard picture;
Calculate the similarity of first grey level histogram Yu second grey level histogram;
If the similarity is less than the second preset threshold, it is determined that the application to be detected adaptation failure on the terminal;
If the similarity is greater than the second preset threshold, enters the described image to be detected of comparison and the standard picture is tested
The step of demonstrate,proving result.
8. a kind of terminal characterized by comprising
Memory, for storing standard picture corresponding with the page in application to be detected;
Processor, for running application to be detected and in the case where show the page, intercepting the page as image to be detected,
Obtain corresponding with the page described in the application to be detected standard picture from the memory, compare described image to be detected with
The standard picture obtains verification result.
9. a kind of terminal adaptation verifies device characterized by comprising
Interception unit, for intercepting the page as mapping to be checked in the case where running application to be detected and showing the page
Picture;
Acquiring unit, for obtaining standard picture corresponding with the page described in the application to be detected;
Comparison unit obtains verification result for comparing described image to be detected and the standard picture.
10. a kind of terminal adaptation verifies system characterized by comprising
Terminal, in the case where running application to be detected and showing the page, intercepting the page as image to be detected, hair
It send the application identities comprising the application to be detected and the inquiry instruction identified with the page corresponding page to server, obtains
The standard picture that institute's server is sent, compares described image to be detected and the standard picture obtains verification result;
Server for receiving the look-up command comprising the application identities and the page iden-tity of terminal transmission, and is searched
Standard picture corresponding with the application identities and the page iden-tity, sends the standard picture to the terminal.
11. a kind of terminal adaptation verification method characterized by comprising
The page that terminal is intercepted in the case where running application to be detected and showing the page is received, and using the page as to be checked
Altimetric image;
Obtain standard picture corresponding with the page described in the application to be detected;
It compares described image to be detected and the standard picture obtains verification result.
12. a kind of server characterized by comprising
Communication module, the page intercepted for receiving terminal in the case where running application to be detected and showing the page;It sends
Verification result is to the terminal;
Processor, for using the page as image to be detected;Obtain mark corresponding with the page described in the application to be detected
Quasi- image;It compares described image to be detected and the standard picture obtains verification result.
13. a kind of terminal adaptation verifies system characterized by comprising
Terminal, in the case where running application to be detected and showing the page, intercepting the page as image to be detected, hair
Send the application identities comprising the application to be detected and the inquiry instruction and described to be checked with page corresponding page mark
Altimetric image is to server;
Server, for receiving the look-up command comprising the application identities and the page iden-tity of terminal transmission and to be checked
Altimetric image searches standard picture corresponding with the application identities and the page iden-tity, compares described image to be detected and institute
It states standard picture and obtains verification result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710930361.XA CN109634788A (en) | 2017-10-09 | 2017-10-09 | A kind of terminal adaptation verification method and system, terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710930361.XA CN109634788A (en) | 2017-10-09 | 2017-10-09 | A kind of terminal adaptation verification method and system, terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109634788A true CN109634788A (en) | 2019-04-16 |
Family
ID=66051224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710930361.XA Pending CN109634788A (en) | 2017-10-09 | 2017-10-09 | A kind of terminal adaptation verification method and system, terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634788A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110615A (en) * | 2019-04-19 | 2019-08-09 | 苏州极目机器人科技有限公司 | Image information processing method and pattern information processing system |
CN110851350A (en) * | 2019-10-12 | 2020-02-28 | 平安银行股份有限公司 | Method and device for monitoring white screen of web page interface |
CN112446850A (en) * | 2019-08-14 | 2021-03-05 | 阿里巴巴集团控股有限公司 | Adaptation test method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546907A (en) * | 2012-07-11 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | System and method for testing wireless application protocol webpage |
CN105260301A (en) * | 2015-09-24 | 2016-01-20 | 努比亚技术有限公司 | Visual effect comparison test device of user interfaces and realization method of visual effect comparison test device of user interfaces |
CN105657547A (en) * | 2015-12-31 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Detection method and device for similar video and pirated video |
CN105979092A (en) * | 2016-05-13 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Abnormity monitoring method and device |
US20170192774A1 (en) * | 2016-01-04 | 2017-07-06 | Fuji Xerox Co., Ltd. | Management apparatus, management system, management method, and non-transitory computer readable medium |
-
2017
- 2017-10-09 CN CN201710930361.XA patent/CN109634788A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546907A (en) * | 2012-07-11 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | System and method for testing wireless application protocol webpage |
CN105260301A (en) * | 2015-09-24 | 2016-01-20 | 努比亚技术有限公司 | Visual effect comparison test device of user interfaces and realization method of visual effect comparison test device of user interfaces |
CN105657547A (en) * | 2015-12-31 | 2016-06-08 | 北京奇艺世纪科技有限公司 | Detection method and device for similar video and pirated video |
US20170192774A1 (en) * | 2016-01-04 | 2017-07-06 | Fuji Xerox Co., Ltd. | Management apparatus, management system, management method, and non-transitory computer readable medium |
CN105979092A (en) * | 2016-05-13 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Abnormity monitoring method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110615A (en) * | 2019-04-19 | 2019-08-09 | 苏州极目机器人科技有限公司 | Image information processing method and pattern information processing system |
CN110110615B (en) * | 2019-04-19 | 2021-11-23 | 苏州极目机器人科技有限公司 | Image information processing method and image information processing system |
CN112446850A (en) * | 2019-08-14 | 2021-03-05 | 阿里巴巴集团控股有限公司 | Adaptation test method and device and electronic equipment |
CN110851350A (en) * | 2019-10-12 | 2020-02-28 | 平安银行股份有限公司 | Method and device for monitoring white screen of web page interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109922032B (en) | Method, device, equipment and storage medium for determining risk of logging in account | |
CN111177005A (en) | Service application testing method, device, server and storage medium | |
CN106469261A (en) | A kind of auth method and device | |
CN109634788A (en) | A kind of terminal adaptation verification method and system, terminal | |
US20230418943A1 (en) | Method and device for image-based malware detection, and artificial intelligence-based endpoint detection and response system using same | |
CN103297267A (en) | Method and system for network behavior risk assessment | |
KR20190099816A (en) | Method and system for detecting counterfeit of web page | |
CN114240060A (en) | Risk control method, risk processing system, risk processing device, server, and storage medium | |
CN114022926A (en) | Face recognition method, device, equipment and storage medium | |
CN113850669A (en) | User grouping method and device, computer equipment and computer readable storage medium | |
CN111260372B (en) | Resource transfer user group determination method, device, computer equipment and storage medium | |
CN106875184B (en) | Abnormal scene simulation method, device and equipment | |
CN110011964B (en) | Webpage environment detection method and device | |
CN109587248B (en) | User identification method, device, server and storage medium | |
CN105162799A (en) | Method for checking whether client is legal mobile terminal or not and server | |
CN116707859A (en) | Feature rule extraction method and device, and network intrusion detection method and device | |
CN115712571A (en) | Interactive service test device, interactive service test device, computer equipment and storage medium | |
CN115168848A (en) | Interception feedback processing method based on big data analysis interception | |
CN114781517A (en) | Risk identification method and device and terminal equipment | |
CN111651555B (en) | Service processing method, system and computer readable storage medium | |
CN114297735A (en) | Data processing method and related device | |
CN113920495A (en) | Big data based picture content auditing system | |
CN113239333A (en) | Browser user identity authentication method and system based on cross-domain resource access | |
CN111770080A (en) | Method and device for recovering device fingerprint | |
CN111507829A (en) | Overseas credit card wind control model iteration method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |