CN106776301B - Subelement testing method and device - Google Patents

Subelement testing method and device Download PDF

Info

Publication number
CN106776301B
CN106776301B CN201611091106.2A CN201611091106A CN106776301B CN 106776301 B CN106776301 B CN 106776301B CN 201611091106 A CN201611091106 A CN 201611091106A CN 106776301 B CN106776301 B CN 106776301B
Authority
CN
China
Prior art keywords
page
sub
target
target sub
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.)
Active
Application number
CN201611091106.2A
Other languages
Chinese (zh)
Other versions
CN106776301A (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

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a subelement testing method and device, and belongs to the technical field of networks. The method comprises the following steps: acquiring a target sub-element identifier in a first page; determining a target set according to the target sub-element identifier; extracting a target sub-element from the target set according to the determined index value, wherein the index value is used for indicating the position of the target sub-element in the target set; and carrying out simulation operation on the target sub-elements to obtain a test result of the simulation operation. The invention can integrate a plurality of sub-elements belonging to the same category in different elements into the same target set according to the target sub-element identification, thereby indicating the positions of the sub-elements in the target set by the index values, accurately identifying and positioning the target sub-elements according to the determined index values, further testing the target sub-elements and expanding the testing function.

Description

Subelement testing method and device
Technical Field
The invention relates to the technical field of networks, in particular to a subelement testing method and a subelement testing device.
Background
As network technology has developed, terminals may display various pages, each of which includes a plurality of elements, such as list elements, text elements, image elements, and the like. In order to ensure that the page can work normally, the test terminal needs to test the elements in the page.
Because the page includes a plurality of elements, in the testing process, in order to distinguish different elements, the testing terminal needs to obtain the target element identifier, extract the element to be tested corresponding to the target element identifier from all the elements in the page according to the target element identifier, and test the element to be tested. Namely, the testing terminal displays the page, and the simulation terminal simulates the operation executed by the element to be tested in the page.
In the process of implementing the invention, the inventor finds that the related art has at least the following problems:
because the application page comprises a plurality of sub-elements belonging to different categories, and the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the sub-elements belonging to the same category cannot be distinguished only according to the sub-element identifiers, so that the sub-elements cannot be identified and positioned, and the sub-elements cannot be tested.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method and an apparatus for testing a sub-element. The technical scheme is as follows:
in one aspect, a subelement testing method is provided, the method comprising:
acquiring a target sub-element identifier in a first page, wherein the first page comprises at least one element, each element comprises at least one sub-element, the sub-element identifiers are used for identifying the categories of the sub-elements, and the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same;
determining a target set according to the target sub-element identifier, wherein the target set comprises a plurality of sub-elements corresponding to the target sub-element identifier in the first page;
extracting a target sub-element from the target set according to the determined index value, wherein the index value is used for indicating the position of the target sub-element in the target set;
and carrying out simulation operation on the target subelement to obtain a test result of the simulation operation, wherein the test result is used for comparing with a theoretical result to judge whether the target subelement works normally.
In one possible implementation, the extracting, according to the determined index value, a target sub-element from the target set includes:
acquiring the length of the target set, and determining the value range of an index value according to the length;
and traversing each index value in the value range, and extracting target sub-elements from the target set according to the currently traversed index value.
In another possible implementation manner, the determining a value range of the index value according to the length includes:
and taking a preset initial value as the minimum value of the value range, determining the maximum value of the value range according to the minimum value and the length, and determining the value range according to the minimum value and the maximum value.
In another possible implementation manner, the performing a simulation operation on the target sub-element to obtain a test result of the simulation operation includes:
and carrying out simulated click operation on the target sub-element to obtain a click test result of the simulated click operation, wherein the click test result is used for comparing with a click theoretical result so as to judge whether the target sub-element works normally when being clicked.
In another possible implementation manner, the performing a simulation operation on the target sub-element to obtain a test result of the simulation operation includes:
and performing simulation display operation on the target sub-element to obtain a display test result of the simulation display operation, wherein the display test result is used for comparing with a display theoretical result to judge whether the target sub-element is normally displayed.
In another possible implementation manner, the method further includes:
performing simulated sliding operation on the first page to obtain a second page related to the first page, wherein the second page comprises any one of a page when the first page slides upwards, a page when the first page slides downwards, a page when the first page slides leftwards and a page when the first page slides rightwards;
and testing the target sub-elements in the second page according to the target sub-element identifiers in the second page.
In another aspect, a subelement testing apparatus is provided, the apparatus comprising:
the first obtaining module is used for obtaining a target sub-element identifier in a first page, the first page comprises at least one element, each element comprises at least one sub-element, the sub-element identifiers are used for identifying the categories of the sub-elements, and the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same;
a determining module, configured to determine a target set according to the target sub-element identifier, where the target set includes multiple sub-elements corresponding to the target sub-element identifier in the first page;
an extracting module, configured to extract a target sub-element from the target set according to the determined index value, where the index value is used to indicate a position of the target sub-element in the target set;
and the first testing module is used for carrying out simulation operation on the target sub-element to obtain a testing result of the simulation operation, and the testing result is used for comparing with a theoretical result to judge whether the target sub-element works normally or not.
In one possible implementation manner, the extraction module includes:
an obtaining unit, configured to obtain a length of the target set;
the determining unit is used for determining the value range of the index value according to the length;
and the extraction unit is used for traversing each index value in the value range and extracting the target sub-elements from the target set according to the currently traversed index value.
In another possible implementation manner, the determining unit is further configured to use a preset initial value as a minimum value of the value range, determine a maximum value of the value range according to the minimum value and the length, and determine the value range according to the minimum value and the maximum value.
In another possible implementation manner, the first test module is further configured to perform a simulated click operation on the target sub-element to obtain a click test result of the simulated click operation, where the click test result is used to compare with a click theoretical result to determine whether the target sub-element is clicked and works normally.
In another possible implementation manner, the first testing module is further configured to perform a simulation display operation on the target sub-element to obtain a display testing result of the simulation display operation, where the display testing result is used to compare with a display theoretical result to determine whether the target sub-element is normally displayed.
In another possible implementation manner, the apparatus further includes:
the second obtaining module is used for carrying out simulated sliding operation on the first page and obtaining a second page related to the first page, wherein the second page comprises any one of a page when the first page slides upwards, a page when the first page slides downwards, a page when the first page slides leftwards and a page when the first page slides rightwards;
and the second testing module is used for testing the target sub-element in the second page according to the target sub-element identifier in the second page.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the method provided by the embodiment of the invention, in consideration of the fact that the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the target sub-element identifier in the first page is obtained, the target set is determined according to the target sub-element identifier, the target sub-element is extracted from the target set according to the determined index value, the target sub-element is subjected to simulation operation, a test result of the simulation operation is obtained, and the test result is used for being compared with a theoretical result to judge whether the target sub-element normally works. According to the target sub-element identification, a plurality of sub-elements belonging to the same category in different elements can be integrated in the same target set, so that the positions of the sub-elements in the target set are indicated by the index values, the target sub-elements are accurately identified and positioned according to the determined index values, the target sub-elements are tested, and the test function is expanded.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for sub-element testing provided by an embodiment of the invention;
FIG. 2 is a flow chart of a child element testing method provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a song chart page provided by an embodiment of the invention;
FIG. 4 is a schematic structural diagram of a sub-element testing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a sub-element testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a sub-element testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a sub-element testing method provided in an embodiment of the present invention, and the embodiment of the present invention is applied to a testing terminal, as shown in fig. 1, the sub-element testing method includes the following steps:
101. the method comprises the steps of obtaining target sub-element identification in a first page, wherein the first page comprises at least one element, each element comprises at least one sub-element, the sub-element identification is used for identifying the category of the sub-element, and the sub-element identifications corresponding to the sub-elements belonging to the same category in different elements are the same.
102. And determining a target set according to the target sub-element identifier, wherein the target set comprises a plurality of sub-elements corresponding to the target sub-element identifier in the first page.
103. And extracting the target sub-element from the target set according to the determined index value, wherein the index value is used for indicating the position of the target sub-element in the target set.
104. And carrying out simulation operation on the target subelement to obtain a test result of the simulation operation, wherein the test result is used for comparing with a theoretical result so as to judge whether the target subelement works normally.
In the method provided by the embodiment of the invention, in consideration of the fact that the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the target sub-element identifier in the first page is obtained, the target set is determined according to the target sub-element identifier, the target sub-element is extracted from the target set according to the determined index value, the target sub-element is subjected to simulation operation, a test result of the simulation operation is obtained, and the test result is used for being compared with a theoretical result to judge whether the target sub-element normally works. According to the target sub-element identification, a plurality of sub-elements belonging to the same category in different elements can be integrated in the same target set, so that the positions of the sub-elements in the target set are indicated by the index values, the target sub-elements are accurately identified and positioned according to the determined index values, the target sub-elements are tested, and the test function is expanded.
In one possible implementation, the extracting the target sub-element from the target set according to the determined index value includes:
acquiring the length of the target set, and determining the value range of the index value according to the length;
and traversing each index value in the value range, and extracting the target sub-elements from the target set according to the currently traversed index value.
In another possible implementation manner, the determining a value range of the index value according to the length includes:
and taking a preset initial value as the minimum value of the value range, determining the maximum value of the value range according to the minimum value and the length, and determining the value range according to the minimum value and the maximum value.
In another possible implementation manner, the performing a simulation operation on the target sub-element to obtain a test result of the simulation operation includes:
and carrying out simulated click operation on the target sub-element to obtain a click test result of the simulated click operation, wherein the click test result is used for comparing with a click theoretical result so as to judge whether the target sub-element works normally when being clicked.
In another possible implementation manner, the performing a simulation operation on the target sub-element to obtain a test result of the simulation operation includes:
and performing simulation display operation on the target sub-element to obtain a display test result of the simulation display operation, wherein the display test result is used for comparing with a display theoretical result to judge whether the target sub-element is normally displayed.
In another possible implementation manner, the method further includes:
performing simulated sliding operation on the first page to obtain a second page related to the first page, wherein the second page comprises any one of a page when the first page slides upwards, a page when the first page slides downwards, a page when the first page slides leftwards and a page when the first page slides rightwards;
and testing the target sub-element in the second page according to the target sub-element identifier in the second page.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a sub-element testing method according to an exemplary embodiment, where an execution subject of the embodiment of the present invention is a testing terminal, and as shown in fig. 2, the sub-element testing method includes the following steps:
201. the test terminal obtains a target sub-element identifier in the first page, and determines a target set according to the target sub-element identifier.
In the related art, a page to be tested includes at least one element, and each element may include at least one sub-element. Each element has an element identifier, each sub-element has a sub-element identifier, the sub-element identifiers are used for identifying the categories of the sub-elements, and the sub-element identifiers of the sub-elements belonging to the same category are the same.
In the process of testing the page, the test terminal cannot identify different elements or different sub-elements through naked eyes and thinking, so that the test terminal can firstly acquire a target element identifier during testing, and determine the element to be tested according to the target element identifier. However, because the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the test terminal cannot distinguish a plurality of sub-elements belonging to the same category only according to the target sub-element identifier, and further cannot test the sub-elements.
Fig. 3 is a schematic diagram of a song ranking list page, which includes three song elements, each of which includes sub-elements belonging to three categories of a song name, a singer name, and a song type, the three song elements are respectively identified as "song 1", "song 2", and "song 3", and a relationship between each song element and the sub-elements included in the song element may be as shown in table 1 below. Then, when the test terminal needs to test the subelement "Singer a", the "Singer a", "Singer B", and "Singer C" cannot be distinguished according to the subelement identifier "Singer", resulting in that the "Singer a" cannot be tested.
TABLE 1
Figure GDA0002725825300000071
In the embodiment of the invention, the test terminal can integrate a plurality of sub-elements belonging to the same category into the same target set, accurately identify and position the target sub-elements according to different positions of the sub-elements in the target set, and further test the target sub-elements.
Specifically, taking the test of the first page as an example, the test terminal may obtain a target sub-element identifier in the first page, and determine a target set according to the target sub-element identifier, where the target set includes a plurality of sub-elements corresponding to the target sub-element identifier in the first page.
The testing terminal can be a mobile phone, a tablet computer and the like, and the operating system of the testing terminal can be an android operating system, an iOS (apple Mobile operating System), a FirefoxOS (Firefox Mobile operating System) and the like. The first page may be any page that can be displayed on the test terminal, may be an application page, a web page, or the like, and may also be other types of pages.
The first page includes at least one element therein, which may include a list element, a text element, a sound element, a button element, and the like. Further, each element may include at least one sub-element, which may include a sound sub-element, a picture sub-element, a text sub-element, and the like.
Wherein each element has an element identification and each sub-element has a sub-element identification. The element identifier is used to uniquely determine the element in the first page, and may be a name, a pattern, a URL (Uniform resource Locator) and the like of the element, the sub-element identifier is used to identify a category of the sub-element, and may be a name of the category or a number assigned to the category and the like, and the sub-element identifiers of the sub-elements belonging to the same category are the same.
Then, when the test terminal is to test the sub-elements belonging to a certain category in the first page, obtaining a target sub-element identifier to be tested, and determining a target set according to the target sub-element identifier, where the target set includes a plurality of sub-elements corresponding to the target sub-element identifier in the first page.
Further, the test terminal may call a set obtaining function to obtain the target set, where the set obtaining function is used to obtain all sub-elements corresponding to the same sub-element identifier, and form a set. And if the input parameter of the set acquisition function is the target sub-element identifier and the output parameter is the target set, the set acquisition function can return to the target set after the test terminal transmits the target sub-element identifier to the set acquisition function.
For example, the set obtaining function may be a Get Elements function, and the test terminal may call the Get Elements function to obtain the target set. For example, based on the example of table 1 above, the test terminal imports the target subelement identification "Singer" into the Get Elements function, which returns a set of Singer names, which are { "Singer a", "Singer B", "Singer C" }.
202. And the test terminal acquires the length of the target set and determines the value range of the index value according to the length.
Regarding the process of obtaining the length of the target set, the test terminal may call a length obtaining function to obtain the length of the target set. The input parameter of the length obtaining function is a target set, the output parameter is the length of the target set, and then after the test terminal transmits the target set to the length obtaining function, the length obtaining function can return the length of the target set.
For example, the Length obtaining function may be a Get Length function, and the test terminal may call the Get Length function to obtain the Length of the target set. For example, based on the example of table 1 above, the test terminal may import the set of singer names { "singer a", "singer B", "singer C" } to the Get Length function, and the Get Length function outputs the Length 3 of the set of singer names.
Regarding the process of determining the value range of the index value according to the length: in order to identify and locate the target sub-element, the test terminal needs to determine the position of the target sub-element in the target set, and therefore, the test terminal needs to obtain an index value, which is used to indicate the position of the target sub-element in the target set.
The value range of the index value is determined according to the length of the target set, after the test terminal obtains the length of the target set, a preset initial value can be used as the minimum value of the value range, the preset initial value can be 0, 1 and the like, the test terminal can determine the maximum value of the value range according to the minimum value and the length, for example, the minimum value and the length can be added and subtracted by one to obtain the maximum value.
After obtaining the minimum value and the maximum value of the index value, the test terminal may determine the value range according to the minimum value and the maximum value. Since the index value is an integer, the range of the index value is naturally limited to the number in the integer range. The difference between adjacent index values is fixed, and may be 1, for example, and the value range may be (1, 2, 3).
Based on the example in table 1 in step 201 above, in the set of singer names { "singer a", "singer B", "singer C" }, the minimum value of the index value may be 1, the index value of the sub-element "singer a" is 1, the index value of the sub-element "singer B" is 2, and the index value of the sub-element "singer C" is 3.
203. And traversing each index value in the value range by the test terminal, and extracting target sub-elements from the target set according to the currently traversed index value.
The test terminal may determine a set extraction function for extracting target sub-elements from a target set. The input parameters of the set extraction function are an index value and a target set, and the output parameters of the set extraction function are target sub-elements, so that after the index value and the target set are transmitted to the set extraction function by the test terminal, the set extraction function can return the target sub-elements corresponding to the index value according to the determined index value.
Specifically, the code of the set extraction function may be as follows:
Def select element(self,elements,index)
{
% annotation: select elements are names of set extraction functions, elements are target sets, index is an index value, and elements are target sub-elements
element=elements[int(index)]
Return element
}
Based on the above example of table 1, the test terminal may transmit the singer name set { "singer a", "singer B", "singer C" } and the index value 2 to the set extraction function, and the set extraction function will return "singer B".
204. The test terminal performs a simulation operation on the target sub-element to obtain a test result of the simulation operation, continues to traverse a next index value within the value range, and performs step 203 and step 204 to test the next target sub-element until the current index value exceeds the value range.
Preferably, the test terminal may call a loop control function, input parameters of the loop control function are a control variable, a value range of the control variable, an adjustment mode of the control variable, and a type of the simulation operation, and the loop control function includes executing the simulation operation when the current control variable is in the value range.
Then, the test terminal may use the index value as a control variable of the cyclic control function, introduce the index value, a value range of the index value, an adjustment mode of the index value, and a simulation operation type to the cyclic control function, extract a target sub-element from the target set according to the current index value through the cyclic control function, perform a simulation operation on the target sub-element, obtain a test result of the simulation operation, and obtain a next index value within the value range according to the adjustment mode, until the index value exceeds the value range, the cyclic process is not executed. Through the cyclic control function, the test terminal can sequentially test all target sub-elements at different positions in the target set.
The loop control function may be a for function, a while function, and the like, which is not limited in the embodiments of the present invention.
The process of performing, by the test terminal, the simulation operation on the target sub-element refers to, in order to test whether each target sub-element in the first page can normally work, displaying, by the test terminal, the first page, and performing, by the simulation terminal, an operation on each target sub-element in the first page. For example, a click operation may be performed on a button control, a display operation may be performed on a text control, a play operation may be performed on voice data, and so on. The test terminal may test different functions of the target sub-element by simulating different types of operations, which is not limited in the embodiment of the present invention.
After the simulation operation is performed on the target sub-element, the test terminal may obtain a test result of the simulation operation. The test result corresponds to the simulation operation, and the test result is used for comparing with a theoretical result so as to judge whether the target sub-element can work normally. Accordingly, the test result may also represent whether the target sub-element can work normally when displayed on a terminal other than the test terminal.
The theoretical result is a result obtained when the target sub-element is operated normally and the target sub-element is subjected to simulation operation. When the target sub-element is subjected to simulation operation, if the obtained test result is the same as the theoretical result, the target sub-element can be determined to normally operate, and if the obtained test result is different from the theoretical result, the target sub-element can be determined to be in error in operation.
Specifically, the test terminal may pre-store the theoretical result, and after the simulation operation is performed on the target sub-element, the test result may be compared with the theoretical result to determine whether the test result is the same as the pre-stored theoretical result, so as to determine whether the target sub-element can normally operate. Of course, a theoretical result of the simulation operation may also be determined by a tester through analysis, and after a test result is obtained through the test terminal, whether the test result is the same as the theoretical result is manually determined, so as to determine whether the target sub-element can normally operate, which is not limited in the embodiment of the present invention.
Specifically, for different types of simulation operations, the step 204 may include the following steps 2041-:
2041. and the test terminal performs simulated click operation on the target sub-element to obtain a click test result of the simulated click operation.
Specifically, the test terminal may obtain a click test function, an input parameter of the click test function is a target sub-element, an output parameter is a response result of the simulated click operation, and the test terminal may perform the simulated click operation on the target sub-element by calling the click test function.
The code for the click test function may be as follows:
Def click_by_element_given(self,element)
{
% annotation: element is a target sub-element "
Self._info(“click_by_element_given”)
element.click()
}
The simulated click operation is used for testing whether the target sub-element can be clicked normally, when the simulated click operation is carried out on the target sub-element, the test terminal can obtain a click test result of the simulated click operation, and the click test result is used for being compared with a click theoretical result so as to judge whether the target sub-element works normally when being clicked.
In a possible implementation manner, when the target sub-element is a link-type sub-element, the target sub-element is associated with a link address, and the link address points to a page, then the test terminal may use the page as a click theory result, perform a simulated click operation on the target sub-element, obtain the click test result, and compare the click test result with the click theory result, that is, determine whether an open page is a page to which the link address associated with the target sub-element points when the simulated click operation is performed on the target sub-element, and determine that the target sub-element can normally operate when being clicked when the open page is a page to which the link address associated with the target sub-element points.
In another possible implementation manner, the target sub-element is associated with designation information, and the test terminal performs a click simulation operation on the target sub-element, so that the test terminal may use the designation information as a click theoretical result, perform the click simulation operation on the target sub-element, obtain the click test result, compare the click test result with the click theoretical result, that is, determine whether information popped up by the test terminal is the designation information associated with the target sub-element when the click simulation operation is performed on the target sub-element, and determine that the target sub-element can normally operate when clicked when the information popped up by the target sub-element is the designation information associated with the target sub-element.
The specific information may be a specific window, text box, advertisement, etc., which is not limited in this embodiment of the present invention. For example, the specified information associated with the target sub-element "singer B" may be "a singer combination popular with square dance".
Of course, after obtaining the click test result of the target sub-element through the test terminal, the tester may also analyze the click theoretical result of the target sub-element, and determine whether the target sub-element can normally work when clicked by judging whether the click test result is the same as the click theoretical result, which is not limited in the embodiments of the present invention.
2042. And the test terminal performs simulation display operation on the target sub-element to obtain a display test result of the simulation display operation.
The simulation display operation is used for testing whether the target sub-element can be normally displayed, when the simulation display operation is carried out on the target sub-element, the test terminal can obtain a display test result of the simulation display operation, and the display test result is used for being compared with a display theoretical result to judge whether the target sub-element is normally displayed.
Specifically, the test terminal may determine a display test function, where an input parameter of the display test function is a target sub-element, an output parameter is a display test result of the simulation display operation, and the test terminal may perform the simulation display operation on the target sub-element through the display test function.
The code to display the test function may be as follows:
Def get_text(self,element)
{
% annotation: element is a target sub-element "
Self._info(“get the text of the element”)
Return elment.text
}
Specifically, the test terminal may pre-store a display theoretical result, and after the target sub-element is subjected to the analog display operation, the display test result may be compared with the display theoretical result to determine whether the display test result is the same as the pre-stored theoretical result, so as to determine whether the target sub-element can be normally displayed. Of course, the theoretical display result of the analog display operation may also be determined by the tester through analysis, and after the display test result is obtained through the test terminal, it is manually determined whether the display test result is the same as the theoretical display result, so as to determine whether the target sub-element can be normally displayed, which is not limited in the embodiment of the present invention.
It should be noted that the test terminal may also perform other simulation operations on the target sub-element, for example, when the target element is music, the test terminal may perform a simulation play operation on the target sub-element, and when the target element is an input field, the test terminal may perform a simulation input operation on the target sub-element, which is not limited in this embodiment of the present invention.
Moreover, in the embodiment of the present invention, the corresponding target sub-element in the first page is tested according to the target sub-element identifier, but in practical applications, when the first page is tested, because the first page may include sub-elements belonging to multiple categories, the first page may be tested according to the corresponding target sub-element identifiers, thereby completing the testing of all sub-elements in the first page.
205. And the test terminal performs simulated sliding operation on the first page, acquires a second page associated with the first page, and tests the target sub-element in the second page according to the target sub-element identifier in the second page.
After the test terminal tests the first page, the test terminal can also test a second page related to the first page, so as to judge whether the second page can work normally.
Therefore, taking the first page and the second page as an example, the test terminal may perform a simulated sliding operation on the first page to obtain the second page associated with the first page. Wherein the second page includes any one of a page when the first page slides up, a page when the first page slides down, a page when the first page slides left, and a page when the first page slides right.
Further, the test terminal may call a sliding function to perform a simulated sliding operation, where the sliding function is used to slide the current page and acquire a page associated with the current page. The input parameters of the sliding function are the abscissa of the sliding starting point of the current page, the ordinate of the sliding starting point of the current page, the abscissa of the sliding ending point of the current page, the ordinate of the sliding ending point of the current page and the sliding time interval, and the output parameters of the sliding function are the page related to the current page.
For example, the sliding function may be a swipe function, parameters introduced to the swipe function are different, different types of sliding operations of sliding up, sliding down, sliding left, and sliding right may be simulated, and accordingly, the obtained second page associated with the first page may be a page in a different sliding direction. That is, the sliding process may include:
1. when the abscissa of the sliding starting point and the abscissa of the sliding ending point, which are transmitted to the swipe function, are the same, and the ordinate of the sliding starting point is larger than the ordinate of the sliding ending point and is the same, the test terminal acquires the page when the first page slides upwards.
2. When the abscissa of the sliding starting point and the abscissa of the sliding ending point, which are transmitted to the swipe function, are the same, and the ordinate of the sliding starting point is smaller than the ordinate of the sliding ending point, which are the same, the test terminal acquires the page when the first page slides downwards.
3. When the ordinate of the sliding starting point and the ordinate of the sliding ending point, which are transmitted to the swipe function, are the same, and the abscissa of the sliding starting point is larger than the ordinate of the sliding ending point, the test terminal acquires the page when the first page slides to the left.
4. When the ordinate of the sliding starting point and the ordinate of the sliding ending point, which are transmitted to the swipe function, are the same, and the abscissa of the sliding starting point is smaller than the ordinate of the sliding ending point, the test terminal acquires the page when the first page slides to the right.
After the test terminal obtains the second page, the target sub-element in the second page can be tested according to the target sub-element identifier in the second page. That is, according to the target sub-element identifier in the second page, a target set is determined, the length of the target set is obtained, a value range of an index value is determined according to the length, each index value in the value range is traversed, according to the currently traversed index value, a target sub-element is extracted from the target set, and a simulation operation is performed on the target sub-element, so that a test result of the simulation operation is obtained.
In the related art, when two sub-elements belong to the same category, the two sub-elements correspond to the same sub-element identifier, and the test terminal identifies the sub-elements only by means of the sub-element identifiers, so that different sub-elements cannot be distinguished. In the embodiment of the present invention, the two data, i.e., the sub-element identifier and the index value, are combined to be used as data for identifying any sub-element. Then, for any two sub-elements, when the two sub-elements belong to different categories, the sub-element identifications of the two sub-elements are different, the test terminal can distinguish different sub-elements according to different sub-element identifications, and when the two sub-elements belong to the same category, the index values of the two sub-elements are different, and the test terminal can distinguish different sub-elements according to different index values. That is, no matter whether any two sub-elements belong to the same category, the test terminal can always distinguish different sub-elements, and can extract any target sub-element from the plurality of sub-elements.
For example, based on the example of table 1 above, for the sub-elements "singer a" and "blue and white porcelain", the sub-element of "singer a" is identified as "singer" and the sub-element of "blue and white porcelain" is identified as "music", and the test terminal can distinguish "singer a" and "blue and white porcelain" from "singer" and "music". For the sub-elements "singer a" and "singer B", although the sub-element identifications of the two sub-elements are "singer", the index value of "singer a" is 1, and the index value of "singer B" is 2, the test terminal can distinguish "singer a" and singer B "according to whether the index value is 1 or 2.
Further, the test terminal may be configured to install a test tool, and the test tool may be an accessory, a Robotium, a uiautomation, or the like, to test the first page.
In the method provided by the embodiment of the invention, in consideration of the fact that the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the target sub-element identifier in the first page is obtained, the target set is determined according to the target sub-element identifier, the target sub-element is extracted from the target set according to the determined index value, the target sub-element is subjected to simulation operation, a test result of the simulation operation is obtained, and the test result is used for being compared with a theoretical result to judge whether the target sub-element normally works. According to the target sub-element identification, a plurality of sub-elements belonging to the same category in different elements can be integrated in the same target set, so that the positions of the sub-elements in the target set are indicated by the index values, the target sub-elements are accurately identified and positioned according to the determined index values, the target sub-elements are tested, and the test function is expanded.
Fig. 4 is a schematic structural diagram of a subelement testing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes a first obtaining module 401, a determining module 402, an extracting module 403, and a first testing module 404.
A first obtaining module 401, configured to obtain a target sub-element identifier in a first page, where the first page includes at least one element, each element includes at least one sub-element, the sub-element identifiers are used to identify categories of the sub-elements, and sub-element identifiers corresponding to sub-elements belonging to the same category are the same;
a determining module 402, configured to determine a target set according to the target sub-element identifier, where the target set includes multiple sub-elements corresponding to the target sub-element identifier in the first page;
an extracting module 403, configured to extract a target sub-element from the target set according to the determined index value, where the index value is used to indicate a position of the target sub-element in the target set;
the first testing module 404 is configured to perform a simulation operation on the target sub-element to obtain a testing result of the simulation operation, where the testing result is used to compare with a theoretical result to determine whether the target sub-element is working normally.
In the device provided by the embodiment of the invention, in consideration of the fact that the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same, the target sub-element identifier in the first page is obtained, the target set is determined according to the target sub-element identifier, the target sub-element is extracted from the target set according to the determined index value, the target sub-element is subjected to simulation operation, a test result of the simulation operation is obtained, and the test result is used for comparing with a theoretical result to judge whether the target sub-element normally works. According to the target sub-element identification, a plurality of sub-elements belonging to the same category in different elements can be integrated in the same target set, so that the positions of the sub-elements in the target set are indicated by the index values, the target sub-elements are accurately identified and positioned according to the determined index values, the target sub-elements are tested, and the test function is expanded.
In a possible implementation manner, the extracting module 403 includes:
an obtaining unit, configured to obtain a length of the target set;
a determining unit, configured to determine a value range of the index value according to the length;
and the extraction unit is used for traversing each index value in the value range and extracting the target sub-elements from the target set according to the currently traversed index value.
In another possible implementation manner, the determining unit is further configured to use a preset initial value as a minimum value of the value range, determine a maximum value of the value range according to the minimum value and the length, and determine the value range according to the minimum value and the maximum value.
In another possible implementation manner, the first testing module 404 is further configured to perform a simulated click operation on the target sub-element to obtain a click testing result of the simulated click operation, where the click testing result is used to compare with a click theoretical result to determine whether the target sub-element is clicked and works normally.
In another possible implementation manner, the first testing module 404 is further configured to perform a simulation display operation on the target sub-element to obtain a display testing result of the simulation display operation, where the display testing result is used to compare with a display theoretical result to determine whether the target sub-element is normally displayed.
In another possible implementation, referring to fig. 5, the apparatus further includes:
a second obtaining module 405, configured to perform a sliding simulation operation on the first page, and obtain a second page associated with the first page, where the second page includes any one of a page when the first page slides upward, a page when the first page slides downward, a page when the first page slides left, and a page when the first page slides right;
the second testing module 406 is configured to test the target sub-element in the second page according to the target sub-element identifier in the second page.
It should be noted that: in the sub-element testing apparatus provided in the above embodiment, when testing the sub-element, only the division of the functional modules is exemplified, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the testing terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the sub-element testing apparatus and the sub-element testing method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The present embodiment provides a terminal, which can be used to execute the child element testing method provided in the above embodiments. Referring to fig. 6, the terminal 600 includes:
the terminal 600 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 60. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 600, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 6, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 600 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 600 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 600, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 600. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the terminal 600.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 600 can help a user send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 600, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 600 also includes a power supply 60 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 60 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 600 may further include a camera, a bluetooth module, and the like, which will not be described herein. In this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs contain instructions for implementing the operations performed by the test terminal in the embodiments described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A method of sub-element testing, the method comprising:
determining a first page to be tested;
acquiring a target sub-element identifier in the first page, wherein the first page comprises at least one element, each element comprises at least one sub-element, the sub-element identifiers are used for identifying the categories of the sub-elements, and the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same;
determining a target set according to the target sub-element identifier, wherein the target set comprises a plurality of sub-elements corresponding to the target sub-element identifier in the first page;
extracting a target sub-element corresponding to the determined index value from the target set according to the determined index value, wherein the index value is used for indicating the position of the target sub-element in the target set;
performing simulation operation on the target subelement to obtain a test result of the simulation operation, wherein the test result is used for comparing with a theoretical result to judge whether the target subelement works normally;
extracting a target sub-element corresponding to the next index value from the target set according to the next index value of the determined index values, and performing simulation operation on the target sub-element to obtain a test result of the simulation operation until all the sub-elements in the target set are tested;
performing simulated sliding operation on the first page, determining a sliding type of the simulated sliding operation based on an abscissa of a sliding starting point of the first page, a ordinate of the sliding starting point of the first page, an abscissa of a sliding ending point of the first page, an ordinate of the sliding ending point of the first page and a sliding time interval corresponding to the simulated sliding operation, and determining a second page associated with the first page based on the sliding type, wherein the second page comprises any one of a page when the first page slides upwards, a page when the first page slides downwards, a page when the first page slides leftwards and a page when the first page slides rightwards;
and testing the target sub-elements in the second page according to the target sub-element identifiers in the second page.
2. The method according to claim 1, wherein the extracting, according to the determined index value, the target sub-element corresponding to the determined index value from the target set includes:
acquiring the length of the target set, and determining the value range of an index value according to the length;
and traversing each index value in the value range, and extracting the target sub-element corresponding to the determined index value from the target set according to the currently traversed index value.
3. The method of claim 2, wherein determining the range of index values according to the length comprises:
and taking a preset initial value as the minimum value of the value range, determining the maximum value of the value range according to the minimum value and the length, and determining the value range according to the minimum value and the maximum value.
4. The method of claim 1, wherein performing the simulation operation on the target sub-element to obtain a test result of the simulation operation comprises:
and carrying out simulated click operation on the target sub-element to obtain a click test result of the simulated click operation, wherein the click test result is used for comparing with a click theoretical result so as to judge whether the target sub-element works normally when being clicked.
5. The method of claim 1, wherein performing the simulation operation on the target sub-element to obtain a test result of the simulation operation comprises:
and performing simulation display operation on the target sub-element to obtain a display test result of the simulation display operation, wherein the display test result is used for comparing with a display theoretical result to judge whether the target sub-element is normally displayed.
6. A subelement testing apparatus, the apparatus comprising:
the first obtaining module is used for determining a first page to be tested and obtaining a target sub-element identifier in the first page, wherein the first page comprises at least one element, each element comprises at least one sub-element, the sub-element identifiers are used for identifying the categories of the sub-elements, and the sub-element identifiers corresponding to the sub-elements belonging to the same category are the same;
a determining module, configured to determine a target set according to the target sub-element identifier, where the target set includes multiple sub-elements corresponding to the target sub-element identifier in the first page;
the extraction module is used for extracting a target sub-element corresponding to the determined index value from the target set according to the determined index value, wherein the index value is used for indicating the position of the target sub-element in the target set;
the first testing module is used for carrying out simulation operation on the target sub-element to obtain a testing result of the simulation operation, and the testing result is used for comparing with a theoretical result to judge whether the target sub-element works normally or not; extracting a target sub-element corresponding to the next index value from the target set according to the next index value of the determined index values, and performing simulation operation on the target sub-element to obtain a test result of the simulation operation until all the sub-elements in the target set are tested;
a second obtaining module, configured to perform a simulated sliding operation on the first page, determine a sliding type of the simulated sliding operation based on an abscissa of a sliding start point of the first page, a ordinate of the sliding start point of the first page, an abscissa of a sliding end point of the first page, an ordinate of the sliding end point of the first page, and a sliding time interval corresponding to the simulated sliding operation, and determine a second page associated with the first page based on the sliding type, where the second page includes any one of a page when the first page slides upward, a page when the first page slides downward, a page when the first page slides left, and a page when the first page slides right;
and the second testing module is used for testing the target sub-element in the second page according to the target sub-element identifier in the second page.
7. The apparatus of claim 6, wherein the extraction module comprises:
an obtaining unit, configured to obtain a length of the target set;
the determining unit is used for determining the value range of the index value according to the length;
and the extraction unit is used for traversing each index value in the value range and extracting the target sub-element corresponding to the determined index value from the target set according to the currently traversed index value.
8. The apparatus according to claim 7, wherein the determining unit is further configured to use a preset initial value as a minimum value of the value range, determine a maximum value of the value range according to the minimum value and the length, and determine the value range according to the minimum value and the maximum value.
9. The device according to claim 6, wherein the first testing module is further configured to perform a simulated click operation on the target sub-element to obtain a click testing result of the simulated click operation, and the click testing result is used for comparing with a click theory result to determine whether the target sub-element is working normally when clicked.
10. The apparatus according to claim 6, wherein the first testing module is further configured to perform a simulation display operation on the target sub-element to obtain a display testing result of the simulation display operation, and the display testing result is used to compare with a display theoretical result to determine whether the target sub-element is normally displayed.
11. A terminal, comprising one or more processors and one or more memories having stored therein at least one instruction that is loaded and executed by the one or more processors to perform operations performed by the subelement testing method of any one of claims 1-5.
12. A non-transitory computer-readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to perform operations performed by the subelement testing method of any of claims 1-5.
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 CN106776301A (en) 2017-05-31
CN106776301B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144841B (en) * 2017-06-16 2022-06-10 腾讯科技(深圳)有限公司 Method and device for identifying advertisement application, computer equipment and storage medium
CN110968809B (en) * 2018-09-29 2021-08-03 北京字节跳动网络技术有限公司 Webpage processing method and device, electronic equipment and storage medium
CN111858289B (en) * 2019-04-29 2024-02-27 深圳兆日科技股份有限公司 Method and device for testing graphical user interface and computer readable storage medium
CN111949510B (en) * 2019-05-17 2024-05-14 百度在线网络技术(北京)有限公司 Test processing method, device, electronic equipment and readable storage medium
CN110515835B (en) * 2019-07-30 2023-05-23 上海云扩信息科技有限公司 Test method based on machine vision and DOM tree structure

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572429A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Page testing method and device for collective elements

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7543278B2 (en) * 2004-10-15 2009-06-02 Microsoft Corporation System and method for making a user interface element visible
CN103309797B (en) * 2012-03-09 2016-05-04 阿里巴巴集团控股有限公司 User interface automated testing method and device
US9063916B2 (en) * 2013-02-27 2015-06-23 Oracle International Corporation Compact encoding of node locations
CN104038961B (en) * 2013-03-05 2018-11-06 华为终端(东莞)有限公司 Localization message reception, sending method, device and system
CN104424087B (en) * 2013-08-21 2017-07-28 阿里巴巴集团控股有限公司 A kind of method of Web page surface element positioning, apparatus and system
US20160179658A1 (en) * 2013-11-27 2016-06-23 Ca, Inc. User interface testing abstraction
EP3038001A1 (en) * 2014-12-23 2016-06-29 Orange Method for getting a user validation of a key

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572429A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Page testing method and device for collective elements

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Using DOM, XPath & CSS for Object Identification in QTP-Part 1";UPGUNDECHA;《https://unmesh.me/2011/11/16/using-dom-xpath-css-for-object-identification-in-qtp-part-1/》;20111116;第1-3页 *

Also Published As

Publication number Publication date
CN106776301A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107038112B (en) Application interface debugging method and device
CN108959000B (en) Server pressure testing method, system and terminal
CN106776301B (en) Subelement testing method and device
CN107094294B (en) Network connection method and device
CN106708676B (en) Interface test method and device
CN104852885B (en) Method, device and system for verifying verification code
CN106649126B (en) Method and device for testing application program
CN105208056B (en) Information interaction method and terminal
CN109753425B (en) Popup window processing method and device
CN108073495B (en) Method and device for positioning crash reason of application program
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN111078556B (en) Application testing method and device
CN109885490B (en) Picture comparison method and device
CN104809055B (en) Application program testing method and device based on cloud platform
WO2015027864A1 (en) Method, device and touch screen apparatus for refreshing content of draggable listview
CN109196480B (en) Method for displaying equipment identification, mobile terminal and terminal equipment
CN110069407B (en) Function test method and device for application program
CN103399706A (en) Page interaction method, device and terminal
CN112199246B (en) Terminal test method and device, storage medium and mobile terminal
CN105095161B (en) Method and device for displaying rich text information
CN106228994B (en) A kind of method and apparatus detecting sound quality
CN107341398B (en) Program evaluation method and device
CN109871324B (en) Control operation method and device
CN108269223B (en) Webpage graph drawing method and terminal
CN106933626B (en) Application association method and device

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant