CN106294161A - The interface function method of testing of a kind of application and device - Google Patents

The interface function method of testing of a kind of application and device Download PDF

Info

Publication number
CN106294161A
CN106294161A CN201610663639.7A CN201610663639A CN106294161A CN 106294161 A CN106294161 A CN 106294161A CN 201610663639 A CN201610663639 A CN 201610663639A CN 106294161 A CN106294161 A CN 106294161A
Authority
CN
China
Prior art keywords
application
object information
result
test
interface
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
CN201610663639.7A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610663639.7A priority Critical patent/CN106294161A/en
Publication of CN106294161A publication Critical patent/CN106294161A/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

Abstract

Embodiments providing interface function method of testing and the device of a kind of application, the method includes: install the first preset application and the preset second application;Call default test case respectively described first application and described second application to be tested;The interface of described first application and described second application display test result is carried out sectional drawing, it is thus achieved that the first result interface image and the second result interface image;In described first result interface image and described second result interface image, the first object information and the second object information is extracted respectively according to the identification condition specified;Relatively described first object information and described second object information, it is thus achieved that interface function test result.The embodiment of the present invention can test the function of application automatically, can carry out test dispatching by the way of script, it is to avoid technical staff manually operates, and substantially increases the simplicity of test, reduces the time-consuming of test.

Description

The interface function method of testing of a kind of application and device
Technical field
The present invention relates to the technical field of test, the interface function method of testing and the one that particularly relate to a kind of application should Interface function test device.
Background technology
In application life cycles, when application is modified, it usually needs retest the existing function of application, To determine whether the amendment of application has reached intended purpose, check whether the amendment of application compromises original normal merit Energy.
Especially for the interface of application, its user oriented, the functional requirement of application is more accurate.
In the progressive application and development with iteratively faster, issuing continuously of redaction application makes to test the more frequency carried out Numerous.
At present, in order to test the function of application, technical staff is typically to formulate expection for certain function in advance As a result, call this function when test, to test whether its actual result meets expected results, test loaded down with trivial details, the longest.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on State the interface function method of testing of a kind of application of problem and the interface function test device of corresponding a kind of application.
According to one aspect of the present invention, it is provided that the interface function method of testing of a kind of application, including:
The first preset application and the preset second application are installed;
Call default test case respectively described first application and described second application to be tested;
The interface of described first application and described second application display test result is carried out sectional drawing, it is thus achieved that the first result circle Face image and the second result interface image;
According to the identification condition specified difference in described first result interface image and described second result interface image Extract the first object information and the second object information;
Relatively described first object information and described second object information, it is thus achieved that interface function test result.
Alternatively, described first application and described second application belong to same intended application, the version of described first application Different from the version of described second application.
Alternatively, described intended application is the application of supporting wearable device.
Alternatively, described installation is preset the first application and the step of the preset second application include:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
Alternatively, call default test case described in respectively described first application and described second application to be tested Step include:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
Alternatively, the described interface to described first application with described second application display test result carries out sectional drawing, obtains The step obtaining the first result interface image and the second result interface image includes:
When described first applies and processes, based on described wearing data, the first test result obtained in the first interface display, Described first interface is carried out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and shows and process, based on described wearing data, the second test result obtained at second contact surface, Described second contact surface is carried out sectional drawing, it is thus achieved that the second result interface image.
Alternatively, described according to the identification condition specified at described first result interface image and described second result interface The step extracting the first object information and the second object information in image respectively includes:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
Alternatively, described first object information of described comparison and described second object information, it is thus achieved that functional test results Step includes:
When described first object information is identical with described second object information, determine described in described first application processes The function of the first object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information differs with described second object information, determine in described first application and process institute State that to process the function of described second object information in the function of the first object information and described second application inconsistent.
According to a further aspect in the invention, it is provided that the interface function of a kind of application test device, including:
Module is installed in application, is suitable to install the first preset application and the preset second application;
Application test module, be suitable to call default test case respectively described first application and described second are applied into Row test;
Interface screen capture module, is suitable to carry out cutting to the interface of described first application and described second application display test result Figure, it is thus achieved that the first result interface image and the second result interface image;
Object information extraction module, is suitable to according to the identification condition specified at described first result interface image and described Two result interface images extract the first object information and the second object information respectively;
Object information comparison module, is suitable to the first object information described in comparison and described second object information, it is thus achieved that interface Functional test results.
Alternatively, described first application and described second application belong to same intended application, the version of described first application Different from the version of described second application.
Alternatively, described intended application is the application of supporting wearable device.
Alternatively, described application installation module is further adapted for:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
Alternatively, described application test module is further adapted for:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
Alternatively, described interface screen capture module is further adapted for:
When described first applies and processes, based on described wearing data, the first test result obtained in the first interface display, Described first interface is carried out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and shows and process, based on described wearing data, the second test result obtained at second contact surface, Described second contact surface is carried out sectional drawing, it is thus achieved that the second result interface image.
Alternatively, described object information extraction module is further adapted for:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
Alternatively, described object information comparison module is further adapted for:
When described first object information is identical with described second object information, determine described in described first application processes The function of the first object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information differs with described second object information, determine in described first application and process institute State that to process the function of described second object information in the function of the first object information and described second application inconsistent.
The embodiment of the present invention is called test case and is tested the first application and the second application respectively, to its display test The interface of result carries out sectional drawing, it is thus achieved that the first result interface image and the second result interface image, according to the identification condition specified In the first result interface image and the second result interface image, extract the first object information and the second object information respectively, go forward side by side Row compares, it is thus achieved that interface function test result, and under many circumstances, data process method, interface are the Core Feature of application, repair The frequency changed is relatively low, by the comparison of information in interface, it is judged that the function of application to be tested whether with as reference should Function whether consistent, can automatically test the function of application, test dispatching can be carried out by the way of script, it is to avoid Technical staff manually operates, and substantially increases the simplicity of test, reduces the time-consuming of test.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the steps flow chart of the interface function method of testing of a kind of application Figure;
Fig. 2 shows the exemplary plot of a kind of application interface;And
Fig. 3 shows the structured flowchart of the interface function test device of a kind of application.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
With reference to Fig. 1, it is shown that the step of the interface function method of testing of a kind of application Flow chart, specifically may include steps of:
Step 101, installs the first preset application and the preset second application.
In the embodiment of the present application, a script can be installed in a target terminal (such as PC, server etc.), should Script is used for scheduling tests.
This target terminal can pass through the wired modes such as USB (Universal Serial Bus, USB (universal serial bus)) even Connect one or more test terminal (such as the mobile terminal such as mobile phone, panel computer), this test terminal performs script scheduling Test.
Certainly, target terminal can also pass through the one or more tests of wireless mode connection such as Wi-Fi (Wireless Fidelity) eventually End, this is not any limitation as by the embodiment of the present invention.
Target terminal can be dispatched by script, and installing preset the first application and preset second in test terminal should With.
Wherein, the first application and the second application belong to same intended application.
Such as, intended application can be the application of supporting wearable device (such as bracelet), supporting wearable device (such as bracelet) Application generally connects wearable device (such as bracelet) for a long time, can connect wearable device (such as hands by wireless modes such as bluetooths Ring), obtain the data of wearable device (such as bracelet), can carry out checking quantity of motion, monitoring is walked, run, sleep etc. operates.
In embodiments of the present invention, the version of the first application and the version of the second application are different.
In oneainstance, the first application belongs to identical platform with the second application, such as Android (Android), IOS etc., One of which is redaction (i.e. version is higher), and another one is legacy version (i.e. version is older), owing to legacy version is general the most Testing, function is relatively stable, can be as the reference of test redaction function.
In another scenario, the first application belongs to different platform with the second application, such as Android (Android), IOS, its The version that middle one has generally been tested the most, function is relatively stable, can be as the reference of test another one function.
In implementing, the test terminal that target terminal can be connected by script detection, and obtain these tests eventually The end message of end, such as title, model etc..
The first preset application and the preset second application is read from the path (such as the catalogue at script place) specified, will First application and the second application send and install to test terminal.
It should be noted that intended application preset in the path specified and environmental applications refer to intended application and environment The installation package file of application, such as APK (AndroidPackage, Android installation kit).
Under normal circumstances, the first application and the second application are arranged in same test terminal, it is ensured that test environment phase With, improve the accuracy of test.
Certainly, belonging to when different platform in the first application and the second application, the first application and the second application also may be used To be arranged in different test terminals, this is not any limitation as by the embodiment of the present invention.
In installation process, when the application of test terminal installation targets and/or environmental applications, target can be reinstalled Application and/or environmental applications.
Step 102, calls default test case and tests described first application and described second application respectively.
In embodiments of the present invention, target terminal can call identical test case by script, to first application and Second applications similar or identical function are tested.
Can be called default using the application that intended application is supporting wearable device by script as example, target terminal Test case, obtains wearing data by the first application to preset wearable device.
And, call this test case, obtain wearing data by the second application to this wearable device.
Certainly, above-mentioned test case is intended only as example, when implementing the embodiment of the present invention, can set according to practical situation Putting other test cases, this is not any limitation as by the embodiment of the present invention.It addition, in addition to above-mentioned test case, art technology Personnel can also use other test case according to actual needs, and this is not any limitation as by the embodiment of the present invention.
Step 103, carries out sectional drawing to the interface of described first application and described second application display test result, it is thus achieved that the One result interface image and the second result interface image.
In embodiments of the present invention, when testing, the first application is carried out with the second applications similar or identical function Process (such as form conversion, data statistics etc.), test result is shown on interface.
Target terminal can carry out sectional drawing by script to the interface of the first application display test result, it is thus achieved that the first result Interface image, carries out sectional drawing to the interface of the second application display test result, it is thus achieved that the second result interface image.
Using application that intended application is supporting wearable device as example, when first applies in the first interface display based on wearing When wearing the first test result that data process acquisition, target terminal can carry out sectional drawing by script to the first interface, it is thus achieved that the One result interface image.
As a example by android system, target terminal can call an interface of lua by script, Assist.takephoto, intercepts current screen.
When second applies and shows and process, based on wearing data, the second test result obtained at second contact surface, target terminal By script, second contact surface can be carried out sectional drawing, it is thus achieved that the second result interface image.
It should be noted that be when mobile phone, panel computer at target terminal, as in figure 2 it is shown, going up most at interface Side generally there are such as time, electricity, network etc. and applies unrelated information, certainly, also likely to be present other elsewhere The information unrelated with application.
These there may be interference with the unrelated information of application, therefore, it can to delete in sectional drawing these reality of display with Apply the region of unrelated information, retain the region of the display information relevant to application, or, can will should be displayed in full screen, Carry out sectional drawing again, etc., exclusive PCR.
Step 104, according to the identification condition specified at described first result interface image and described second result surface chart The first object information and the second object information is extracted respectively in Xiang.
In embodiments of the present invention, target terminal can pass through script according to the identification condition specified at the first result interface Image extracts the first object information, and, in the second result interface image, extract respectively according to the identification condition specified Two object informations.
Using application that intended application is supporting wearable device as example, the data monitored due to wearable device mostly with Digital correlation, such as step number, the length of one's sleep etc., therefore, target terminal can pass through script applications image zooming-out technology, first Result interface image identifies the first numeral, according to default sortord (as from left to right, from top to bottom) to the first numeral It is ranked up, it is thus achieved that the first object information.
And, in the second result interface image identify second numeral, according to this sortord (as from left to right, from upper Under to) the second numeral is ranked up, it is thus achieved that the second object information.
As in figure 2 it is shown, the object information that the numeric sorting extracted becomes is 76125750005657066.
In the example of an image zooming-out technology, it is possible to use MATLAB image procossing extracts numeral, neutral net is known Not numeral, typically may include steps of:
1, known digital picture is carried out edge extracting.
Mainly use the correlation function of MATLAB image processing toolbox, such as: binaryzation, image are split.It is partitioned into The image come represents with a two-dimensional matrix.
2, training neutral net, the image split as input, its corresponding numeral is as output.
Two-dimensional matrix is converted into one-dimensional matrix, and such as, the image split is 16*16, then neutral net defeated Entering is exactly 256 numerals, corresponding output only one of which numeral, represents with 00 000000001 such as 0, numeral 1 With 00000000010, by that analogy, numeral 9 is with 01000000000, and letter x is with 1000 0000000 represent.
3, for view data (such as the first result interface image and the second result interface image) to be identified, can first carry Take edge, the neutral net that input has trained, be identified.
Certainly, above-mentioned identification condition is intended only as example, when implementing the embodiment of the present invention, can set according to practical situation Put other identification conditions, such as, at the region recognition Chinese character specified, etc., this is not any limitation as by the embodiment of the present invention.Separately Outward, in addition to above-mentioned identification condition, those skilled in the art can also use other identification condition, the present invention according to actual needs This is not any limitation as by embodiment.
Step 105, relatively described first object information and described second object information, it is thus achieved that interface function test result.
In embodiments of the present invention, target terminal can compare the first object information and the second object information by script, The most consistent with the function of the second application to determine the function of the first application.
Specifically, the test case that the embodiment of the present invention is applied first, the second application call is identical is tested, warp First application processes and obtains the first test result, processes acquisition the second test result through the second application, by identical identification bar Part extracts the first object information from the first test result, extracts the second object information from the second test result.
When the first object information and the second object information are identical, determine the merit processing the first object information in the first application Energy (dressing data, based on dressing data process acquisition the first test result, showing the first test result etc. as obtained) is with second Application processes the second object information function (as obtain dress data, based on dress data process obtain the second test result, Show the second test result etc.) consistent.
When the first object information and the second object information differ, determine and the first application processes the first object information Function (as obtain dress data, based on dress data process obtain the first test result, show the first test result etc.) with the Two application in process the second object information function (as obtain dress data, based on dress data process obtain second test knot Really, the second test result etc. is shown) inconsistent.
It should be noted that function is whether consistent, refer to that data process method is the most consistent, be not necessarily referring to whether phase With, in some cases, application interface is it may happen that change, there are differences, as used different font, color display digit Deng, but, these changes, difference have no effect on the extraction of object information.
The embodiment of the present invention is called test case and is tested the first application and the second application respectively, to its display test The interface of result carries out sectional drawing, it is thus achieved that the first result interface image and the second result interface image, according to the identification condition specified In the first result interface image and the second result interface image, extract the first object information and the second object information respectively, go forward side by side Row compares, it is thus achieved that interface function test result, and under many circumstances, data process method, interface are the Core Feature of application, repair The frequency changed is relatively low, by the comparison of information in interface, it is judged that the function of application to be tested whether with as reference should Function whether consistent, can automatically test the function of application, test dispatching can be carried out by the way of script, it is to avoid Technical staff manually operates, and substantially increases the simplicity of test, reduces the time-consuming of test.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but this area Technical staff should know, the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should know, description Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 3, it is shown that the structure of the interface function test device of a kind of application Block diagram, specifically can include such as lower module:
Module 301 is installed in application, is suitable to install the first preset application and the preset second application;
Application test module 302, being suitable to call default test case respectively should to described first application and described second With testing;
Interface screen capture module 303, is suitable to enter the interface of described first application and described second application display test result Row sectional drawing, it is thus achieved that the first result interface image and the second result interface image;
Object information extraction module 304, is suitable to according to the identification condition specified in described first result interface image and institute State and the second result interface image extracts the first object information and the second object information respectively;
Object information comparison module 305, is suitable to the first object information described in comparison and described second object information, it is thus achieved that boundary Surface function test result.
In implementing, described first application and described second application belong to same intended application, described first application Version from described second application version different.
In an example of the embodiment of the present invention, described intended application is the application of supporting wearable device.
In one embodiment of the invention, described application installation module 301 can be adapted to:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
In an example of the embodiment of the present invention, described application test module 302 can be adapted to:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
In an example of the embodiment of the present invention, described interface screen capture module 303 can be adapted to:
When described first applies and processes, based on described wearing data, the first test result obtained in the first interface display, Described first interface is carried out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and shows and process, based on described wearing data, the second test result obtained at second contact surface, Described second contact surface is carried out sectional drawing, it is thus achieved that the second result interface image.
In an example of the embodiment of the present invention, described object information extraction module 304 can be adapted to:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
In one embodiment of the invention, described object information comparison module 305 can be adapted to:
When described first object information is identical with described second object information, determine described in described first application processes The function of the first object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information differs with described second object information, determine in described first application and process institute State that to process the function of described second object information in the function of the first object information and described second application inconsistent.
For device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant Part sees the part of embodiment of the method and illustrates.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize the interface function test equipment of application according to embodiments of the present invention In the some or all functions of some or all parts.The present invention is also implemented as performing as described herein Part or all equipment of method or device program (such as, computer program and computer program).So The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape Formula provides.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.
The embodiment of the invention discloses the interface function method of testing of A1, a kind of application, including:
The first preset application and the preset second application are installed;
Call default test case respectively described first application and described second application to be tested;
The interface of described first application and described second application display test result is carried out sectional drawing, it is thus achieved that the first result circle Face image and the second result interface image;
According to the identification condition specified difference in described first result interface image and described second result interface image Extract the first object information and the second object information;
Relatively described first object information and described second object information, it is thus achieved that interface function test result.
A2, method as described in A1, described first application and described second application belong to same intended application, and described first The version of application is different from the version of described second application.
A3, method as described in A2, described intended application is the application of supporting wearable device.
A4, method as described in A1 or A2 or A3, the first application that described installation is preset and the step of the preset second application Suddenly include:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
A5, method as described in A1 or A2 or A3, described in call default test case respectively to described first application and The step that described second application carries out testing includes:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
A6, method as described in A5, described to described first application with the interface of described second application display test result Carry out sectional drawing, it is thus achieved that the step of the first result interface image and the second result interface image includes:
When described first applies and processes, based on described wearing data, the first test result obtained in the first interface display, Described first interface is carried out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and shows and process, based on described wearing data, the second test result obtained at second contact surface, Described second contact surface is carried out sectional drawing, it is thus achieved that the second result interface image.
A7, method as described in A1 or A2 or A3 or A6, described according to the identification condition specified in described first result circle The step extracting the first object information and the second object information in face image and described second result interface image respectively includes:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
A8, method as described in A1 or A2 or A3 or A6, described first object information of described comparison and described second result Information, it is thus achieved that the step of functional test results includes:
When described first object information is identical with described second object information, determine described in described first application processes The function of the first object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information differs with described second object information, determine in described first application and process institute State that to process the function of described second object information in the function of the first object information and described second application inconsistent.
The embodiment of the invention also discloses the interface function test device of B9, a kind of application, including:
Module is installed in application, is suitable to install the first preset application and the preset second application;
Application test module, be suitable to call default test case respectively described first application and described second are applied into Row test;
Interface screen capture module, is suitable to carry out cutting to the interface of described first application and described second application display test result Figure, it is thus achieved that the first result interface image and the second result interface image;
Object information extraction module, is suitable to according to the identification condition specified at described first result interface image and described Two result interface images extract the first object information and the second object information respectively;
Object information comparison module, is suitable to the first object information described in comparison and described second object information, it is thus achieved that interface Functional test results.
B10, device as described in B9, described first application and described second application belong to same intended application, and described the The version of one application is different from the version of described second application.
B11, device as described in B10, described intended application is the application of supporting wearable device.
B12, device as described in B9 or B10 or B11, described application installs module and is further adapted for:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
B13, device as described in B9 or B10 or B11, described application test module is further adapted for:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
B14, device as described in B13, described interface screen capture module is further adapted for:
When described first applies and processes, based on described wearing data, the first test result obtained in the first interface display, Described first interface is carried out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and shows and process, based on described wearing data, the second test result obtained at second contact surface, Described second contact surface is carried out sectional drawing, it is thus achieved that the second result interface image.
B15, device as described in B9 or B10 or B11 or B14, described object information extraction module is further adapted for:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
B16, device as described in B9 or B10 or B11 or B14, described object information comparison module is further adapted for:
When described first object information is identical with described second object information, determine described in described first application processes The function of the first object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information differs with described second object information, determine in described first application and process institute State that to process the function of described second object information in the function of the first object information and described second application inconsistent.

