CN106294099A - A kind of method of testing and equipment - Google Patents

A kind of method of testing and equipment Download PDF

Info

Publication number
CN106294099A
CN106294099A CN201510250889.3A CN201510250889A CN106294099A CN 106294099 A CN106294099 A CN 106294099A CN 201510250889 A CN201510250889 A CN 201510250889A CN 106294099 A CN106294099 A CN 106294099A
Authority
CN
China
Prior art keywords
picture
target software
user interface
test
described target
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
CN201510250889.3A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510250889.3A priority Critical patent/CN106294099A/en
Publication of CN106294099A publication Critical patent/CN106294099A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to field of computer technology, particularly to a kind of method and apparatus automatically tested with test dispatching, low in order to solve UI automatization framework test efficiency comparison present in prior art, problem that stability is poor.The embodiment of the present application selects the picture mated with the user interface needing test in target software from least one picture being pre-configured with, and according to operation corresponding to picture selected, testing in described user interface, wherein said picture is the sectional drawing of the control in the user interface needing test.Owing to can be changed at attribute by images match mode orient control, the software page load when the situations such as time delay occur also will not orient control failure, thus improve UI automatization framework test efficiency and stability.

Description

A kind of method of testing and equipment
Technical field
The application relates to field of computer technology, particularly to a kind of method of testing and equipment.
Background technology
Due to developing rapidly of wireless side business, the quality of wireless side APP (Application, application) is protected Card work becomes particularly important, and the begin one's study UI automatization framework of wireless side of a lot of big companies reduces Manpower testing cost.
The purpose that UI (User interface, user interface) tests is to ensure that user interface can be right by test The function of elephant provides the user corresponding access or function of browse, it is ensured that user interface meets company or industry Standard.Tested by UI and examine the mutual of user and software.Aiming at of UI test guarantees to use Interface, family has provided a user with suitable access and has browsed the operation of test object functionality.In addition, UI surveys Examination it is also to be ensured that the object within UI function meets the expected requirements.
UI test specifically include the layout of the functional module of test user interface whether rationally, whole style whether Whether consistent and each control placement location meets client's use habit, it is often more important that operation to be met Convenient, navigation is easily understood, and in interface, word is the most correct, and whether name unifies, and the page is the most attractive in appearance, The combination of word, picture is the most perfect.
UI automatization framework test has the Sword framework that Alibaba develops the most on the market.Sword frame Frame is to carry out control location by the attribute of parsing software.If but attribute change there will be, software The page loads the situations such as time delay to be occurred, can cause the attribute that cannot navigate to need test, at this moment be accomplished by people Work positions, thus reduces the efficiency of UI automatic test.
In sum, current UI automatization framework test efficiency comparison is low, and stability is poor.
Summary of the invention
The embodiment of the present application provides a kind of method of testing and equipment, in order to solve UI present in prior art Automatization's framework test efficiency comparison is low, the problem that stability is poor.
On the one hand, a kind of method of testing that the embodiment of the present application provides, the method includes:
From at least one picture being pre-configured with, select and target software need the user interface of test The picture joined, wherein said picture is the sectional drawing of the control in the user interface needing test;
Determine the operation that the picture of selection is corresponding, and according to the operation determined, described user interface is carried out Test.
Owing to can be changed at attribute by images match mode orient control, the software page loads and prolongs Time etc. situation when occurring also will not orient control failure, thus improve UI automatization framework test efficiency with And stability.
Optionally, determine the operation that the picture of selection is corresponding, including:
According to picture set in advance and the corresponding relation of operation, determine the operation that the picture of selection is corresponding.
Owing to can determine that the picture of selection is corresponding according to picture set in advance and the corresponding relation of operation Operation such that it is able to accurately determine the operation that the picture of selection is corresponding.
Optionally, select from least one picture being pre-configured with and target software needs the user tested Before the picture of interphase match, also include:
Determine that described target software runs on the equipment supporting described target software.
Owing to, after determining that described target software runs on the equipment supporting described target software, carrying out picture Coupling, thus add the application scenarios of test.
Optionally, select from least one picture being pre-configured with and target software needs the user tested Before the picture of interphase match, also include:
If it is determined that described target software needs to run in the simulator supporting described target software, from supporting institute State and the simulator of target software runs described target software.
Owing to determining that described target software needs in the simulator supporting described target software after operation, energy Enough from the simulator supporting described target software, run described target software, it is not necessary to run manually, Thus add the efficiency of test.
Optionally, before running described target software from the simulator supporting described target software, also include:
Determine the store path of the installation procedure of described target software;
According to the described store path determined, described simulator runs described installation procedure described mesh is installed Mark software.
Owing to can automatically install described target software, thus add the efficiency of test.
Optionally, select from least one picture being pre-configured with and target software needs the user tested Before the picture of interphase match, also include:
After receiving the reading instruction controlling server transmission, download from code server and survey with needs The code information corresponding to user interface of examination, in order to automatically to test.
On the other hand, a kind of test equipment that the embodiment of the present application provides, this equipment includes:
Select module, for selecting from least one picture being pre-configured with and target software needing test User interface coupling picture, wherein said picture be need test user interface in control cut Figure;
Processing module, for determining the operation that the picture of selection is corresponding, and according to the operation determined, described Test in user interface.
Optionally, described processing module specifically for:
When the operation that the picture determining selection is corresponding, according to picture set in advance and the corresponding pass of operation System, determines the operation that the picture of selection is corresponding.
Optionally, described selection module is additionally operable to:
After determining that described target software runs on the equipment supporting described target software, from be pre-configured with At least one picture selects the picture mated with the user interface needing test in target software.
Optionally, described selection module is additionally operable to:
From at least one picture being pre-configured with, select and target software need the user interface of test Before the picture joined, however, it is determined that described target software needs to transport in the simulator supporting described target software OK, from the simulator supporting described target software, described target software is run.
Optionally, described selection module is additionally operable to:
Determine the store path of the installation procedure of described target software;According to the described store path determined, Described simulator runs described installation procedure described target software is installed;From the mould supporting described target software Intend device runs described target software.
Optionally, described equipment also includes:
Control module, for receive control server send reading instruction after, from code server under Carry the code information that the user interface carrying out testing with needs is corresponding, and control according to described code information described Module and described processing module is selected to test.
Accompanying drawing explanation
Fig. 1 is the embodiment of the present application method of testing schematic flow sheet;
Fig. 2 is the embodiment of the present application system framework schematic diagram;
Fig. 3 is the embodiment of the present application another kind method of testing schematic flow sheet;
Fig. 4 is that the embodiment of the present application tests device structure schematic diagram.
Detailed description of the invention
The embodiment of the present application selects to need test in target software from least one picture being pre-configured with The picture of user interface coupling, and according to operation corresponding to picture selected, enterprising in described user interface Row test, wherein said picture is the sectional drawing of the control in the user interface needing test.Owing to passing through Images match mode orient control, changes at attribute, the software page loads when the situation such as time delay occurs also Will not orient control failure, thus improve UI automatization framework test efficiency and stability.
Wherein, the target software of the embodiment of the present application can be the software supporting ios device;Can also be to prop up Hold the software of other equipment.
Below in conjunction with Figure of description, the embodiment of the present application is described in further detail.
As it is shown in figure 1, the embodiment of the present application method of testing includes:
Step 101, from least one picture being pre-configured with select with target software in need test use The picture of family interphase match, wherein said picture is the sectional drawing of the control in the user interface needing test;
Step 102, determine the operation that the picture of selection is corresponding, and according to the operation determined, described user Operate on interface.
The user interface needing test in target software is carried out sectional drawing, a user by the embodiment of the present application in advance Can there be a sectional drawing at interface, it is possibility to have multiple sectional drawings.Optionally, each sectional drawing at least includes one Control.
Such as user interface includes the control such as input frame, button, can cut a figure by input frame and button All include;Can also cut two figures respectively, one includes input frame, and one includes button.
When testing, owing to test environment is different, it is possible to target software needs supporting described target Run on the equipment of software;It is likely to need in described simulator, run described installation procedure and described mesh is installed Mark software.And different test environment subsequent processes is different.
Based on this, when carrying out ui testing, need to judge that described target software is the most described in support Run on the equipment of target software.
Whether objectives software runs on the equipment supporting described target software can be by manually joining in advance Put;Can also automatically detect.
In the equipment supporting described target software, run described target software under introducing separately below and propping up Hold the detailed process running described target software in the simulator of described target software.
Process one, support described target software equipment in run described target software.
If it is determined that run described target software in the equipment supporting described target software, can be directly from advance At least one picture first configured selects the picture mated with the user interface needing test in target software.
Illustrate with ios software, need user first to run ios software before testing, such as can use The equipment supporting described target software is projected on test equipment, the most just by the mode of Veency+realVNC It is that reality test equipment can control to support the ios software run on the equipment of described target software.Afterwards Just can perform the scheme of the embodiment of the present application.
It is of course also possible to transported from the equipment supporting described target software by the executive agent of the embodiment of the present application Row ios software.
When mating, if the resolution of the user interface of the resolution of the picture being pre-configured with and display Inconsistent, the rate that can reduce that the match is successful, so needing to ensure the resolution of picture that is pre-configured with and display The resolution of user interface keeps consistent.The resolution of the picture being such as pre-configured with if 1920*1080, Then needing the resolution ensureing the user interface of display is also 1920*1080.
Due to when carrying out sectional drawing before, it may be possible to operational objective in the equipment supporting described target software The sectional drawing carried out after software, it is also possible to run described target in the simulator supporting described target software soft The sectional drawing carried out after part.
If the sectional drawing carried out after operational objective software in the equipment supporting described target software, it is not necessary to adjust The resolution of the user interface of whole display;
If the sectional drawing carried out after running described target software in the simulator supporting described target software, need The resolution adjustment of the user interface of display is become consistent with the resolution of described simulator.
Adjustment mode can be by manually continuing adjustment, it is also possible to the config option automatically called in equipment is adjusted Whole.
Ensure the resolution of picture being pre-configured with keep with the resolution of the user interface of display consistent after, Can be carried out picture match.
Picture match is currently displaying user interface and each the picture being pre-configured with to be mated.Look for To the picture including currently displaying all or part of user interface.Concrete matching way has a variety of, such as May refer to current picture match mode, it would however also be possible to employ the mode of similar recognition of face.
Assume that currently displaying user interface has " sequence " button.Due to before can be by needs when sectional drawing Control in the page of test all carries out sectional drawing, comprises currently displaying so having one in sectional drawing before The picture of " sequence " button in user interface, this picture is found by the purpose of coupling exactly.
In force, the corresponding relation of picture and operation can be configured in advance, according to picture set in advance and behaviour The corresponding relation made, determines the operation that the picture of selection is corresponding.Owing to each picture can include at least one Control, and the operation difference that different controls is corresponding.Such as sequence control needs operation to be performed to be to select not Same ordering rule (such as exchange hand sequence, credit rating sequence etc.), and click on rank button;Search control Part needs operation to be performed to be to input search word in the search box, and clicks on search button.
Based on this, need the operation for different picture configuration correspondences, so after matching picture, just know Road carries out any operation in currently displaying user interface.
Operation corresponding to picture such as comprising search control is to input search word in the search box, and clicks on and search Rope button.After matching the picture comprising search control, determine that needs are in search according to above-mentioned corresponding relation Frame inputs search word, and clicks on search button, and input in the search box of currently displaying user interface Search word, and simulate click search button, thus realize the search control to currently displaying user interface Test.
Process two, support described target software simulator in run described target software.
For process two, a kind of mode is the artificial simulation that target software is installed to support described target software In device, and run.
In order to improve automatization's efficiency further, can manually be installed to target software support that described target is soft In the simulator of part, machine automatically run.
Concrete, after determining and running described target software in the simulator supporting described target software, from Support the simulator of described target software runs described target software.
Optionally, automatically run except machine, it is also possible to described target software is installed automatically by machine.
Concrete, determine after running described target software in the simulator supporting described target software, determine The store path of the installation procedure of described target software;According to the described store path determined, in described simulation Device runs described installation procedure described target software is installed, and from the simulator supporting described target software Run described target software.
Optionally, when installing described target software, software corresponding for described store path is extracted, And by the api interface provided inside Instruments Open Framework, described simulator runs described peace Dress program installs described target software.
From support described target software simulator run described target software after, from be pre-configured with to A few picture selects the picture mated with the user interface needing test in target software.
When mating, if the resolution of the user interface of the resolution of the picture being pre-configured with and display Inconsistent, the rate that can reduce that the match is successful, so needing to ensure the resolution of picture that is pre-configured with and display The resolution of user interface keeps consistent.The resolution of the picture being such as pre-configured with if 1920*1080, Then needing the resolution ensureing the user interface of display is also 1920*1080.
Due to when carrying out sectional drawing before, it may be possible to operational objective in the equipment supporting described target software The sectional drawing carried out after software, it is also possible to run described target in the simulator supporting described target software soft The sectional drawing carried out after part.
If the sectional drawing carried out after operational objective software in the simulator supporting described target software, it is not necessary to Adjust the resolution of the user interface of display;
If the sectional drawing carried out after running described target software in the equipment supporting described target software, need The resolution adjustment of the user interface of display is become consistent with the resolution of described simulator.
Adjustment mode can be by manually continuing adjustment, it is also possible to the config option automatically called in equipment is adjusted Whole.
Ensure the resolution of picture being pre-configured with keep with the resolution of the user interface of display consistent after, Can be carried out picture match.
Picture match is currently displaying user interface and each the picture being pre-configured with to be mated.Look for To the picture including currently displaying all or part of user interface.Concrete matching way has a variety of, such as May refer to current picture match mode, it would however also be possible to employ the mode of similar recognition of face.
Assume that currently displaying user interface has " sequence " button.Due to before can be by needs when sectional drawing Control in the page of test all carries out sectional drawing, comprises currently displaying so having one in sectional drawing before The picture of " sequence " button in user interface, this picture is found by the purpose of coupling exactly.
In force, the corresponding relation of picture and operation can be configured in advance, according to picture set in advance and behaviour The corresponding relation made, determines the operation that the picture of selection is corresponding.Owing to each picture can include at least one Control, and the operation difference that different controls is corresponding.Such as sequence control needs operation to be performed to be to select not Same ordering rule (such as exchange hand sequence, credit rating sequence etc.), and click on rank button;Search control Part needs operation to be performed to be to input search word in the search box, and clicks on search button.
Based on this, need the operation for different picture configuration correspondences, so after matching picture, just know Road carries out any operation in currently displaying user interface.
Operation corresponding to picture such as comprising search control is to input search word in the search box, and clicks on and search Rope button.After matching the picture comprising search control, determine that needs are in search according to above-mentioned corresponding relation Frame inputs search word, and clicks on search button, and input in the search box of currently displaying user interface Search word, and simulate click search button, thus realize the search control to currently displaying user interface Test.
Wherein, the embodiment of the present application additionally provides a kind of test system framework, as in figure 2 it is shown, this system frame Frame includes controlling server (i.e. jenkins server in figure), code server (i.e. SVN in figure) With at least one test equipment (i.e. Mac agent equipment in figure).
The executive agent of the method for above-mentioned Fig. 1 tests equipment exactly.
In force, manually storing in code server by the code performing test, test equipment is by reading Replace code and can be achieved with the process of Fig. 1.
Owing to the embodiment of the present application can support that multiple test equipment tests user interface simultaneously, it is desirable to have one Carry out the equipment of test dispatching.
Optionally, control server is after receiving test command, and the test equipment of notice current idle is tested User interface.
Optionally, the code address that test command includes needing testing device downloads code is corresponding;
Accordingly, test equipment is after receiving the reading instruction controlling server transmission, according to the code received Address downloads the code of correspondence from code server, and the code running download realizes test process.
Control server can in real time or the cycle checks whether available free test equipment (being i.e. completed), If it has, then continue the user interface of the test equipment test of notice current idle, until be there is a need to test User interface all complete test.
Based on said system framework, the embodiment of the present application also provides for a kind of method of test dispatching.
Technical scheme that an example introduction under the embodiment of the present application complete is set forth below.
As it is shown on figure 3, the embodiment of the present application four method of testing includes:
Step 301, control server determine the most available free test equipment.
The user interface that step 302, the test equipment of control server notice current idle are tested.
Step 303, test equipment are after receiving the reading instruction controlling server transmission, from code server Middle download with need to carry out the code information that the user interface tested is corresponding, and hold according to the code information downloaded Row subsequent step.
Step 304, test equipment judge whether target software runs on the equipment supporting described target software, If it is, perform step 305;Otherwise, step 307 is performed.
Step 305, test equipment select to need in target software from least one picture being pre-configured with The picture of the user interface coupling of test.
Step 306, test equipment determine the operation that the picture of selection is corresponding, and according to the operation determined, Test in described user interface, and after test completes, wait server to be controlled to send and read instruction.
Step 307, test equipment determine the store path of the installation procedure of described target software.
Step 308, test equipment, according to the described store path determined, run described in described simulator Installation procedure installs described target software.
Step 309, test equipment run described target software from the simulator supporting described target software.
Step 310, test equipment select to need in target software from least one picture being pre-configured with The picture of the user interface coupling of test.
Step 311, test equipment determine the operation that the picture of selection is corresponding, and according to the operation determined, Test in described user interface, and after test completes, wait server to be controlled to send and read instruction.
Based on same inventive concept, the embodiment of the present application additionally provides a kind of test equipment, due to this equipment The principle of solution problem is similar to the embodiment of the present application method of testing, therefore the enforcement side of may refer to of this equipment The enforcement of method, repeats no more in place of repetition.
As shown in Figure 4, the embodiment of the present application test equipment includes:
Select module 401, for selecting to need in target software from least one picture being pre-configured with The picture of the user interface coupling of test, wherein said picture is the control in the user interface needing test Sectional drawing;
Processing module 402, for determining the operation that the picture of selection is corresponding, and according to the operation determined, Test in described user interface.
The user interface needing test in target software is carried out sectional drawing, a user by the embodiment of the present application in advance Can there be a sectional drawing at interface, it is possibility to have multiple sectional drawings.Optionally, each sectional drawing at least includes one Control.
Such as user interface includes the control such as input frame, button, can cut a figure by input frame and button All include;Can also cut two figures respectively, one includes input frame, and one includes button.
When testing, owing to test environment is different, it is possible to target software needs supporting described target Run on the equipment of software;It is likely to need in described simulator, run described installation procedure and described mesh is installed Mark software.And different test environment subsequent processes is different.
Based on this, when carrying out ui testing, need to judge that described target software is the most described in support Run on the equipment of target software.
Whether objectives software runs on the equipment supporting described target software can be by manually joining in advance Put;Can also automatically detect.
In the equipment supporting described target software, run described target software under introducing separately below and propping up Hold the detailed process running described target software in the simulator of described target software.
Process one, support described target software equipment in run described target software.
Described selection module 401 is additionally operable to:
After determining that described target software runs on the equipment supporting described target software, can be directly from advance At least one picture first configured selects the picture mated with the user interface needing test in target software.
Illustrate with ios software, need user first to run ios software before testing, such as can use The equipment supporting described target software is projected on test equipment, the most just by the mode of Veency+realVNC It is that reality test equipment can control to support the ios software run on the equipment of described target software.Afterwards Just can select to need in target software from least one picture being pre-configured with by described selection module 401 The picture of user interface coupling to be tested.
It is of course also possible to by the selection module 401 of the embodiment of the present application from the equipment supporting described target software Upper operation ios software.
When mating, if the resolution of the user interface of the resolution of the picture being pre-configured with and display Inconsistent, the rate that can reduce that the match is successful, so needing to ensure the resolution of picture that is pre-configured with and display The resolution of user interface keeps consistent.The resolution of the picture being such as pre-configured with if 1920*1080, Then needing the resolution ensureing the user interface of display is also 1920*1080.
Due to when carrying out sectional drawing before, it may be possible to operational objective in the equipment supporting described target software The sectional drawing carried out after software, it is also possible to run described target in the simulator supporting described target software soft The sectional drawing carried out after part.
If the sectional drawing carried out after operational objective software in the equipment supporting described target software, it is not necessary to adjust The resolution of the user interface of whole display;
If the sectional drawing carried out after running described target software in the simulator supporting described target software, need The resolution adjustment of the user interface of display is become consistent with the resolution of described simulator.
Adjustment mode can be by manually continuing adjustment, it is also possible to is automatically called in equipment by selecting module 401 Config option is adjusted.
Ensure the resolution of picture being pre-configured with keep with the resolution of the user interface of display consistent after, Can be carried out picture match.
Picture match is currently displaying user interface and each the picture being pre-configured with to be mated.Look for To the picture including currently displaying all or part of user interface.Concrete matching way has a variety of, such as May refer to current picture match mode, it would however also be possible to employ the mode of similar recognition of face.
Assume that currently displaying user interface has " sequence " button.Due to before can be by needs when sectional drawing Control in the page of test all carries out sectional drawing, comprises currently displaying so having one in sectional drawing before The picture of " sequence " button in user interface, this picture is found by the purpose of coupling exactly.
In force, can configure the corresponding relation of picture and operation in advance, processing module 402 is according to setting in advance Fixed picture and the corresponding relation of operation, determine the operation that the picture of selection is corresponding.Owing to each picture can Including at least one control, and the operation difference that different controls is corresponding.Such as sequence control needs execution Operation is to select different ordering rules (such as exchange hand sequence, credit rating sequence etc.), and clicks on sequence Button;Search control needs operation to be performed to be to input search word in the search box, and clicks on search button.
Based on this, need the operation for different picture configuration correspondences, so after matching picture, just know Road carries out any operation in currently displaying user interface.
Operation corresponding to picture such as comprising search control is to input search word in the search box, and clicks on and search Rope button.After matching the picture comprising search control, determine that needs are in search according to above-mentioned corresponding relation Frame inputs search word, and clicks on search button, and input in the search box of currently displaying user interface Search word, and simulate click search button, thus realize the search control to currently displaying user interface Test.
Process two, support described target software simulator in run described target software.
For process two, a kind of mode is the artificial simulation that target software is installed to support described target software In device, and run.
In order to improve automatization's efficiency further, can manually be installed to target software support that described target is soft In the simulator of part, machine automatically run.
Concrete, described selection module 401 selects and target software from least one picture being pre-configured with Before the picture of the middle user interface coupling needing test, however, it is determined that described target software needs in support described The simulator of target software runs, from the simulator supporting described target software, runs described target soft Part.
Optionally, automatically run except machine, it is also possible to described target software is installed automatically by machine.
Concrete, described selection module 401 determines the store path of the installation procedure of described target software;Root According to the described store path determined, described simulator runs the described target of described installation procedure installation soft Part;Described target software is run from the simulator supporting described target software.
Optionally, when installing described target software, described selection module 401 is corresponding by described store path Software extract, and by the api interface provided inside Instruments Open Framework, at described mould Intend that device runs described installation procedure and described target software is installed.
After running described target software from the simulator supporting described target software, described selection module 401 select to mate with the user interface needing test in target software from least one picture being pre-configured with Picture.
When mating, if the resolution of the user interface of the resolution of the picture being pre-configured with and display Inconsistent, the rate that can reduce that the match is successful, so needing to ensure the resolution of picture that is pre-configured with and display The resolution of user interface keeps consistent.The resolution of the picture being such as pre-configured with if 1920*1080, Then needing the resolution ensureing the user interface of display is also 1920*1080.
Due to when carrying out sectional drawing before, it may be possible to operational objective in the equipment supporting described target software The sectional drawing carried out after software, it is also possible to run described target in the simulator supporting described target software soft The sectional drawing carried out after part.
If the sectional drawing carried out after operational objective software in the simulator supporting described target software, it is not necessary to Adjust the resolution of the user interface of display;
If the sectional drawing carried out after running described target software in the equipment supporting described target software, need The resolution adjustment of the user interface of display is become consistent with the resolution of described simulator.
Adjustment mode can be by manually continuing adjustment, it is also possible to is automatically called equipment by described selection module 401 In config option be adjusted.
Ensure the resolution of picture being pre-configured with keep with the resolution of the user interface of display consistent after, Can be carried out picture match.
Picture match is currently displaying user interface and each the picture being pre-configured with to be mated.Look for To the picture including currently displaying all or part of user interface.Concrete matching way has a variety of, as long as The mode that two pictures compare can be carried out and be all suitable for the embodiment of the present application, such as can use compare picture and The pixel-wise of user interface carries out images match.
Assume that currently displaying user interface has " sequence " button.Due to before can be by needs when sectional drawing Control in the page of test all carries out sectional drawing, comprises currently displaying so having one in sectional drawing before The picture of " sequence " button in user interface, this picture is found by the purpose of coupling exactly.
In force, can configure the corresponding relation of picture and operation in advance, processing module 402 is according to setting in advance Fixed picture and the corresponding relation of operation, determine the operation that the picture of selection is corresponding.Owing to each picture can Including at least one control, and the operation difference that different controls is corresponding.Such as sequence control needs execution Operation is to select different ordering rules (such as exchange hand sequence, credit rating sequence etc.), and clicks on sequence Button;Search control needs operation to be performed to be to input search word in the search box, and clicks on search button.
Based on this, need the operation for different picture configuration correspondences, so after matching picture, just know Road carries out any operation in currently displaying user interface.
Operation corresponding to picture such as comprising search control is to input search word in the search box, and clicks on and search Rope button.After matching the picture comprising search control, determine that needs are in search according to above-mentioned corresponding relation Frame inputs search word, and clicks on search button, and input in the search box of currently displaying user interface Search word, and simulate click search button, thus realize the search control to currently displaying user interface Test.
Optionally, the equipment of the embodiment of the present application also includes:
Control module 403, for after receiving the reading instruction controlling server transmission, from code server Middle download with need to carry out the code information that the user interface tested is corresponding, and control according to described code information Described selection module 401 and described processing module 402 are tested.
It is to say, the content that selection module 401 described above and described processing module 402 perform is all by controlling Molding block 403 controls.
The mode controlled can be to notify how described selection module 401 and described processing module 402 perform, Can also be code information to be sent to described selection module 401 and described processing module 402, by described choosing Select module 401 and described processing module 402 and perform aforesaid operations according to code information.
Obviously, those skilled in the art can carry out various change and modification without deviating from this Shen to the application Spirit and scope please.So, if the application these amendment and modification belong to the application claim and Within the scope of its equivalent technologies, then the application is also intended to comprise these change and modification.

Claims (12)

1. a method of testing, it is characterised in that described method includes:
From at least one picture being pre-configured with, select and target software need the user interface of test The picture joined, wherein said picture is the sectional drawing of the control in the user interface needing test;
Determine the operation that the picture of selection is corresponding, and according to the operation determined, described user interface is carried out Test.
2. the method for claim 1, it is characterised in that determine the operation that the picture of selection is corresponding, Including:
According to picture set in advance and the corresponding relation of operation, determine the operation that the picture of selection is corresponding.
3. the method for claim 1, it is characterised in that from least one picture being pre-configured with Before the picture that middle selection is mated with the user interface needing test in target software, also include:
Determine that described target software runs on the equipment supporting described target software.
4. the method for claim 1, it is characterised in that from least one picture being pre-configured with Before the picture that middle selection is mated with the user interface needing test in target software, also include:
If it is determined that described target software needs to run in the simulator supporting described target software, from supporting institute State and the simulator of target software runs described target software.
5. method as claimed in claim 4, it is characterised in that from the simulation supporting described target software Before device runs described target software, also include:
Determine the store path of the installation procedure of described target software;
According to the described store path determined, described simulator runs described installation procedure described mesh is installed Mark software.
6. the method as described in Claims 1 to 5 is arbitrary, it is characterised in that from least be pre-configured with Before individual picture selects the picture mated with the user interface needing test in target software, also include:
After receiving the reading instruction controlling server transmission, download from code server and survey with needs The code information corresponding to user interface of examination, in order to automatically to test.
7. a test equipment, it is characterised in that this equipment includes:
Select module, for selecting from least one picture being pre-configured with and target software needing test User interface coupling picture, wherein said picture be need test user interface in control cut Figure;
Processing module, for determining the operation that the picture of selection is corresponding, and according to the operation determined, described Test in user interface.
8. equipment as claimed in claim 7, it is characterised in that described processing module specifically for:
When the operation that the picture determining selection is corresponding, according to picture set in advance and the corresponding pass of operation System, determines the operation that the picture of selection is corresponding.
9. equipment as claimed in claim 7, it is characterised in that described selection module is additionally operable to:
After determining that described target software runs on the equipment supporting described target software, from be pre-configured with At least one picture selects the picture mated with the user interface needing test in target software.
10. equipment as claimed in claim 7, it is characterised in that described selection module is additionally operable to:
From at least one picture being pre-configured with, select and target software need the user interface of test Before the picture joined, however, it is determined that described target software needs to transport in the simulator supporting described target software OK, from the simulator supporting described target software, described target software is run.
11. equipment as claimed in claim 10, it is characterised in that described selection module is additionally operable to:
Determine the store path of the installation procedure of described target software;According to the described store path determined, Described simulator runs described installation procedure described target software is installed;From the mould supporting described target software Intend device runs described target software.
12. as arbitrary in claim 7~11 as described in equipment, it is characterised in that described equipment also includes:
Control module, for receive control server send reading instruction after, from code server under Carry the code information that the user interface carrying out testing with needs is corresponding, and control according to described code information described Module and described processing module is selected to test.
CN201510250889.3A 2015-05-15 2015-05-15 A kind of method of testing and equipment Pending CN106294099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510250889.3A CN106294099A (en) 2015-05-15 2015-05-15 A kind of method of testing and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510250889.3A CN106294099A (en) 2015-05-15 2015-05-15 A kind of method of testing and equipment

Publications (1)

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

Family

ID=57632292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510250889.3A Pending CN106294099A (en) 2015-05-15 2015-05-15 A kind of method of testing and equipment

Country Status (1)

Country Link
CN (1) CN106294099A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228438A (en) * 2017-12-29 2018-06-29 广州品唯软件有限公司 The performance test methods and device of a kind of mobile terminal
CN109634859A (en) * 2018-12-10 2019-04-16 宋航 A kind of test method that control property identification is combined with image recognition
CN109840202A (en) * 2018-12-15 2019-06-04 深圳壹账通智能科技有限公司 Application program control detection method, device, electronic equipment and storage medium
CN111400175A (en) * 2020-03-06 2020-07-10 广东电网有限责任公司 Recording and replaying system, method and equipment for web operation event
CN111552634A (en) * 2020-03-30 2020-08-18 深圳壹账通智能科技有限公司 Method and device for testing front-end system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823758A (en) * 2014-03-13 2014-05-28 北京金山网络科技有限公司 Browser testing method and device
US20140165040A1 (en) * 2012-12-07 2014-06-12 Sugarcrm Inc. Test script generation for application image validation
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140165040A1 (en) * 2012-12-07 2014-06-12 Sugarcrm Inc. Test script generation for application image validation
CN103823758A (en) * 2014-03-13 2014-05-28 北京金山网络科技有限公司 Browser testing method and device
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228438A (en) * 2017-12-29 2018-06-29 广州品唯软件有限公司 The performance test methods and device of a kind of mobile terminal
CN109634859A (en) * 2018-12-10 2019-04-16 宋航 A kind of test method that control property identification is combined with image recognition
CN109840202A (en) * 2018-12-15 2019-06-04 深圳壹账通智能科技有限公司 Application program control detection method, device, electronic equipment and storage medium
CN111400175A (en) * 2020-03-06 2020-07-10 广东电网有限责任公司 Recording and replaying system, method and equipment for web operation event
CN111400175B (en) * 2020-03-06 2023-08-18 广东电网有限责任公司 Recording and playback system, method and equipment for web operation event
CN111552634A (en) * 2020-03-30 2020-08-18 深圳壹账通智能科技有限公司 Method and device for testing front-end system and storage medium

