CN109787854A - The test method and device of business service, storage medium, electronic device - Google Patents
The test method and device of business service, storage medium, electronic device Download PDFInfo
- Publication number
- CN109787854A CN109787854A CN201811534553.XA CN201811534553A CN109787854A CN 109787854 A CN109787854 A CN 109787854A CN 201811534553 A CN201811534553 A CN 201811534553A CN 109787854 A CN109787854 A CN 109787854A
- Authority
- CN
- China
- Prior art keywords
- time
- requesting terminal
- business service
- business
- module
- 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.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of test method of business service and device, storage medium, electronic devices, wherein, this method comprises: after receiving the business service request of requesting terminal, obtain current system time, and Delta Time, wherein, the Delta Time is the deviator time on the basis of the system time;The object time is calculated according to the system time and Delta Time;The object time is determined as to the request time of the business service request, obtains business datum corresponding with the object time from data server;The business datum is fed back to the requesting terminal.Through the invention, the technical issues of cannot obtaining business datum in advance in the related technology is solved.
Description
Technical field
The present invention relates to computer fields, and the test method and device, storage in particular to a kind of business service are situated between
Matter, electronic device.
Background technique
In the related technology, the marketing activity of web page platform referred in the anniversary, the attraction businessman that the times such as red-letter day hold and disappeared
The Above-the-line of the person of expense.Current daily operation activity is very more, such as anniversary activity, Valentine's Day, season activity, double 11 activities
Deng.
And every time to cycle of activity, operation personnel can have the demand for doing sales promotion.Current most activity is
Individually prepare the commodity of some special sellings, then builds a movable meeting-place page, promoted in active stage with specified movable valence
Pin (piecemeal activity there is also presell in advance, for example, it is double 11), and with certain atmosphere scene.Because these specified commodity need
Movable valence can be just shown to the specific time, and relevant activity atmosphere also can just show.And operation personnel and businessman want to mention
Whether pattern, price, the overall effect shown during preceding confirmation activity meets expectation, to find some possible problems in advance.
Platform test in the related technology can only shift to an earlier date system environments, the bandwidth capacity of test platform, can bear treating capacity etc., not
The webpage display effect during test activity can be shifted to an earlier date, can only guarantee that Platform Server will not paralyse delay machine, such as application No. is
In the related technology, it discloses a kind of schemes of network performance for testing ARM server by CN201610585690.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
Summary of the invention
The embodiment of the invention provides a kind of test method of business service and device, storage medium, electronic devices.
According to one embodiment of present invention, a kind of test method of business service is provided, comprising: receiving request eventually
After the business service request at end, current system time and Delta Time are obtained, wherein the Delta Time is with institute
State the deviator time on the basis of system time;The object time is calculated according to the system time and Delta Time;It will be described
Object time is determined as the request time of the business service request, obtains from data server corresponding with the object time
Business datum;The business datum is fed back to the requesting terminal.
Optionally, the business service request carries the identity of the requesting terminal, when obtaining current system
Between and Delta Time before, the method also includes: it is pre- to judge whether the requesting terminal meets according to the identity
Fixed condition;When the requesting terminal conforms to a predetermined condition, determines and obtain the system time and the Delta Time.
Optionally, judging whether the requesting terminal conforms to a predetermined condition according to the identity includes: that judgement is default
White list whether include the requesting terminal identity, wherein the identity includes at least one of: account name
Title, IP address, the address wifi;When the default white list includes the identity of the requesting terminal, the request is determined
Terminal conforms to a predetermined condition;When the default white list does not include the identity of the requesting terminal, the request is determined
Terminal does not meet predetermined condition.
Optionally, the method also includes: when the requesting terminal does not meet predetermined condition, when obtaining the system
Between, and the system time is determined as the request time that business service is requested, when obtaining from data server with the system
Between corresponding business datum.
Optionally, before obtaining the Delta Time, the method also includes: the Delta Time is set, alternatively, setting
Set the timing rule of the Delta Time, wherein the timing rule is for dynamically updating the Delta Time.
Optionally, obtaining business datum corresponding with the object time from data server includes: Xiang Suoshu data clothes
Business device sends request message, wherein the request message carries the object time;The data server is received based on described
The business datum corresponding with the object time of request message feedback.
Optionally, being calculated the object time according to the system time and Delta Time includes: by the system time
In addition the Delta Time, obtains the object time.
Optionally, obtaining current system time and Delta Time includes: to obtain the system time from specified interface
With the Delta Time.
According to one embodiment of present invention, the test method of another business service is provided, comprising: at the first time
Business service request is sent to server;Receive the server based on the business service request feedback with the second time pair
The business datum answered, wherein second time was calculated based on the first time and Delta Time;Described in parsing
Business datum, and generate the business service result of second time.
Optionally, second time is greater than the first time.
According to another embodiment of the invention, a kind of test device of business service is provided, comprising: module is obtained,
For obtaining current system time and Delta Time, wherein institute after receiving the business service request of requesting terminal
Stating Delta Time is the deviator time on the basis of the system time;Computing module, for according to the system time and increasing
The object time is calculated in the amount time;Processing module, for the object time to be determined as to the request time of requesting terminal, from
Data server obtains business datum corresponding with the object time;Feedback module, for feeding back institute to the requesting terminal
State business datum.
Optionally, the business service request carries the identity of the requesting terminal, described device further include: judgement
Module, for being sentenced before the acquisition module obtains current system time and Delta Time according to the identity
Whether the requesting terminal of breaking conforms to a predetermined condition;Determining module, for determining when the requesting terminal conforms to a predetermined condition
Obtain the system time and the Delta Time.
Optionally, the judgment module includes: judging unit, for judging whether default white list includes that the request is whole
The identity at end, wherein the identity includes at least one of: account title, IP address, the address wifi;It determines
Unit, for it is pre- to determine that the requesting terminal meets when the default white list includes the identity of the requesting terminal
Fixed condition;When the default white list does not include the identity of the requesting terminal, determine that the requesting terminal is not met
Predetermined condition.
Optionally, described device further include: setup module, for the acquisitions module acquisition Delta Time it
Before, the Delta Time is set, alternatively, the timing rule of the Delta Time is arranged, wherein the timing rule is for dynamic
Update the Delta Time.
Optionally, the processing module includes: transmission unit, for sending request message to the data server,
In, the request message carries the object time;Receiving unit is disappeared for receiving the data server based on the request
Cease the business datum corresponding with the object time of feedback.
Optionally, the acquisition module includes: acquiring unit, for obtaining the system time and described from specified interface
Delta Time.
According to another embodiment of the invention, the test device of another business service is provided, comprising: send mould
Block, for sending business service request to server in first time;Receiving module, for receiving the server based on described
The business datum corresponding with the second time of business service request feedback, wherein when second time is based on described first
Between and Delta Time be calculated;Display module for parsing the business datum, and generates the business of second time
Service result.
According to still another embodiment of the invention, a kind of test macro of business service is provided, comprising: client kimonos
Business device, wherein the server includes: acquisition module, for after receiving the business service request of requesting terminal, acquisition to be worked as
Preceding system time and Delta Time, wherein the Delta Time is the deviator time on the basis of the system time;
Computing module, for the object time to be calculated according to the system time and Delta Time;Processing module is used for the mesh
The mark time is determined as the request time of requesting terminal, obtains business datum corresponding with the object time from data server;
Feedback module, for feeding back the business datum to the requesting terminal;The client includes: sending module, for the
One time sent business service request to the server;Receiving module is taken for receiving the server based on the business
The business datum corresponding with the object time of business request feedback;Display module for parsing the business datum, and generates
The business service result of second time.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, after receiving the business service request of requesting terminal, current system time and increment are obtained
The object time is calculated according to the system time and Delta Time in time, and then the object time is determined as described
The request time of business service request, and obtain corresponding with object time business datum from data server, finally to
Feed back the business datum in the requesting terminal.Business datum after available system time, and it is sent to requesting terminal
It is shown, realizes and show business datum online in advance, activity preview or the validation test that can be used on line, by line
Marketing activity is verified in advance, can be found and be solved in advance the demand for webpage, avoid and promptly repair on the day of activity
Change and caused by poor user experience and network risks problem.Solves the technology that cannot obtain business datum in advance in the related technology
Problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of test hardware block diagram of business service of the embodiment of the present invention;
Fig. 2 is a kind of test method flow chart of business service according to an embodiment of the present invention;
Fig. 3 is the test method flow chart of another business service according to an embodiment of the present invention;
Fig. 4 is the module interaction figure of the embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of the test device of business service according to an embodiment of the present invention;
Fig. 6 is the structural block diagram of the test device of another business service according to an embodiment of the present invention;
Fig. 7 is the structural block diagram of the test macro of business service according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can mobile terminal, terminal, server or
It is executed in similar arithmetic unit.For running on the server, Fig. 1 is a kind of survey of business service of the embodiment of the present invention
Try hardware block diagram.As shown in Figure 1, server 10 may include one or more (only showing one in Fig. 1) processors 102
It (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and is used for
The memory 104 of storing data, optionally, above-mentioned server can also include for communication function transmission device 106 and
Input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, not to above-mentioned
The structure of server causes to limit.For example, server 10 may also include than shown in Fig. 1 more perhaps less component or
With the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of test method of one of bright embodiment business service, processor 102 are stored in by operation
Computer program in reservoir 104 realizes above-mentioned method thereby executing various function application and data processing.Storage
Device 104 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processing
The remotely located memory of device 102, these remote memories can pass through network connection to server 10.The example of above-mentioned network
Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of server 10 provide.In an example, transmitting device 106 includes a network adapter
(Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments so as to
It is communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio Frequency, referred to as RF)
Module is used to wirelessly be communicated with internet.
A kind of test method of business service is provided in the present embodiment, and Fig. 2 is one kind according to an embodiment of the present invention
The test method flow chart of business service, as shown in Fig. 2, the process includes the following steps:
Step S202 obtains current system time and increment after receiving the business service request of requesting terminal
Time, wherein Delta Time is the deviator time on the basis of system time;
In the present embodiment, business service request can be arbitrary Internet service on line and request, and such as lead certificate request, order
Request, searching request show the request of the user interface of software or webpage, such as show that the homepage of shopping software, platform enter
The purchase page etc. of commodity, requesting terminal can be test lead, such as mobile phone, computer etc. in the homepage of businessman, merchant page.
The object time is calculated according to system time and Delta Time in step S204;
Object time is determined as the request time of business service request by step S206, from data server acquisition and mesh
Mark time corresponding business datum;
In the present embodiment, business datum has been stored in advance in data server, and business datum and time correlation join, for same
One object, is requested in different times, can return to different business datums, such as the commodity of restocking on a line, is sought on line
During pin activity when peace, price and displayed page can be variant.
Step S208, to requesting terminal feedback traffic data.
Through the above steps, after receiving the business service request of requesting terminal, current system time and increasing are obtained
The time is measured, the object time is calculated according to the system time and Delta Time, and then the object time is determined as institute
The request time of business service request is stated, and obtains business datum corresponding with the object time from data server, finally
The business datum is fed back to the requesting terminal.Business datum after available system time, and it is sent to request eventually
End is shown, and is realized and is shown business datum online in advance, activity preview or the validation test that can be used on line, by line
Upper marketing activity is verified in advance, can find and solve in advance the demand for webpage, is avoided urgent on the day of activity
Modification and caused by poor user experience and network risks problem.Solves the skill that cannot obtain business datum in advance in the related technology
Art problem.
Optionally, system time is the current real time, and obtaining current system time includes several schemes, such as from asking
It asks terminal to obtain, carries a timestamp for the local zone time of requesting terminal as system time or business service request, when
Between stamp be business service request triggered time can also be by the time of server local using the timestamp as system time
As system time, but regardless of being obtained using which kind of mode, for system time relative to Delta Time, deviation is all smaller.
In the present embodiment, business service request carries the identity of requesting terminal, is obtaining current system time, with
And before Delta Time, further includes:
S11 judges whether requesting terminal conforms to a predetermined condition according to identity;
Optionally, judging whether requesting terminal conforms to a predetermined condition according to identity includes: to judge that default white list is
The no identity including requesting terminal, wherein identity includes at least one of: account title, IP address, wifi
Location;When default white list includes the identity of requesting terminal, determine that requesting terminal conforms to a predetermined condition;In default white list
When not including the identity of requesting terminal, determine that requesting terminal does not meet predetermined condition.The identity of the present embodiment may be used also
To be that other can be used for the mark that machine identity identifies, such as MAC Address, positioning address etc. includes: account name in identity
When title, IP address, the address wifi, presetting white list includes default account collection, and preset IP address set presets wifi address set
It closes, whether the account title by judging requesting terminal judge the IP address of requesting terminal pre- in default account concentration
If in IP address set, judging whether the address wifi of requesting terminal in default wifi address set determines that requesting terminal is
It is no to conform to a predetermined condition.
S12 is determined when requesting terminal conforms to a predetermined condition and is obtained system time and Delta Time.As this city reality
Apply the another aspect of example, scheme further include: when requesting terminal does not meet predetermined condition, obtain system time, and when by system
Between be determined as the request time of business service request, obtain corresponding with system time business datum from data server.
The logic strategy of the present embodiment is, such as on a line in the scene of marketing activity, business datum is the marketing same day
Business datum, test terminal need to test whether webpage display effect meets expection, the only type in requesting terminal in advance
For activity preview test terminal when, can just obtain system time and Delta Time simultaneously, the type in requesting terminal is normal
When the terminal used, system time is only obtained, will not influence use and the leaking data of normal users.
In the present embodiment, before obtaining Delta Time, further includes: setting Delta Time, alternatively, setting Delta Time
Timing rule, wherein timing rule is for dynamically updating Delta Time.The Delta Time of the present embodiment can be a fixation
The time of a time either dynamic change, in one example, the marketing activity time is November 11, and tester only exists
November 9 tested the business datum on the day of marketing activity, it is possible to be set as Delta Time+2 days, if tester
Member needs to test the business datum on the day of marketing activity November 9 and 10 days, and the timing of Delta Time can be set
Rule, such as by Delta Time be set as current time to the intended display time (marketing activity on the day of) interval time, in this way,
November 9 and 10 days, Delta Time is+2 days and+1 day respectively.
Optionally, obtaining business datum corresponding with the object time from data server includes: sending to data server
Request message, wherein request message carries the object time;Receive data server is fed back based on the request message and object time
Corresponding business datum.When the executing subject of the present embodiment is strategic server, this is strategic server and data server
Between interaction, but the executing subject of the present embodiment be data server itself when, data server saves business datum.
Optionally, being calculated the object time according to system time and Delta Time includes: by system time plus increment
Time obtains the object time, at this time Delta Time vector representation, but when Delta Time is indicated with absolute time, can also be with
System time is subtracted into Delta Time, obtains the object time.
Optionally, obtaining current system time and Delta Time includes: to obtain system time and increasing from specified interface
Measure the time.The specified interface of the present embodiment be server logic interfacing, under normal circumstances, using default default interface only
Current system time can be obtained, and Delta Time can also be obtained using specified interface.
The test method of another business service is provided in the present embodiment, it is corresponding with the scheme of above-mentioned server, it answers
Used in client, Fig. 3 is the test method flow chart of another business service according to an embodiment of the present invention, as shown in figure 3, should
Process includes the following steps:
Step S302 sends business service request to server in first time;
Step S304 receives with second time corresponding business datum of the server based on business service request feedback,
In, the second time was calculated based on first time and Delta Time;
Step S306 parses business datum, and generates the business service result of second time.
The business service result of the present embodiment can be the page screens of displaying, the discount coupon got, search result, virtually
Settlement price of commodity etc. requests the corresponding feedback result in the second time with business service.
Optionally, the second time was greater than at the first time.It was also possible to for the second time less than at the first time.
It was the object time (the second time) to the side of this implementation with November 11 in an implement scene of the present embodiment
Case is illustrated, and Fig. 4 is the module interaction figure of the embodiment of the present invention, and module includes:
Whitelist management module 41, the module are responsible for being managed user's white list, are only meeting white list matching
The request of rule, can just carry out movable preview ability.It prevents from influencing the business opened to the outside world with this.The module can be with
It is matched in the way of match-type+matching value.Match-type therein includes user UID, IP address, the address wifi
Deng matching value is then specific UID, specific IP etc..
Such as: match-type is user UID, and matching value is UID001-UID002.It so represents and works as user UID001 and use
When family UID002 is accessed, the logic of this programme can be gone to;When other users access, executed also according to original logic.
Time simulation module 42, the modular service logic are as follows: first by judging whether within the scope of white list.If no
Then directly terminating;Otherwise following logic is continued to execute.
Carry out configuration Delta Time.Delta Time refers to the deviator time on current true time basis.Such as
Assuming that current Delta Time is 3 hours, then the time got is exactly: current+3 hours actual time;Assuming that current
Delta Time is -3 hours, then the time got is exactly current time -3 hours.
When business processing logic needs acquisition time information, obtained from module 42.And when according to the increment of configuration
Between handled, return to the time after final processing.
Pass through the processing of module 42, it is assumed that we will preview the effect on the day of November 11, and current actual time is November 5
Number.It is 6 days that so we, which only need to configure Delta Time, so that it may check and get the data on the day of November 11.
Activity preview module 43, the responsibility of the module is the inactive logic that will need to preview, by all wherein acquisition times
Logic be all revised as being provided by module 42, rather than directly obtained from system.
Such as when needing to obtain atmosphere picture according to the time, from the interface acquisition time of the offer of module 42.Then according to when
Between carry out obtain atmosphere picture;
Such as when needing from data base querying data, if use time field, the interface provided from module 42 is obtained
Then time carries out inquiry data according to the time of module 42.It thus can be according to specified time inquiring to corresponding number
According to.
Pass through the work of 3 modules above, so that it may reach the ability of the activity preview for designated user's specified time.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide test device, the system of a kind of business service in the present embodiment, for realizing above-described embodiment and
Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 5 is a kind of structural block diagram of the test device of business service according to an embodiment of the present invention, can apply and eat
It drinks in server or terminal, as shown in figure 5, the device includes:
Module 50 is obtained, for obtaining current system time after receiving the business service request of requesting terminal, with
And Delta Time, wherein the Delta Time is the deviator time on the basis of the system time;
Computing module 52, for the object time to be calculated according to the system time and Delta Time;
Processing module 54 is obtained for the object time to be determined as to the request time of requesting terminal from data server
Take business datum corresponding with the object time;
Feedback module 56, for feeding back the business datum to the requesting terminal.
Optionally, the business service request carries the identity of the requesting terminal, described device further include:
Judgment module, for before the acquisition module obtains current system time and Delta Time, according to institute
It states identity and judges whether the requesting terminal conforms to a predetermined condition;
Determining module, for determining and obtaining the system time and institute when the requesting terminal conforms to a predetermined condition
State Delta Time.
Optionally, the judgment module includes: judging unit, for judging whether default white list includes that the request is whole
The identity at end, wherein the identity includes at least one of: account title, IP address, the address wifi;It determines
Unit, for it is pre- to determine that the requesting terminal meets when the default white list includes the identity of the requesting terminal
Fixed condition;When the default white list does not include the identity of the requesting terminal, determine that the requesting terminal is not met
Predetermined condition.
Optionally, described device further include: setup module, for the acquisitions module acquisition Delta Time it
Before, the Delta Time is set, alternatively, the timing rule of the Delta Time is arranged, wherein the timing rule is for dynamic
Update the Delta Time.
Optionally, the processing module includes: transmission unit, for sending request message to the data server,
In, the request message carries the object time;Receiving unit is disappeared for receiving the data server based on the request
Cease the business datum corresponding with the object time of feedback.
Optionally, the acquisition module includes: acquiring unit, for obtaining the system time and described from specified interface
Delta Time.
Fig. 6 is the structural block diagram of the test device of another business service according to an embodiment of the present invention, can be applied
In Server for catering or terminal, as shown in fig. 6, the device includes:
Sending module 60, for sending business service request to server in first time;
Receiving module 62, for receiving the server based on the corresponding with the second time of business service request feedback
Business datum, wherein second time was calculated based on the first time and Delta Time;
Display module 64 for parsing the business datum, and generates the business service result of second time.
Fig. 7 is the structural block diagram of the test macro of business service according to an embodiment of the present invention, can apply and take in food and drink
It is engaged in device or terminal, as shown in fig. 7, comprises: client 70 (client of multiple types is illustrated in figure) and server 72,
In,
The server 72 includes: to obtain module 720, for obtaining after receiving the business service request of requesting terminal
Take current system time and Delta Time, wherein when the Delta Time is the deviator on the basis of the system time
Between;Computing module 722, for the object time to be calculated according to the system time and Delta Time;Processing module 724 is used
In the request time that the object time is determined as to requesting terminal, obtained from data server corresponding with the object time
Business datum;Feedback module 726, for feeding back the business datum to the requesting terminal;
The client 70 includes: sending module 702, is asked for sending business service to the server in first time
It asks;Receiving module 704, for receiving the server based on the corresponding with the object time of business service request feedback
Business datum;Display module 706 for parsing the business datum, and generates the business service result of second time.
It should be noted that client and server is only difference of the scheme in executing subject, above-mentioned acquisition business number
According in terminal each example and optinal plan equally adapt in client and server, and generate identical technical effect.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the one aspect of the present embodiment, above-mentioned storage medium can be set to storage for execute with
The computer program of lower step:
S1 obtains current system time and Delta Time after receiving the business service request of requesting terminal,
Wherein, the Delta Time is the deviator time on the basis of the system time;
The object time is calculated according to the system time and Delta Time in S2;
The object time is determined as the request time of business service request by S3, from data server obtain with
Object time corresponding business datum;
Feed back the business datum in the requesting terminal S4, Xiang Suoshu.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the one aspect of the present embodiment, above-mentioned processor can be set to hold by computer program
Row following steps:
S1 obtains current system time and Delta Time after receiving the business service request of requesting terminal,
Wherein, the Delta Time is the deviator time on the basis of the system time;
The object time is calculated according to the system time and Delta Time in S2;
The object time is determined as the request time of business service request by S3, from data server obtain with
Object time corresponding business datum;
Feed back the business datum in the requesting terminal S4, Xiang Suoshu.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of test method of business service characterized by comprising
After receiving the business service request of requesting terminal, current system time and Delta Time are obtained, wherein institute
Stating Delta Time is the deviator time on the basis of the system time;
The object time is calculated according to the system time and Delta Time;
The object time is determined as to the request time of the business service request, is obtained and the target from data server
Time corresponding business datum;
The business datum is fed back to the requesting terminal.
2. the method according to claim 1, wherein business service request carries the body of the requesting terminal
Part mark, before obtaining current system time and Delta Time, the method also includes:
Judge whether the requesting terminal conforms to a predetermined condition according to the identity;
When the requesting terminal conforms to a predetermined condition, determines and obtain the system time and the Delta Time.
3. according to the method described in claim 2, it is characterized in that, whether judging the requesting terminal according to the identity
It conforms to a predetermined condition and includes:
Judge default white list whether include the requesting terminal identity, wherein the identity include with down toward
It is one of few: account title, IP address, the address wifi;
When the default white list includes the identity of the requesting terminal, determine that the requesting terminal meets predetermined item
Part;When the default white list does not include the identity of the requesting terminal, it is predetermined to determine that the requesting terminal is not met
Condition.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
When the requesting terminal does not meet predetermined condition, the system time is obtained, and the system time is determined as industry
The request time for service request of being engaged in obtains business datum corresponding with the system time from data server.
5. a kind of test method of business service characterized by comprising
Business service request is sent to server in first time;
Receive with second time corresponding business datum of the server based on business service request feedback, wherein institute
Stating for the second time was calculated based on the first time and Delta Time;
The business datum is parsed, and generates the business service result of second time.
6. a kind of test device of business service characterized by comprising
Module is obtained, for obtaining current system time and increment after receiving the business service request of requesting terminal
Time, wherein the Delta Time is the deviator time on the basis of the system time;
Computing module, for the object time to be calculated according to the system time and Delta Time;
Processing module, for the object time to be determined as to the request time of requesting terminal, from data server acquisition and institute
State object time corresponding business datum;
Feedback module, for feeding back the business datum to the requesting terminal.
7. a kind of test device of business service characterized by comprising
Sending module, for sending business service request to server in first time;
Receiving module, for receiving with second time corresponding business of the server based on business service request feedback
Data, wherein second time was calculated based on the first time and Delta Time;
Display module for parsing the business datum, and generates the business service result of second time.
8. a kind of test macro of business service characterized by comprising client and server, wherein
The server includes:
Module is obtained, for obtaining current system time and increment after receiving the business service request of requesting terminal
Time, wherein the Delta Time is the deviator time on the basis of the system time;
Computing module, for the object time to be calculated according to the system time and Delta Time;
Processing module, for the object time to be determined as to the request time of requesting terminal, from data server acquisition and institute
State object time corresponding business datum;
Feedback module, for feeding back the business datum to the requesting terminal;
The client includes:
Sending module, for sending business service request to the server in first time;
Receiving module, for receiving the server based on the corresponding with the object time of business service request feedback
Business datum;
Display module for parsing the business datum, and generates the business service result of the object time.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to perform claim when operation and requires method described in 1 to 5 any one.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program in method described in perform claim 1 to 5 any one of requirement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534553.XA CN109787854A (en) | 2018-12-14 | 2018-12-14 | The test method and device of business service, storage medium, electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534553.XA CN109787854A (en) | 2018-12-14 | 2018-12-14 | The test method and device of business service, storage medium, electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109787854A true CN109787854A (en) | 2019-05-21 |
Family
ID=66496978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811534553.XA Pending CN109787854A (en) | 2018-12-14 | 2018-12-14 | The test method and device of business service, storage medium, electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109787854A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209187A (en) * | 2019-12-26 | 2020-05-29 | 深圳市奇迅新游科技股份有限公司 | Service request processing method and device, computer equipment and storage medium |
CN111736970A (en) * | 2020-06-23 | 2020-10-02 | 北京同邦卓益科技有限公司 | Service processing method, device, equipment and computer readable storage medium |
CN112732547A (en) * | 2019-10-14 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Service testing method and device, storage medium and electronic equipment |
CN113744853A (en) * | 2021-01-18 | 2021-12-03 | 北京京东拓先科技有限公司 | Service processing method, system, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1301232A (en) * | 1997-10-10 | 2001-06-27 | 通力股份公司 | Control method for an elevator group |
US7627872B2 (en) * | 2002-07-26 | 2009-12-01 | Arbitron Inc. | Media data usage measurement and reporting systems and methods |
CN103701783A (en) * | 2013-12-17 | 2014-04-02 | 沈阳觉醒软件有限公司 | Preprocessing unit, data processing system consisting of same, and processing method |
CN108389104A (en) * | 2018-01-31 | 2018-08-10 | 口碑(上海)信息技术有限公司 | A kind of emulation verification method and device of network activity |
CN108427638A (en) * | 2018-01-19 | 2018-08-21 | 口碑(上海)信息技术有限公司 | Region network of relation marketing activity test method and device |
-
2018
- 2018-12-14 CN CN201811534553.XA patent/CN109787854A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1301232A (en) * | 1997-10-10 | 2001-06-27 | 通力股份公司 | Control method for an elevator group |
US7627872B2 (en) * | 2002-07-26 | 2009-12-01 | Arbitron Inc. | Media data usage measurement and reporting systems and methods |
CN103701783A (en) * | 2013-12-17 | 2014-04-02 | 沈阳觉醒软件有限公司 | Preprocessing unit, data processing system consisting of same, and processing method |
CN108427638A (en) * | 2018-01-19 | 2018-08-21 | 口碑(上海)信息技术有限公司 | Region network of relation marketing activity test method and device |
CN108389104A (en) * | 2018-01-31 | 2018-08-10 | 口碑(上海)信息技术有限公司 | A kind of emulation verification method and device of network activity |
Non-Patent Citations (1)
Title |
---|
李绣雯,: ""一种营销系统的设计实现及基于Petri网的性能分析"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732547A (en) * | 2019-10-14 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Service testing method and device, storage medium and electronic equipment |
CN112732547B (en) * | 2019-10-14 | 2024-02-13 | 腾讯科技(深圳)有限公司 | Service testing method and device, storage medium and electronic equipment |
CN111209187A (en) * | 2019-12-26 | 2020-05-29 | 深圳市奇迅新游科技股份有限公司 | Service request processing method and device, computer equipment and storage medium |
CN111209187B (en) * | 2019-12-26 | 2024-03-15 | 深圳市奇迅新游科技股份有限公司 | Service request processing method, device, computer equipment and storage medium |
CN111736970A (en) * | 2020-06-23 | 2020-10-02 | 北京同邦卓益科技有限公司 | Service processing method, device, equipment and computer readable storage medium |
CN113744853A (en) * | 2021-01-18 | 2021-12-03 | 北京京东拓先科技有限公司 | Service processing method, system, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109787854A (en) | The test method and device of business service, storage medium, electronic device | |
CN104156843A (en) | Logistics distribution management system and logistics distribution management method | |
CN102314408B (en) | Method, device, equipment and system for acquiring configuration information and configuring | |
CN106537377B (en) | A kind of after-sale service platform based on cloud framework | |
CN105791341A (en) | Method, device and system for processing application release | |
CN108173894A (en) | The method, apparatus and server apparatus of server load balancing | |
CN105262827A (en) | Positioning monitoring system and method of O2O service | |
CN104202334A (en) | Network connection establishing method and device | |
CN105208047A (en) | Online and off line methods of distributed system server, and server | |
CN105099763A (en) | Method and device for reminding lost connection of equipment | |
CN105335883A (en) | Order processing method and device | |
CN104618420A (en) | Information display method and device | |
CN110675219B (en) | Page and order generation method, system, computer equipment and storage medium | |
CN104683473A (en) | Service quality monitoring method, server side, client and system | |
CN106201555B (en) | Application resource updating method, device and system | |
US9172793B2 (en) | Method and apparatus for correlating a phone call with a display | |
CN105279452A (en) | Method, device and system for managing intelligent equipment | |
CN107577600A (en) | A kind of method of testing of equipment, device and computer equipment | |
CN112598271A (en) | Product sale resource management and control method, system, device and storage medium | |
CN104517174A (en) | Uniform certificate platform and processing method thereof | |
CN108228355A (en) | Task processing method and device, method for scheduling task and device | |
CN107465718A (en) | Across the ID recognition methods of application and device, storage medium, terminal | |
CN112163708A (en) | Monitoring management system and method based on intelligent display terminal | |
CN103678332A (en) | System, browser and method for displaying page | |
CN110413421A (en) | Business data processing method and device, transaction data processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190521 |