Claims (10)

1. an interface function method of testing for application, including:
The first preset application and the preset second application are installed;
Call default test case respectively described first application and described second application to be tested;
The interface of described first application and described second application display test result is carried out sectional drawing, it is thus achieved that the first result surface chart Picture and the second result interface image;
Extract respectively in described first result interface image and described second result interface image according to the identification condition specified First object information and the second object information;
Relatively described first object information and described second object information, it is thus achieved that interface function test result.
2. the method for claim 1, it is characterised in that described first application and described second application belong to same target Application, the version of described first application is different from the version of described second application.
3. method as claimed in claim 2, it is characterised in that described intended application is the application of supporting wearable device.
4. the method as described in claim 1 or 2 or 3, it is characterised in that the first application that described installation is preset and preset the The step of two application includes:
The test terminal that detection connects;
The first preset application and the preset second application is read from the path specified;
Described first application and described second application are sent and install to described test terminal.
5. the method as described in claim 1 or 2 or 3, it is characterised in that described in call default test case respectively to described The step that first application and described second application carry out testing includes:
Call default test case, obtain wearing data by described first application to preset wearable device;
Call described test case, obtain wearing data by described second application to described wearable device.
6. method as claimed in claim 5, it is characterised in that described show described first application and described second application surveys The interface of test result carries out sectional drawing, it is thus achieved that the step of the first result interface image and the second result interface image includes:
When described first applies and process, based on described wearing data, the first test result obtained in the first interface display, to institute State the first interface and carry out sectional drawing, it is thus achieved that the first result interface image;
When described second applies and show and process, based on described wearing data, the second test result obtained at second contact surface, to institute State second contact surface and carry out sectional drawing, it is thus achieved that the second result interface image.
7. the method as described in claim 1 or 2 or 3 or 6, it is characterised in that described according to the identification condition specified described First result interface image and described second result interface image extract the first object information and the second object information respectively Step includes:
The first numeral is identified in described first result interface image;
According to default sortord, described first numeral is ranked up, it is thus achieved that the first object information;
The second numeral is identified in described second result interface image;
According to described sortord, described second numeral is ranked up, it is thus achieved that the second object information.
8. the method as described in claim 1 or 2 or 3 or 6, it is characterised in that described first object information of described comparison and institute State the second object information, it is thus achieved that the step of functional test results includes:
When described first object information is identical with described second object information, determines in described first application and process described first The function of object information is consistent with the function processing described second object information in described second application;
Or,
When described first object information and described second object information differ, determine and described first application processes described the The function of one object information processes described second object information with described second function in applying is inconsistent.
9. an interface function test device for application, including:
Module is installed in application, is suitable to install the first preset application and the preset second application;
Application test module, is suitable to call default test case and surveys described first application and described second application respectively Examination;
Interface screen capture module, is suitable to the interface of described first application and described second application display test result is carried out sectional drawing, Obtain the first result interface image and the second result interface image;
Object information extraction module, is suitable to according to the identification condition specified at described first result interface image and described second knot Interface image really extracts the first object information and the second object information respectively;
Object information comparison module, is suitable to the first object information described in comparison and described second object information, it is thus achieved that interface function Test result.
10. device as claimed in claim 9, it is characterised in that described first application and described second application belong to same mesh Mark application, the version of described first application is different from the version of described second application.
CN201610663639.7A 2016-08-12 2016-08-12 The interface function method of testing of a kind of application and device Pending CN106294161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610663639.7A CN106294161A (en) 2016-08-12 2016-08-12 The interface function method of testing of a kind of application and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610663639.7A CN106294161A (en) 2016-08-12 2016-08-12 The interface function method of testing of a kind of application and device

Publications (1)

Publication Number Publication Date
CN106294161A true CN106294161A (en) 2017-01-04

Family

ID=57669865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610663639.7A Pending CN106294161A (en) 2016-08-12 2016-08-12 The interface function method of testing of a kind of application and device

Country Status (1)

Country Link
CN (1) CN106294161A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170606A (en) * 2018-01-03 2018-06-15 中国工商银行股份有限公司 The test system and method for system software upgrading class application
CN109656820A (en) * 2018-12-10 2019-04-19 中国铁道科学研究院集团有限公司通信信号研究所 Intelligent automation test macro based on CBTC
CN109918288A (en) * 2019-01-16 2019-06-21 北京互金新融科技有限公司 Use-case test method and device
CN111008145A (en) * 2019-12-19 2020-04-14 中国银行股份有限公司 Test information acquisition method and device
USD918654S1 (en) 2019-06-06 2021-05-11 Sharkninja Operating Llc Grill plate
CN113965540A (en) * 2019-04-30 2022-01-21 创新先进技术有限公司 Information sharing method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN103139010A (en) * 2012-11-13 2013-06-05 深圳中兴网信科技有限公司 Terminal and testing server and testing method
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system
KR20140059600A (en) * 2012-11-08 2014-05-16 경북대학교 산학협력단 Gui test apparatus using test scenario model based on states and the method thereof
CN104536888A (en) * 2014-12-24 2015-04-22 网易(杭州)网络有限公司 Game testing method and system for mobile devices
CN104978270A (en) * 2015-07-03 2015-10-14 上海触乐信息科技有限公司 Automatic software testing method and apparatus
CN105095083A (en) * 2015-08-24 2015-11-25 上海斐讯数据通信技术有限公司 Mobile phone interface screenshot test method and device used in Android system
CN105808416A (en) * 2014-12-27 2016-07-27 南车株洲电力机车研究所有限公司 An automatic test method and system for man-machine graphic interaction interfaces

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140059600A (en) * 2012-11-08 2014-05-16 경북대학교 산학협력단 Gui test apparatus using test scenario model based on states and the method thereof
CN103139010A (en) * 2012-11-13 2013-06-05 深圳中兴网信科技有限公司 Terminal and testing server and testing method
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system
CN104536888A (en) * 2014-12-24 2015-04-22 网易(杭州)网络有限公司 Game testing method and system for mobile devices
CN105808416A (en) * 2014-12-27 2016-07-27 南车株洲电力机车研究所有限公司 An automatic test method and system for man-machine graphic interaction interfaces
CN104978270A (en) * 2015-07-03 2015-10-14 上海触乐信息科技有限公司 Automatic software testing method and apparatus
CN105095083A (en) * 2015-08-24 2015-11-25 上海斐讯数据通信技术有限公司 Mobile phone interface screenshot test method and device used in Android system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170606A (en) * 2018-01-03 2018-06-15 中国工商银行股份有限公司 The test system and method for system software upgrading class application
CN108170606B (en) * 2018-01-03 2022-02-15 中国工商银行股份有限公司 System and method for testing system software upgrading application
CN109656820A (en) * 2018-12-10 2019-04-19 中国铁道科学研究院集团有限公司通信信号研究所 Intelligent automation test macro based on CBTC
CN109656820B (en) * 2018-12-10 2022-02-22 中国铁道科学研究院集团有限公司通信信号研究所 Intelligent automatic test system based on CBTC
CN109918288A (en) * 2019-01-16 2019-06-21 北京互金新融科技有限公司 Use-case test method and device
CN113965540A (en) * 2019-04-30 2022-01-21 创新先进技术有限公司 Information sharing method, device and equipment
CN113965540B (en) * 2019-04-30 2023-03-21 创新先进技术有限公司 Information sharing method, device and equipment
USD918654S1 (en) 2019-06-06 2021-05-11 Sharkninja Operating Llc Grill plate
CN111008145A (en) * 2019-12-19 2020-04-14 中国银行股份有限公司 Test information acquisition method and device
CN111008145B (en) * 2019-12-19 2023-09-22 中国银行股份有限公司 Test information acquisition method and device

Similar Documents

Publication Publication Date Title
CN106294161A (en) The interface function method of testing of a kind of application and device
CN110347587B (en) APP compatibility testing method and device, computer equipment and storage medium
US10565097B2 (en) Orchestrating and providing a regression test
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
CN105653056B (en) The test method and device of input method
CN103632100B (en) A kind of website vulnerability detection method and device
CN106326120B (en) Regression testing method and device for application software and electronic equipment
CN102722440B (en) A kind of debugging apparatus of embedded system executable code, adjustment method and embedded system
US10810113B2 (en) Method and apparatus for creating reference images for an automated test of software with a graphical user interface
KR20140038381A (en) Systems and methods for testing content of mobile communication devices
CN109783351A (en) Interface detection method, apparatus and computer readable storage medium
US20170344449A1 (en) Testing method of electronic devices
CN103823758A (en) Browser testing method and device
CN108595343A (en) The test method and device of application program
CN106776327A (en) A kind of application program regression testing method and device
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
Park et al. Fragmentation problem in Android
CN106126197A (en) Make the method and device of the mobile terminal application page and PC end application page synchronization
CN105183658A (en) Software code testing method and device
CN104915297A (en) APP electricity consumption automatic test method for android device
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN114880238A (en) Mobile terminal interface testing method, device, equipment and storage medium
CN113535567B (en) Software testing method, device, equipment and medium
CN111104123A (en) Automatic deployment of applications
CN107783867B (en) Gesture testing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20170104