Similar Documents

Publication Publication Date Title
CN106294099A (en) A kind of method of testing and equipment
CN106528395B (en) The generation method and device of test case
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
CN107896244B (en) Version file distribution method, client and server
US20120230587A1 (en) Systems and methods for testing content of mobile communication devices
US20150370694A1 (en) Automatic updating of graphical user interface element locators based on image comparison
US20150370688A1 (en) Automatic updating of graphical user interface element locators based on dimension comparison
CN109885480A (en) A kind of automatic interface compatibility test method and device based on debugging bridge
KR20170015968A (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN108536597A (en) A kind of terminal test method, device, terminal device and storage medium
CN111881019A (en) User interface testing method and device
CN106371881A (en) Method and system for updating program versions in servers
CN105657445A (en) TV shopping system and implementing method thereof
CN106021101A (en) Method and device for testing mobile terminal
CN111966580A (en) Automatic testing method, device, equipment and storage medium based on artificial intelligence
CN106528429A (en) UI testing method and device
CN113535567B (en) Software testing method, device, equipment and medium
CN115658496A (en) Extensible Web automatic test method, system, equipment and storage medium
US10303331B2 (en) Live mobile application visual editor demo
US10176288B1 (en) System and method for placing components in an electronic circuit design
CN108021503A (en) The method, apparatus and computer-readable storage medium of automated function test
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN103198250B (en) The checking method of intelligent television application program
CN108170588B (en) Test environment construction method and device
CN110688318A (en) Program testing method and device

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

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication