CN109144841B - Method and device for identifying advertisement application, computer equipment and storage medium - Google Patents

Method and device for identifying advertisement application, computer equipment and storage medium Download PDF

Info

Publication number
CN109144841B
CN109144841B CN201710458866.0A CN201710458866A CN109144841B CN 109144841 B CN109144841 B CN 109144841B CN 201710458866 A CN201710458866 A CN 201710458866A CN 109144841 B CN109144841 B CN 109144841B
Authority
CN
China
Prior art keywords
application
control
advertisement
test
page
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
CN201710458866.0A
Other languages
Chinese (zh)
Other versions
CN109144841A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710458866.0A priority Critical patent/CN109144841B/en
Publication of CN109144841A publication Critical patent/CN109144841A/en
Application granted granted Critical
Publication of CN109144841B publication Critical patent/CN109144841B/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

Abstract

The invention provides a method and a device for identifying advertisement application in an application market, computer equipment and a storage medium, wherein the method comprises the steps of opening an application market program and acquiring a test path of a current test; positioning an advertisement scene of a page corresponding to the application market program according to the test path; acquiring test controls of each application in the advertisement scene; the test control is associated with statistical information; obtaining statistical information of each application by utilizing a reflection technology based on the test control; and when the statistical information is identified to comprise the advertisement information, determining that the corresponding application is the advertisement application. The method has high efficiency in identifying the advertisement application.

Description

Method and device for identifying advertisement application, computer equipment and storage medium
Technical Field
The invention relates to the technical field of testing, in particular to a method and a device for identifying advertisement application in an application market, computer equipment and a storage medium.
Background
The application market is also called an application store, and is an electronic application store which is specially used for providing application downloading services for mobile equipment mobile phones, tablet computers and the like. Common application markets such as apple APP STORE, android market, centaur cell phone assistant, Tencent APPs, and so on. Third party companies have paid certain fees to the operators of the application marketplace for better promotion of Applications (APPs), i.e., advertising applications, to get better placement. Operators of the application market need to verify whether the advertisement application is shown or not to guarantee the benefits of third-party companies.
The traditional test of the advertisement application adopts manual test, aiming at application market developers to make a test packet, and a download button of the advertisement application is marked in red. According to the color identification, a tester can find the application advertisement more quickly during testing, and whether the advertisement is displayed is verified by checking logs of the client and the server.
This approach requires test packages to be made for testing and is inefficient with manually identifying the advertising application.
Disclosure of Invention
In view of the above, there is a need to provide an advertisement application identification method and apparatus, a computer device, and a storage medium in an application market for the problem of inefficiency in manual identification of advertisement applications.
In order to achieve the above purpose, one embodiment adopts the following technical scheme:
a method of identifying advertising applications in an application marketplace, comprising:
opening an application market program and acquiring a test path of the current test;
positioning an advertisement scene of a page corresponding to the application market program according to the test path;
acquiring test controls of each application in the advertisement scene; the test control is associated with statistical information;
obtaining statistical information of each application by utilizing a reflection technology based on the test control;
and when the statistical information is identified to comprise the advertisement information, determining that the corresponding application is the advertisement application.
An apparatus for identifying advertising applications in an application marketplace, comprising: the device comprises a path acquisition module, a positioning module, a test control acquisition module, a reflection module and an identification module;
the path acquisition module is used for opening an application market program and acquiring a test path of the current test;
the positioning module is used for positioning the advertisement scene of the page corresponding to the application market program according to the test path;
the test control acquiring module is used for acquiring test controls of all applications in the advertisement scene; the test control is associated with statistical information;
the reflection module is used for acquiring statistical information of each application by utilizing a reflection technology based on the test control;
and the identification module is used for determining the corresponding application as the advertisement application when the statistical information is identified to include the advertisement information.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method for identifying an advertising application in an application marketplace when executing the program.
A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-mentioned method for identifying an advertising application in an application marketplace.
According to the method and the device for identifying the advertisement application in the application market, manual participation is not needed, the test path is obtained through an automation program, the advertisement scene of the corresponding page of the application program is positioned according to the test path, the test control of each application in the advertisement scene is obtained, the statistical information of each application can be obtained by utilizing a reflection technology based on the test control, the advertisement application is identified according to whether the statistical information comprises the advertisement information, and the efficiency is high.
Drawings
FIG. 1 is a schematic diagram of an application environment of a method and apparatus for identifying advertisement applications in an application marketplace, according to an embodiment;
FIG. 2 is a schematic diagram of an internal structure of a test terminal according to an embodiment;
FIG. 3 is a flowchart of an identification method for advertising applications in an application marketplace, according to one embodiment;
FIG. 4 is a flowchart of the steps for locating an advertisement scenario on a page corresponding to an application marketplace program based on a test path, according to one embodiment;
FIG. 5 is a flowchart illustrating steps of obtaining a control and control information corresponding to a test path in a current page according to an embodiment;
FIG. 6 is a schematic illustration of a home page of an application marketplace program, for one embodiment;
FIG. 7 is a schematic diagram of a screen display after the current screen shown in FIG. 6 has been slid upward;
FIG. 8 is a block diagram of an apparatus for identifying advertising applications in an application marketplace, according to one embodiment;
fig. 9 is a block diagram showing an example of an apparatus for identifying an advertisement application in an application marketplace according to still another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is an application environment diagram of a method and an apparatus for identifying an advertisement application in an application marketplace according to an embodiment. As shown in fig. 1, the application environment includes a test terminal 101 and a server 103, and the test terminal 101 is communicatively connected to the server 103. The test terminal 101 is installed with an application market, which may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto. In one embodiment, the test terminal 101 tests an application marketplace program and reports the identified advertisement application result to the server 103. In another embodiment, the test terminal 101 sends the statistical information of each application obtained by clicking the download control reflection to the server, and the server identifies the advertisement application according to the statistical information. Test terminal 101 installation
Fig. 2 is a schematic internal structure diagram of a test terminal in one embodiment. The test terminal comprises a processor, a storage medium, an internal memory, a network interface and a display screen which are connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The storage medium of the terminal stores an operating system and a computer program of an identification apparatus of an advertisement application in an application market, which when executed by a processor, is adapted to implement a method of identifying an advertisement application in an application market. The internal memory of the terminal provides an environment for the identification means of the advertising application in the application market to run in the storage medium. The network interface of the terminal is used for network communication with the server, for example, for transmitting the identification result to the server. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen. The test terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer and the like. It will be appreciated by those skilled in the art that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the inventive arrangements and does not constitute a limitation on the terminals to which the inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or some components may be combined, or have a different arrangement of components.
In one embodiment, there is provided a method for identifying an advertisement application in an application market, the method being run on a test terminal shown in fig. 1, as shown in fig. 3, and comprising the steps of:
s302: and opening an application market program and acquiring a test path.
The application market program is installed at the test terminal and is an electronic application store which specially provides Application (APP) downloading for mobile equipment mobile phones, tablet computers and the like. The test terminal is also provided with a test program for identifying the advertisement application in the application market program, and when the test program detects a test instruction of a user, the test program responds to the test instruction, opens the application market program and acquires a test path.
Specifically, test codes can be injected into an application market program by using a Junit-based automated test framework provided by the test terminal operation, and the test codes can operate the application to be tested. In another embodiment, the test code and the tested application market program run in the same process in a runtime mode through instrumentation injection, and the runtime simulation can automatically start the tested application program.
The test path is a path which is set by a developer in advance according to the launching position of the advertisement application in the application market program and consists of a plurality of positions, and the test path points to the advertisement application. The position in the test path corresponds to the label and the control of the page where the advertisement application is located. The test path for one embodiment is: ranking list-free.
S304: and positioning the advertisement scene of the corresponding page of the application market program according to the test path.
The advertisement scene is the advertisement application display scene launched, corresponds to the test path of the advertisement application, and can be positioned to the scene of launching the advertisement according to the test path. Specifically, the advertisement scene is positioned according to the corresponding position of the corresponding page where the page label and the control in the test path jump. The test path for one embodiment is: for example, after entering the application market program, a ranking list page is opened, a control corresponding to a free column is found on the page, and an advertisement scene corresponding to the path is positioned according to the position information of the control.
S306: and acquiring a test control of each application in the advertisement scene, wherein the test control is associated with statistical information.
The control is closed to data and methods, is used for developing and constructing the control of a user interface and helps to complete the development of elements such as windows, text boxes, buttons, pull-down menus and the like in software development. The test control is associated with statistical information in advance and is a carrier of the statistical information. The type and name of the test control are preset, and the test control is a control which each application in the application market program has, for example, a download control.
S308: and obtaining the statistical information of each application by using a reflection technology based on the test control.
The test control should be a common component for each application in the application marketplace program, such as a download control. The test control is pre-embedded with statistical information including advertisement information, and when an Application (APP) is released in an application market program, a developer adds corresponding content to a code of the application according to an application type. The reflection technology is a method capable of knowing all attributes of any class in a running state, and the function of dynamically acquiring information and dynamically calling an object method is called as a reflection mechanism of Java language. In this embodiment, the statistical information is pre-embedded in the test control, and when the test control is obtained, the statistical information of each application is obtained by using a reflection technology based on the test control.
S310: and when the statistic information is identified to include the advertisement information, determining the corresponding application as the advertisement application.
In one embodiment, the statistical information is binary array in TLV (Tag-Length-Value) format. The fields of the statistics for one embodiment are shown in table 1. The first byte is used to distinguish whether the TLV format protocol is used, and the next first byte indicates which service the application belongs to, i.e. the service type. Then 2 bytes Len are used to represent the length and N bytes Value represent the actual Value. When the statistical information contains the type identification of the advertisement service, the application is the advertisement, so whether the application is the advertisement can be judged through the advertisement information in the statistical information. The type identification is added in advance by a developer according to the service type.
Table 1 fields of statistical information
Figure BDA0001324376800000051
According to the method for identifying the advertisement application in the application market, manual participation is not needed, the test path is obtained through the automation program, the advertisement scene of the corresponding page of the application program is positioned according to the test path, the test control of each application in the advertisement scene is obtained, the statistical information of each application can be obtained by utilizing the reflection technology based on the test control, the advertisement application is identified according to whether the statistical information comprises the advertisement information, and the efficiency is high.
In one embodiment, as shown in fig. 4, the step of locating the advertisement scenario of the corresponding page of the application marketplace program according to the test path includes the following steps S402 to S410.
S402: and acquiring each label of a home page navigation bar of the application market program.
And after the application market program is opened, the main page of the application market program is entered. The navigation bar refers to a horizontal row of navigation buttons at the bottom of the home page that function to link the various pages of the application marketplace program. The label, i.e. the attribute information corresponding to the button of the navigation bar, includes the resource identifier of the button, the link network address, etc.
S404: and opening the page corresponding to the label according to the test path.
The first position of the test path is usually the page position corresponding to the advertisement scene, and the page position can be linked through the button of the navigation bar. And opening a page corresponding to the label according to the test path, namely, a page corresponding to the first position of the test path, wherein the page is usually the page of the advertisement scene. The test path for one embodiment is: the ranking list-free is taken as an example, wherein the ranking list is the first position of the test path and is one of the label pages of the navigation bar.
S406: and acquiring a control and control information corresponding to the test path in the current page, wherein the control information comprises a control position and characters, and the control comprises a test control.
The position in the test path corresponds to the label and the control of the page where the advertisement application is located. The control information includes control position and text. The text is used for prompting the user of the control function, the developer sets the control function during development, the text information of each control element can be obtained by reading the application code, and the test path of one embodiment is as follows: the ranking list is free, wherein the free is one of the categories of the ranking list pages, and the advertisement scene is that the advertisement application is put into the application program which is free under the category.
Specifically, as shown in fig. 5, step S406 includes the following steps S4061 to S4062:
s4061: and acquiring each control displayed on the current screen by the current page.
The pages of the application marketplace program are typically in the form of a list (ListView) that includes many child views, i.e., each row in the list. Each row contains control elements for one or more applications such as application title, name, size, download button, etc. The position of the control element, i.e., the position of the control element relative to the list view of the list, i.e., in the few rows of the list. The position of the acquired control element can be acquired through an interface of the test terminal operating system. Specifically, the steps include: the method comprises the steps of obtaining applications and controls corresponding to the applications in each row from the first row to the last row of a page list displayed on a current screen, and obtaining control information of each control displayed on the current screen.
In one embodiment, before the step of obtaining the controls displayed on the current screen of the current page, the following steps are further performed: up-slide to load all of the applications of the current page of the application marketplace program. Step S4061 specifically includes: and returning to the top of the page, and acquiring each control displayed on the current screen by the current page.
By pre-loading all the applications of the current page, instability caused by loading when the page content is displayed in a split screen mode can be avoided. Considering that when the advertisement application is tested, the off-screen control needs to be operated, such as clicking to jump, clicking the download control to detect the availability of the download control, and the like. The method is based on the automatic test framework of Junit, and the test codes are injected into the application market program, so that the test codes simulate the user to operate the application to be tested. By sliding up to load all the applications of the current page in the application marketplace program.
In this embodiment, by writing a customized upslide interface, when a test program is executed, the upslide interface is called to slide upwards to load all applications of the current page of the application market program. And after the loading of all the contents of the page is finished, returning to the top of the page, and acquiring the control of each application displayed on the current screen.
S4062: and when the current screen does not comprise the control corresponding to the test path, controlling the current page to slide upwards to display the page content of the next screen, and returning to the step of acquiring each control displayed on the current screen by the current page until the current screen comprises the control corresponding to the test path.
Specifically, searching is performed according to the names of the control elements, and when the current screen does not include the control corresponding to the test path, whether the page content displayed on the next screen includes the control corresponding to the test path is checked. Specifically, the starting position of the next screen is determined according to the last line of the page list displayed on the current screen, and the determined starting position of the next screen is located at the top of the current screen by sliding upwards. For example, if the page displayed on the current screen is the fifth line of the list, the sixth line is used as the starting position of the next screen. Sliding up causes the sixth row of the list to be at the top of the current screen. Specifically, by writing a self-defined upward sliding interface, when a test program is executed, the interface is called to realize upward sliding.
The content of the page presented by the current screen of one embodiment is shown in fig. 6, where the current screen displays the first three rows of the list, and the fourth row of the list is the starting position of the next screen. The screen display diagram after the current screen has slid upward as shown in fig. 6 is shown in fig. 7, with the fourth row of the list at the top of the current screen.
And if the displayed page content of the current screen after the sliding upwards does not comprise the control corresponding to the test path, continuing to slide upwards to display the page content of the next screen. If the control corresponding to the test path is included, executing step S4063: acquiring a control and control information corresponding to the test path in the current screen,
s408: and when the control corresponding to the final position of the test path is on the current page, positioning to the advertisement scene of the current page according to the control information corresponding to the control.
Specifically, for a scheme with a simpler test path, namely when the control corresponding to the final position of the test path is on the current page of the navigation bar, the corresponding advertisement scene is positioned according to the position information and the characters of the control.
Specifically, whether the page content corresponding to each screen comprises a control corresponding to the final position of the test path is checked through the page content in a split-screen display mode, and if yes, the advertisement scene is positioned according to the corresponding control information. The method has the advantages that for the located application scene, preset operations, such as clicking operations, can be performed on the test controls of the applications of the scene, and further, the usability of the prediction controls can be detected while the applications are identified.
S410: and when the control corresponding to the final position of the test path is not on the current page, clicking the jump control to jump to the corresponding page according to the control information corresponding to the jump control, and returning to the step of acquiring the control and the control information corresponding to the test path in the current page.
The control comprises a jump control corresponding to a non-final position in the test path, and is generally a control corresponding to a position from the first position to the position before the final position in the test path. The text of the jump control may be "show all", "more", or text of other sub-pages in the home page. And when the final corresponding control of the test path is not on the current page, clicking the jump control to jump to the corresponding page according to the jump control information at the corresponding position of the test path, and searching the control and the control information corresponding to the test path in the current page on the page after the jump. For example, in the application of the "video" class, the "display all" control is clicked, and the corresponding page part is jumped to, and all the applications of the video class are displayed.
In another embodiment, the link of each test path corresponds to an advertisement scenario, and after the step of determining the advertisement application in a square scenario, the steps of identifying the advertisement application for each advertisement scenario in the application marketplace program are further executed: and closing the application market program, and returning to the step of opening the application market program and acquiring the test path of the current test. And acquiring the test path corresponding to each advertisement scene by circulating the above operations. After the advertisement application in the corresponding advertisement scene is identified according to the test path every time, the application market program is closed, the application program is restarted to return to the homepage of the application market program, and the influence of the search of the previous advertisement scene on the identification result is avoided.
In another embodiment, the identifying the advertisement application may be performed by the testing terminal or may be performed by the server.
The method comprises the following steps of using a test terminal to execute an example, obtaining statistical information of each application by using a reflection technology based on a test control, and determining the corresponding application as an advertisement application when the statistical information is identified to include advertisement information: obtaining statistical information of each application based on the reflection of the test control; analyzing the statistical information to obtain the type identification of the application, and determining the corresponding application as the advertisement application when the type identification is the preset identification corresponding to the advertisement information.
In the embodiment, the test terminal directly analyzes the binary system of the statistical information in the form of Java, and directly judges whether the advertisement is provided according to the type identifier of the corresponding statistical information.
Taking server-side execution as an example, obtaining statistical information of each application by using a reflection technology based on a test control, and when the statistical information is identified to include advertisement information, determining the corresponding application as the advertisement application comprises the following steps: obtaining statistical information of each application based on the reflection of the test control; and sending the statistical information to a server, analyzing the statistical information by the server to obtain the type identifier of the application, and determining the corresponding application as the advertisement application when the type identifier is a preset identifier corresponding to the advertisement information.
In this embodiment, a statistical information analysis interface is opened at the server side, and when the test terminal needs to determine whether the application is an advertisement application, an HTTP request interface is sent to obtain an analysis result. Besides judging whether the application is the advertisement application, the method can acquire more information of the application, such as the information of the ad slot Id, the application name and the like.
In another embodiment, the two methods can be simultaneously adopted, and the server side and the test terminal respectively identify the two methods. Specifically, local analysis is firstly used, after the local analysis result is the advertisement, the HTTP request is sent, more information of the application is analyzed from the server side, and the execution speed and the richness of analysis information are considered.
The advertisement application identified by the method is combined with the advertisement pulling log and the reporting log recorded by the application market program server side, so that whether the advertisement is displayed or not, whether the advertisement display position is correct or not and the like can be judged fully automatically to complete the automatic test of the advertisement, and the advertisement test can be incorporated into daily test monitoring to find the quality problem of the product in advance.
As shown in fig. 8, an apparatus for identifying an advertisement application in an application market includes: a path acquisition module 802, a positioning module 804, a test control acquisition module 806, a reflection module 808, and an identification module 810.
And a path obtaining module 802, configured to open an application market program and obtain a test path of the current test.
And the positioning module 804 is used for positioning the advertisement scene of the page corresponding to the application market program according to the test path.
A test control obtaining module 806, configured to obtain a test control of each application in an advertisement scene; the test control is associated with statistical information.
And a reflection module 808, configured to obtain statistical information of each application by using a reflection technology based on the test control.
And an identifying module 810, configured to determine that the corresponding application is an advertisement application when it is identified that the advertisement information is included in the statistical information.
The device for identifying the advertisement application in the application market does not need manual participation, obtains the test path through the automation program, positions the advertisement scene of the corresponding page of the application program according to the test path, obtains the test control of each application in the advertisement scene, obtains the statistical information of each application by using a reflection technology based on the test control, identifies the advertisement application according to whether the statistical information comprises the advertisement information or not, and is high in efficiency.
Fig. 9 is a schematic structural diagram of an apparatus for identifying an advertisement application in an application market according to another embodiment, where the positioning module 804 includes a page tag obtaining module 8041, a page operating module 8042, a control obtaining module 8041, and a scene positioning module 8044.
The page tag obtaining module 8041 is configured to obtain tags of a home page navigation bar of the application marketplace program.
In another embodiment, the control obtaining module 8043 is configured to obtain each control displayed on the current screen by the current page, control the current page to slide upward to display the page content of the next screen when the current screen does not include a control corresponding to the test path, and obtain a control and control information corresponding to the test path in the current screen when the current screen includes a control corresponding to the test path.
And a page operation module 8042, configured to open a page corresponding to the tag according to the test path.
The control obtaining module 8043 is configured to obtain a control and control information corresponding to the test path in the current page, where the control information includes a control position and text; the controls include test controls.
Specifically, the control includes a jump control corresponding to a non-final position in the test path, and the page operation module 8042 is configured to click the jump control to jump to the corresponding page according to control information corresponding to the jump control when the control corresponding to the final position of the test path is not on the current page. The method comprises the steps of obtaining all controls displayed on a current screen by a current page, controlling the current page to slide upwards to display the page content of a next screen when the current screen does not comprise the controls corresponding to a test path, and obtaining the controls and control information corresponding to the test path in the current screen when the current screen comprises the controls corresponding to the test path.
Specifically, the obtaining of each control displayed on the current screen by the current page specifically includes: the method comprises the steps of obtaining applications of all rows from the first row to the last row of a page list displayed on a current screen, controls corresponding to the applications, and control information of all the controls displayed on the current screen.
Specifically, controlling the page content of the current page to slide upwards to display the next screen specifically includes: and determining the starting position of the next screen according to the last line of the page list displayed on the current screen, and sliding upwards to enable the determined starting position of the next screen to be positioned at the top of the current screen.
In one embodiment, the apparatus for identifying an advertisement application in an application marketplace further includes a program control module configured to close the application marketplace program when it is determined that the corresponding application is the advertisement application when it is identified that the advertisement information is included in the statistical information.
And a scene positioning module 8044, configured to position, when the control corresponding to the final position of the test path is on the current page, an advertisement scene of the current page according to the control information corresponding to the control.
In yet another embodiment, the identification module 810 includes a parsing module and an advertisement determination module.
And the analysis module is used for analyzing the statistical information to obtain the type identifier of the application.
And the advertisement determining module is used for determining the corresponding application as the advertisement application when the type identifier is the preset identifier corresponding to the advertisement information.
In another embodiment, the apparatus for identifying an advertisement application in an application market further includes a sending module, configured to send the statistical information to a server, where the server parses the statistical information to obtain a type identifier of the application, and when the type identifier is a preset identifier corresponding to the advertisement information, determines that the corresponding application is the advertisement application.
The advertisement application identified by the method is combined with the advertisement pulling log and the reporting log recorded by the application market program server side, so that whether the advertisement is displayed or not, whether the advertisement display position is correct or not and the like can be judged fully automatically to complete the automatic test of the advertisement, and the advertisement test can be incorporated into daily test monitoring to find the quality problem of the product in advance.
Based on the above example, in one embodiment, a computer device is further provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method for identifying an advertisement application in an application market as in any one of the above embodiments.
Based on the above example, in an embodiment, a storage medium is further provided, on which a computer program is stored, wherein the program, when executed by a processor, implements the method for identifying an advertisement application in an application market as in any one of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which is stored in a non-volatile computer readable storage medium, and in the embodiments of the present invention, the program may be stored in the storage medium of a computer system and executed by at least one processor in the computer system to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. The method for identifying the advertisement application in the application market is characterized by comprising the following steps:
executing the test code to open an application market program and acquiring a test path of the current test; the test path points to an advertisement scene, and the advertisement scene is a display scene of the advertisement application in an application program interface; the position in the test path corresponds to a label and a control of the page where the advertisement application is located;
acquiring each label of the application market program homepage navigation bar;
opening a page corresponding to the label according to the test path;
acquiring a control and control information corresponding to the test path in the current page, wherein the control information comprises a control position and characters; the control comprises a test control;
when the control corresponding to the final position of the test path is on the current page, positioning to the advertisement scene of the current page according to the control information corresponding to the control;
acquiring test controls of each application in the advertisement scene; the test control is a common component of each application in the application market program; the test control is associated with statistical information;
obtaining statistical information of each application by utilizing a reflection technology based on the test control;
and when the statistical information is identified to include the advertisement information, determining that the corresponding application is the advertisement application so as to judge whether the advertisement is displayed and whether the advertisement display position is correct.
2. The method for identifying advertising applications in an application market as claimed in claim 1, wherein the control comprises a jump control corresponding to a non-final position in the test path, and when the control corresponding to the final position of the test path is not on the current page, according to control information corresponding to the jump control, the jump control is clicked to jump to the corresponding page, and the step of obtaining the control and the control information corresponding to the test path in the current page is returned.
3. The method of claim 1, wherein the step of obtaining the control and control information corresponding to the test path in the current page comprises:
acquiring all controls displayed on a current screen of a current page;
when the current screen does not comprise the control corresponding to the test path, controlling the current page to slide upwards to display the page content of the next screen, and returning to the step of acquiring each control displayed on the current screen by the current page until the current screen comprises the control corresponding to the test path;
and when the current screen comprises a control corresponding to the test path, acquiring the control and control information corresponding to the test path in the current screen.
4. The method of claim 3, wherein the step of obtaining the controls displayed on the current screen of the current page comprises:
acquiring applications of each line from a first line to a last line of a page list displayed on a current screen and controls corresponding to the applications;
and acquiring control information of each control displayed on the current screen.
5. The method of claim 4, wherein the step of controlling the current page to slide upwards to display the page content of the next screen comprises:
determining the starting position of the next screen according to the last line of the page list displayed in the current screen;
the upward slide positions the determined starting position of the next screen at the top of the current screen.
6. The method for identifying an advertisement application in an application market according to claim 1, wherein after the step of determining that the corresponding application is an advertisement application when it is identified that the advertisement information is included in the statistical information, further comprising:
closing the application market program;
and returning to the step of opening the application market program and acquiring the test path of the current test.
7. The method of claim 1, wherein when it is recognized that the statistical information includes advertisement information, the step of determining that the corresponding application is an advertisement application comprises:
analyzing the statistical information to obtain the type identification of the application;
when the type identification is a preset identification corresponding to the advertisement information, determining that the corresponding application is an advertisement application;
or
And sending the statistical information to a server, analyzing the statistical information by the server to obtain a type identifier of the application, and determining the corresponding application as the advertisement application when the type identifier is a preset identifier corresponding to the advertisement information.
8. An apparatus for identifying advertising applications in an application marketplace, comprising: the system comprises a path acquisition module, a page label acquisition module, a page operation module, a control acquisition module, a scene positioning module, a test control acquisition module, a reflection module and an identification module;
the path acquisition module is used for executing the test code to open the application market program and acquiring the test path of the current test; the test path points to an advertisement scene, and the advertisement scene is a display scene of the advertisement application in an application program interface; the position in the test path corresponds to the label and the control of the page where the advertisement application is located;
the page tag acquisition module is used for acquiring each tag of the application market program homepage navigation bar;
the page operation module is used for opening a page corresponding to the label according to the test path;
the control acquiring module is used for acquiring a control and control information corresponding to the test path in the current page, wherein the control information comprises a control position and characters; the control comprises a test control;
the scene positioning module is used for positioning an advertisement scene of a current page according to control information corresponding to a control when the control corresponding to the final position of the test path is on the current page;
the test control acquisition module is used for acquiring test controls of all applications in the advertisement scene; the test control is a common component of each application in the application market program; the test control is associated with statistical information;
the reflection module is used for acquiring statistical information of each application by utilizing a reflection technology based on the test control;
and the identification module is used for determining that the corresponding application is the advertisement application when the statistical information is identified to include the advertisement information so as to judge whether the advertisement is displayed and whether the advertisement display position is correct.
9. The apparatus for identifying an advertisement application in an application market according to claim 8, wherein the control includes a jump control corresponding to a non-final position in the test path, and the page operating module is configured to click the jump control to jump to a corresponding page according to control information corresponding to the jump control when the control corresponding to the final position of the test path is not on the current page.
10. The apparatus for identifying an advertisement application in an application market according to claim 8, wherein the control acquiring module is configured to acquire each control displayed on the current screen by the current page, control the current page to slide upward to display the page content of the next screen when the current screen does not include the control corresponding to the test path, and acquire the control and the control information corresponding to the test path in the current screen when the current screen includes the control corresponding to the test path.
11. The apparatus for identifying advertisement applications in an application market according to claim 10, wherein the control acquiring module is configured to acquire applications in each of the first row to the last row of the page list displayed on the current screen and controls corresponding to the applications; and acquiring control information of each control displayed on the current screen.
12. The apparatus for identifying an advertisement application in an application market according to claim 11, wherein the control acquiring module is configured to determine a starting position of a next screen according to a last line of a page list displayed in a current screen; the upward slide positions the determined starting position of the next screen at the top of the current screen.
13. The apparatus for identifying an advertising application in an application marketplace according to claim 8, further comprising:
and the program control module is used for closing the application market program after the step of determining that the corresponding application is the advertisement application when the statistical information is identified to comprise the advertisement information.
14. The apparatus for identifying an advertisement application in an application market according to claim 8, wherein the identification module comprises a parsing module and an advertisement determination module;
the analysis module is used for analyzing the statistical information to obtain the type identifier of the application;
the advertisement determining module is used for determining the corresponding application as the advertisement application when the type identifier is a preset identifier corresponding to the advertisement information;
or the device further comprises a sending module, which is used for sending the statistical information to a server, the server analyzes the statistical information to obtain the type identifier of the application, and when the type identifier is the preset identifier corresponding to the advertisement information, the corresponding application is determined to be the advertisement application.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for identifying an advertising application in an application marketplace according to any one of claims 1 to 7 when executing the program.
16. A storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, carries out the steps of the method for identifying an advertising application in an application marketplace according to any one of claims 1 to 7.
CN201710458866.0A 2017-06-16 2017-06-16 Method and device for identifying advertisement application, computer equipment and storage medium Active CN109144841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710458866.0A CN109144841B (en) 2017-06-16 2017-06-16 Method and device for identifying advertisement application, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710458866.0A CN109144841B (en) 2017-06-16 2017-06-16 Method and device for identifying advertisement application, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109144841A CN109144841A (en) 2019-01-04
CN109144841B true CN109144841B (en) 2022-06-10

Family

ID=64830551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710458866.0A Active CN109144841B (en) 2017-06-16 2017-06-16 Method and device for identifying advertisement application, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109144841B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677877A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Method and device for updating local advertisement software development kit
CN105630686A (en) * 2016-03-24 2016-06-01 厦门美图移动科技有限公司 Traversal testing method and device for applications and mobile terminal
CN106383783A (en) * 2016-09-14 2017-02-08 上海斐讯数据通信技术有限公司 Android system testing method and system
CN106776301A (en) * 2016-12-01 2017-05-31 广州酷狗计算机科技有限公司 Daughter element method of testing and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8135605B2 (en) * 2006-04-11 2012-03-13 Bank Of America Corporation Application risk and control assessment tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677877A (en) * 2012-09-12 2014-03-26 腾讯科技(深圳)有限公司 Method and device for updating local advertisement software development kit
CN105630686A (en) * 2016-03-24 2016-06-01 厦门美图移动科技有限公司 Traversal testing method and device for applications and mobile terminal
CN106383783A (en) * 2016-09-14 2017-02-08 上海斐讯数据通信技术有限公司 Android system testing method and system
CN106776301A (en) * 2016-12-01 2017-05-31 广州酷狗计算机科技有限公司 Daughter element method of testing and device

Also Published As

Publication number Publication date
CN109144841A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN108427646B (en) Android App automatic test framework construction method and device based on Apium
CN109871326B (en) Script recording method and device
US8090569B2 (en) Apparatus and method for testing electronic apparatuses
CN106326120B (en) Regression testing method and device for application software and electronic equipment
CN109828906B (en) UI (user interface) automatic testing method and device, electronic equipment and storage medium
CN107133165B (en) Browser compatibility detection method and device
CN108399119B (en) Method and device for data processing and automatic testing of browsing service kernel engine
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN112148580A (en) Test method and device and electronic equipment
CN112612690A (en) User interface information processing method and device, electronic equipment and storage medium
CN111694550A (en) Page display control method, device and system
CN110750460A (en) Browser compatibility detection method, device, equipment and readable storage medium
CN112148395A (en) Page display method, device, equipment and storage medium
CN115118687B (en) Message pushing method and device, storage medium and computer equipment
CN107979690A (en) A kind of mobile terminal and its method and system for skipping start guide
CN111813685A (en) Automatic testing method and device
CN109144841B (en) Method and device for identifying advertisement application, computer equipment and storage medium
CN111427776A (en) Automatic testing method and device for intelligent equipment
CN114265777A (en) Application program testing method and device, electronic equipment and storage medium
AU2013206622B2 (en) Download management method and device based on Android browser
CN112667502A (en) Page testing method, device and medium
CN112559368A (en) Interface automation test method and its use case generation method, equipment and storage medium
CN116049020B (en) Automatic test method, device and equipment for software products and readable storage medium
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN117435464A (en) Software testing method and device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant