CN109408362A - Application compatibility test method, device, system and storage medium - Google Patents

Application compatibility test method, device, system and storage medium Download PDF

Info

Publication number
CN109408362A
CN109408362A CN201810953569.8A CN201810953569A CN109408362A CN 109408362 A CN109408362 A CN 109408362A CN 201810953569 A CN201810953569 A CN 201810953569A CN 109408362 A CN109408362 A CN 109408362A
Authority
CN
China
Prior art keywords
test
devices
screenshot
server
subordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810953569.8A
Other languages
Chinese (zh)
Inventor
邹磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810953569.8A priority Critical patent/CN109408362A/en
Publication of CN109408362A publication Critical patent/CN109408362A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

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)
  • Debugging And Monitoring (AREA)

Abstract

A kind of application compatibility test method, comprising: Devices to test establishes the connection between server, wherein the Devices to test includes main Devices to test and subordinate Devices to test;Main Devices to test receives operation information, and executes compatibility test operation according to the operation information;The operation information is sent to server, operation information is forwarded to subordinate Devices to test by server, and wherein subordinate Devices to test executes compatibility test operation according to the operation information;Page progress screenshot under main Devices to test operates current compatibility test obtains the first screenshot picture, and it sends screenshot and instructs to the server, wherein, server forwarding screenshot is instructed to subordinate Devices to test, and subordinate Devices to test also carries out screenshot and obtains the second screenshot picture;First screenshot picture is compared with the second screenshot picture, to judge whether the compatibility test result passes through.The present invention also provides a kind of application compatibility test device, system and storage mediums.

Description

Application compatibility test method, device, system and storage medium
Technical field
The present invention relates to software testing technology fields, and in particular to a kind of application compatibility test method device, is System and storage medium.
Background technique
Compatibility test refers to the test to the compatibility between designed program and hardware, software.In general, compatible Finger can accommodate many aspects simultaneously, compatible in computerese to refer between several hardware, is between several softwares or soft or hard Mutual cooperation degree between part.The compatibility test be it is essential in application program (abbreviation APP) test, it is main Purpose is to be compatible with third party software, it is ensured that third party software can operate normally, and specifically include detection project to be measured in difference Operating system platform on operate normally, project to be tested can operate normally on the different editions of same operating system platform; Detecting project to be measured can work to relevant other software or system coordination;Detecting project to be measured can be in specified hardware environment It operates normally;Detecting project to be measured can operate normally in different network environments.
In the prior art, compatibility test method mainly relies on manual operation, and tester is every time just for one Equipment carries out test case execution, then traverses whole Devices to test, and repetitive operation is high, and low efficiency.And to application program The test of HTML5 be usually after the completion of to its functional test to carry out compatibility test again, due to the entire test item period The reason of will lead to and compatibility test use-case occur and execute not comprehensive enough problem with respect to functional test use-case.And tester It is general when whether being passed through by the compatibility test result of subjective judgement application program, inefficiency and to be likely to occur judgement inaccurate True situation.
Summary of the invention
In view of the foregoing, it is necessary to propose that a kind of application compatibility test method, device, system and storage are situated between Matter can carry out compatibility test to more Devices to test simultaneously.
The first aspect of the present invention provides a kind of application compatibility test method, which comprises
A) at least two Devices to test establish the connection between server, wherein at least two Devices to test packet Include a main Devices to test and at least one subordinate Devices to test;
B) the main Devices to test receives operation information, and executes compatibility test operation according to the operation information;
C) the main Devices to test sends the operation information to the server, and the server is by the operation information It is forwarded to each subordinate Devices to test, wherein each subordinate Devices to test is to be measured with the master according to operation information execution The identical compatibility test operation of equipment;
D) the main Devices to test carries out screenshot to the page under current compatibility test operation and obtains the first screenshot picture, And it sending screenshot and instructs to the server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, Each subordinate Devices to test also carries out screenshot to the page under current compatibility test operation and obtains the second screenshot picture simultaneously It is sent to the server;
E) server is by second section of the first screenshot picture of the main Devices to test and each subordinate Devices to test Figure picture is compared, to judge whether the compatibility test result passes through;And
When the compatibility test result does not pass through, then terminate process;Or
When the compatibility test result passes through, then continue to execute above-mentioned b) to e).
Preferably, the server is by the of the first screenshot picture of the main Devices to test and each subordinate Devices to test Two screenshot pictures are compared, and include: to calculate separately the first screenshot figure to judge whether the compatibility test result passes through Second cryptographic Hash of the first cryptographic Hash of piece and the second screenshot picture;
It is pre-set similar according to whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than Threshold value is spent to judge whether the compatibility test result passes through.
Preferably, first cryptographic Hash includes the first perceptual hash value and the first mean value cryptographic Hash, second Hash Value includes the second perceptual hash value and the second mean value cryptographic Hash.
Preferably, it is preset according to whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than Similarity threshold include: to judge whether the compatibility test result passes through
When the first screenshot picture of the main Devices to test the first perceptual hash value and each subordinate Devices to test the Similarity between second perceptual hash value of two screenshot pictures is both greater than equal to pre-set first similarity threshold, and First mean value cryptographic Hash of the first screenshot picture of the main Devices to test and the second screenshot picture of each subordinate Devices to test The second mean value cryptographic Hash between similarity both greater than be equal to pre-set second similarity threshold, each subordinate waits for The compatibility test result of measurement equipment all passes through;
One in the first perceptual hash value of the first screenshot picture of the main Devices to test and subordinate Devices to test The second screenshot picture the second perceptual hash value between similarity be less than pre-set first similarity threshold, or Second section of one in first mean value cryptographic Hash of the first screenshot picture of main Devices to test described in person and subordinate Devices to test Similarity between second mean value cryptographic Hash of figure picture is less than pre-set second similarity threshold, and the subordinate waits for The compatibility test of measurement equipment does not pass through.
Preferably, this method is before step e) further include: to the first screenshot picture of the main Devices to test and each Second screenshot picture of subordinate Devices to test carries out image preprocessing.
Preferably, the similarity between first cryptographic Hash and second cryptographic Hash refers to first cryptographic Hash and institute State the digit of identical numerical value in the second cryptographic Hash.
The second aspect of the present invention provides a kind of application compatibility test device, and described device includes:
Connection establishment module, at least two Devices to test establish the connection between server, wherein described at least two Devices to test includes a main Devices to test and at least one subordinate Devices to test;
Receiving module, the main Devices to test receives operation information, and executes compatibility test behaviour according to the operation information Make;
Sending module, the main Devices to test send the operation information to the server, and the server will be described Operation information is forwarded to each subordinate Devices to test, wherein each subordinate Devices to test is executed according to the operation information and institute State the identical compatibility test operation of main Devices to test;
Screen capture module, the page progress screenshot under the main Devices to test operates current compatibility test obtain first section Figure picture, and send screenshot and instruct to the server, wherein the server forwards the screenshot to instruct to each subordinate and waits for Measurement equipment, each subordinate Devices to test also carry out screenshot to the page under current compatibility test operation and obtain the second screenshot Picture;
Comparison module, by the second screenshot figure of the first screenshot picture of the main Devices to test and each subordinate Devices to test Piece is compared.
The third aspect of the present invention provides a kind of application compatibility test macro,
The system includes at least two Devices to test and server, wherein at least two Devices to test includes one Main Devices to test and at least one subordinate Devices to test, establish connection between at least two Devices to test and server:
The main Devices to test receives operation information, and executes compatibility test operation according to the operation information;
The main Devices to test sends the operation information to the server, and the server turns the operation information It is sent to each subordinate Devices to test, wherein each subordinate Devices to test executes and the master is to be measured sets according to the operation information Standby identical compatibility test operates;
Page progress screenshot under the main Devices to test operates current compatibility test obtains the first screenshot picture, and It sends screenshot to instruct to the server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, institute Stating each subordinate Devices to test, also to obtain the second screenshot picture concurrent for the page progress screenshot lower to current compatibility test operation It send to the server;And
The server is by the second screenshot of the first screenshot picture of the main Devices to test and each subordinate Devices to test Picture is compared, to judge whether the compatibility test result passes through.
The fourth aspect of the present invention provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, the computer program realizes the application compatibility test method when being executed by processor.
Application compatibility test method, device, system and storage medium of the present invention, can establish it is multiple to The connection of measurement equipment and server, and be synchronized to operation information of the tester to main Devices to test at least by the server One subordinate Devices to test makes subordinate Devices to test execute operation identical with the main Devices to test, then intercept the master to The page screenshot of measurement equipment and the subordinate Devices to test under current operation, and compare the screenshot picture of the main Devices to test With the screenshot picture of each subordinate Devices to test, to judge whether compatibility test result passes through.Realizing only need to be at a certain It is only performed once the operation of test case on main Devices to test, that is, completes the compatibility to the application program of multiple subordinate Devices to test Property test, without repeating test case in multiple subordinate Devices to test, improve compatibility test efficiency, and pass through picture Alignment algorithm ensure that the accuracy of test result.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart for the application compatibility test method that the embodiment of the present invention one provides.
Fig. 2 is the functional block diagram of application compatibility test device provided by Embodiment 2 of the present invention.
Fig. 3 is the schematic diagram for the application compatibility test macro that the embodiment of the present invention three provides.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, the embodiment of the present invention and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " and " third " etc. are For distinguishing different objects, not for description particular order.In addition, term " includes " and their any deformations, it is intended that Non-exclusive include in covering.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising For the intrinsic other step or units of these process, methods, product or equipment.
The application compatibility test method of the embodiment of the present invention, which is applied, by least two electronic equipments and is passing through net In the hardware environment that the server that network and the electronic equipment are attached is constituted.Network includes but is not limited to: wide area network, city Domain net or local area network.The application compatibility test method of the embodiment of the present invention can be executed by server, can also be by Electronic equipment executes;It can also be and executed jointly by server and electronic equipment.
The electronic equipment for needing to carry out application compatibility test method, can directly on an electronic device Application compatibility test function provided by method of the invention, or installation are integrated for realizing method of the invention Client.For another example, method provided by the present invention can also be with Software Development Kit (Software Development Kit, SDK) form operate in the equipment such as server, application compatibility test function is provided in the form of SDK and is connect The test to application compatibility can be realized by the interface provided in mouth, electronic equipment or other equipment.
Embodiment one
Fig. 1 is the flow chart for the application compatibility test method that the embodiment of the present invention one provides.According to different need It asks, the execution sequence in the flow chart can change, and certain steps can be omitted.
S11, at least two Devices to test establish the connection between server, wherein at least two Devices to test Including a main Devices to test and at least one subordinate Devices to test.
In the present embodiment, the Devices to test can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc. the electronic equipment of application program to be measured is installed.At least two Devices to test includes One main Devices to test and at least one subordinate Devices to test.Identical operating system is installed in each Devices to test, and It can be identified by device ID between each Devices to test.
The connection can be wired connection, be also possible to be wirelessly connected.
The server is Browersync server, and the Browersync is that the front end browser of a open source is synchronous Tool, the Browersync can allow browser in real time, change and automatic refresh page of the quick response tester to file.
The main function of Browersync is received all operations can be transmitted to the institute being connected under the server There is equipment.In the present embodiment, received all operations can be forwarded to and the service by the Browersync server At least two Devices to test of device connection.
Preferably, the server determines the main Devices to test in described at least two equipment to be tested, and the master is to be measured to be set Other Devices to test other than standby are subordinate Devices to test.The main Devices to test indicates that tester manually performs compatible survey Try the equipment to be tested of operation.For example, after the connection between the server and at least two Devices to test is established, when When one Devices to test receives operation information, the Devices to test sends the operation information to the server, the service The Devices to test that device confirmation receives operation information is main Devices to test, and other Devices to test other than the main Devices to test are Subordinate Devices to test.
In the present embodiment, tester's operation may be implemented (as clicked screen control, input by the server Information etc.) a main Devices to test is when being tested, in the function that each subordinate Devices to test is tested simultaneously.
S12, the main Devices to test receive operation information, and execute compatibility test operation according to the operation information.
In the present embodiment, after installing application program to be measured in the main Devices to test and subordinate Devices to test, Into the HTML5 page of the application program to be measured, the main Devices to test receives tester in the operation of the HTML5 page Information.The operation information includes a step of implementation of test cases, click screen control, input information, towing page etc. Operation.The HTML5 page is a Webpage, and including all the elements that a Webpage is shown, and the HTML5 page is logical The client for crossing third party software is opened.
In the present embodiment, the tester first carries out functional test to the main Devices to test and compatibility is surveyed Examination, and after the main Devices to test is by the functional test and compatibility test, then by the main Devices to test with it is described Each subordinate Devices to test connection, to carry out compatibility test to each subordinate Devices to test.
S13, the main Devices to test send the operation information to server, and the server is by received operation information It is forwarded to each subordinate Devices to test.
Wherein, each subordinate Devices to test is after receiving the operation information, respectively to the to be measured of each self installation Application program executes compatibility test operation identical with the main Devices to test.
Page progress screenshot under S14, the main Devices to test operate current compatibility test obtains the first screenshot figure Piece, and send screenshot and instruct to server.
Wherein, the server is after receiving screenshot instruction, sends the screenshot and instructs to each subordinate is to be measured and sets It is standby.The subordinate Devices to test also carries out the page under current compatibility test operation after receiving the screenshot instruction Screenshot obtains the second screenshot picture.
Preferably, first section is obtained when the main Devices to test carries out screenshot to the page under current compatibility test operation Figure picture, the page progress screenshot under the subordinate Devices to test operates current compatibility test obtain the second screenshot picture Afterwards, the application compatibility test method further include:
The first screenshot picture and the second screenshot picture are stored respectively in pre-set specific in server Position, and generate the first store path and the second store path respectively.
The pre-set specific position is exclusively used in storing the first screenshot picture and the second screenshot figure Piece.The specific position can be a specific file or a file named with specific names.
S15, by the second screenshot picture of the first screenshot picture of the main Devices to test and each subordinate Devices to test into Row compares, to judge whether the compatibility test result passes through.
When the compatibility test result passes through, need to continue to test the application program of the Devices to test in next operation Compatibility under information, process return step S12;When the compatibility test result does not pass through, illustrate that the compatibility test is lost It loses, process terminates.
Next operation information includes the next step of implementation of test cases.When the test of the application program is used Example in each step be carried out, and the test result in each step be by when, then illustrate answering for the Devices to test It is to pass through with test result of the program under the test case;Otherwise, when in the test case for determining the application program also Step is not carried out, or when the test result in some step does not pass through, illustrates the application program of the Devices to test in the survey Test result under example on probation does not pass through.
It is understood that all steps in all test cases and each test case in the compatibility test It suddenly is all known.
In the present embodiment, the server can obtain respectively according to first store path and the second store path Take the first screenshot picture and the second screenshot picture, and calculate separately the first screenshot picture the first cryptographic Hash and Second cryptographic Hash of the second screenshot picture, then first cryptographic Hash is compared with second cryptographic Hash, to sentence Whether the compatibility test result of breaking passes through.Specifically, by judge first cryptographic Hash and second cryptographic Hash it Between similarity whether be greater than pre-set similarity threshold, to judge whether the compatibility test result passes through.
In the present embodiment, judge whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than in advance The similarity threshold of setting specifically includes: the position of identical numerical value in first cryptographic Hash and second cryptographic Hash Number;Judge whether the digit of identical numerical value is greater than the pre-set similarity threshold.
In the present embodiment, first cryptographic Hash includes the first perceptual hash value and the first mean value cryptographic Hash, and described the Two cryptographic Hash include the second perceptual hash value and the second mean value cryptographic Hash.
In the present embodiment, when the first perceptual hash value of the first screenshot picture of the main Devices to test and each subordinate Similarity between second perceptual hash value of the second screenshot picture of Devices to test is both greater than equal to pre-set first phase Like degree threshold value (such as 10), and the first mean value cryptographic Hash of the first screenshot picture of the main Devices to test and each subordinate are to be measured Similarity between second mean value cryptographic Hash of the second screenshot picture of equipment is both greater than equal to pre-set second similarity Threshold value (such as 20) illustrates the first screenshot picture of the main Devices to test and the second screenshot picture phase of each subordinate Devices to test Together, i.e., the compatibility test result of described each subordinate Devices to test is to pass through;
When the first screenshot picture of the main Devices to test the first perceptual hash value and some subordinate Devices to test the Similarity between second perceptual hash value of two screenshot pictures is less than pre-set first similarity threshold (such as 10), or First mean value cryptographic Hash of the first screenshot picture of the main Devices to test and the second screenshot picture of some subordinate Devices to test The second mean value cryptographic Hash between similarity be less than pre-set second similarity threshold (such as 20), illustrate that the master is to be measured First screenshot picture of equipment and the second screenshot picture of some subordinate Devices to test be not identical, i.e., some described subordinate waits for Measurement equipment does not pass through in the step test of compatibility test use-case.
In the present embodiment, screenshot picture is calculated using perceptual hash algorithm (perceptual hash algorithm) The detailed process of perceptual hash value includes:
1) the screenshot picture is reduced;The effect of the step is to remove the details of picture, until it is basic to retain structure, light and shade etc. Information abandons different sizes, ratio bring picture difference;
The screenshot picture is narrowed down to the size of 32*32, in total 256 pixels.Herein, perceptual hash algorithm uses Screenshot picture need to be greater than mean value hash algorithm in 8*8,32*32 is relatively good size.The purpose for the arrangement is that simple Change the calculating of discrete cosine transform, rather than reduces frequency.
2) gray processing processing is carried out to simplify color to the screenshot picture;
Screenshot picture after diminution is converted to gray level image, is further simplified calculation amount.
3) DCT of gray processing treated screenshot picture is calculated;
Calculate the dct transform of the screenshot picture, F (u, v)=CTFC,
Obtain the DCT coefficient matrix of 32*32:
4) DCT is reduced;Retain according to dct transform formula F (u, v)=C in 3)TFC obtains the DCT coefficient of 32*32 8*8 matrix sub block in the upper left corner in matrix, this part present the low-limit frequency in screenshot picture.In addition, with matrix sub block ruler The complexity of very little increase, algorithm can steeply rise, so can generally choose the matrix sub block that it is 8*8 in practice.
5) average value of DCT is calculated;
Such as
6) size for comparing the average value of the DCT coefficient and the DCT in 8*8 matrix, it is flat more than or equal to the DCT Mean value is denoted as 1, and the average value less than DCT is denoted as 0;
7) comparison result of each pixel obtained in 6) is attached according to pre-set concatenate rule, obtains institute State the perceptual hash value of screenshot picture.The concatenate rule can be from left to right, it is top-down etc..
Each of 8*8 matrix DCT coefficient is traversed, each DCT coefficient is compared with DCT average value, is greater than Or it is equal to DCT average value, it is denoted as 1;Less than DCT average value, it is denoted as 0;For example, when the DCT coefficient of the first row first row is greater than 63, Comparison result is denoted as 1, otherwise comparison result is denoted as 0;When the DCT coefficient of the first row secondary series is greater than 63, comparison result is denoted as 1, otherwise comparison result is denoted as 0;When the tertial DCT coefficient of the first row is greater than 63, comparison result is denoted as 1, otherwise comparison result It is denoted as 0;And so on.Then comparison result is combined into 64 digits from left to right, from the top down, which is described cut The perceptual hash value of figure picture.
In the present embodiment, screenshot picture can also be calculated using mean value hash algorithm (average hash algorithm) The detailed process of mean value cryptographic Hash include:
1) size of the screenshot picture is reduced;The effect of the step is to remove the details of picture, until retaining structure, light and shade Etc. essential informations, abandon different sizes, ratio bring picture difference;
The screenshot picture is narrowed down to the size of 8*8, in total 64 pixels.
2) gray processing is carried out to the screenshot picture after diminution to handle to simplify color;
Screenshot picture after diminution is converted to the gray level image Gray=R*0.299+G*0.587+B*0.114 of 64 ranks;
3) average value of gray processing treated screenshot picture is calculated;
The average gray of all 64 pixels is calculated, such as
4) compare gray processing treated the gray value of each pixel of screenshot picture and the size of the average gray;
5) gray value of the pixel of gray processing treated screenshot picture is greater than or equal to the note of the average gray It is 1, is denoted as 0 less than average value;
6) comparison result of each pixel obtained in 5) is attached according to pre-set concatenate rule, obtains institute State the mean value cryptographic Hash of screenshot picture.
Each pixel for traversing grayscale image, the gray value of each pixel is compared with average value, is greater than or waits In average value, it is denoted as 1;Less than average value, it is denoted as 0;For example, will compare when the gray value of the pixel of the first row first row is greater than 108 Relatively result is denoted as 1, and otherwise comparison result is denoted as 0;When the gray value of the pixel of the first row secondary series is greater than 108, comparison result note It is 1, otherwise comparison result is denoted as 0;When the gray value of the tertial pixel of the first row is greater than 108, comparison result is denoted as 1, otherwise Comparison result is denoted as 0;And so on.Then comparison result is combined into 64 digits from left to right, from the top down, which is For the mean value cryptographic Hash of the screenshot picture.
In the present embodiment, image is analyzed simultaneously by two kinds of hash algorithms, can guarantees the reasonability of algorithm, The anti-interference ability of algorithm, and then the reliability of boosting algorithm and system, stability can be enhanced.
Preferably, by the second screenshot picture of the first screenshot picture of the main Devices to test and each subordinate Devices to test Before being compared, the method also includes:
Figure is carried out to the first screenshot picture of the main Devices to test and the second screenshot picture of each subordinate Devices to test As pretreatment.Described image pretreatment includes image normalization, smoothing, geometric transformation etc., to eliminate some and original image As unrelated information, the real information of original image is gone back to greatest extent.Described image pretreatment further includes removal picture background Interference element mainly uses binarization method, i.e., picture is converted into only black and white picture.Usual way is to determine one A threshold values is white if the pixel on picture is greater than the threshold values, is otherwise black.
The pretreated purpose of described image is removal noise, reinforces useful information, and to information transmission medium, using and Degradation phenomena caused by other factors is corrected and restoration disposal.
It is understood that in other embodiments, it can be using other image matching algorithms to the main Devices to test The first screenshot picture be compared with the second screenshot picture of each subordinate Devices to test, to judge the compatibility test result Whether pass through.For example, MAD algorithm, normalization product correlation al gorithm and feature-based matching algorithm etc..Above-mentioned image Matching algorithm is the prior art, and details are not described herein.
In conclusion application compatibility test method provided by the invention, by establishing at least two Devices to test Connection between server, wherein at least two Devices to test includes a main Devices to test and at least one subordinate Devices to test;The main Devices to test receives operation information, and executes compatibility test operation according to the operation information;The master Devices to test sends the operation information to the server, and the operation information is forwarded to each subordinate and waited for by the server Measurement equipment, wherein each subordinate Devices to test executes compatibility identical with the main Devices to test according to the operation information Test operation;Page progress screenshot under the main Devices to test operates current compatibility test obtains the first screenshot picture, And it sending screenshot and instructs to the server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, Each subordinate Devices to test also carries out screenshot to the page under current compatibility test operation and obtains the second screenshot picture;It will First screenshot picture of the main Devices to test is compared with the second screenshot picture of each subordinate Devices to test, should with judgement Whether compatibility test result passes through.Realizing only need to be only performed once test case on a certain main Devices to test, i.e., complete The compatibility test of the application program of pairs of multiple subordinate Devices to test, without repeating test in multiple subordinate Devices to test Use-case improves compatibility test efficiency, and by picture alignment algorithm, ensure that the accuracy of test result.
The above is only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, for For those skilled in the art, without departing from the concept of the premise of the invention, improvement, but these can also be made It all belongs to the scope of protection of the present invention.
Below with reference to the 2nd to 3 figure, respectively to the function of the electronic equipment of the above-mentioned application compatibility test method of realization Module and hardware configuration are introduced.
Embodiment two
Fig. 2 is the functional block diagram in application compatibility test device preferred embodiment of the present invention.
In some embodiments, the 20 (hereinafter referred to as " device for testing compatibility of application compatibility test device 20 ") it runs in electronic equipment.The device for testing compatibility 20 may include multiple functions as composed by program code segments Module.The program code of each program segment in the device for testing compatibility 20 can store in memory, and by least Performed by one processor, with the compatibility test of execution (being detailed in Fig. 1 and its associated description) application program.
In the present embodiment, function of the device for testing compatibility 20 of the electronic equipment according to performed by it can be drawn It is divided into multiple functional modules.The functional module may include: connection establishment module 201, receiving module 202, sending module 203, screen capture module 204 and comparison module 205.The so-called module of the present invention refers to that one kind can be held by least one processor Row and the series of computation machine program segment that can complete fixed function, storage is in memory.In some embodiments, it closes It will be described in detail in subsequent embodiment in the function of each module.
Connection establishment module 201, the connection for establishing between at least two Devices to test and server, wherein described At least two Devices to test include a main Devices to test and at least one subordinate Devices to test.
In the present embodiment, the Devices to test can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc. the electronic equipment of application program to be measured is installed.At least two Devices to test includes One main Devices to test and at least one subordinate Devices to test.Identical operating system is installed in each Devices to test, and It can be identified by device ID between each Devices to test.
The connection can be wired connection, be also possible to be wirelessly connected.
The server is Browersync server, and the Browersync is that the front end browser of a open source is synchronous Tool, the Browersync can allow browser in real time, change and automatic refresh page of the quick response tester to file.
The main function of Browersync is received all operations can be transmitted to the institute being connected under the server There is equipment.In the present embodiment, received all operations can be forwarded to and the service by the Browersync server At least two Devices to test of device connection.
Further, the server determines the main Devices to test in described at least two equipment to be tested, and the master is to be measured Other Devices to test other than equipment are subordinate Devices to test.The main Devices to test indicates that tester manually performs compatibility The equipment to be tested of test operation.For example, after the connection between the server and at least two Devices to test is established, When a Devices to test receives operation information, the Devices to test sends the operation information to the server, the clothes Business device confirmation receives the Devices to test of operation information as main Devices to test, and other Devices to test other than the main Devices to test For subordinate Devices to test.
In the present embodiment, tester's operation may be implemented (as clicked screen control, input by the server Information etc.) a main Devices to test is when being tested, in the function that each subordinate Devices to test is tested simultaneously.
Receiving module 202, for receiving operation information by the main Devices to test, and it is simultaneous according to operation information execution Capacitive test operation.
In the present embodiment, after installing application program to be measured in the main Devices to test and subordinate Devices to test, Into the HTML5 page of the application program to be measured, the main Devices to test receives tester in the operation of the HTML5 page Information.The operation information includes a step of implementation of test cases, click screen control, input information, towing page etc. Operation.The HTML5 page is a Webpage, and including all the elements that a Webpage is shown, and the HTML5 page is logical The client for crossing third party software is opened.
In the present embodiment, the tester first carries out functional test to the main Devices to test and compatibility is surveyed Examination, and after the main Devices to test is by the functional test and compatibility test, then by the main Devices to test with it is described Each subordinate Devices to test connection, to carry out compatibility test to each subordinate Devices to test.
Sending module 203, the main Devices to test send the operation information to server, and the server will be received Operation information is forwarded to each subordinate Devices to test.
Wherein, each subordinate Devices to test is after receiving the operation information, respectively to the to be measured of each self installation Application program executes compatibility test operation identical with the main Devices to test.
Screen capture module 204, for carrying out screenshot to the page of the main Devices to test under current compatibility test operation The first screenshot picture is obtained, and sends screenshot and instructs to server.Wherein, the server is after receiving screenshot instruction, The screenshot is sent to instruct to each subordinate Devices to test.The subordinate Devices to test after receiving screenshot instruction, Screenshot is carried out to the page under current compatibility test operation and obtains the second screenshot picture.
Further, first is obtained when the main Devices to test carries out screenshot to the page under current compatibility test operation Screenshot picture, the page progress screenshot under the subordinate Devices to test operates current compatibility test obtain the second screenshot picture Afterwards, the application compatibility test method further include:
The first screenshot picture and the second screenshot picture are stored respectively in pre-set specific position, and The first store path and the second store path are generated respectively.
The pre-set specific position is exclusively used in storing the first screenshot picture and the second screenshot figure Piece.The specific position can be a specific file or a file named with specific names.
Comparison module 205, for by the of the first screenshot picture of the main Devices to test and each subordinate Devices to test Two screenshot pictures are compared, to judge whether the compatibility test result passes through.
When the compatibility test result passes through, need to continue to test the application program of the Devices to test in next operation Compatibility under information;When the compatibility test result does not pass through, illustrate that the compatibility test fails.
Next operation information includes the next step for including implementation of test cases.When the survey of the application program Each step in example on probation has been carried out, and the test result in each step be by when, then illustrate the Devices to test Test result of the application program under the test case be to pass through;Otherwise, when in the test case for determining the application program There are also steps to be not carried out, or when the test result in some step does not pass through, illustrates that the application program of the Devices to test exists Test result under the test case does not pass through.
It is understood that all steps in all test cases and each test case in the compatibility test It suddenly is all known.
In the present embodiment, the server can obtain respectively according to first store path and the second store path Take the first screenshot picture and the second screenshot picture, and calculate separately the first screenshot picture the first cryptographic Hash and Second cryptographic Hash of the second screenshot picture, then first cryptographic Hash is compared with second cryptographic Hash, to sentence Whether the compatibility test result of breaking passes through.Specifically, by judge first cryptographic Hash and second cryptographic Hash it Between similarity whether be greater than pre-set similarity threshold, to judge whether the compatibility test result passes through.
In the present embodiment, judge whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than in advance The similarity threshold of setting specifically includes: the position of identical numerical value in first cryptographic Hash and second cryptographic Hash Number;Judge whether the digit of identical numerical value is greater than the pre-set similarity threshold.
In the present embodiment, first cryptographic Hash includes the first perceptual hash value and the first mean value cryptographic Hash, and described the Two cryptographic Hash include the second perceptual hash value and the second mean value cryptographic Hash.
In the present embodiment, when the first perceptual hash value of the first screenshot picture of the main Devices to test and each subordinate Similarity between second perceptual hash value of the second screenshot picture of Devices to test is both greater than equal to pre-set first phase Like degree threshold value (such as 10), and the first mean value cryptographic Hash of the first screenshot picture of the main Devices to test and each subordinate are to be measured Similarity between second mean value cryptographic Hash of the second screenshot picture of equipment is both greater than equal to pre-set second similarity Threshold value (such as 20) illustrates the first screenshot picture of the main Devices to test and the second screenshot picture phase of each subordinate Devices to test Together, i.e., the compatibility test result of described each subordinate Devices to test is to pass through.
When the first screenshot picture of the main Devices to test the first perceptual hash value and some subordinate Devices to test the Similarity between second perceptual hash value of two screenshot pictures is less than pre-set first similarity threshold (such as 10), or First mean value cryptographic Hash of the first screenshot picture of the main Devices to test and the second screenshot picture of some subordinate Devices to test The second mean value cryptographic Hash between similarity be less than pre-set second similarity threshold (such as 20), illustrate that the master is to be measured First screenshot picture of equipment and the second screenshot picture of some subordinate Devices to test be not identical, i.e., some described subordinate waits for Measurement equipment does not pass through in the step test of compatibility test use-case.
In the present embodiment, screenshot picture is calculated using perceptual hash algorithm (perceptual hash algorithm) The detailed process of perceptual hash value includes:
1) the screenshot picture is reduced;The effect of the step is to remove the details of picture, until it is basic to retain structure, light and shade etc. Information abandons different sizes, ratio bring picture difference;
The screenshot picture is narrowed down to the size of 32*32, in total 256 pixels.Herein, perceptual hash algorithm uses Screenshot picture need to be greater than mean value hash algorithm in 8*8,32*32 is relatively good size.The purpose for the arrangement is that simple Change the calculating of discrete cosine transform, rather than reduces frequency.
2) gray processing processing is carried out to simplify color to the screenshot picture;
Screenshot picture after diminution is converted to gray level image, is further simplified calculation amount.
3) DCT of gray processing treated screenshot picture is calculated;
Calculate the dct transform of the screenshot picture, F (u, v)=CTFC,
Obtain the DCT coefficient matrix of 32*32:
4) DCT is reduced;Retain according to dct transform formula F (u, v)=C in 3)TFC obtains the DCT coefficient of 32*32 8*8 matrix sub block in the upper left corner in matrix, this part present the low-limit frequency in screenshot picture.In addition, with matrix sub block ruler The complexity of very little increase, algorithm can steeply rise, so can generally choose the matrix sub block that it is 8*8 in practice.
5) average value of DCT is calculated;
Such as
6) size for comparing the average value of the DCT coefficient and the DCT in 8*8 matrix, it is flat more than or equal to the DCT Mean value is denoted as 1, and the average value less than DCT is denoted as 0;
7) comparison result of each pixel obtained in 6) is attached according to pre-set concatenate rule, obtains institute State the perceptual hash value of screenshot picture.The concatenate rule can be from left to right, it is top-down etc..
Each of 8*8 matrix DCT coefficient is traversed, each DCT coefficient is compared with DCT average value, is greater than Or it is equal to DCT average value, it is denoted as 1;Less than DCT average value, it is denoted as 0;For example, when the DCT coefficient of the first row first row is greater than 63, Comparison result is denoted as 1, otherwise comparison result is denoted as 0;When the DCT coefficient of the first row secondary series is greater than 63, comparison result is denoted as 1, otherwise comparison result is denoted as 0;When the tertial DCT coefficient of the first row is greater than 63, comparison result is denoted as 1, otherwise comparison result It is denoted as 0;And so on.Then comparison result is combined into 64 digits from left to right, from the top down, which is described cut The perceptual hash value of figure picture.
In the present embodiment, screenshot picture can also be calculated using mean value hash algorithm (average hash algorithm) The detailed process of mean value cryptographic Hash include:
1) size of the screenshot picture is reduced;The effect of the step is to remove the details of picture, until retaining structure, light and shade Etc. essential informations, abandon different sizes, ratio bring picture difference;
The screenshot picture is narrowed down to the size of 8*8, in total 64 pixels.
2) gray processing is carried out to the screenshot picture after diminution to handle to simplify color;
Screenshot picture after diminution is converted to the gray level image Gray=R*0.299+G*0.587+B*0.114 of 64 ranks;
3) average value of gray processing treated screenshot picture is calculated;
The average gray of all 64 pixels is calculated, such as
4) compare gray processing treated the gray value of each pixel of screenshot picture and the size of the average gray;
5) gray value of the pixel of gray processing treated screenshot picture is greater than or equal to the note of the average gray It is 1, is denoted as 0 less than average value;
6) comparison result of each pixel obtained in 5) is attached according to pre-set concatenate rule, obtains institute State the mean value cryptographic Hash of screenshot picture.
Each pixel for traversing grayscale image, the gray value of each pixel is compared with average value, is greater than or waits In average value, it is denoted as 1;Less than average value, it is denoted as 0;For example, will compare when the gray value of the pixel of the first row first row is greater than 108 Relatively result is denoted as 1, and otherwise comparison result is denoted as 0;When the gray value of the pixel of the first row secondary series is greater than 108, comparison result note It is 1, otherwise comparison result is denoted as 0;When the gray value of the tertial pixel of the first row is greater than 108, comparison result is denoted as 1, otherwise Comparison result is denoted as 0;And so on.Then comparison result is combined into 64 digits from left to right, from the top down, which is For the mean value cryptographic Hash of the screenshot picture.
In the present embodiment, image is analyzed simultaneously by two kinds of hash algorithms, can guarantees the reasonability of algorithm, The anti-interference ability of algorithm, and then the reliability of boosting algorithm and system, stability can be enhanced.
In conclusion device 20 of the present invention, passes through the company established between at least two Devices to test and server It connects, wherein at least two Devices to test includes a main Devices to test and at least one subordinate Devices to test;The master to Measurement equipment receives operation information, and executes compatibility test operation according to the operation information;Described in the main Devices to test is sent The operation information is forwarded to each subordinate Devices to test by operation information to the server, the server, wherein described Each subordinate Devices to test executes compatibility test operation identical with the main Devices to test according to the operation information;The master The Devices to test page progress screenshot lower to current compatibility test operation obtains the first screenshot picture, and send screenshot instruct to The server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, and each subordinate is to be measured Equipment also carries out screenshot to the page under current compatibility test operation and obtains the second screenshot picture;By the main Devices to test First screenshot picture is compared with the second screenshot picture of each subordinate Devices to test, to judge the compatibility test the result is that It is no to pass through.Realizing only need to be only performed once test case on a certain main Devices to test, that is, complete to be measured to multiple subordinates The compatibility test of the application program of equipment improves compatibility without repeating test case in multiple subordinate Devices to test Property testing efficiency ensure that the accuracy of test result and by picture alignment algorithm.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, double screen equipment or the network equipment etc.) or processor (processor) execute the present invention The part of a embodiment the method.
Embodiment three
Fig. 3 is the schematic diagram for the application compatibility test macro that the embodiment of the present invention three provides.
The application compatibility test macro 30, including at least two Devices to test 31 and server 32, wherein institute Stating at least two Devices to test includes main Devices to test 310 and at least one subordinate Devices to test 311, and described at least two Devices to test 31 establishes the connection between server 32:
The main Devices to test 310 receives operation information, and executes compatibility test operation according to the operation information;
The main Devices to test 310 sends the operation information to the server 32, and the server 32 is by the behaviour It is forwarded to each subordinate Devices to test 311 as information, wherein each subordinate Devices to test 311 is executed according to the operation information Compatibility test identical with the main Devices to test 310 operates;
Page progress screenshot under the main Devices to test 310 operates current compatibility test obtains the first screenshot figure Piece, and send screenshot and instruct to the server 32, wherein the server 32 forwards the screenshot to instruct to each subordinate and waits for Measurement equipment 311, also the page progress screenshot lower to current compatibility test operation obtains the to each subordinate Devices to test 311 Two screenshot pictures are simultaneously sent to the server 32;And
The server 32 is by the first screenshot picture of the main Devices to test 310 and each subordinate Devices to test 311 Second screenshot picture is compared, to judge whether the compatibility test result passes through.
In the present embodiment, the server 32 obtains the first screenshot picture and the second screenshot picture, and Calculate separately the first cryptographic Hash of the first screenshot picture and the second cryptographic Hash of the second screenshot picture, then by described One cryptographic Hash is compared with second cryptographic Hash, to judge whether the compatibility test result passes through.Specifically, passing through Judge whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than pre-set similarity threshold, comes Judge whether the compatibility test result passes through.
In the present embodiment, judge whether the similarity between first cryptographic Hash and second cryptographic Hash is greater than in advance The similarity threshold of setting specifically includes: the position of identical numerical value in first cryptographic Hash and second cryptographic Hash Number;Judge whether the digit of identical numerical value is greater than the pre-set similarity threshold.
In the present embodiment, first cryptographic Hash includes the first perceptual hash value and the first mean value cryptographic Hash, and described the Two cryptographic Hash include the second perceptual hash value and the second mean value cryptographic Hash.
In the present embodiment, when the first perceptual hash value of the first screenshot picture of the main Devices to test 310 and each Similarity between second perceptual hash value of the second screenshot picture of subordinate Devices to test 311 is both greater than equal to pre-set First similarity threshold (such as 10), and the first mean value cryptographic Hash of the first screenshot picture of the main Devices to test 310 and every Similarity between second mean value cryptographic Hash of the second screenshot picture of a subordinate Devices to test 311, which is both greater than equal to, to be preset The second similarity threshold (such as 20), illustrate the main Devices to test 310 the first screenshot picture and each subordinate Devices to test 311 the second screenshot picture is identical, i.e., the compatibility test result of described each subordinate Devices to test 311 is to pass through;
When the first perceptual hash value and some subordinate Devices to test of the first screenshot picture of the main Devices to test 310 Similarity between second perceptual hash value of 311 the second screenshot picture is less than pre-set first similarity threshold (such as Or the first mean value cryptographic Hash of the first screenshot picture of the main Devices to test 310 and some subordinate Devices to test 311 10) The second screenshot picture the second mean value cryptographic Hash between similarity be less than pre-set second similarity threshold (such as 20), Second screenshot picture of the first screenshot picture and some subordinate Devices to test 311 that illustrate the main Devices to test 310 is not Identical, i.e., some described subordinate Devices to test 311 does not pass through in the step test of compatibility test use-case.
In several embodiments provided by the present invention, it should be understood that disclosed application compatibility tests system System and method, may be implemented in other ways.For example, electronic equipment embodiment described above is only schematic , for example, the division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in same treatment unit It is that each unit physically exists alone, can also be integrated in same unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or, odd number is not excluded for plural number.The multiple units stated in system claims Or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to indicate name Claim, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention range.

Claims (10)

1. a kind of application compatibility test method, which is characterized in that the described method includes:
A) at least two Devices to test establish the connection between server, wherein at least two Devices to test includes one A main Devices to test and at least one subordinate Devices to test;
B) the main Devices to test receives operation information, and executes compatibility test operation according to the operation information;
C) the main Devices to test sends the operation information to the server, and the server forwards the operation information To each subordinate Devices to test, wherein each subordinate Devices to test executes and the main Devices to test according to the operation information Identical compatibility test operation;
D) the main Devices to test carries out screenshot to the page under current compatibility test operation and obtains the first screenshot picture, concurrently Screenshot is sent to instruct to the server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, described Each subordinate Devices to test also obtains the second screenshot picture to the page progress screenshot under current compatibility test operation and sends To the server;
E) server is by the second screenshot figure of the first screenshot picture of the main Devices to test and each subordinate Devices to test Piece is compared, to judge whether the compatibility test result passes through;And
When the compatibility test result does not pass through, then terminate process;Or
When the compatibility test result passes through, then continue to execute above-mentioned b) to e).
2. application compatibility test method as described in claim 1, which is characterized in that the server by the master to First screenshot picture of measurement equipment is compared with the second screenshot picture of each subordinate Devices to test, to judge that the compatibility is surveyed Whether test result passes through
Calculate separately the first cryptographic Hash of the first screenshot picture and the second cryptographic Hash of the second screenshot picture;
Whether it is greater than pre-set similarity threshold according to the similarity between first cryptographic Hash and second cryptographic Hash Value judges whether the compatibility test result passes through.
3. application compatibility test method as claimed in claim 2, which is characterized in that first cryptographic Hash includes the One perceptual hash value and the first mean value cryptographic Hash, second cryptographic Hash include the second perceptual hash value and the second mean value Hash Value.
4. application compatibility test method as claimed in claim 3, which is characterized in that according to first cryptographic Hash with Whether the similarity between second cryptographic Hash is greater than pre-set similarity threshold to judge the compatibility test result Whether by including:
When the first perceptual hash value of the first screenshot picture of the main Devices to test and second section of each subordinate Devices to test Similarity between second perceptual hash value of figure picture is both greater than equal to pre-set first similarity threshold, and described The of second screenshot picture of the first mean value cryptographic Hash and each subordinate Devices to test of the first screenshot picture of main Devices to test Similarity between two mean value cryptographic Hash is both greater than equal to pre-set second similarity threshold, and each subordinate is to be measured to be set Standby compatibility test result all passes through;
When the of one in the first perceptual hash value of the first screenshot picture of the main Devices to test and subordinate Devices to test Similarity between second perceptual hash value of two screenshot pictures is less than pre-set first similarity threshold, Huo Zhesuo The the first mean value cryptographic Hash for stating the first screenshot picture of main Devices to test and one the second screenshot figure in subordinate Devices to test Similarity between second mean value cryptographic Hash of piece is less than pre-set second similarity threshold, and the subordinate is to be measured to be set Standby compatibility test does not pass through.
5. application compatibility test method as described in claim 1, which is characterized in that this method is gone back before step e) It include: pre- to the first screenshot picture of the main Devices to test and the second screenshot picture progress image of each subordinate Devices to test Processing.
6. application compatibility test method as claimed in claim 2, which is characterized in that first cryptographic Hash with it is described Similarity between second cryptographic Hash refers to the digit of identical numerical value in first cryptographic Hash and second cryptographic Hash.
7. application compatibility test method as described in claim 1, which is characterized in that the server is Browersync server.
8. a kind of application compatibility test device, which is characterized in that described device includes:
Connection establishment module, at least two Devices to test establish the connection between server, wherein described at least two is to be measured Equipment includes a main Devices to test and at least one subordinate Devices to test;
Receiving module, the main Devices to test receives operation information, and executes compatibility test operation according to the operation information;
Sending module, the main Devices to test send the operation information to the server, and the server is by the operation Information is forwarded to each subordinate Devices to test, wherein each subordinate Devices to test executes and the master according to the operation information The identical compatibility test operation of Devices to test;
Screen capture module, the page progress screenshot under the main Devices to test operates current compatibility test obtain the first screenshot figure Piece, and send screenshot and instruct to the server, wherein the server forwards the screenshot to instruct to each subordinate is to be measured and sets Standby, each subordinate Devices to test also carries out screenshot to the page under current compatibility test operation and obtains the second screenshot figure Piece;
Comparison module, by the second screenshot picture of the first screenshot picture of the main Devices to test and each subordinate Devices to test into Row compares.
9. a kind of application compatibility test macro, which is characterized in that the system includes at least two Devices to test and service Device, wherein at least two Devices to test includes main Devices to test and at least one subordinate Devices to test, it is described at least Two are established connection between Devices to test and server:
The main Devices to test receives operation information, and executes compatibility test operation according to the operation information;
The main Devices to test sends the operation information to the server, and the operation information is forwarded to by the server Each subordinate Devices to test, wherein each subordinate Devices to test executes and the main Devices to test phase according to the operation information Same compatibility test operation;
Page progress screenshot under the main Devices to test operates current compatibility test obtains the first screenshot picture, and sends Screenshot is instructed to the server, wherein the server forwards the screenshot to instruct to each subordinate Devices to test, described every A subordinate Devices to test also obtains the second screenshot picture to the page progress screenshot under current compatibility test operation and is sent to The server;And
The server is by the second screenshot picture of the first screenshot picture of the main Devices to test and each subordinate Devices to test It is compared, to judge whether the compatibility test result passes through.
10. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium It is, the computer program realizes that application program as claimed in any of claims 1 to 7 in one of claims is simultaneous when being executed by processor Capacitive test method.
CN201810953569.8A 2018-08-21 2018-08-21 Application compatibility test method, device, system and storage medium Pending CN109408362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810953569.8A CN109408362A (en) 2018-08-21 2018-08-21 Application compatibility test method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810953569.8A CN109408362A (en) 2018-08-21 2018-08-21 Application compatibility test method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN109408362A true CN109408362A (en) 2019-03-01

Family

ID=65464314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810953569.8A Pending CN109408362A (en) 2018-08-21 2018-08-21 Application compatibility test method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109408362A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347587A (en) * 2019-05-30 2019-10-18 平安银行股份有限公司 APP compatibility test method, device, computer equipment and storage medium
CN110674039A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Multi-device synchronous testing method and device, server and storage medium
CN110704321A (en) * 2019-09-27 2020-01-17 京东数字科技控股有限公司 Program debugging method and device
CN110716778A (en) * 2019-09-10 2020-01-21 阿里巴巴集团控股有限公司 Application compatibility testing method, device and system
CN112199268A (en) * 2019-07-08 2021-01-08 中移互联网有限公司 Software compatibility testing method and electronic equipment
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost
CN113506291A (en) * 2021-07-29 2021-10-15 上海幻电信息科技有限公司 Compatibility testing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541700A (en) * 2010-12-16 2012-07-04 卓望数码技术(深圳)有限公司 Terminal test method, test device and terminal agency
CN104318259A (en) * 2014-10-20 2015-01-28 北京齐尔布莱特科技有限公司 Target picture identifying device and method for and computing device
CN105335292A (en) * 2015-11-12 2016-02-17 广州华多网络科技有限公司 Application compatibility testing method and system
CN106161134A (en) * 2015-04-21 2016-11-23 腾讯科技(深圳)有限公司 Mobile terminal automation testing method, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541700A (en) * 2010-12-16 2012-07-04 卓望数码技术(深圳)有限公司 Terminal test method, test device and terminal agency
CN104318259A (en) * 2014-10-20 2015-01-28 北京齐尔布莱特科技有限公司 Target picture identifying device and method for and computing device
CN106161134A (en) * 2015-04-21 2016-11-23 腾讯科技(深圳)有限公司 Mobile terminal automation testing method, device and mobile terminal
CN105335292A (en) * 2015-11-12 2016-02-17 广州华多网络科技有限公司 Application compatibility testing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李京兵,韩宝如: "基于变换域的纹理防伪标签自动识别技术", 知识产权出版社, pages: 13 - 15 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347587A (en) * 2019-05-30 2019-10-18 平安银行股份有限公司 APP compatibility test method, device, computer equipment and storage medium
CN110347587B (en) * 2019-05-30 2023-08-22 平安银行股份有限公司 APP compatibility testing method and device, computer equipment and storage medium
CN112199268A (en) * 2019-07-08 2021-01-08 中移互联网有限公司 Software compatibility testing method and electronic equipment
CN112199268B (en) * 2019-07-08 2023-08-15 中移互联网有限公司 Software compatibility testing method and electronic equipment
CN110716778A (en) * 2019-09-10 2020-01-21 阿里巴巴集团控股有限公司 Application compatibility testing method, device and system
CN110716778B (en) * 2019-09-10 2023-09-26 创新先进技术有限公司 Application compatibility testing method, device and system
CN110674039A (en) * 2019-09-20 2020-01-10 广州虎牙科技有限公司 Multi-device synchronous testing method and device, server and storage medium
CN110704321A (en) * 2019-09-27 2020-01-17 京东数字科技控股有限公司 Program debugging method and device
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost
CN113076243B (en) * 2021-03-26 2024-05-17 成都安恒信息技术有限公司 Method for optimizing automatic testing cost of image recognition
CN113506291A (en) * 2021-07-29 2021-10-15 上海幻电信息科技有限公司 Compatibility testing method and device
CN113506291B (en) * 2021-07-29 2024-03-26 上海幻电信息科技有限公司 Compatibility testing method and device

Similar Documents

Publication Publication Date Title
CN109408362A (en) Application compatibility test method, device, system and storage medium
US20190073181A1 (en) Verification of shared display integrity in a desktop sharing system
Mayer et al. Exposing fake images with forensic similarity graphs
CN107515826A (en) Test case accurate recommendation method, device, system, equipment and storage medium
CN109857652A (en) A kind of automated testing method of user interface, terminal device and medium
US10726254B2 (en) Dynamic duplicate detection
CN111898538B (en) Certificate authentication method and device, electronic equipment and storage medium
CN111309618B (en) Page element positioning method, page testing method and related devices
CN112966583A (en) Image processing method, image processing device, computer equipment and storage medium
CN109977832B (en) Image processing method, device and storage medium
CN109784243B (en) Identity determination method and device, neural network training method and device, and medium
CN112949767A (en) Sample image increment, image detection model training and image detection method
US20220392101A1 (en) Training method, method of detecting target image, electronic device and medium
WO2023273017A1 (en) Method for identifying clarity of well logging image, apparatus, medium, and electronic device
CN115567736A (en) Video content detection method, device, equipment and storage medium
CN114238150A (en) Program code variation testing method and device
CN109064464A (en) Method and apparatus for detecting battery pole piece burr
CN113420295A (en) Malicious software detection method and device
CN113034393A (en) Photo repairing method, device, equipment and storage medium
WO2021223104A1 (en) System testing method and apparatus
CN106709335A (en) Vulnerability detection method and apparatus
CN109886864A (en) Privacy covers processing method and processing device
US20220327450A1 (en) Method for increasing or decreasing number of workers and inspectors in crowdsourcing-based project for creating artificial intelligence learning data
CN111325185B (en) Face fraud prevention method and system
CN110427891B (en) Method, apparatus, system and medium for identifying contract

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