CN106776301A - Daughter element method of testing and device - Google Patents

Daughter element method of testing and device Download PDF

Info

Publication number
CN106776301A
CN106776301A CN201611091106.2A CN201611091106A CN106776301A CN 106776301 A CN106776301 A CN 106776301A CN 201611091106 A CN201611091106 A CN 201611091106A CN 106776301 A CN106776301 A CN 106776301A
Authority
CN
China
Prior art keywords
daughter element
page
target
target daughter
index value
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.)
Granted
Application number
CN201611091106.2A
Other languages
Chinese (zh)
Other versions
CN106776301B (en
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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201611091106.2A priority Critical patent/CN106776301B/en
Publication of CN106776301A publication Critical patent/CN106776301A/en
Application granted granted Critical
Publication of CN106776301B publication Critical patent/CN106776301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention discloses a seed element method of testing and device, belong to network technique field.Methods described includes:Obtain the target daughter element mark in first page;Identified according to the target daughter element, determine goal set;According to the index value for determining, target daughter element is extracted from the goal set, the index value is used to indicate position of the target daughter element in the goal set;The target daughter element is simulated and is operated, obtain the test result of simulated operation.The present invention can be identified according to target daughter element, the multiple daughter elements for belonging to identical category in different elements are integrated in same goal set, so as to indicate position of the daughter element in goal set with index value, index value according to determining accurately identifies and positions target daughter element, and then the target daughter element is tested, extend test function.

Description

Daughter element method of testing and device
Technical field
The present invention relates to network technique field, more particularly to a seed element method of testing and device.
Background technology
With the development of network technology, terminal can show the various pages, and each page includes multiple elements, for example, arrange Table element, text element, pictorial element etc..In order to ensure the page can normal work, test terminal is needed to the unit in the page Element is tested.
Because the page includes multiple elements, during being tested, in order to distinguish different elements, test terminal Need to obtain object element mark, extracted from all elements in the page and object element mark according to object element mark Corresponding element to be tested, tests the element to be tested.That is, the page is shown by test terminal, pseudo-terminal is to the page In the operation that performs of the element to be tested.
Realize it is of the invention during, inventor find correlation technique at least there is problems with:
Because five application page includes the multiple daughter elements for belonging to a different category, the daughter element for belonging to identical category is corresponding Daughter element mark is identical, therefore according only to daughter element mark, it is impossible to the multiple daughter elements for belonging to identical category are distinguished, is led to not Identification and positioning daughter element, also cannot just test daughter element.
The content of the invention
In order to solve the problems, such as correlation technique, a seed element method of testing and device are the embodiment of the invention provides.Institute State technical scheme as follows:
On the one hand, there is provided a seed element method of testing, methods described includes:
The target daughter element mark in first page is obtained, the first page includes at least one element, each element Including at least one daughter element, daughter element identifies the classification for identifying daughter element, and the daughter element for belonging to identical category is corresponding Daughter element mark is identical;
Identified according to the target daughter element, determine goal set, the goal set is included in the first page Multiple daughter elements corresponding with the target daughter element mark;
According to the index value for determining, target daughter element is extracted from the goal set, the index value is used to indicate mesh Position of the mark daughter element in the goal set;
The target daughter element is simulated and is operated, obtain the test result of the simulated operation, the test result For being compared with notional result, with judge the target daughter element whether normal work.
It is described according to the index value for determining in a kind of possible implementation, extract target from the goal set Daughter element, including:
The length of the goal set is obtained, the span of index value is determined according to the length;
Each index value in the span is traveled through, according to the index value for currently traversing, from the goal set Middle extraction target daughter element.
In alternatively possible implementation, the span that index value is determined according to the length, including:
Using preset initial value as the span minimum value, according to the minimum value and the length determine The maximum of span, and the span is determined according to the minimum value and the maximum.
In alternatively possible implementation, described simulation to the target daughter element operates, and obtains the mould Intend the test result of operation, including:
Clicking operation is simulated to the target daughter element, the click test result of the simulation clicking operation is obtained, It is described click test result be used for click on notional result be compared, with judge the target daughter element be clicked when whether just Often work.
In alternatively possible implementation, described simulation to the target daughter element operates, and obtains the mould Intend the test result of operation, including:
Display operation is simulated to the target daughter element, the display test result of the simulative display operation is obtained, The display test result is used to be compared with display notional result, to judge whether the target daughter element normally shows.
In alternatively possible implementation, methods described also includes:
Slide is simulated to the first page, the second page that acquisition is associated with the first page is described The page, described the during the page, first page slide downward when second page includes the first page upward sliding One page towards page during left slip and the first page slide to the right when any one of the page;
Target daughter element mark in the second page, surveys to the target daughter element in the second page Examination.
On the other hand, there is provided a seed element test device, described device includes:
First acquisition module, for obtaining the mark of the target daughter element in first page, the first page is included at least One element, each element includes at least one daughter element, and daughter element identifies the classification for identifying daughter element, belongs to mutually similar The corresponding daughter element mark of other daughter element is identical;
Determining module, for being identified according to the target daughter element, determines goal set, and the goal set includes institute State multiple daughter elements corresponding with the target daughter element mark in first page;
Extraction module, for according to the index value for determining, target daughter element, the index being extracted from the goal set It is worth the position for indicating target daughter element in the goal set;
First test module, operates for being simulated to the target daughter element, obtains the test of the simulated operation As a result, the test result be used for be compared with notional result, with judge the target daughter element whether normal work.
In a kind of possible implementation, the extraction module, including:
Acquiring unit, the length for obtaining the goal set;
Determining unit, the span for determining index value according to the length;
Extraction unit, for traveling through each index value in the span, according to the index value for currently traversing, from Target daughter element is extracted in the goal set.
In alternatively possible implementation, the determining unit is additionally operable to preset initial value as the value The minimum value of scope, the maximum of the span is determined according to the minimum value and the length, and according to the minimum Value and the maximum determine the span.
In alternatively possible implementation, first test module is additionally operable to carry out the target daughter element Simulation clicking operation, obtains the click test result of the simulation clicking operation, and the click test result is used for and clicks on reason Be compared by result, with when judging that the target daughter element is clicked whether normal work.
In alternatively possible implementation, it is characterised in that first test module, it is additionally operable to the target Daughter element is simulated display operation, obtains the display test result of the simulative display operation, and the display test result is used It is compared in display notional result, to judge whether the target daughter element normally shows.
In alternatively possible implementation, described device also includes:
Second acquisition module, for being simulated slide to the first page, obtains and is closed with the first page The second page of connection, the page, the first page when second page is including the first page upward sliding are to downslide Any in the page when page and the first page when page, the first page when dynamic are slided to the left are slided to the right ;
Second test module, for the target daughter element mark in the second page, in the second page Target daughter element tested.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Method provided in an embodiment of the present invention, it is contemplated that belong to the corresponding daughter element mark phase of daughter element of identical category Together, identified by obtaining the target daughter element in first page, goal set is determined according to target daughter element mark, according to true Fixed index value, extracts target daughter element from the goal set, the target daughter element is simulated and is operated, and obtains the simulation Whether the test result of operation, the test result is used to be compared with notional result, to judge the normal work of the target daughter element Make.Can be identified according to target daughter element, multiple daughter elements that identical category is belonged in different elements are integrated in same object set In conjunction, so as to indicate position of the daughter element in goal set with index value, accurately identify and position according to the index value for determining Target daughter element, and then the target daughter element is tested, extend test function.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the flow chart of daughter element method of testing provided in an embodiment of the present invention;
Fig. 2 is the flow chart of daughter element method of testing provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the top song page provided in an embodiment of the present invention;
Fig. 4 is the structural representation of daughter element test device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of daughter element test device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of daughter element test device provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is the flow chart of seed element method of testing provided in an embodiment of the present invention, and the embodiment of the present invention is applied to In test terminal, as shown in figure 1, the daughter element method of testing is comprised the following steps:
101st, the target daughter element mark in first page is obtained, the first page includes at least one element, each unit Element includes at least one daughter element, and daughter element identifies the classification for identifying daughter element, identical category is belonged in different elements The corresponding daughter element mark of daughter element is identical.
102nd, identified according to the target daughter element, determine goal set, the goal set include in the first page and The target daughter element identifies corresponding multiple daughter elements.
103rd, according to the index value for determining, target daughter element is extracted from the goal set, the index value is used to indicate mesh Position of the mark daughter element in the goal set.
104th, the target daughter element is simulated and is operated, obtain the test result of the simulated operation, the test result is used Be compared in notional result, with judge the target daughter element whether normal work.
Method provided in an embodiment of the present invention, it is contemplated that belong to the corresponding daughter element mark phase of daughter element of identical category Together, identified by obtaining the target daughter element in first page, goal set is determined according to target daughter element mark, according to true Fixed index value, extracts target daughter element from the goal set, the target daughter element is simulated and is operated, and obtains the simulation Whether the test result of operation, the test result is used to be compared with notional result, to judge the normal work of the target daughter element Make.Can be identified according to target daughter element, multiple daughter elements that identical category is belonged in different elements are integrated in same object set In conjunction, so as to indicate position of the daughter element in goal set with index value, accurately identify and position according to the index value for determining Target daughter element, and then the target daughter element is tested, extend test function.
In a kind of possible implementation, this extracts target unit according to the index value for determining from the goal set Element, including:
The length of the goal set is obtained, the span of index value is determined according to the length;
Each index value in the span is traveled through, according to the index value for currently traversing, is carried from the goal set Take target daughter element.
In alternatively possible implementation, this determines the span of index value according to the length, including:
Using preset initial value as the minimum value of the span, the span is determined according to the minimum value and the length Maximum, and the span is determined according to the minimum value and the maximum.
In alternatively possible implementation, this pair target daughter element simulation operation obtains the simulated operation Test result, including:
Clicking operation is simulated to the target daughter element, the click test result of the simulation clicking operation is obtained, the point Hit test result for click on notional result and be compared, with when judging that the target daughter element is clicked whether normal work.
In alternatively possible implementation, this pair target daughter element simulation operation obtains the simulated operation Test result, including:
Display operation is simulated to the target daughter element, the display test result of simulative display operation is obtained, this shows Show test result for being compared with display notional result, to judge whether the target daughter element normally shows.
In alternatively possible implementation, the method also includes:
Slide, the second page that acquisition is associated with the first page, the second page are simulated to the first page The page during page, first page slide downward when face includes the first page upward sliding, the first page slides to the left Any one of page when the page and the first page when dynamic are slided to the right;
Target daughter element mark in the second page, tests the target daughter element in the second page.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure, herein no longer using any combination Repeat one by one.
Fig. 2 is the flow chart of the seed element method of testing according to an exemplary embodiment, the embodiment of the present invention Executive agent be test terminal, as shown in Fig. 2 the daughter element method of testing is comprised the following steps:
201st, test terminal obtains the target daughter element mark in first page, is identified according to the target daughter element, it is determined that Goal set.
In correlation technique, the page to be tested includes at least one element, and each element can include at least one Daughter element.Wherein, each element has a component identification, and each daughter element has a sub- component identification, daughter element mark Classification for identifying daughter element, the daughter element mark for belonging to the daughter element of identical category is identical.
During testing the page, test terminal can not be by naked eyes and the thinking different elements of identification or difference Daughter element, therefore, test terminal can first obtain object element mark when testing, unit to be tested is determined according to object element mark Element.But, because the corresponding daughter element mark of the daughter element for belonging to identical category is identical, cause test terminal according only to target Component identification, it is impossible to distinguish the multiple daughter elements for belonging to identical category, and then lead to not test daughter element.
Fig. 3 is a schematic diagram for the top song page, and the top song page includes three song elements, each Song element includes belonging to the daughter element of song title, singer's title and types of songs these three classifications, three song elements Mark be respectively " song 1 " " song 2 " " song 3 ", the relation of the daughter element that each song element and the song element include Can be with as shown in table 1 below.So, when test terminal needs test daughter element " Zhou Jielun ", identified according to daughter element " Singer ", it is impossible to distinguish " Zhou Jielun ", " chopsticks brother " " phoenix legend ", lead to not test " Zhou Jielun ".
Table 1
And in embodiments of the present invention, multiple daughter elements that test terminal can will belong to identical category are integrated in same mesh In mark set, the diverse location according to daughter element in goal set accurately identifies and positions target daughter element, and then to the mesh Mark daughter element is tested.
Specifically, as a example by testing first page, test terminal can obtain the target unit in first page Element mark, identifies according to the target daughter element, determines goal set, the goal set include in the first page with the target Daughter element identifies corresponding multiple daughter elements.
Wherein, the test terminal can be mobile phone, panel computer etc., and the operating system of the test terminal can be grasped for Android Make system, iOS (apple Mobile operating system), FirefoxOS (red fox Mobile operating system) etc..The first page is to show Any page on test terminal is shown in, can be five application page, Webpage etc., naturally it is also possible to be other kinds of page Face.
First page includes at least one element, and at least one element can include list element, text element, sound Tone element, button element etc..Further, each element can include at least one daughter element, and at least one daughter element can With including sound daughter element, picture daughter element, text children etc..
Wherein, each element has a component identification, and each daughter element has a sub- component identification.The component identification Can be title, pattern, URL (the Uniform Resoure of element for uniquely determining the element in the first page Locator, URL) etc., the daughter element identifies the classification for identifying daughter element, can be classification title or Person is numbering of classification distribution etc., and the daughter element mark for belonging to the daughter element of identical category is identical.
So, when test terminal will to the first page in belong to the daughter element of a certain classification and test when, acquisition is treated Test target daughter element mark, according to the target daughter element identify, determine goal set, the goal set include this first Multiple daughter elements corresponding with the target daughter element mark in the page.
Further, the test terminal can call set to obtain function and obtain the goal set, and the set obtains function Corresponding all daughter elements are identified for obtaining same daughter element, and constitutes a set.The set obtains the input ginseng of function Number is identified for target daughter element, and output parameter is goal set, then when the test terminal obtains the incoming target of function to the set After daughter element mark, the set obtains function and can return to goal set.
For example, it can be Get Elements functions that the set obtains function, the test terminal can call the Get Elements functions obtain goal set.For example, the example based on above-mentioned table 1, test terminal is to the Get Elements functions Incoming target daughter element identifies " Singer ", and the Get Elements functions return to singer's name set, singer's name set It is { " Zhou Jielun ", " chopsticks brother ", " phoenix legend " }.
202nd, test terminal obtains the length of the goal set, and the span of index value is determined according to the length.
Process on obtaining goal set length, the test terminal can call length to obtain function and obtain the object set The length of conjunction.The |input paramete that the length obtains function is goal set, and output parameter is the length of goal set, then when the survey After examination terminal obtains the incoming goal set of function to the length, the length obtains function and can return to the length of goal set.
For example, it can be Get Length functions that the length obtains function, the test terminal can call Get Length Function obtains the length of the goal set.For example, the example based on above-mentioned table 1, the test terminal can be to the Get Length The incoming singer's name set of function { " Zhou Jielun ", " chopsticks brother ", " phoenix legend " }, then Get Length functions output should The length 3 of singer's name set.
Process on determining the span of index value according to length:In order to recognize and positioning target daughter element, test Terminal it needs to be determined that target daughter element is in the position of goal set, therefore, test terminal is needed to obtain index value, and the index value is used In instruction target daughter element in the position of the goal set.
The span of the index value determines that test terminal is obtaining the length of goal set according to the length of the goal set After degree, can using preset initial value as the span minimum value, the preset initial value can be 0,1 etc., test terminal The maximum of the span can be determined according to the minimum value and the length, for example, the minimum value can be added with the length And subtract one, obtain the maximum.
Test terminal, can be true according to the minimum value and the maximum after the minimum value and maximum for obtaining the index value The fixed span.It should be noted that because index value is integer, therefore the span of index value is also limited to integer certainly The number of scope.Difference between adjacent index value is fixed, for example, can be 1, then the span can be (1,2,3).
It is { " Zhou Jielun ", " chopsticks brother ", " phoenix in singer's name set based on the example of table 1 in above-mentioned steps 201 Phoenix legend " } in, the minimum value of index value can be 1, then the index value of daughter element " Zhou Jielun " is 1, daughter element " chopsticks brother " Index value be 2, the index value of " phoenix legend " is 3.
203rd, test terminal travels through each index value in the span, according to the index value for currently traversing, from this Target daughter element is extracted in goal set.
The test terminal can determine that function is extracted in set, and function is extracted in the set to be used to extract target from goal set Daughter element.The |input paramete that function is extracted in the set is index value and goal set, and the output parameter that function is extracted in the set is Target daughter element, then after the incoming index value of function and goal set are extracted in the test terminal to the set, letter is extracted in the set Number can return to target daughter element corresponding with the index value according to the index value for determining.
Specifically, the code of set extraction function can be as follows:
Def select element (self, elements, index)
{
% is annotated:Select element are the title that function is extracted in set, and elements is goal set, and index is Index value, element is target daughter element
Element=elements [int (index)]
Return element
}
Based on the example of above-mentioned table 1, the test terminal can extract incoming singer's name set { " Zhou Jie of function to set Human relations ", " chopsticks brother ", " phoenix legend " } and index value 2, then set extraction function will return " chopsticks brother ".
204th, test terminal is simulated to the target daughter element and operates, and obtains the test result of the simulated operation, and after The continuous next index value traveled through in the span, performs step 203-204, and next target daughter element is tested, Until current index value stops when exceeding the span.
Preferably, the test terminal can call loop control function, and the |input paramete of the loop control function is control In the type of variable, the span of control variables, the adjustment mode of control variables and simulated operation, and the loop control function Simulated operation is performed when being in the span including current control variables.
So, the test terminal can using index value as the loop control function control variables, to the loop control The incoming index value of function, the span of index value, the adjustment mode of index value and simulated operation type, by the loop control Function, target daughter element is extracted according to current index value from goal set, the target daughter element is simulated and is operated, and is obtained To the test result of the simulated operation, and the next index value in the span is obtained according to the adjustment mode, until rope When drawing value more than the span, cyclic process is just no longer performed.By loop control function, the test terminal can be to the mesh The all target daughter elements in diverse location are tested successively in mark set.
Wherein, the loop control function can be for functions, while functions etc., and the embodiment of the present invention is not limited this It is fixed.
The process of operation is simulated to the target daughter element on test terminal, refers to test in the first page Each target daughter element can normal work, the first page is generally shown by test terminal, pseudo-terminal is to the first page The operation that each target daughter element in face is performed.For example, clicking operation can be performed to button control, text control is performed Display operation, play operation etc. is performed to voice data.Test terminal can be to the target by simulating different types of operation The difference in functionality of daughter element is tested, and the embodiment of the present invention is not limited this.
After operation is simulated to the target daughter element, test terminal can obtain the test result of the simulated operation. The test result is corresponding with the simulated operation, and the test result is used to be compared with notional result, to judge target unit Can element normal work.Correspondingly, the test result can also represent the target daughter element at the end in addition to the test terminal Can normal work when being shown on end.
Wherein, the notional result refers to and, when the target daughter element normal operation, the target daughter element is simulated and is grasped Deserved result when making.When being simulated operation to the target daughter element, if the test result for obtaining is identical with notional result, The target daughter element normal operation can be determined, if the test result for obtaining is different from notional result, it may be determined that the target Daughter element run-time error.
Specifically, the test terminal can prestore the notional result, be operated when being simulated to the target daughter element Afterwards, the test result can be compared with the notional result, judges that the test result is with the notional result for prestoring It is no identical, so that it is determined that can the target daughter element normal work.It is of course also possible to determine simulation by analyzing by tester The notional result of operation, after test result is obtained by test terminal, artificially judges that the test result is with notional result It is no identical, so that it is determined that the target daughter element can normal work, the embodiment of the present invention do not limited this.
Specifically, for different types of simulated operation, the step 204 may comprise steps of 2041-2042:
2041st, test terminal is simulated clicking operation to the target daughter element, obtains the click of the simulation clicking operation Test result.
Specifically, the test terminal can obtain click test function, and the |input paramete of the click test function is target Daughter element, output parameter is the response results of the simulation clicking operation, and by calling the click test function, the test terminal can Clicking operation is simulated with to the target daughter element.
The code of the click test function can be as follows:
Def click_by_element_given (self, element)
{
% is annotated:Element is target daughter element "
Self._info(“click_by_element_given”)
element.click()
}
Can the simulation clicking operation be normally clicked on for testing the target daughter element, is carried out when to the target daughter element During simulation clicking operation, the test terminal can obtain the click test result of the simulation clicking operation, the click test result For with click on notional result and be compared, with when judging that the target daughter element is clicked whether normal work.
In a kind of possible implementation, when the target daughter element is the daughter element of link form, the target daughter element Associated with a chained address, and a page is pointed in the chained address, then the test terminal can be using the page as point Notional result is hit, clicking operation is being simulated to the target daughter element, after getting click test result, this can clicked on Test result is compared with the click notional result, i.e. judge when simulation clicking operation is performed to the target daughter element, its The page of opening whether be the target daughter element association chained address point to the page, when open the page be the target son During the page that the chained address of elements correlation is pointed to, being capable of normal work when determining that the target daughter element is clicked.
In alternatively possible implementation, the target daughter element is associated with specify information, and the test terminal is to this Target daughter element be simulated clicking operation, then the test terminal can using the specify information as click on notional result, Clicking operation is simulated to the target daughter element, after getting click test result, by the click test result and can be somebody's turn to do Click on notional result to be compared, i.e. judge that, when the target daughter element is performed simulation clicking operation, the information of its ejection is No is the specify information of target daughter element association, when the information of target daughter element ejection is target daughter element association During specify information, being capable of normal work when determining that the target daughter element is clicked.
Wherein, specify information can be specific window, text box, an advertisement etc., and the embodiment of the present invention is not done to this Limit.For example, the specify information of target daughter element " chopsticks brother " association can be " the singer's combination extensively welcome by square dance ".
It is of course also possible to obtain the click test result of the target daughter element by the test terminal by tester Afterwards, the click notional result of the target daughter element is analyzed, by judging whether are the click test result and the click notional result It is identical, determine the target daughter element when being clicked can normal work, the embodiment of the present invention do not limited this.
2042nd, test terminal is simulated display operation to the target daughter element, obtains the display of simulative display operation Test result.
Wherein, can the simulative display is operated normally show for testing the target daughter element, when to the target daughter element When being simulated display operation, the test terminal can obtain the display test result of simulative display operation, display test Result is used to be compared with display notional result, to judge whether the target daughter element normally shows.
Specifically, the test terminal can determine to show test function that the |input paramete of the display test function is target Daughter element, output parameter is the display test result of simulative display operation, can by the display test function test terminal To be simulated display operation to the target daughter element.
The code of the display test function can be as follows:
Def get_text (self, element)
{
% is annotated:Element is target daughter element "
Self._info(“get the text of the element”)
Return elment.text
}
Specifically, the test terminal can prestore display notional result, aobvious when being simulated to the target daughter element After showing operation, the display test result can be compared with the display notional result, judge the display test result and show Show whether the notional result for prestoring is identical, so that it is determined that can the target daughter element normally show.It is of course also possible to by surveying Examination personnel by analyzing the theoretical display result for determining that simulative display is operated, when obtaining showing test result by test terminal Afterwards, artificially judge whether the display test result is identical with display notional result, so that it is determined that can the target daughter element just Often display, the embodiment of the present invention is not limited this.
It should be noted that test terminal can also carry out other simulated operations to the target daughter element, for example, working as the mesh When mark element is music, the test terminal can be simulated play operation to the target daughter element, when the object element is defeated During lairage, the test terminal can be simulated input operation to the target daughter element, and the embodiment of the present invention is not limited this.
And, the embodiment of the present invention is entered with the corresponding target daughter element in being identified to the first page according to target daughter element As a example by row test, and in practical application, when testing the first page, belong to due to being potentially included in the first page The daughter element of multiple classifications, therefore can respectively be tested according to corresponding multiple target daughter element marks, so as to complete this The test job of all daughter elements in first page.
205th, test terminal is simulated slide, the second page that acquisition is associated with the first page to the first page Face, the target daughter element mark in the second page, tests the target daughter element in the second page.
After the test terminal is tested the first page, the second page of first page association can also be entered Row test, so as to judge that can the second page normal work.
Therefore, by taking first page and second page as an example, test terminal can be simulated to the first page and slide behaviour Make, the second page that acquisition is associated with the first page.Wherein, the page when second page is including the first page upward sliding The page and the first page when page, the first page when face, the first page slide downward are slided to the left are slided to the right When any one of the page.
Further, the test terminal can call slip function to be simulated slide, and it is right that the slip function is used for Current page enters line slip, and obtains the page associated with current page.The |input paramete of the slip function is slided for current page The abscissa of dynamic starting point, current page slide abscissa, current page that the ordinate of starting point, current page slide terminating point The ordinate of terminating point, sliding time interval are slided in face, and the output parameter of the slip function is the page associated with current page.
For example, the slip function can be swipe functions, and it is different to the incoming parameter of swipe functions, can simulate upwards Slip, slide downward, slide to the left and the different types of slide that slides to the right, correspondingly, get with this first The second page of page association can be the page in different glide directions.That is to say, the sliding process can include:
1st, it is sliding when the abscissa to the incoming slip starting point of the swipe functions is identical with the abscissa for sliding terminating point When the ordinate of dynamic starting point is identical more than the ordinate for sliding terminating point, test terminal will obtain the first page upward sliding When the page.
2nd, it is sliding when the abscissa to the incoming slip starting point of the swipe functions is identical with the abscissa for sliding terminating point When the ordinate of dynamic starting point is identical less than the ordinate for sliding terminating point, test terminal will obtain the first page slide downward When the page.
3rd, it is sliding when the ordinate to the incoming slip starting point of the swipe functions is identical with the ordinate for sliding terminating point When the abscissa of dynamic starting point is more than the ordinate for sliding terminating point, test terminal will be obtained when the first page is slided to the left The page.
4th, it is sliding when the ordinate to the incoming slip starting point of the swipe functions is identical with the ordinate for sliding terminating point When the abscissa of dynamic starting point is less than the ordinate for sliding terminating point, test terminal will be obtained when the first page is slided to the right The page.
After test terminal obtains the second page, target daughter element that can be in the second page is identified, to this Target daughter element in second page is tested.That is to say that the target daughter element mark in the second page determines mesh Mark set, obtains the length of the goal set, and the span of index value is determined according to the length, travels through in the span Each index value, according to the index value for currently traversing, extracts target daughter element, to the target daughter element from the goal set Operation is simulated, the test result of the simulated operation is obtained.
In the related art, when two daughter elements belong to identical category, corresponding to same daughter element mark, and test Terminal only relies on daughter element mark identification daughter element, it is impossible to distinguish different daughter elements.And in the embodiment of the present invention, by daughter element Both data combine mark with index value, used as the data that any daughter element of identification is used.So, for any Two daughter elements, when the two daughter elements belong to a different category, the daughter element mark of the two daughter elements is different, test Terminal can be identified according to different daughter elements, distinguish different daughter elements, and when the two daughter elements belong to identical category, The index value of the two daughter elements is different, and test terminal can distinguish different daughter elements according to different index values. It is that no matter whether any two daughter element belongs to identical category, and test terminal can distinguish different daughter elements all the time, can be with Realize extracting arbitrary target daughter element from multiple daughter elements.
For example, the example based on above-mentioned table 1, for daughter element " Zhou Jielun " and daughter element " blue and white porcelain ", " Zhou Jie The daughter element of human relations " is designated " singer ", and the daughter element of " blue and white porcelain " is designated " music ", and test terminal being capable of basis " singer " and " music " differentiation " Zhou Jielun " and " blue and white porcelain ".And for daughter element " Zhou Jielun " and daughter element " chopsticks brother For younger brother ", although the daughter element mark of the two daughter elements is all " singer ", but the index value of " Zhou Jielun " is 1, " chopsticks The index value of sub- brother " is 2, and test terminal can be 1 or 2 according to index value, distinguishes " Zhou Jielun " and chopsticks brother ".
Further, the test terminal can install testing tool, and the first page is tested by testing tool, The testing tool can be Appium, Robotium, UIAutomator etc..
Method provided in an embodiment of the present invention, it is contemplated that belong to the corresponding daughter element mark phase of daughter element of identical category Together, identified by obtaining the target daughter element in first page, goal set is determined according to target daughter element mark, according to true Fixed index value, extracts target daughter element from the goal set, the target daughter element is simulated and is operated, and obtains the simulation Whether the test result of operation, the test result is used to be compared with notional result, to judge the normal work of the target daughter element Make.Can be identified according to target daughter element, multiple daughter elements that identical category is belonged in different elements are integrated in same object set In conjunction, so as to indicate position of the daughter element in goal set with index value, accurately identify and position according to the index value for determining Target daughter element, and then the target daughter element is tested, extend test function.
Fig. 4 is the structural representation of seed element test device provided in an embodiment of the present invention, as shown in figure 4, the dress Put including the first acquisition module 401, determining module 402, the test module 404 of extraction module 403 and first.
First acquisition module 401, for obtaining the mark of the target daughter element in first page, the first page is included at least One element, each element includes at least one daughter element, and daughter element identifies the classification for identifying daughter element, belongs to mutually similar The corresponding daughter element mark of other daughter element is identical;
Determining module 402, for being identified according to the target daughter element, determines goal set, and the goal set includes this Multiple daughter elements corresponding with the target daughter element mark in first page;
Extraction module 403, for according to the index value for determining, target daughter element, the index being extracted from the goal set It is worth the position for indicating target daughter element in the goal set;
First test module 404, operates for being simulated to the target daughter element, obtains the test knot of the simulated operation Really, the test result be used for be compared with notional result, with judge the target daughter element whether normal work.
Device provided in an embodiment of the present invention, it is contemplated that belong to the corresponding daughter element mark phase of daughter element of identical category Together, identified by obtaining the target daughter element in first page, goal set is determined according to target daughter element mark, according to true Fixed index value, extracts target daughter element from the goal set, the target daughter element is simulated and is operated, and obtains the simulation Whether the test result of operation, the test result is used to be compared with notional result, to judge the normal work of the target daughter element Make.Can be identified according to target daughter element, multiple daughter elements that identical category is belonged in different elements are integrated in same object set In conjunction, so as to indicate position of the daughter element in goal set with index value, accurately identify and position according to the index value for determining Target daughter element, and then the target daughter element is tested, extend test function.
In a kind of possible implementation, the extraction module 403, including:
Acquiring unit, the length for obtaining the goal set;
Determining unit, the span for determining index value according to the length;
Extraction unit, for traveling through each index value in the span, according to the index value for currently traversing, from this Target daughter element is extracted in goal set.
In alternatively possible implementation, the determining unit is additionally operable to preset initial value as the span Minimum value, the maximum of the span is determined according to the minimum value and the length, and according to the minimum value and the maximum Determine the span.
In alternatively possible implementation, first test module 404 is additionally operable to carry out mould to the target daughter element Intend clicking operation, obtain the click test result of the simulation clicking operation, the click test result is used for and clicks on notional result Be compared, with when judging that the target daughter element is clicked whether normal work.
In alternatively possible implementation, first test module 404 is additionally operable to carry out mould to the target daughter element Intend display operation, obtain the display test result of simulative display operation, the display test result is used for and display notional result It is compared, to judge whether the target daughter element normally shows.
In alternatively possible implementation, referring to Fig. 5, the device also includes:
Second acquisition module 405, for being simulated slide to the first page, acquisition is associated with the first page Second page, the second page include the first page upward sliding when the page, the first page slide downward when page Any one of page when the page and the first page when face, the first page are slided to the left are slided to the right;
Second test module 406, for the target daughter element mark in the second page, in the second page Target daughter element is tested.
It should be noted that:The daughter element test device that above-described embodiment is provided when daughter element is tested, only with above-mentioned each The division of functional module is carried out for example, in practical application, as needed can distribute by different work(above-mentioned functions Can module complete, will the internal structure of test terminal be divided into different functional modules, with complete it is described above whole or Person's partial function.In addition, the daughter element test device that above-described embodiment is provided belongs to same with daughter element method of testing embodiment Design, it implements process and refers to embodiment of the method, repeats no more here.
A kind of terminal is present embodiments provided, the terminal can be used for performing the daughter element provided in above-mentioned each embodiment Method of testing.Referring to Fig. 6, the terminal 600 includes:
Terminal 600 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, include one or the treatment of more than one processing core The part such as device 180 and power supply 60.It will be understood by those skilled in the art that the terminal structure shown in Fig. 6 was not constituted to end The restriction at end, can include part more more or less than diagram, or combine some parts, or different part arrangements. Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..Additionally, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can be used Any communication standard or agreement, including but not limited to GSM (Global System of Mobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used to store software program and module, and processor 180 is by running storage in memory 120 Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored and use created number according to terminal 600 According to (such as voice data, phone directory etc.) etc..Additionally, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used to receive the numeral or character information of input, and generation is set and function with user The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table Operation on face 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by user input information or be supplied to the information and terminal 600 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touched After touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display panel 141.Although in figure 6, Touch sensitive surface 131 and display panel 141 are conducts Two independent parts come realize input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with display Panel 141 is integrated and realization is input into and output function.
Terminal 600 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 600 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, in the detectable all directions of Gravity accelerometer (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, can be used for recognize mobile phone attitude application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that be can also configure in terminal 600, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 600.Audio Electric signal after the voice data conversion that circuit 160 will can be received, is transferred to loudspeaker 161, and sound is converted to by loudspeaker 161 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Voice data is converted to, then after voice data output processor 180 is processed, through RF circuits 110 being sent to such as another end End, or voice data is exported to memory 120 so as to further treatment.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 600.
WiFi belongs to short range wireless transmission technology, and terminal 600 can help user's transceiver electronicses by WiFi module 170 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 6 shows WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 600, can exist as needed completely Do not change in the essential scope of invention and omit.
Processor 180 is the control centre of terminal 600, using various interfaces and each portion of connection whole mobile phone Point, by running or performing software program and/or module of the storage in memory 120, and storage is called in memory 120 Interior data, perform the various functions and processing data of terminal 600, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modem processor, Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 600 also includes the power supply 60 (such as battery) powered to all parts, it is preferred that power supply can be by power supply Management system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 60 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 600 can also will not be repeated here including camera, bluetooth module etc..Specifically in this reality In applying example, the display unit of terminal is touch-screen display, and terminal also includes memory, and one or more than one Program, one of them or more than one program storage is configured to by one or more than one treatment in memory Device is performed.This or more than one program bag are containing the finger for implementing the performed operation in test terminal in above-described embodiment Order.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, it is also possible to instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (12)

1. a seed element method of testing, it is characterised in that methods described includes:
The target daughter element mark in first page is obtained, the first page includes at least one element, and each element includes At least one daughter element, daughter element identifies the classification for identifying daughter element, belongs to the corresponding son unit of daughter element of identical category Element mark is identical;
Identified according to the target daughter element, determine goal set, the goal set include in the first page with institute State target daughter element and identify corresponding multiple daughter elements;
According to the index value for determining, target daughter element is extracted from the goal set, the index value is used to indicate target Position of the element in the goal set;
The target daughter element is simulated and is operated, obtain the test result of the simulated operation, the test result is used for Be compared with notional result, with judge the target daughter element whether normal work.
2. method according to claim 1, it is characterised in that described according to the index value for determining, from the goal set Middle extraction target daughter element, including:
The length of the goal set is obtained, the span of index value is determined according to the length;
Each index value in the span is traveled through, according to the index value for currently traversing, is carried from the goal set Take target daughter element.
3. method according to claim 2, it is characterised in that the value model that index value is determined according to the length Enclose, including:
Using preset initial value as the minimum value of the span, the value is determined according to the minimum value and the length The maximum of scope, and the span is determined according to the minimum value and the maximum.
4. method according to claim 1, it is characterised in that described simulation to the target daughter element operates, and obtains To the test result of the simulated operation, including:
Clicking operation is simulated to the target daughter element, the click test result of the simulation clicking operation is obtained, it is described Clicking on test result is used for and clicks on notional result and be compared, with when judging that the target daughter element is clicked whether normal work Make.
5. method according to claim 1, it is characterised in that described simulation to the target daughter element operates, and obtains To the test result of the simulated operation, including:
Display operation is simulated to the target daughter element, the display test result of the simulative display operation is obtained, it is described Display test result is used to be compared with display notional result, to judge whether the target daughter element normally shows.
6. method according to claim 1, it is characterised in that methods described also includes:
Slide, the second page that acquisition is associated with the first page, described second are simulated to the first page The page include the first page upward sliding when the page, the first page slide downward when the page, the first page Any one of page when the page and the first page when left slip are slided to the right;
Target daughter element mark in the second page, tests the target daughter element in the second page.
7. a seed element test device, it is characterised in that described device includes:
First acquisition module, for obtaining the mark of the target daughter element in first page, the first page includes at least one Element, each element includes at least one daughter element, and daughter element identifies the classification for identifying daughter element, belongs to identical category The corresponding daughter element mark of daughter element is identical;
Determining module, for being identified according to the target daughter element, determines goal set, and the goal set includes described the Multiple daughter elements corresponding with the target daughter element mark in one page;
Extraction module, for according to the index value for determining, extracting target daughter element from the goal set, the index value is used In position of the instruction target daughter element in the goal set;
First test module, operates for being simulated to the target daughter element, obtains the test result of the simulated operation, The test result be used for be compared with notional result, with judge the target daughter element whether normal work.
8. device according to claim 7, it is characterised in that the extraction module, including:
Acquiring unit, the length for obtaining the goal set;
Determining unit, the span for determining index value according to the length;
Extraction unit, for traveling through each index value in the span, according to the index value for currently traversing, from described Target daughter element is extracted in goal set.
9. device according to claim 8, it is characterised in that the determining unit, be additionally operable to using preset initial value as The minimum value of the span, determines the maximum of the span according to the minimum value and the length, and according to The minimum value and the maximum determine the span.
10. device according to claim 7, it is characterised in that first test module, is additionally operable to target Element is simulated clicking operation, obtains the click test result of the simulation clicking operation, and the click test result is used for Be compared with notional result is clicked on, with when judging that the target daughter element is clicked whether normal work.
11. devices according to claim 7, it is characterised in that first test module, are additionally operable to target Element is simulated display operation, obtains the display test result of the simulative display operation, and the display test result is used for It is compared with display notional result, to judge whether the target daughter element normally shows.
12. devices according to claim 7, it is characterised in that described device also includes:
Second acquisition module, for being simulated slide to the first page, what acquisition was associated with the first page Second page, the second page include the first page upward sliding when the page, the first page slide downward when Any one of the page of the page and first page when sliding to the left of the page, first page when sliding to the right;
Second test module, for the target daughter element mark in the second page, to the mesh in the second page Mark daughter element is tested.
CN201611091106.2A 2016-12-01 2016-12-01 Subelement testing method and device Active CN106776301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611091106.2A CN106776301B (en) 2016-12-01 2016-12-01 Subelement testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611091106.2A CN106776301B (en) 2016-12-01 2016-12-01 Subelement testing method and device

Publications (2)

Publication Number Publication Date
CN106776301A true CN106776301A (en) 2017-05-31
CN106776301B CN106776301B (en) 2020-12-04

Family

ID=58913505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611091106.2A Active CN106776301B (en) 2016-12-01 2016-12-01 Subelement testing method and device

Country Status (1)

Country Link
CN (1) CN106776301B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144841A (en) * 2017-06-16 2019-01-04 腾讯科技(深圳)有限公司 The recognition methods and device of advertisement applications, computer equipment and storage medium
CN110515835A (en) * 2019-07-30 2019-11-29 上海云扩信息科技有限公司 A kind of test method based on machine vision and DOM tree structure
CN110968809A (en) * 2018-09-29 2020-04-07 北京字节跳动网络技术有限公司 Webpage processing method and device, electronic equipment and storage medium
CN111858289A (en) * 2019-04-29 2020-10-30 深圳兆日科技股份有限公司 Method and device for testing graphical user interface and computer readable storage medium
CN111949510A (en) * 2019-05-17 2020-11-17 百度在线网络技术(北京)有限公司 Test processing method and device, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760841A (en) * 2004-10-15 2006-04-19 微软公司 System and method for making user interface elements visible
CN103309797A (en) * 2012-03-09 2013-09-18 阿里巴巴集团控股有限公司 Automatic testing method and device of user interface
US20140245269A1 (en) * 2013-02-27 2014-08-28 Oracle International Corporation Compact encoding of node locations
CN104038961A (en) * 2013-03-05 2014-09-10 华为终端有限公司 Location message receiving method, location message sending method, device and system
CN104424087A (en) * 2013-08-21 2015-03-18 阿里巴巴集团控股有限公司 Web page element positioning method, apparatus and system
CN104572429A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Page testing method and device for collective elements
US20160179658A1 (en) * 2013-11-27 2016-06-23 Ca, Inc. User interface testing abstraction
US20170353304A1 (en) * 2014-12-23 2017-12-07 Orange Method for getting a user validation of a key

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760841A (en) * 2004-10-15 2006-04-19 微软公司 System and method for making user interface elements visible
CN103309797A (en) * 2012-03-09 2013-09-18 阿里巴巴集团控股有限公司 Automatic testing method and device of user interface
US20140245269A1 (en) * 2013-02-27 2014-08-28 Oracle International Corporation Compact encoding of node locations
CN104038961A (en) * 2013-03-05 2014-09-10 华为终端有限公司 Location message receiving method, location message sending method, device and system
CN104424087A (en) * 2013-08-21 2015-03-18 阿里巴巴集团控股有限公司 Web page element positioning method, apparatus and system
CN104572429A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Page testing method and device for collective elements
US20160179658A1 (en) * 2013-11-27 2016-06-23 Ca, Inc. User interface testing abstraction
US20170353304A1 (en) * 2014-12-23 2017-12-07 Orange Method for getting a user validation of a key

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
EDISON_徐: "getElementsByClassName函数实现获取指定类名的子元素列表", 《HTTPS://BLOG.CSDN.NET/LIANG526011569/ARTICLE/DETAILS/53453482》 *
UPGUNDECHA: ""Using DOM, XPath & CSS for Object Identification in QTP-Part 1"", 《HTTPS://UNMESH.ME/2011/11/16/USING-DOM-XPATH-CSS-FOR-OBJECT-IDENTIFICATION-IN-QTP-PART-1/》 *
寒-寒: "定位页面元素-方法汇总", 《HTTPS://BLOG.CSDN.NET/MACK415858775/ARTICLE/DETAILS/38703545》 *
测试之美: "Selenium Webdriver元素定位的八种常用方式", 《HTTPS://BLOG.CSDN.NET/QINGCHUNJUN/ARTICLE/DETAILS/42581261》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144841A (en) * 2017-06-16 2019-01-04 腾讯科技(深圳)有限公司 The recognition methods and device of advertisement applications, computer equipment and storage medium
CN109144841B (en) * 2017-06-16 2022-06-10 腾讯科技(深圳)有限公司 Method and device for identifying advertisement application, computer equipment and storage medium
CN110968809A (en) * 2018-09-29 2020-04-07 北京字节跳动网络技术有限公司 Webpage processing method and device, electronic equipment and storage medium
CN111858289A (en) * 2019-04-29 2020-10-30 深圳兆日科技股份有限公司 Method and device for testing graphical user interface and computer readable storage medium
CN111858289B (en) * 2019-04-29 2024-02-27 深圳兆日科技股份有限公司 Method and device for testing graphical user interface and computer readable storage medium
CN111949510A (en) * 2019-05-17 2020-11-17 百度在线网络技术(北京)有限公司 Test processing method and device, electronic equipment and readable storage medium
CN110515835A (en) * 2019-07-30 2019-11-29 上海云扩信息科技有限公司 A kind of test method based on machine vision and DOM tree structure

Also Published As

Publication number Publication date
CN106776301B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN107038112B (en) Application interface debugging method and device
CN105788612B (en) A kind of method and apparatus detecting sound quality
CN107863095A (en) Acoustic signal processing method, device and storage medium
CN106776301A (en) Daughter element method of testing and device
CN107357725B (en) Application testing method and device
CN104077211B (en) A kind of test method and test system of mobile terminal software
CN106126411B (en) The method and apparatus that a kind of pair of tested program code is tested
CN106708676A (en) Interface test method and apparatus
CN105847325B (en) The adjustment method and device of applications client
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN106708496A (en) Processing method and apparatus for label page in graphic interface
CN108470571A (en) A kind of audio-frequency detection, device and storage medium
CN106775267A (en) A kind of method and apparatus of the function menu for showing game plug-in unit
CN104699501B (en) A kind of method and device for running application program
CN106649126A (en) Method and apparatus for testing application program
CN105526944B (en) Information cuing method and device
CN107783906A (en) Method of testing, device and storage medium
CN106294168A (en) A kind of method and system carrying out Application testing
CN110069407B (en) Function test method and device for application program
CN106791153A (en) Using PUSH message classifying indication method, device and mobile terminal
CN105807908B (en) A kind of method and apparatus of switching working mode
CN108492837A (en) Detection method, device and the storage medium of audio burst white noise
CN105094872B (en) A kind of method and apparatus showing web application
CN104834655B (en) A kind of method and apparatus for the mass parameter for showing Internet resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant