Advertisement interface test method and device, equipment and storage medium
By extracting the request parameters from the advertising log to generate test parameters and sending test requests to the advertising interface, the problem of inaccurate test results in the existing technology is solved, the data authenticity and test accuracy are improved, and multi-environment testing is supported.
Patent Information
- Application Number
- CN202310926916.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-26
- Publication Date
- 2025-02-14
AI Technical Summary
The existing advertising interface automation testing tools cannot guarantee the stability of online programs and the authenticity of data, resulting in inaccurate test results.
By obtaining the advertising log of online advertising spaces, obtaining request parameters from the log based on the specified advertising spaces, generating test parameters, and sending test requests to the advertising interface, receiving and analyzing the returned test results.
Ensure the authenticity of the data, improve the accuracy of the test, and support tests for different operating environments to meet the testing requirements of multiple environments.
Smart Images

Figure CN119441013A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mobile Internet technology, and in particular to an advertising interface testing method, device, equipment and storage medium. Background Art
[0002] At present, the value of advertising platforms of major Internet companies is constantly increasing. Through advertising interface testing, the effect of advertising can be evaluated.
[0003] In the related art, most of the advertising interface automated testing tools are tested by testers inputting test parameters or test data. However, this testing method cannot guarantee the stability of online programs or the authenticity of data, resulting in inaccurate test results. Summary of the invention
[0004] In order to solve or partially solve the problems existing in the related art, the present application provides an advertising interface testing method, device, equipment and storage medium, which can ensure the authenticity of data and thus improve the accuracy of the test.
[0005] The first aspect of the present application provides an advertising interface testing method, comprising:
[0006] Get the ad logs of online ad slots captured according to preset conditions;
[0007] Obtaining request parameters from the advertisement log according to the designated advertisement position, and generating test parameters according to the request parameters;
[0008] Sending a test request carrying the test parameters to a designated advertising interface;
[0009] Receive a test result returned by the designated advertisement interface according to the test request.
[0010] In one implementation, obtaining request parameters from the advertisement log according to the designated advertisement position, and generating test parameters according to the request parameters include:
[0011] Obtaining request parameters from the advertisement log according to the designated advertisement slot;
[0012] Get the operating environment selected by the user;
[0013] The request parameters and the operating environment are concatenated to generate concatenated test parameters.
[0014] In one embodiment, obtaining the operating environment selected by the user includes:
[0015] Obtain a test environment, a pre-release environment, or a production environment selected by a user in parallel; or,
[0016] Get the test environment, pre-release environment, or production environment selected by the user.
[0017] In one embodiment, before acquiring the advertisement log of the online advertisement position captured according to the preset conditions, the method further includes:
[0018] Get an ad slot selected from pre-created online ad slots in the test page.
[0019] In one embodiment, the step of obtaining the advertisement log of the online advertisement position captured according to the preset conditions includes:
[0020] Get the ad logs of online ad slots that are crawled according to the preset crawling case count and crawling rules.
[0021] In one implementation, the crawling rule includes one or more of a specified request parameter, a request time range, or a return result, and the request parameter includes at least one of the following: a city id, a user id, and a device id.
[0022] In one embodiment, the receiving the test result returned by the designated advertising interface according to the test request includes:
[0023] A test result returned by the designated advertisement interface according to the test request is received, wherein the test result includes a first test result that triggers an alarm or a second test result that does not trigger an alarm.
[0024] In one embodiment, the method further comprises:
[0025] A test report is generated according to the test results.
[0026] A second aspect of the present application provides an advertising interface testing device, comprising:
[0027] A log acquisition module is used to acquire advertisement logs of online advertisement positions captured according to preset conditions;
[0028] A test parameter module, used to obtain request parameters from the advertisement log according to a specified advertisement position, and generate test parameters according to the request parameters;
[0029] A test request module, used for sending a test request carrying the test parameters to a designated advertisement interface;
[0030] The test result module is used to receive the test result returned by the designated advertisement interface according to the test request.
[0031] In one embodiment, the test parameter module includes:
[0032] A request parameter submodule, used to obtain request parameters from the advertisement log according to the specified advertisement position;
[0033] The environment selection submodule is used to obtain the operating environment selected by the user;
[0034] The splicing submodule is used to splice the request parameters and the operating environment to generate spliced test parameters.
[0035] A third aspect of the present application provides an electronic device, including:
[0036] Processor; and
[0037] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0038] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.
[0039] The technical solution provided by this application may have the following beneficial effects:
[0040] The technical solution of the present application can first capture the advertising log of the online advertising position according to preset conditions, and then obtain the request parameters from the advertising log according to the specified advertising position, and generate test parameters according to the request parameters; then send a test request carrying the test parameters to the specified advertising interface, receive the test results returned by the specified advertising interface according to the test request, and analyze according to the returned test results. Through the above processing, the present application does not require the tester to enter the test parameters or test data separately for testing, but can directly use the advertising log of the real online advertising position that has been running to obtain the request parameters from the advertising log, so as to ensure the authenticity of the data and improve the accuracy of the test.
[0041] Furthermore, the present application can also obtain the operating environment selected by the user; splice the request parameters and the operating environment to generate spliced test parameters, and then send a test request carrying the test parameters to the specified advertising interface. In this way, testing can be performed on different operating environments, solving the defect that the relevant technical solutions cannot meet the testing requirements of different operating environments, and achieving the ability to meet the testing requirements of different operating environments.
[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0044] Figure 1 It is a flowchart of the advertising interface testing method shown in the embodiment of the present application;
[0045] Figure 2 is a flowchart of an advertising interface testing method shown in another embodiment of the present application;
[0046] Figure 3 is an application schematic diagram of the advertising interface testing method shown in an embodiment of the present application;
[0047] Figure 4 is a structural schematic diagram of an advertising interface testing device shown in an embodiment of the present application;
[0048] Figure 5 is a structural schematic diagram of an advertising interface testing device shown in another embodiment of the present application;
[0049] Figure 6 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0051] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0052] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0053] The testing methods of related technologies cannot guarantee the stability of online programs and the authenticity of data, resulting in inaccurate test results. The present application provides an advertising interface testing method that can guarantee the authenticity of data and improve test accuracy.
[0054] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0055] Figure 1 1 is a flow chart of an advertising interface testing method according to an embodiment of the present application. The method can be applied to an advertising interface testing tool.
[0056] See also Figure 1 , the method comprising:
[0057] S101, obtaining advertisement logs of online advertisement positions captured according to preset conditions.
[0058] Among them, the advertisement log of the online advertisement position captured according to the preset number of capture cases and the capture rule can be obtained. The capture rule can include one or more of the specified request parameters, the request time range or the return result, and the request parameter includes at least one of the following: city id, user id, device id.
[0059] S102: Obtain request parameters from the advertisement log according to the designated advertisement position, and generate test parameters according to the request parameters.
[0060] Among them, the request parameters can be obtained from the advertisement log according to the specified advertisement position; the operating environment selected by the user can be obtained; the request parameters and the operating environment are spliced together to generate the spliced test parameters.
[0061] The obtaining of the operating environment selected by the user includes: obtaining a test environment, a pre-release environment, or an online environment selected by the user in parallel; or obtaining a test environment, a pre-release environment, or an online environment selected by the user one by one.
[0062] S103: Send a test request carrying test parameters to a designated advertisement interface.
[0063] After the test parameters are generated by splicing, a test request carrying the test parameters is sent to the specified advertising interface.
[0064] S104: Receive the test result returned by the designated advertising interface according to the test request.
[0065] The test result returned by the designated advertisement interface according to the test request may be received, and the test result may include a first test result that triggers an alarm or a second test result that does not trigger an alarm.
[0066] For example, if the number of CPC (cost per click) materials in the returned test results is less than the CPC material number threshold, the number of CPT (cost per time) materials is less than the CPT material number threshold, and the total interface time is less than the interface time threshold, the alarm threshold is triggered. It should be noted that the returned test results here can include the number of CPC materials, the number of CPT materials, the total interface time, etc. as an example but are not limited to this, and can also be other advertising material results.
[0067] The technical solution of the present application can first capture the advertising log of the online advertising position according to the preset conditions, and then obtain the request parameters from the advertising log according to the specified advertising position, and generate the test parameters according to the request parameters; then send a test request carrying the test parameters to the specified advertising interface, receive the test results returned by the specified advertising interface according to the test request, and analyze according to the returned test results. Through the above processing, the present application does not require the tester to enter the test parameters or test data separately for testing, but can directly use the advertising log of the real online advertising position that has been running to obtain the request parameters from the advertising log, so as to ensure the authenticity of the data and improve the accuracy of the test.
[0068] Figure 2 is a flow chart of an advertising interface testing method according to another embodiment of the present application. Figure 3 1 is an application diagram of an advertising interface testing method shown in an embodiment of the present application. The method can be applied to an advertising interface testing tool.
[0069] See also Figure 2 , the method comprising:
[0070] S201. Obtain, in a test page of a test tool, an ad slot selected from pre-created online ad slots.
[0071] This application can pre-create online ad slots, for example, by testers or developers. By creating online ad slots, real ad slot operation data can be obtained.
[0072] In this application, a tester or developer can select a created ad slot on an automated test page in a test tool, such as an advertising interface test tool. The test tool can then obtain the ad slot selected by the tester or developer from the pre-created online ad slots on the test page.
[0073] When selecting an ad slot, you can select it based on different parameters. For example, you can filter the ad slot by its unique identification application ID, ad slot status, ad slot execution results, etc.
[0074] Among them, the ad slot status may include processed, unprocessed, paused and other states, and the ad slot execution result may include passed, failed and other results.
[0075] It should be noted that the advertising forms of advertisements in this application include but are not limited to banner ads, splash screen ads, interstitial ads, exit screen ads, rich media ads, native ads, text link ads, point wall ads, information flow ads, video ads, keyword ads, etc.
[0076] S202: pre-set the number of crawling cases and crawling rules in the test tool.
[0077] The present application can pre-set the number of test cases that need to be captured in the test tool, that is, set the number of valid results to be captured.
[0078] This application can pre-set crawling rules, and the crawling rules include specified request parameters, and the request parameters include at least one of the following: city ID, user ID, device ID. The crawling rules can also include the request time range, other specified request parameters and return results, etc. The return results may include the number of CPC materials, the number of CPT materials, the total interface time, etc., but are not limited to these, and can be other advertising material results. For example, it can also be CPM (cost per mille, charged per thousand impressions), CPA (cost per action, charged per action), CPL (cost per lead, charged per data), etc.
[0079] In other words, you can pre-set rules such as city ID, user ID, device ID, request time range, and other request parameters and return results to filter and capture logs.
[0080] Among them, CPC is the cost for each click on the ad. This indicator applies to all types of ads, whether it is text ads, image ads or video ads. A high number of clicks or visits to an ad means that the ad is attracting the attention of customers. Various advertisers can bid for ad spaces and popular keywords on the website, so the CPC suitable for each brand depends on its ad ranking and the rankings of other related brands and products. CPT is to buy out the ad space display for a period of time at a fixed price, which is known as the most worry-free way of delivery. CPT is currently the fastest tool for the platform to obtain large exposure and large traffic. Through the combination of CPT+CPC promotion methods, products can be repeatedly exposed, thereby strengthening consumers' willingness to buy.
[0081] S203. Pre-set an alarm threshold in the test tool.
[0082] The present application can pre-set alarm thresholds in the test tool, for example, different alarm thresholds are set for different return results, such as setting CPC material quantity threshold, CPT material quantity threshold, interface time consumption threshold, etc. The CPC material quantity threshold may refer to the threshold of the number of CPC materials in the return result, and the CPT material quantity threshold may refer to the threshold of the number of CPT materials in the return result.
[0083] Among them, the value of each threshold can be determined based on experience and is not limited in this application.
[0084] S204: Capture the advertisement log of the online advertisement position.
[0085] This application can set up scheduled tasks, and the test tool will periodically capture the online logs of the online ad slots according to the specified ad slots, the set number of use cases and the capture rules, that is, regular capture can be performed according to the configuration items of the capture rules.
[0086] S205: parse the advertisement log and store it in a database.
[0087] This application can parse the captured online logs and store them in a database, so as to provide data support for subsequent page display and subsequent splicing parameters and other tasks.
[0088] Because logs generally have a set log format, the required content can be parsed from the advertisement log according to the known log format and stored in the database.
[0089] S206. Obtain request parameters from the advertisement log according to the designated advertisement position, and concatenate the request parameters with the operating environment to generate concatenated test parameters.
[0090] This application can read the request parameters of the online log stored in the database according to the specified ad position
[0091] Among them, according to the advertisement position selected by the user, the request parameters of the online log stored in the database can be read to obtain the operating environment selected by the user, and the spliced test parameters can be generated by splicing the read request parameters and the operating environment selected by the user. The spliced test parameters can be expressed in the form of a url (uniform resource locator, uniform resource locator system) address but are not limited to this.
[0092] The operating environment may include a test environment, a pre-release environment, and an online environment. In different operating environments, the operating content, operating parameters, or environmental condition settings may be different. For example, some operating content in a pre-release environment is only suitable for use in the pre-release environment and cannot be published in the online environment. The pre-release environment is for verification before the function is launched, including data verification and logic verification. Many functions of the application cannot verify the new logic because there is no real data online, so some test data needs to be created in the pre-release environment.
[0093] The user can select one or more operating environments. Different operating environments can be distinguished by different IP addresses but are not limited to this. For example, they can also be represented by different fields. For example, if the environment parameter value is pre, it means that the corresponding operating environment type is a pre-release environment, and if the environment parameter value is prod, it means that the corresponding operating environment type is an online environment, etc.
[0094] Among them, obtaining the operating environment selected by the user may include: obtaining a test environment, a pre-release environment, or an online environment selected by the user in parallel; or obtaining a test environment, a pre-release environment, or an online environment selected by the user selectively.
[0095] In this application, users can select one or more operating environments and perform tests at the same time. This allows the use of a set of test cases and concurrent testing in multiple environments to improve test efficiency.
[0096] S207: Send a test request carrying test parameters to the designated advertisement interface.
[0097] Generally, the ad slot side can provide a unified ad universal interface as the designated ad interface, so the ad slot universal interface to be tested can be determined according to the designated ad slot selected by the user, such as the ad slot to be tested.
[0098] In this step, a test request with test parameters can be sent to the advertising interface, such as a get request, to simulate a real online request. The get request actually transmits data through the URL. When the request method is a get request, the advertising interface will execute the get method, read the URL and parameter values of the get request, etc. After executing the get request, you can read the return result of executing the get request.
[0099] Because the test request already includes the designation of different operating environments, the advertising interface can run the test according to the designated operating environment after receiving the test request. For example, different IP addresses represent designated servers in different operating environments, and the test can be run according to the designated servers.
[0100] S208, determine whether the returned test result triggers the alarm threshold, if it triggers the alarm threshold, go to step S209, if it does not trigger the alarm threshold, go to step S210.
[0101] In this step, it is determined whether the test result returned after sending a request to the advertising interface triggers the alarm threshold. The test result includes a first test result that triggers an alarm or a second test result that does not trigger an alarm. If the number of CPC materials in the online log return result is less than the CPC material number threshold, the number of CPT materials in the return result is less than the CPT material number threshold, and the total interface time is less than the interface time threshold, the alarm threshold is triggered. If the alarm threshold is triggered, go to step S209; if the alarm threshold is not triggered, go to step S210.
[0102] Among them, triggering an alarm includes at least one of the following: the number of CPC materials in the returned results is less than the CPC material number threshold, the number of CPT materials in the returned results is less than the CPT material number threshold, and the total interface time is less than the interface time threshold.
[0103] S209, output the first test result that triggers an alarm, and proceed to S211.
[0104] Because the number of CPC materials in the online log return results is less than the CPC material number threshold, the number of CPT materials in the returned results is less than the CPT material number threshold, and the total interface time is less than the interface time threshold, the alarm threshold is triggered. Therefore, the first test result of triggering the alarm can be output. The output method of triggering the alarm may include sending SMS notification, phone alarm notification, voice message notification, etc.
[0105] S210, output the second test result that does not trigger an alarm, and proceed to S211.
[0106] Because the number of CPC materials in the online log return results is greater than or equal to the CPC material number threshold, the number of CPT materials in the returned results is greater than or equal to the CPT material number threshold, and the total interface time consumption is greater than or equal to the interface time consumption threshold, the alarm threshold is triggered. Therefore, the second test result that does not trigger the alarm can be output, and there is no alarm notification at this time.
[0107] S211. Generate a test report based on the test results.
[0108] This application can parse the returned results and compare the results according to the test results returned by different operating environments, such as comparing the returned results of the pre-release environment with the returned results of the actual request of the online environment.
[0109] Then, a test report can be generated based on the test results. For example, on the automated test report query page, information such as ad slots, ad slot status, test results, and test cases can be displayed. Users can choose to export the test report for subsequent regression testing.
[0110] Users can view the execution results, set or adjust the number of use cases and crawling rules according to the test report, and pause ad slots. If an ad is paused, the ad slots in the paused state will not be crawled in subsequent crawls.
[0111] It should also be noted that before each advertising system is released, the test report generated by the present application solution can be used to parse the test cases in the report and use the test cases to make requests. If the test cases return correct results after executing, the system can continue to be released normally. If the result of executing the test cases fails, an alarm can be triggered to stop publishing the advertising system.
[0112] From the above-mentioned embodiments, it can be found that the adoption of the present application scheme can effectively regress the accuracy of the universal advertising interface in the pre-launch environment or the online environment, and facilitate testers and developers to perform online parameter capture for a certain online advertising position that has been launched, thereby ensuring data authenticity and improving test accuracy. In addition, according to the operating environment selected by the user, requests are made in the pre-launch or online environment, and the returned results are checked and compared, thereby meeting the testing requirements of different operating environments, saving the time of testers and developers to test the interface, and improving the stability of the interface running online. The present application utilizes the feature of automatically capturing online logs, and by verifying the correctness of the results returned by the universal advertising interface, it can quickly locate online problems and solve online bug problems in a timely manner.
[0113] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an advertising interface testing device, electronic equipment, system and corresponding embodiments.
[0114] Figure 4It is a structural schematic diagram of an advertising interface testing device shown in an embodiment of the present application.
[0115] See also Figure 4 , an advertising interface testing device 40, including: a log acquisition module 41, a test parameter module 42, a test request module 43, and a test result module 44.
[0116] The log acquisition module 41 is used to acquire the advertisement log of the online advertisement position captured according to the preset conditions. The log acquisition module 41 can acquire the advertisement log of the online advertisement position captured according to the preset number of capture cases and the capture rules. The capture rules include one or more of the specified request parameters, the request time range or the return result, and the request parameters include at least one of the following: city id, user id, device id.
[0117] The test parameter module 42 is used to obtain request parameters from the advertisement log according to the specified advertisement position, and generate test parameters according to the request parameters. The test parameter module 42 can obtain request parameters from the advertisement log according to the specified advertisement position; obtain the operating environment selected by the user; splice the request parameters and the operating environment to generate the spliced test parameters.
[0118] The test request module 43 is used to send a test request carrying test parameters to a designated advertisement interface.
[0119] The test result module 44 is used to receive the test result returned by the specified advertising interface according to the test request. The test result received by the test result module 44 includes a first test result that triggers an alarm or a second test result that does not trigger an alarm. For example, if the number of CPC materials in the returned test result is less than the CPC material number threshold, the number of CPT materials is less than the CPT material number threshold, and the total interface time is less than the interface time threshold, the alarm threshold is triggered.
[0120] Figure 5 It is a structural schematic diagram of an advertising interface testing device shown in another embodiment of the present application.
[0121] See also Figure 5 , an advertising interface testing device 40, including: a log acquisition module 41, a test parameter module 42, a test request module 43, and a test result module 44.
[0122] The test parameter module 42 may include: a request parameter submodule 421 , an environment selection submodule 422 , and a splicing submodule 423 .
[0123] The request parameter submodule 421 is used to obtain the request parameter from the advertisement log according to the specified advertisement position;
[0124] The environment selection submodule 422 is used to obtain the operating environment selected by the user;
[0125] The splicing submodule 423 is used to splice the request parameters and the operating environment to generate spliced test parameters.
[0126] The environment selection submodule 422 obtains the operating environment selected by the user, including: obtaining the test environment, pre-release environment or online environment selected by the user in parallel; or obtaining the test environment, pre-release environment or online environment selected by the user one by one.
[0127] The advertisement interface testing device 40 may further include: an advertisement position selection module 45 .
[0128] The advertisement position selection module 45 is used to obtain an advertisement position selected from pre-created online advertisement positions in the test page.
[0129] The advertisement interface testing device 40 may further include: a log capturing module 46 .
[0130] The log capture module 46 is used to capture the advertisement log of the online advertisement space according to the preset capture case number and capture rule. The capture rule includes one or more of the specified request parameters, request time range or return result, and the request parameter includes at least one of the following: city id, user id, device id.
[0131] The advertisement interface testing device 40 may further include: a log storage module 47 .
[0132] The log storage module 47 is used to parse and store the advertisement logs of the online advertisement positions captured by the log capture module 46 into a database. The log acquisition module 41 can obtain the advertisement logs of the online advertisement positions captured according to preset conditions from the log storage module 47.
[0133] The advertisement interface testing device 40 may further include: a report generating module 48 .
[0134] The report generating module 48 is used to generate a test report according to the test results.
[0135] The device provided by the present application can first capture the advertising log of the online advertising position according to the preset conditions, and then obtain the request parameters from the advertising log according to the specified advertising position, and generate the test parameters according to the request parameters; then send a test request carrying the test parameters to the specified advertising interface, receive the test results returned by the specified advertising interface according to the test request, and analyze according to the returned test results. Through the above processing, the present application does not require the tester to enter the test parameters or test data separately for testing, but can directly use the real advertising log of the running online advertising position to obtain the request parameters from the advertising log, so that the authenticity of the data can be guaranteed and the test accuracy can be improved. Further, the device of the present application can also obtain the operating environment selected by the user; splice the request parameters and the operating environment to generate the spliced test parameters, and then send a test request carrying the test parameters to the specified advertising interface, so that different operating environments can be tested, solving the defect that the related technical scheme cannot meet the test requirements of different operating environments, and realizing the test requirements that can meet different operating environments.
[0136] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0137] Figure 6 1 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. The electronic device may be, for example, an advertising interface testing device but is not limited thereto.
[0138] See also Figure 6 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0139] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0140] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0141] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0142] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0143] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0144] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. An advertising interface testing method, characterized in that: include: Get the ad logs of online ad slots captured according to preset conditions; Obtaining request parameters from the advertisement log according to the designated advertisement position, and generating test parameters according to the request parameters; Sending a test request carrying the test parameters to a designated advertising interface; Receive a test result returned by the designated advertisement interface according to the test request.
2. The method according to claim 1, characterized in that The obtaining request parameters from the advertisement log according to the designated advertisement position, and generating test parameters according to the request parameters, includes: Obtaining request parameters from the advertisement log according to the designated advertisement slot; Get the operating environment selected by the user; The request parameters and the operating environment are concatenated to generate concatenated test parameters.
3. The method according to claim 2, characterized in that The obtaining of the operating environment selected by the user includes: Obtain a test environment, a pre-release environment, or a production environment selected by a user in parallel; or, Get the test environment, pre-release environment, or production environment selected by the user.
4. The method according to claim 1, characterized in that: Before obtaining the advertisement log of the online advertisement position captured according to the preset conditions, the method further includes: Get an ad slot selected from pre-created online ad slots in the test page.
5. The method according to claim 1, characterized in that The step of obtaining the advertisement log of the online advertisement position captured according to the preset conditions includes: Get the ad logs of online ad slots that are crawled according to the preset crawling case count and crawling rules.
6. The method according to claim 5, characterized in that: The crawling rule includes one or more of a specified request parameter, a request time range, or a return result, and the request parameter includes at least one of the following: a city id, a user id, and a device id.
7. The method according to claim 1, characterized in that The receiving the test result returned by the designated advertising interface according to the test request includes: A test result returned by the designated advertisement interface according to the test request is received, wherein the test result includes a first test result that triggers an alarm or a second test result that does not trigger an alarm.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: A test report is generated according to the test results.
9. An advertising interface testing device, characterized in that: include: A log acquisition module is used to acquire advertisement logs of online advertisement positions captured according to preset conditions; A test parameter module, used to obtain request parameters from the advertisement log according to a specified advertisement position, and generate test parameters according to the request parameters; A test request module, used for sending a test request carrying the test parameters to a designated advertisement interface; The test result module is used to receive the test result returned by the designated advertisement interface according to the test request.
10. The advertising interface testing device according to claim 9, characterized in that: The test parameter module includes: A request parameter submodule, used to obtain request parameters from the advertisement log according to the specified advertisement position; The environment selection submodule is used to obtain the operating environment selected by the user; The splicing submodule is used to splice the request parameters and the operating environment to generate spliced test parameters.
11. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 8.
12. A computer-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 8.