CN111324524B - Advertisement stability testing method and device - Google Patents

Advertisement stability testing method and device Download PDF

Info

Publication number
CN111324524B
CN111324524B CN201811535317.XA CN201811535317A CN111324524B CN 111324524 B CN111324524 B CN 111324524B CN 201811535317 A CN201811535317 A CN 201811535317A CN 111324524 B CN111324524 B CN 111324524B
Authority
CN
China
Prior art keywords
test
advertisement service
tested
advertisement
node
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
CN201811535317.XA
Other languages
Chinese (zh)
Other versions
CN111324524A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811535317.XA priority Critical patent/CN111324524B/en
Publication of CN111324524A publication Critical patent/CN111324524A/en
Application granted granted Critical
Publication of CN111324524B publication Critical patent/CN111324524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for testing stability of advertisements, wherein the method comprises the following steps: acquiring an advertisement service program to be tested containing a plurality of advertisement source data based on an advertisement service platform; deploying the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation; invoking a pre-configured test tool; and executing stability test on the advertisement service program to be tested by using the test tool under the single-node test environment. In the invention, the stability test is carried out on the advertisement service program to be tested by a single-node test environment before the advertisement service is on line, the advertisement service data is on line by the test, the robustness and stability of the advertisement service can be ensured, and further, the service request can be stably and efficiently processed when a large number of service requests are received.

Description

Advertisement stability testing method and device
Technical Field
The invention relates to the technical field of testing, in particular to a method and a device for testing stability of advertisements.
Background
With the continuous development of internet technology, users generally query and acquire information through terminals such as mobile phones and computers, meanwhile, the terminals recommend relevant advertisement information to users in a result page according to keywords queried by the users, and the stability of the advertisement information is a determining function of a server.
For each advertisement source, a terminal for advertisement docking has a large amount of data requests every day, and if the stability of the terminal cannot be determined after the terminal is online, the advertisement service cannot normally run due to various conditions after the terminal is online, and therefore irrecoverable loss is caused to an advertiser. Therefore, how to test the stability before the advertisement service is on line is a problem to be solved.
Disclosure of Invention
The present invention provides a method and apparatus for testing stability of advertisement to overcome or at least partially solve the above-mentioned problems.
According to one aspect of the invention, there is provided a method for testing stability of advertisement, before being applied to online of server side advertisement service, the method comprising:
acquiring an advertisement service program to be tested containing a plurality of advertisement source data based on an advertisement service platform;
deploying the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation;
invoking a pre-configured test tool;
And executing stability test on the advertisement service program to be tested by using the test tool under the single-node test environment.
Optionally, the deploying the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation includes:
And deploying the advertisement service program to be tested to one or more single-node test environments which are generated by simulating the online advertisement service cluster and are independently corresponding to one or more server operation environments in the advertisement service cluster.
Optionally, the executing, in the single-node testing environment, the stability test on the advertisement service program to be tested by using the testing tool includes:
Transmitting an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment through a preset request rule by utilizing the test tool;
and monitoring state change parameters of the test server after the received advertisement service request, and acquiring a test result based on the state change parameters.
Optionally, the sending, by the testing tool, an advertisement service request for the advertisement service program to be tested to a testing server configured with the single-node testing environment through a preset request rule includes:
transmitting advertisement service requests of a preset number for the advertisement service program to be tested to a test server configured with the single-node test environment by using the test tool; and/or
And sending an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment for a preset time by using the test tool.
Optionally, after monitoring the state change parameter of the test server after receiving the advertisement service request and acquiring the test result based on the state change parameter, the method further includes:
Monitoring state change parameters of the test server after receiving the advertisement service request, and analyzing and judging based on the state change parameters;
If the advertisement service program to be tested passes the test based on the state change parameter, deploying the advertisement service program to be tested to an online advertisement environment for gray level test;
And if the advertisement service program to be tested is judged to not pass the test based on the state parameter, sending an alarm notification.
Optionally, the invoking the pre-configured test tool includes:
A pre-configured test tool in the specified persistent integrated services platform is invoked.
According to another aspect of the present invention, there is also provided an advertisement stability test apparatus including:
the acquisition module is configured to acquire an advertisement service program to be tested, which comprises a plurality of advertisement source data, based on the advertisement service platform;
The deployment module is configured to deploy the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation;
the calling module is configured to call a pre-configured test tool;
And the testing module is configured to execute stability testing on the advertisement service program to be tested by using the testing tool under the single-node testing environment.
Optionally, the deployment module is further configured to:
And deploying the advertisement service program to be tested to one or more single-node test environments which are generated by simulating the online advertisement service cluster and are independently corresponding to one or more server operation environments in the advertisement service cluster.
Optionally, the test module includes:
A request unit configured to send an advertisement service request for the advertisement service program to be tested to a test server configured with the single-node test environment through a preset request rule by using the test tool;
And the monitoring unit is configured to monitor the state change parameters of the test server after the received advertisement service request, and acquire a test result based on the state change parameters.
Optionally, the request unit is further configured to:
transmitting advertisement service requests of a preset number for the advertisement service program to be tested to a test server configured with the single-node test environment by using the test tool; and/or
And sending an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment for a preset time by using the test tool.
Optionally, the test module further comprises:
the analysis unit is configured to monitor state change parameters of the test server after receiving the advertisement service request, and perform analysis and judgment based on the state change parameters;
when the advertisement service program to be tested is judged to pass the test based on the state change parameters, the advertisement service program to be tested is deployed to an online advertisement environment for gray level test;
and sending an alarm notification when the advertisement service program to be tested is judged to not pass the test based on the state parameter.
Optionally, the calling module is further configured to: a pre-configured test tool in the specified persistent integrated services platform is invoked.
According to another aspect of the present invention there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the method of stability testing of advertisements of any one of the preceding claims.
According to another aspect of the present invention, there is also provided a computing device including:
A processor;
A memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform the method of stability testing of advertisements of any one of the above.
The invention provides an advertisement stability testing method and device, which are mainly applied to the online of a server side advertisement service. In the invention, the stability test is carried out on the advertisement service program to be tested by a single-node test environment before the advertisement service is on line, the advertisement service data is on line by the test, the robustness and stability of the advertisement service can be ensured, and further, the service request can be stably and efficiently processed when a large number of service requests are received.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of a method for testing stability of advertisements according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for testing the stability of advertisements according to a preferred embodiment of the present invention;
FIG. 3 is a schematic diagram of a stability testing device for advertisements according to an embodiment of the present invention;
fig. 4 is a schematic structural view of an advertisement stability test apparatus according to a preferred embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flow chart of a method for testing stability of an advertisement according to an embodiment of the present invention, and referring to fig. 1, it can be known that the method for testing stability of an advertisement according to an embodiment of the present invention may include:
step S102, acquiring an advertisement service program to be tested containing a plurality of advertisement source data based on an advertisement service platform;
Step S104, deploying the advertisement service program to be tested to one or more single-node test environments generated based on the on-line advertisement service cluster simulation;
step S106, calling a pre-configured test tool;
And S108, executing stability test on the advertisement service program to be tested by using a test tool under the single-node test environment.
The embodiment of the invention provides an advertisement stability testing method, which is mainly applied to the situation that before a server-side advertisement service is on line, an advertisement service program to be tested, which is acquired based on an advertisement service platform, is deployed into one or more single-node testing environments, and the stability of the advertisement service program to be tested is tested by calling a pre-configured testing tool under the single-node testing environments and utilizing the called configuration tool. In the embodiment of the invention, the stability test is carried out on the advertisement service program to be tested by a single-node test environment before the advertisement service is on line, and the advertisement service data is on line through the test, so that the robustness and stability of the advertisement service can be ensured, and further, the service request can be stably and efficiently processed when a large number of service requests are received.
The advertisement service platform in the embodiment of the invention can be an SSP advertisement service platform, and mainly pushes advertisement information and processes various advertisement sources at a service end. The SSP advertisement cloud rules exist in the advertisement service platform, and the advertisement service platform can send corresponding advertisements in a matching way through some algorithms when receiving data requests aiming at different advertisement sources based on the SSP cloud rules. The to-be-tested advertisement service program obtained in the step S102 based on the advertisement service platform may be a program file including a plurality of advertisement source data, preferably a program file including all advertisement source data of the advertisement service platform, where the to-be-tested advertisement service program includes source code data capable of providing an advertisement service operation program. In some cases, before the advertisement service is on line, codes may be added to the advertisement program or the BUG may be modified, and the influence of the modification on the advertisement program on the stability and robustness of the program may not be known, so that it is necessary to perform stability detection on the program file. Therefore, the to-be-detected advertisement service program obtained in step S102 based on the advertisement service platform may be a program including original advertisement source data or a program including updated advertisement source data, which is not limited by the present invention.
Step S104 mentioned above refers to deploying the advertisement service program to be tested into one or more single-node test environments after acquiring the advertisement service program. In general, an online advertising environment is typically composed of a cluster, wherein a number of servers may be deployed in the cluster as nodes to respond to front-end call requests for different advertising services. Optionally, the single-node test environment in this embodiment is generated based on online advertisement service cluster simulation, preferably generated according to one-to-one environment simulated by hardware and software environments of a single server in the online advertisement service cluster, and the test environment may also be referred to as a regression environment. In addition, a single-node test environment configured test server can be independently configured for subsequent stability testing of advertisements. That is, when configuring the test server of the single-node test environment, configuration information, such as CPU, memory, etc., of one or more servers on the advertisement line may be first obtained, and based on the selected configuration information of the servers, the configuration information of each server is separately deployed and configured with each server information 1:1, wherein the running environment of a single test server can be used as a single-node test environment.
When the advertisement service program to be tested is deployed, the advertisement service program to be tested is preferably deployed in the one or more single-node test environments corresponding to the one or more server operation environments in the advertisement service cluster, which are generated through simulation of the on-line advertisement service cluster, in the step S104. Based on the single-node test environment, the current node can be controlled, and the QPS (Query Per Second Per Second) is also controlled, so that the stability of the advertisement service program to be tested can be tested more effectively.
In the foregoing description, when the stability test is performed on the advertisement service program to be tested, a pre-configured test tool needs to be called in addition to the single-node test environment. Optionally, the test tool in the embodiment of the present invention is a test tool configured in advance based on a specified persistent integration service platform. In the foregoing description, the advertisement service program to be tested may be an advertisement service code program, after the advertisement service program to be tested in the advertisement service platform is modified, the updated number of advertisement services to be tested may submit the modified code to the Git code repository, and the continuous integrated CI service platform is used as an intelligent and automatic integrated platform, so that after the advertisement service program to be tested is detected to be modified and updated, a testing tool may be directly called from the continuous integrated service to perform stability test on the new advertisement service program to be tested. The continuous integration service platform can set the test tool as a task job and simultaneously provide a URL for automatic call at any time. The embodiment form of the test tool can be a jar file or other files, and the invention is not limited.
Through the continuous integrated service platform provided by the embodiment of the invention, when the data updating and the data modification of the advertisement service program to be tested occur, a pre-configured testing tool can be automatically called to perform stability test on the new advertisement service program, so that the stability and the robustness of the new program are ensured.
Optionally, the stability test for the ad business program under test may be performed using a test tool by: transmitting an advertisement service request aiming at an advertisement service program to be tested to a test server configured with a single-node test environment through a preset request rule by using a test tool; and monitoring state change parameters of the test server after the received advertisement service request, and acquiring a test result based on the state change parameters. When the advertisement service request is sent specifically through a preset rule, a certain amount of concurrent requests can be sent or the requests can be sent continuously for a period of time. Namely, sending a preset number of advertisement service requests aiming at an advertisement service program to be tested to a test server configured with a single-node test environment by using a test tool; and/or sending an advertisement service request for the advertisement service program to be tested to a test server configured with the single-node test environment for a preset time by using a test tool. That is, the preconfigured test tool may request multiple advertisement source data in the advertisement service program to be tested concurrently, for example, 100 ten thousand or 50 ten thousand concurrent volumes are set to be requested simultaneously, or continuously request multiple advertisement source data in the advertisement service program to be tested all the time in a period of time, so as to judge the stability and the pressure resistance according to the request result. In addition, the testing tool can also send advertisement service requests to the testing server at regular time and quantity in each day or in a specified time according to different requirements, and further effectively verify the stability of the advertisement service program to be tested.
In addition, during the process of concurrently or continuously requesting the advertisement service program to be tested in the test server, the state change parameters of the test server after receiving the advertisement service request can be monitored in real time or periodically, and the test result is obtained based on the state change parameters. The state change parameters may be change information of memory in the server, CPU change information, etc. obtained by using command parameters such as top and htop.
After the state change parameters of the test server after the stability test is executed are obtained, analysis and judgment can be carried out on the state change parameters, and if the advertisement service program to be tested is judged to pass the test based on the state change parameters, the advertisement service program to be tested is deployed to an online advertisement environment for gray level test; and if the advertisement service program to be tested is judged to not pass the test based on the state parameter, sending an alarm notification. When the state change parameters of the test server are analyzed and judged, whether the result returned based on the advertisement service request based on the advertisement service process to be tested is correct or not can be checked, whether the memory of the test server has the problems of leakage, overflow, error reporting and the like or not, and whether the advertisement service process to be tested cannot run or not is checked. In addition, the information before and after the modification of the advertisement service program to be tested can be compared, for example, the original single-node QPS is 100, and then the statistics and the like are performed on the QPS after the modification, which is not described herein.
If the advertisement service program to be tested passes the test, i.e. the memory of the test server has no problems of leakage, overflow and the like, the process of the advertisement service program to be tested runs normally when responding to the service request, and the advertisement service program to be tested passes the test, the advertisement service program to be tested can be deployed to an online advertisement environment for gray level test at the moment, i.e. a plurality of servers in a cluster are selected in the online advertisement environment for test delivery, and the advertisement service program to be tested is gradually deployed to all servers in the online cluster after the process is stable. If the advertisement service program to be tested does not pass the test, the memory of the test server leaks, the advertisement service program to be tested returns data exception based on the service request, and the like, an alarm notification can be sent in the form of mail or other forms, and maintenance is performed by maintenance personnel.
Fig. 2 is a flow chart of a method for testing stability of an advertisement according to a preferred embodiment of the present invention, and referring to fig. 2, it can be seen that the method for testing stability of an advertisement according to the preferred embodiment can be implemented as a whole by:
1. acquiring an advertisement service program to be tested based on an advertisement service platform, and deploying the program to a single-node testing environment;
2. Acquiring a testing tool jar file based on a CI continuous integrated service platform, and transmitting a request for a plurality of advertisement source data of specified concurrency quantity to a testing server configured with a single-node testing environment or transmitting a request for a plurality of advertisement source data to a testing service for a specified duration by utilizing the testing tool;
3. Acquiring state change parameters of a test server, judging whether the advertisement service program to be tested is tested successfully, if so, deploying the advertisement service program to be tested into an online advertisement environment for gray level test and sequentially online; if the test fails, an alarm notice is sent to the development maintenance personnel, and the state change parameters monitored in the stability test process are sent to the development maintenance personnel in a report form.
Based on the same inventive concept, the embodiment of the invention further provides an advertisement stability testing device, as shown in fig. 3, where the advertisement stability testing device provided by the embodiment of the invention may include:
An acquisition module 310 configured to acquire an advertisement service program to be tested including a plurality of advertisement source data based on an advertisement service platform;
a deployment module 320 configured to deploy an advertising business program to be tested to one or more single-node test environments generated based on the online advertising business cluster simulation;
a calling module 330 configured to call a pre-configured test tool;
the test module 340 is configured to perform a stability test on the advertisement service program to be tested using the test tool in a single-node test environment.
In a preferred embodiment of the present invention, the deployment module 320 may be further configured to:
and deploying the advertisement service program to be tested to one or more single-node test environments which are generated by simulating the online advertisement service cluster and are individually corresponding to one or more server running environments in the advertisement service cluster.
In a preferred embodiment of the present invention, as shown in fig. 4, the test module 340 may include:
A request unit 341 configured to send an advertisement service request for an advertisement service program to be tested to a test server configured with a single-node test environment through a preset request rule by using a test tool;
The monitoring unit 342 is configured to monitor a state change parameter of the test server after receiving the advertisement service request, and obtain a test result based on the state change parameter.
In a preferred embodiment of the present invention, the request unit 342 may be further configured to:
Transmitting a preset number of advertisement service requests aiming at the advertisement service program to be tested to a test server configured with a single-node test environment by using a test tool; and/or
And sending an advertisement service request aiming at the advertisement service program to be tested to a test server configured with a single-node test environment for a preset time through a test tool.
In a preferred embodiment of the present invention, the test module 340 may further include:
The analysis unit 343 is configured to be an analysis unit and configured to monitor a state change parameter of the test server after receiving the advertisement service request, and perform analysis and judgment based on the state change parameter;
when the advertisement service program to be tested is judged to pass the test based on the state change parameters, the advertisement service program to be tested is deployed to an online advertisement environment for gray level test;
and sending an alarm notification when the advertisement service program to be tested is judged to not pass the test based on the state parameters.
In a preferred embodiment of the present invention, the calling module 330 may be further configured to: a pre-configured test tool in the specified persistent integrated services platform is invoked.
Based on the same inventive concept, the embodiments of the present invention also provide a computer storage medium storing computer program code, which when run on a computing device, causes the computing device to execute the method for testing the stability of an advertisement according to any one of the embodiments described above.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
A processor;
A memory storing computer program code;
the computer program code, when executed by a processor, causes a computing device to perform the method of stability testing advertisements described in any one of the embodiments above.
The embodiment of the invention provides an advertisement stability testing method and device, which are mainly applied to deploying an advertisement service program to be tested acquired based on an advertisement service platform into one or more single-node testing environments before the service side advertisement service is on line, and carrying out stability testing on the advertisement service program to be tested by calling a pre-configured testing tool under the single-node testing environments and utilizing the called configuration tool. In the embodiment of the invention, the stability test is carried out on the advertisement service program to be tested by a single-node test environment before the advertisement service is on line, in addition, in the embodiment of the invention, the service request can be stably and efficiently processed when a large number of service requests are received by simulating the advertisement service request aiming at a plurality of advertisement source data or carrying out the timing high-speed concurrent batch request every day based on a test tool and carrying out verification statistics on the returned result, the advertisement service data is on line after passing the test, thereby ensuring the robustness and the stability of the advertisement service.
It will be clear to those skilled in the art that the specific working procedures of the above-described systems, devices and units may refer to the corresponding procedures in the foregoing method embodiments, and are not repeated herein for brevity.
In addition, each functional unit in the embodiments of the present invention may be physically independent, two or more functional units may be integrated together, or all functional units may be integrated in one processing unit. The integrated functional units may be implemented in hardware or in software or firmware.
Those of ordinary skill in the art will appreciate that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or in whole or in part in the form of a software product stored in a storage medium, comprising instructions for causing a computing device (e.g., a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disk, etc.
Or all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a personal computer, a server, or a computing device such as a network device) associated with program instructions, which may be stored in a computer-readable storage medium, which when executed by a processor of the computing device, performs all or part of the steps of the method of embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all technical features thereof can be replaced by others within the spirit and principle of the present invention; such modifications and substitutions do not depart from the scope of the invention.

Claims (14)

1. A stability test method of advertisement, before being applied to server side advertisement business on line, the method includes:
acquiring an advertisement service program to be tested containing a plurality of advertisement source data based on an advertisement service platform;
Deploying the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation, acquiring configuration information of one or more servers on an advertisement line when configuring test servers of the single-node test environments, and independently deploying simulated test servers which are identical to the information of each server based on the selected configuration information of the servers respectively, wherein an operation environment of an independent test server is used as the single-node test environment;
invoking a pre-configured test tool;
And executing stability test on the advertisement service program to be tested by using the test tool under the single-node test environment.
2. The method of claim 1, wherein the deploying the ad business program under test to one or more single-node test environments generated based on an online ad business cluster simulation comprises:
And deploying the advertisement service program to be tested to one or more single-node test environments which are generated by simulating the online advertisement service cluster and are independently corresponding to one or more server operation environments in the advertisement service cluster.
3. The method of claim 1, wherein the performing a stability test on the ad business program under test in the single-node test environment using the test tool comprises:
Transmitting an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment through a preset request rule by utilizing the test tool;
and monitoring state change parameters of the test server after the received advertisement service request, and acquiring a test result based on the state change parameters.
4. The method of claim 3, wherein the sending, with the testing tool, an advertisement service request for the advertisement service program under test to a testing server configured with the single-node testing environment through a preset request rule, comprises:
transmitting advertisement service requests of a preset number for the advertisement service program to be tested to a test server configured with the single-node test environment by using the test tool; and/or
And sending an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment for a preset time by using the test tool.
5. The method of claim 3, wherein the monitoring the state change parameter of the test server after receiving the advertisement service request, and after obtaining the test result based on the state change parameter, further comprises:
Monitoring state change parameters of the test server after receiving the advertisement service request, and analyzing and judging based on the state change parameters;
If the advertisement service program to be tested passes the test based on the state change parameter, deploying the advertisement service program to be tested to an online advertisement environment for gray level test;
and if the advertisement service program to be tested is judged to not pass the test based on the state change parameter, sending an alarm notification.
6. The method of any of claims 1-5, wherein the invoking the pre-configured test tool comprises:
A pre-configured test tool in the specified persistent integrated services platform is invoked.
7. An advertisement stability testing device, comprising:
the acquisition module is configured to acquire an advertisement service program to be tested, which comprises a plurality of advertisement source data, based on the advertisement service platform;
The deployment module is configured to deploy the advertisement service program to be tested to one or more single-node test environments generated based on online advertisement service cluster simulation, obtain configuration information of one or more servers on an advertisement line when configuring the test servers of the single-node test environments, and independently deploy simulated test servers with the same information as each server based on the selected configuration information of the servers, wherein the running environment of an independent test server is used as the single-node test environment;
the calling module is configured to call a pre-configured test tool;
And the testing module is configured to execute stability testing on the advertisement service program to be tested by using the testing tool under the single-node testing environment.
8. The apparatus of claim 7, wherein the deployment module is further configured to:
And deploying the advertisement service program to be tested to one or more single-node test environments which are generated by simulating the online advertisement service cluster and are independently corresponding to one or more server operation environments in the advertisement service cluster.
9. The apparatus of claim 7, wherein the test module comprises:
A request unit configured to send an advertisement service request for the advertisement service program to be tested to a test server configured with the single-node test environment through a preset request rule by using the test tool;
And the monitoring unit is configured to monitor the state change parameters of the test server after the received advertisement service request, and acquire a test result based on the state change parameters.
10. The apparatus of claim 9, wherein the requesting unit is further configured to:
transmitting advertisement service requests of a preset number for the advertisement service program to be tested to a test server configured with the single-node test environment by using the test tool; and/or
And sending an advertisement service request aiming at the advertisement service program to be tested to a test server configured with the single-node test environment for a preset time by using the test tool.
11. The apparatus of claim 9, wherein the test module further comprises:
the analysis unit is configured to monitor state change parameters of the test server after receiving the advertisement service request, and perform analysis and judgment based on the state change parameters;
when the advertisement service program to be tested is judged to pass the test based on the state change parameters, the advertisement service program to be tested is deployed to an online advertisement environment for gray level test;
and when the advertisement service program to be tested is judged to not pass the test based on the state change parameter, sending an alarm notification.
12. The apparatus of any of claims 7-11, wherein the invocation module is further configured to: a pre-configured test tool in the specified persistent integrated services platform is invoked.
13. A computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the method of stability testing of advertisements of any one of claims 1-6.
14. A computing device, comprising:
A processor;
A memory storing computer program code;
The computer program code, when executed by the processor, causes the computing device to perform the method of stability testing of advertisements of any one of claims 1-6.
CN201811535317.XA 2018-12-14 2018-12-14 Advertisement stability testing method and device Active CN111324524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535317.XA CN111324524B (en) 2018-12-14 2018-12-14 Advertisement stability testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535317.XA CN111324524B (en) 2018-12-14 2018-12-14 Advertisement stability testing method and device

Publications (2)

Publication Number Publication Date
CN111324524A CN111324524A (en) 2020-06-23
CN111324524B true CN111324524B (en) 2024-06-21

Family

ID=71172429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535317.XA Active CN111324524B (en) 2018-12-14 2018-12-14 Advertisement stability testing method and device

Country Status (1)

Country Link
CN (1) CN111324524B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118633A1 (en) * 2005-11-10 2007-05-24 Kumar C P V Cluster command testing
WO2008042812A2 (en) * 2006-09-29 2008-04-10 Google Inc. Advertisement campaign simulator
US8732008B2 (en) * 2009-05-13 2014-05-20 Microsoft Corporation Display ads testing tool for rich media developers
US8392575B1 (en) * 2011-03-31 2013-03-05 Amazon Technologies, Inc. Clustered device dispersion in a multi-tenant environment
CN103226485B (en) * 2013-05-21 2016-09-28 北京奇虎科技有限公司 Code dissemination method, code issue machine and code delivery system
CN106155817B (en) * 2015-04-14 2020-12-29 腾讯科技(深圳)有限公司 Service information processing method, server and system
US20180268015A1 (en) * 2015-09-02 2018-09-20 Sasha Sugaberry Method and apparatus for locating errors in documents via database queries, similarity-based information retrieval and modeling the errors for error resolution
CN105577475B (en) * 2015-12-28 2019-07-05 上海瀚之友信息技术服务有限公司 Automated performance testing system and method
CN108460612B (en) * 2017-02-20 2023-01-06 腾讯科技(北京)有限公司 Advertisement delivery test method, device and equipment
CN108959045B (en) * 2018-06-08 2021-11-09 郑州云海信息技术有限公司 Method and system for testing fault switching performance of NAS cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ACT的Web网站压力测试;方卿 等;科学技术与工程;第08卷(第09期);第2376-2380页 *

Also Published As

Publication number Publication date
CN111324524A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US10346282B2 (en) Multi-data analysis based proactive defect detection and resolution
US11403208B2 (en) Generating a virtualized stub service using deep learning for testing a software module
CN106484606A (en) Method and apparatus submitted to by a kind of code
CN108667840B (en) Injection vulnerability detection method and device
Syer et al. Continuous validation of performance test workloads
CN109739527B (en) Method, device, server and storage medium for client gray scale release
CN110336790A (en) A kind of method and system of website detection
CN110737891A (en) host intrusion detection method and device
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
CN111612085B (en) Method and device for detecting abnormal points in peer-to-peer group
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN109491702B (en) Optimization scheme determination method and device, terminal equipment and storage medium
CN111367531A (en) Code processing method and device
CN110737548A (en) Data request method and server
CN113254250A (en) Database server abnormal cause detection method, device, equipment and storage medium
CN111324524B (en) Advertisement stability testing method and device
CN106484601B (en) User data analysis method and system for client
CN115952098A (en) Performance test tuning scheme recommendation method and system
CN112882758B (en) iOS device identifier generation method and system
CN114546799A (en) Point burying log checking method and device, electronic equipment, storage medium and product
CN110362464B (en) Software analysis method and equipment
CN113377399A (en) Non-stop system drilling verification method and device
CN111884882A (en) Monitoring coverage rate detection method and device
CN112860509A (en) Dial testing alarm method and device
CN114065190A (en) High-availability and high-safety algorithm automatic online test system

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