CN109324972A - Promotion information testing method and device and electronic equipment - Google Patents
Promotion information testing method and device and electronic equipment Download PDFInfo
- Publication number
- CN109324972A CN109324972A CN201811158092.0A CN201811158092A CN109324972A CN 109324972 A CN109324972 A CN 109324972A CN 201811158092 A CN201811158092 A CN 201811158092A CN 109324972 A CN109324972 A CN 109324972A
- Authority
- CN
- China
- Prior art keywords
- test
- promotion message
- test data
- client
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Abstract
The embodiment of the invention discloses a method and a device for testing popularization information and electronic equipment, relates to the technical field of information popularization, and can solve the problem of low testing efficiency in the prior art. The method comprises the following steps: receiving test environment initialization parameters; initializing a test environment of the promotion information; returning an initialization completion notification message to the user; receiving test case request parameters sent by a client, executing the test cases, and sending promotion information corresponding to the test cases to the client; receiving and storing promotion information test data corresponding to the test cases reported by the client; receiving test data query parameters and acquiring promotion information test data according to the test data query parameters; and providing the acquired popularization information test data for the user, or checking the acquired popularization information test data and providing a checking result for the user. The invention can save the communication cost, improve the working efficiency and is suitable for testing various promotion information commercial reports.
Description
Technical field
The present invention relates to information popularization technical field more particularly to a kind of test methods of promotion message, device and electronics
Equipment.
Background technique
With the development of mobile electronic device, the application program (Application, APP) on mobile electronic device is had become
It is also become by APP progress information popularization and is not write letters with the development of APP for the highest software of user's routine use frequency
Breath promotes the main direction of development of industry.To guarantee that the information promoted by APP can not go wrong after formally coming into operation,
It usually requires to carry out head end test and back end test to it before promotion message (such as advertisement) is launched.Wherein, head end test is
Refer to that the interrelated logic to promotion message in client is tested, back end test refers to user in client operation promotion message
Afterwards, client reports logic testing to the business that commerce services end (the push side of promotion message) is commercially given the correct time.Currently,
The head end test and back end test that APP is promoted often are executed by different users, interrelated logic of the promotion message in client
Test is generally done by commercial advertisement side Publisher, since Publisher lack of competence checks third-party server provider
End data is serviced, therefore the business of promotion message reports logic testing generally to be done by third-party server provider.
In the prior art, third-party server provider needs to operate the popularization letter in client end AP P on one side in test
Breath, another side according to the AID Publisherid of Publisher and on the parameters such as call time go the server-side packet capturing of itself to look into
See the promotion message currently tested by the business reported data in operating process.In this operating process, third party's service
Device provider often due to be unfamiliar with the promotion message of the side Publisher client show and operation logic etc., need frequency
Numerous dependence test personnel with the side Publisher link up the environmental problem for solving the problems, such as to encounter or promotion message and can not show
Deng the time for communication of test is at high cost, and testing efficiency is low.
Summary of the invention
In view of this, the embodiment of the present invention provides test method, device and the electronic equipment of a kind of promotion message, for solving
Certainly existing promotion message business reports the time for communication of test at high cost, and the low problem of testing efficiency, the present invention can save
Cost is linked up, working efficiency is improved.
In a first aspect, the embodiment of the present invention provides a kind of test method of promotion message, it to be used for commerce services end, comprising:
Receive test environment initiation parameter;
According to the test environment initiation parameter, the initialization of the test environment of promotion message is carried out;
Initialization completion notice message is returned to user;
The test case required parameter that client is sent is received, according to the test case required parameter, test is executed and uses
Example, is sent to the client for promotion message corresponding with test case;
It receives the promotion message test data that the client reports and stores;The promotion message test data includes institute
User that client reports is stated to the operation data of the promotion message corresponding with test case shown in the client;
Receive test data query argument;
According to the test data query argument, promotion message test data is obtained;
The promotion message test data that will acquire is supplied to user, alternatively, the promotion message test data to acquisition carries out
Verification, and check results are supplied to user.
With reference to first aspect, described according to the test context initialization in the first embodiment of first aspect
Parameter carries out the initialization of the test environment of promotion message, comprising:
According to the test environment initiation parameter, the survey of promotion message is carried out by executing pre-set first script
The initialization in test ring border.
With reference to first aspect, in second of embodiment of first aspect, described inquired according to the test data is joined
Number obtains promotion message test data, comprising:
According to the test data query argument that test platform transmits, popularization is obtained by executing pre-set second script
Information test data.
Second of embodiment with reference to first aspect, in the third embodiment of second aspect, described pair of acquisition
Promotion message test data verified, comprising:
By executing second script, the promotion message test data of acquisition is verified, judges the popularization letter
Cease whether test data is test data corresponding with the test data query argument;Alternatively,
Judge whether the promotion message test data obtained is consistent with pre-set expected test result.
With reference to first aspect, in the 4th kind of embodiment of first aspect, the promotion message is advertisement, the client
End is the client application for showing promotion message;
The test environment initiation parameter includes: the unique identification of the client, the unique identification of advertisement to be tested
And the pattern of advertisement to be tested;
The test data query argument includes: the unique identification of advertisement to be tested and the pattern of advertisement to be tested.
Second aspect, the embodiment of the present invention provide a kind of test device of promotion message, are used for commerce services end, comprising:
First receiving module, for receiving test environment initiation parameter;
Initialization module, for carrying out the first of the test environment of promotion message according to the test environment initiation parameter
Beginningization;
First sending module, for returning to initialization completion notice message to user;
Use-case execution module is asked for receiving the test case required parameter of client transmission according to the test case
Parameter is sought, promotion message corresponding with test case is sent to the client by implementation of test cases;
Second receiving module, for receiving promotion message test data that the client reports and storing;The popularization
Information test data includes that the operator that reports of the client is corresponding with test case to showing in the client
The operation data of promotion message;
Third receiving module, for receiving test data query argument;
Data acquisition module, for obtaining promotion message test data according to the test data query argument;
Second sending module, the promotion message test data for obtaining the data acquisition module are supplied to user,
Alternatively, check results are supplied to user after the promotion message test data obtained to the data acquisition module verifies.
In conjunction with second aspect, in the first embodiment of second aspect, the initialization module is specifically used for basis
The test environment initiation parameter carries out the initial of the test environment of promotion message by pre-set first script of execution
Change.
In conjunction with second aspect, in second of embodiment of second aspect, the data acquisition module is specifically used for root
According to the test data query argument, promotion message test data is obtained by executing pre-set second script.
In conjunction with second of embodiment of second aspect, in the third embodiment of second aspect, second hair
Send module, comprising:
Submodule is verified, for being verified to the promotion message test data of acquisition by execution second script,
Judge whether the promotion message test data is test data corresponding with the test data query argument;Alternatively, sentencing
Whether the disconnected promotion message test data obtained is consistent with pre-set expected test result;
Sending submodule, for the check results of the verification submodule to be supplied to the test platform.
In conjunction with second aspect, in the 4th kind of embodiment of second aspect, the promotion message is advertisement, the client
End is the client application for showing promotion message;
The received test environment initiation parameter of first receiving module include: the client unique identification, to
The unique identification of test advertisements and the pattern of advertisement to be tested;
The received test data query argument of third receiving module includes: the unique identification of advertisement to be tested and to be measured
Try the pattern of advertisement.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits
Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting
On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned client;Memory is executable for storing
Program code;Processor is corresponding with executable program code to run by reading the executable program code stored in memory
Program, for executing the test method of promotion message described in aforementioned any embodiment.
Test method, device and the electronic equipment of a kind of promotion message provided in an embodiment of the present invention, by the way that user is defeated
The test environment initiation parameter entered is dealt into commerce services end, surveys the commerce services end that promotion message is issued to client
Context initialization is tried, by client to commerce services end request for test use-case after the completion of initialization, commerce services end is received
After test case request, the survey that client is sent to commerce services end after the promotion message that shows in user's operation client is received
Examination data simultaneously store, and subsequent commerce services end can obtain corresponding promote and believe according to the test data query argument that user sends
Breath test data is simultaneously supplied to user.The present invention, which can effectively shorten, commercially reports test side and promotion message publisher
(Publisher) time for communication of personnel improves test job efficiency, and commerce services end can provide history survey for user
Data query function is tried, associated reported data and request data, nothing need to be paid close attention to by being truly realized commercial acceptance personnel only
Need to pay close attention to promotion message client operation level there are the problem of, it is fixed that the present invention can also aid in promotion message publisher docking
Position environmental problem assists positioning without professional, and promotion message business reports test not need to be concerned about that specific data report
The rendering situation of process and promotion message at the end APP.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of test method flow chart of the promotion message for commerce services end provided in an embodiment of the present invention;
Fig. 2 is a kind of test method flow chart of promotion message provided in an embodiment of the present invention;
Fig. 3 is the test method process of another promotion message for commerce services end provided in an embodiment of the present invention
Figure;
Fig. 4 is that a kind of structure of the test device of the promotion message for commerce services end provided in an embodiment of the present invention is shown
It is intended to;
Fig. 5 is the structure of the test device of another promotion message for commerce services end provided in an embodiment of the present invention
Schematic diagram;
Fig. 6 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The test method and device of a kind of promotion message of the embodiment of the present invention are described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of test method flow chart of the promotion message for commerce services end provided in an embodiment of the present invention,
As shown in Figure 1, the method for the present embodiment may include:
Step 101 receives test environment initiation parameter.
Wherein, the test environment initiation parameter is the initiation parameter that promotion message tests environment.
Preferably, test environment initiation parameter include: the unique identification of client, the unique identification of advertisement to be tested and
The pattern of advertisement to be tested.Client described herein is the client application for showing promotion message, such as is installed on
Some APP in mobile phone.
Step 102, according to the test environment initiation parameter, carry out the initialization of the test environment of promotion message.
In an alternative embodiment, the server at commerce services end is according to the test environment initiation parameter, by holding
Pre-set first script of row carries out the initialization of the test environment of promotion message, if the success of the first script execution, initially
Change test environment success, it includes the advertisement pattern for meeting the page elements requirement that the server at commerce services end is returned to user
Initialization completion notice message;If the first script execution failure, the failure of initialization test environment, commerce services end
Server to user return include initialization test environmental process in error message initialization failure notification message, so as to
Family carries out malformed queries according to error-logging information.
Preferably, the promotion message is advertisement, such as when opening certain mobile phone reading APP, is shown by a floating window
Certain shopping website advertisement, click the advertisement, the cell phone application download link of the shopping website can be promoted to active client.
Step 103 returns to initialization completion notice message to user.
In the present embodiment, commerce services end returns to initialization completion notice message to user, so that user is according to initialization
As a result the operation of next step is carried out, if test environment is initialized to function, user can operate client and send to commerce services end
Test case request, if test context initialization failure, user can carry out error correction according to the error message of return.
The test case required parameter that step 104, reception client are sent is held according to the test case required parameter
Promotion message corresponding with test case is sent to client by row test case.
In the present embodiment, every time before test, by testing context initialization, the docking of the side Publisher can also aid in
Localizing environment problem assists positioning without professional;After the completion of testing context initialization, test user's operation is for showing
The test case shown in the client (such as cell phone application) of the client application of promotion message, such as to be tested is pushed away
Guangxin breath click and down operation, then client receives these operations and will form test case required parameter and be reported to quotient
Industry server-side, according to the test case required parameter, implementation of test cases will be corresponding with test case at commerce services end
Promotion message is sent to the client of request, such as is requested after issuing opening promotion message to request end according to promotion message opening
Homepage data so that client shows the promotion message.Test case described herein is promotion message pair to be tested
As.
Step 105 receives the promotion message test data that reports of client and stores.
Wherein, the promotion message test data include the operator that reports of the client to shown in client with
The operation data of the corresponding promotion message of test case, such as: user is clicked by client, downloads or install the client
The operation for the promotion message that APP on end is shown and the business data reported to commerce services end.Commerce services end receives client
After holding the promotion message test data reported, it is stored in specified database, it is preferable that can use mongodb data
The storage of library technology progress promotion message test data.
Step 106 receives test data query argument.
Preferably, test data query argument includes: the unique identification of advertisement to be tested and the pattern of advertisement to be tested.
Step 107, according to test data query argument, obtain promotion message test data.
In the present embodiment, commerce services end can be pre-set by executing according to the test data query argument received
Second script obtains promotion message test data, if the second script runs succeeded, the promotion message test data that will acquire is mentioned
Supply user;If the second script execution is unsuccessful, directly return to user including the mistake letter in the second script implementation procedure
The test case of breath executes failed message, modifies to test user according to error message.Wherein, the second script can be by
Test platform developer presets and is sent to the storage of commerce services end in advance.
Preferably, the first script and the second script use python language, test platform and Web page and commerce services end
The interaction of database all use python language.
Step 108, the promotion message test data that will acquire are supplied to user, or carry out school to the promotion message of acquisition
After testing, check results are supplied to user.
In the present embodiment, commerce services end, can be into one after successfully obtaining promotion message test data by the second script
Step verifies the promotion message test data of acquisition, judges the promotion message test by executing second script
Whether data are test data corresponding with the test data query argument, alternatively, the promotion message test that judgement obtains
Whether data are consistent with pre-set expected test result, and check results are returned to user.Wherein, no matter letter is promoted
Whether breath test data verifies success, and check results are all returned to user by commerce services end, if verifying successfully, are returned to user
The check results returned include verifying successful message and the promotion message test data of acquisition returns if verification is unsuccessful
Check results include the error log data etc. verified in unsuccessful message and promotion message test data and checking procedure
Information.
In the present embodiment, the survey that environment initiation parameter carries out promotion message first is tested at commerce services end based on the received
Try context initialization, then by with client interact completion test case the displaying in client, pass through visitor in user
After family end operates test case, the promotion message test data that client reports is received and stored, and promotion message is tested into number
According to being supplied to user.It is logical without paying close attention to promotion message in the rendering of client and client to commercially so as to make to test user
The specific data of server report process, and the test purpose reported to promotion message business can be realized.
Fig. 2 is a kind of test method flow chart of promotion message provided in an embodiment of the present invention, as shown in Fig. 2, this method
It may include steps of:
Step 201, test platform end receive test environment initiation parameter by Web page;
In the present embodiment, test environment initiation parameter can be sent to business by a pre-configured test platform and be taken
The server at business end, optionally, test platform pass through Web page and receive the test environment initiation parameter that user inputs.It is described
Test platform also may be mounted on the server at commerce services end, i.e., test platform can be for mounted in one of commerce services end
Platform software.
The test environment initiation parameter is sent to commerce services end by step 202, test platform end.
Step 203, commerce services terminate Acceptance Tests context initialization parameter.
Step 204, commerce services end carry out the test environment of promotion message according to the test environment initiation parameter
Initialization.
In an alternative embodiment, the server at commerce services end is according to the test environment initiation parameter, by holding
Pre-set first script of row carries out the initialization of the test environment of promotion message, if the success of the first script execution, initially
Change test environment success, it includes the advertisement for meeting the page elements requirement that the server at commerce services end is returned to test platform
The initialization completion notice message of pattern;If the first script execution failure, the failure of initialization test environment, commerce services
The server at end disappears to test platform output including the initialization failure notification of the error message in initialization test environmental process
Breath;Subsequent test platform by Web page etc. can human-computer interaction boundary's user oriented display initialization completion notice message or just
Beginningization failure notification message.Wherein, the first script can be preset by test platform developer and be sent to business in advance
Server-side storage.
Preferably, the Web page is realized using nodejs+express+ejs+angularjs+bootstrap technology.
Step 205, commerce services end return to initialization completion notice message to the test platform.
In the present embodiment, commerce services end returns to initialization completion notice message to user by test platform, so that institute
State test platform will initialize completion notice message by Web page etc. can boundary's user oriented of human-computer interaction show.
Step 206, commerce services end receive test case required parameter by client, are requested according to the test case
Promotion message corresponding with test case is sent to client by parameter, implementation of test cases;
In the present embodiment, the process of step 206 is similar with the step 104 of above method embodiment, and details are not described herein again.
Step 207, commerce services end receive the promotion message test data that client reports and store.
In the present embodiment, the process of step 207 is similar with the step 105 of above method embodiment, and details are not described herein again.
Step 208, test platform end are by receiving test data query argument by Web page;
This step is similar to step 201, and user can log in test platform input test data query ginseng by Web page
Test data query argument is sent to the server at commerce services end by number, test platform.
In general, test data query argument and user just pass through client progress in scheme provided by the invention
Test case is corresponding.For example, user has just operated the popularization letter about shopping website A by visitor APP1 in step 206
Breath, the unique identification of the promotion message are BBB, then the test data inquiry ginseng that user is inputted by test platform end in this step
Number includes the pattern of BBB and advertisement to be tested.
The test data query argument is sent to commerce services end by step 209, test platform end.
The test data query argument that step 210, commerce services end are transmitted according to test platform obtains promotion message test
Data.
In the present embodiment, after commerce services terminate Acceptance Tests data query parameter, executes pre-set second script and obtain
Promotion message test data is taken, if the second script runs succeeded, the promotion message test data that will acquire is supplied to the survey
Try platform;If the second script execution is unsuccessful, directly return to test platform including the mistake in the second script implementation procedure
The test case of information executes failed message, subsequent test platform by Web page etc. can boundary's user oriented of human-computer interaction mention
For the corresponding test data query result of test case.
Promotion message test data that step 211, commerce services end will acquire simultaneously is sent to the test platform, or to obtaining
After the promotion message taken is verified, check results are sent to the test platform.
In the present embodiment, the promotion message test data or check results that commerce services end will acquire are sent to the test
Platform, so that the check results are supplied to user by Web page by the test platform.
The promotion message test data or promotion message that step 212, test platform end return to commerce services end test number
According to check results user is shown to by Web page.
The test that situation is reported to promotion message business, visitor can be realized by test platform by the present embodiment, test user
The operation of family end APP and business data report mutually isolated, can effectively improve the test job efficiency of commercial acceptance personnel, very
Associated reported data and request data need to be paid close attention to by just realizing commercial acceptance personnel only, without paying close attention to promotion message in visitor
Family end operating level there are the problem of.
Obviously, clients that test platform also can be used that other than Web page, other can be realized human-computer interaction function are come
Realize the typing of test users' required parameter such as environment initiation parameter and test data query argument, and by commerce services
Hold the data distributing returned to user, details are not described herein again.
Fig. 3 is the test method process of another promotion message for commerce services end provided in an embodiment of the present invention
Scheme, can also include the step that history test case data is checked on the basis of this method method shown in Fig. 1, after step 108
Suddenly, specific as shown in Figure 3, this method may comprise steps of:
Step 301 receives test environment initiation parameter.
Step 302, according to the test environment initiation parameter, carry out the initialization of the test environment of promotion message.
Step 303 returns to initialization completion notice message to user.
The test case required parameter that step 304, reception client are sent is held according to the test case required parameter
Promotion message corresponding with test case is sent to client by row test case.
Step 305 receives the promotion message test data that reports of client and stores.
Step 306 receives test data query argument.
Step 307, according to test data query argument, obtain promotion message test data.
Step 308, the promotion message test data that will acquire are supplied to user, or carry out school to the promotion message of acquisition
After testing, check results are supplied to user.
In the present embodiment, the process of step 301-308 and the step 101-108 of above method embodiment are similar, herein not
It repeats again.
Step 309, reception historical record check request.
Such as: historical record checks that request may include the correlation of historical record period and promotion message test data
Attribute, for example, the corresponding test advertisements of promotion message test data unique identification and advertisement to be tested pattern, or push away
Guangxin ceases the attributes such as test result (success/failure).
In the present embodiment, user can input historical record by Web and check request to test platform, and test platform again will
The historical record checks that request is sent to commerce services end;Alternatively, user can also take to business by other means or directly
It initiates historical record and checks request in business end.
Step 310 checks request according to the historical record, searches for and stored meet the historical record and check request
Whole promotion message test datas and be supplied to user.
In the present embodiment, commerce services end (such as passing through test platform) will directly or indirectly can be looked into according to historical record
See that whole that request searches test data under the heart of shutting out is supplied to user.
In an alternative embodiment, the step 309-310 that history test case data is checked in Fig. 3 also be can be implemented in step
After rapid 305, details are not described herein again.
The present embodiment, commerce services end saves that history use-case is tested as a result, user can check historical record at any time, conveniently
The later maintenance management of data.
Corresponding to the test method of the promotion message provided in an embodiment of the present invention for commerce services end, the present invention is implemented
Example also provides the test device of the promotion message for commerce services end.Fig. 4 is provided in an embodiment of the present invention for commercially taking
The structural schematic diagram of the test device of the promotion message at business end, as shown in figure 4, the device 100 of the present embodiment may include:
First receiving module 11, for receiving test environment initiation parameter;
Initialization module 12 is used for according to the received test environment initiation parameter of first receiving module 11,
Carry out the initialization of the test environment of promotion message;
First sending module 13 disappears for completing rear line return initialization completion notice in the initialization module 12
Breath;
Use-case execution module 14, for receiving the test case required parameter of client transmission, according to the test case
Promotion message corresponding with test case is sent to the client by required parameter, implementation of test cases;
Second receiving module 15, for receiving promotion message test data that the client reports and storing;It is described to push away
Guangxin breath test data includes that the operator that reports of the client is corresponding with test case to what is shown in the client
Promotion message operation data;
Third receiving module 16, for receiving test data query argument;
Data acquisition module 17 obtains for the test data query argument received according to third receiving module 16
The corresponding promotion message test data of two receiving modules 15 storage;
Second sending module 18, the promotion message test data for obtaining data acquisition module 17 are supplied to the survey
Platform is tried, is shown so that the promotion message test data is sent to the first client by the test platform, alternatively, right
After the promotion message test data that data acquisition module 17 obtains is verified, check results are supplied to user.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1 or Fig. 2, realize former
Reason is similar with technical effect, and details are not described herein again.
In an alternative embodiment, initialization module 12 is specifically used for being passed through according to the test environment initiation parameter
Execute the initialization that pre-set first script carries out the test environment of promotion message.
In an alternative embodiment, data acquisition module 17, which is specifically used for the test data transmitted according to test platform, to be inquired
Parameter obtains promotion message test data by executing pre-set second script.
Fig. 5 is the structure of the test device of another promotion message for commerce services end provided in an embodiment of the present invention
Schematic diagram, as shown in figure 5, further, second sends mould on the basis of the device of the present embodiment apparatus structure shown in Fig. 4
Block 18 may include: verification submodule 181 and sending submodule 182;Wherein, submodule 181 is verified, for by described in execution
Second script, the promotion message test data obtained to data acquisition module 17 verify, and judge the promotion message test
Whether data are test data corresponding with the test data query argument;Alternatively, the promotion message test that judgement obtains
Whether data are consistent with pre-set expected test result;Sending submodule 182, for the school of submodule 181 will to be verified
It tests result and is supplied to user.
In an alternative embodiment, the promotion message is advertisement, and the client is the visitor for showing promotion message
Family end application program;The received test environment initiation parameter of first receiving module 11 includes: the unique identification, to be measured of client
Try the unique identification of advertisement and the pattern of advertisement to be tested;The received test data query argument of third receiving module 16 includes:
The unique identification of advertisement to be tested and the pattern of advertisement to be tested.
Corresponding to the test method of promotion message provided in an embodiment of the present invention, the embodiment of the present invention also provides a kind of electronics
Equipment, Fig. 6 are the structural schematic diagram of electronic equipment one embodiment of the present invention, may be implemented to implement shown in Fig. 1 or Fig. 2 of the present invention
The process of example, as shown in fig. 6, above-mentioned electronic equipment may include: shell 21, processor 32, memory 33, circuit board 34 and electricity
Source circuit 35, wherein circuit board 34 is placed in the space interior that shell 31 surrounds, and processor 32 and memory 33 are arranged in circuit
On plate 34;Power circuit 35, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 33 is for storing and can hold
Line program code;Processor 32 is run and executable program generation by reading the executable program code stored in memory 33
The corresponding program of code, for executing the test method for the promotion message that aforementioned any embodiment provides.
Above-mentioned electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video playback module (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
The present invention also provides a kind of computer readable storage medium, calculating is stored in the computer readable storage medium
Machine program, for realizing the test method of the promotion message of aforementioned any embodiment when the computer program is executed by processor
Step.
The embodiment of the invention also provides a kind of application program, for executing the promotion message of aforementioned any embodiment
Test method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of test method of promotion message, which is characterized in that be used for commerce services end, comprising:
Receive test environment initiation parameter;
According to the test environment initiation parameter, the initialization of the test environment of promotion message is carried out;
Initialization completion notice message is returned to user;
It receives client and sends the test case required parameter sent, according to the test case required parameter, implementation of test cases,
Promotion message corresponding with test case is sent to the client;
It receives the promotion message test data that the client reports and stores;The promotion message test data includes the visitor
Operation data of the user that family end reports to the promotion message corresponding with test case shown in the client;
Receive test data query argument;
According to the test data query argument, promotion message test data is obtained;
The promotion message test data that will acquire is supplied to user, alternatively, the promotion message test data to acquisition verifies,
And check results are supplied to user.
2. the test method of promotion message as described in claim 1, which is characterized in that described initial according to the test environment
Change parameter, carry out the initialization of the test environment of promotion message, comprising:
According to the test environment initiation parameter, the test wrapper of promotion message is carried out by executing pre-set first script
The initialization in border.
3. the test method of promotion message as described in claim 1, which is characterized in that described to be inquired according to the test data
Parameter obtains promotion message test data, comprising:
According to the test data query argument, promotion message test data is obtained by executing pre-set second script.
4. the test method of promotion message as claimed in claim 3, which is characterized in that the promotion message test of described pair of acquisition
Data are verified, comprising:
By executing second script, the promotion message test data of acquisition is verified, judges that the promotion message is surveyed
Try whether data are test data corresponding with the test data query argument;Alternatively,
Judge whether the promotion message test data obtained is consistent with pre-set expected test result.
5. the test method of promotion message as described in claim 1, which is characterized in that the promotion message is advertisement, described
Client is the client application for showing promotion message;
The test environment initiation parameter include: the unique identification of the client, the unique identification of advertisement to be tested and to
The pattern of test advertisements;
The test data query argument includes: the unique identification of advertisement to be tested and the pattern of advertisement to be tested.
6. a kind of test device of promotion message, which is characterized in that be used for commerce services end, comprising:
First receiving module, for receiving test environment initiation parameter;
Initialization module, for carrying out the initialization of the test environment of promotion message according to the test environment initiation parameter;
First sending module, for returning to initialization completion notice message to user;
Use-case execution module requests to join for receiving the test case required parameter of client transmission according to the test case
Promotion message corresponding with test case is sent to the client by number, implementation of test cases;
Second receiving module, for receiving promotion message test data that the client reports and storing;The promotion message
Test data includes with test case corresponding popularization of the operator that reports of the client to showing in the client
The operation data of information;
Third receiving module, for receiving test data query argument;
Data acquisition module, for obtaining promotion message test data according to the test data query argument;
Second sending module, the promotion message test data for obtaining the data acquisition module are supplied to user, alternatively,
After verifying to the promotion message test data that the data acquisition module obtains, check results are supplied to user.
7. the test device of promotion message as claimed in claim 6, which is characterized in that the initialization module is specifically used for
According to the test environment initiation parameter, the test environment of promotion message is carried out by pre-set first script of execution
Initialization.
8. the test device of promotion message as claimed in claim 6, which is characterized in that the data acquisition module, it is specific to use
According to the test data query argument, promotion message test data is obtained by executing pre-set second script.
9. the test device of promotion message as claimed in claim 8, which is characterized in that second sending module, comprising:
Submodule is verified, for verifying, judging to the promotion message test data of acquisition by executing second script
Whether the promotion message test data is test data corresponding with the test data query argument;Alternatively, judgement obtains
Whether the promotion message test data taken is consistent with pre-set expected test result;
Sending submodule, for the check results of the verification submodule to be supplied to user.
10. the test device of promotion message as claimed in claim 6, which is characterized in that the promotion message is advertisement, described
Client is the client application for showing promotion message;
The received test environment initiation parameter of first receiving module includes: the unique identification, to be tested of the client
The unique identification of advertisement and the pattern of advertisement to be tested;
The received test data query argument of third receiving module includes: the unique identification of advertisement to be tested and to be tested wide
The pattern of announcement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811158092.0A CN109324972B (en) | 2018-09-30 | 2018-09-30 | Promotion information testing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811158092.0A CN109324972B (en) | 2018-09-30 | 2018-09-30 | Promotion information testing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109324972A true CN109324972A (en) | 2019-02-12 |
CN109324972B CN109324972B (en) | 2022-06-03 |
Family
ID=65266738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811158092.0A Active CN109324972B (en) | 2018-09-30 | 2018-09-30 | Promotion information testing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109324972B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111105276A (en) * | 2019-12-26 | 2020-05-05 | 北京金山安全软件有限公司 | Data reporting method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146260A (en) * | 2007-10-19 | 2008-03-19 | 吕利勇 | Mobile phone advertisement distribution system and method |
US20150234734A1 (en) * | 2014-02-18 | 2015-08-20 | Hariprakash Agrawal | System and method to implement an electronic document based automated testing of a software application |
CN106210035A (en) * | 2016-07-07 | 2016-12-07 | 合网络技术(北京)有限公司 | The Proxy Method of a kind of promotion message and device |
-
2018
- 2018-09-30 CN CN201811158092.0A patent/CN109324972B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146260A (en) * | 2007-10-19 | 2008-03-19 | 吕利勇 | Mobile phone advertisement distribution system and method |
US20150234734A1 (en) * | 2014-02-18 | 2015-08-20 | Hariprakash Agrawal | System and method to implement an electronic document based automated testing of a software application |
CN106210035A (en) * | 2016-07-07 | 2016-12-07 | 合网络技术(北京)有限公司 | The Proxy Method of a kind of promotion message and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111105276A (en) * | 2019-12-26 | 2020-05-05 | 北京金山安全软件有限公司 | Data reporting method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109324972B (en) | 2022-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10404830B2 (en) | Service processing method and apparatus, and service server | |
EP3776175B1 (en) | Action validation for digital assistant-based applications | |
CN104463450A (en) | Order processing method and device | |
CN107896244B (en) | Version file distribution method, client and server | |
CN101771993B (en) | System and method thereof for realizing polymerization application based on mobile network | |
CN105915343B (en) | A kind of offline Activiation method of registration user and system | |
CN111143207B (en) | Method for checking model training notice and training log at mobile terminal | |
CN104698919A (en) | Method and device for inspecting intelligent terminal | |
TW201931257A (en) | Method and apparatus for information transmission and electronic device | |
CN109697624B (en) | Advertisement tracking method, advertisement tracking system and electronic equipment | |
CN106469385A (en) | user invitation method and device | |
CN112351350B (en) | Content display method, device, system, equipment and storage medium | |
CN109241722A (en) | For obtaining method, electronic equipment and the computer-readable medium of information | |
US20230016967A1 (en) | Action validation for digital assistant-based applications | |
CN105871785B (en) | Service processing method, device and system | |
CN108984202B (en) | Electronic resource sharing method and device and storage medium | |
CN109324972A (en) | Promotion information testing method and device and electronic equipment | |
CN109710535A (en) | Service method of calibration and system for voice dialogue platform | |
CN106911559B (en) | Method and device for establishing voice connection | |
CN116308428A (en) | Vehicle accessory management method, device, equipment and medium based on traceability codes | |
CN102325027A (en) | Navigation on-line authentication system and authentication method thereof | |
CN110942309A (en) | Payment method and device, order processing method and device and payment server | |
CN104348698B (en) | Message reminding method and device based on instant messaging service | |
RU2550546C2 (en) | Method of estimating efficiency of using invitations distributed from mobile website and system for implementing said method | |
CN112911580B (en) | eSIM configuration method and system based on cloud service activation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |