CN108389104B - Simulation verification method and device for network activities - Google Patents

Simulation verification method and device for network activities Download PDF

Info

Publication number
CN108389104B
CN108389104B CN201810094650.5A CN201810094650A CN108389104B CN 108389104 B CN108389104 B CN 108389104B CN 201810094650 A CN201810094650 A CN 201810094650A CN 108389104 B CN108389104 B CN 108389104B
Authority
CN
China
Prior art keywords
activity
simulation
verified
data
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810094650.5A
Other languages
Chinese (zh)
Other versions
CN108389104A (en
Inventor
兰杰
陈小巧
杨宇
刘泉
王新盟
谢喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201810094650.5A priority Critical patent/CN108389104B/en
Publication of CN108389104A publication Critical patent/CN108389104A/en
Application granted granted Critical
Publication of CN108389104B publication Critical patent/CN108389104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0609Buyer or seller confidence or verification

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a simulation verification method and a device of network activities, wherein the method comprises the following steps: monitoring a preset monitoring object related to activity verification; determining the activity to be verified according to the monitoring result; obtaining the activity data of the activity to be verified by calling a service system query interface; synchronizing the activity data of the activity to be verified to a simulation environment; in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; and the operation result data obtained by the simulation activity operation is used as a basis for verifying the network activity. By using the method, the automatic full verification of all activities can be realized; the correctness of the functions and business logic of the real activities can be accurately verified, and the real online activities are not intrusive; the simulation verification process has no business risk and extra operation and communication cost caused by manual participation, the verification coverage is more comprehensive, and the verification efficiency is higher.

Description

Simulation verification method and device for network activities
Technical Field
The invention relates to the field of activity verification, in particular to a simulation verification method of network activity. The invention also relates to a simulation verification device of the network activity and a computer readable storage medium.
Background
O2O is an abbreviation for Online To Offline and Offline To Online, and means that an order is generated Online by combining Offline goods or services with Online using the internet, and the delivery of the goods or services is completed Offline.
The general process of the O2O marketing campaign is that the operator starts to initiate the recruiter some time before the marketing campaign starts, and the successful registration of the merchant will result in the actual marketing campaign. Such as registering and sending tickets, rewarding and forwarding, online evaluation and selection, money breaking and half price, card transaction and exemption, full gift and the like, and aims to attract the attention of users, pull the contribution of the users and strengthen the cognition of the users. Common types of activities include: subsidies, such as red parcels issued by public stele nets, American groups take-away, and the like; topics such as "go to travel with microblog" by microblog; prizes, such as lottery activity in a bar; games such as Paoyouji.
To ensure that the O2O marketing campaign can be performed normally and orderly, to avoid rule and resource conflicts, and to ensure that relevant resources can be adequately supported, functional and business logic verification is typically required for an operation that has not been formally run online before the marketing campaign is performed. The current verification methods mainly comprise the following two methods:
according to the first scheme, before a real activity starts, a similar activity is configured manually, another fund pool is used for activity configuration, a real account number is used for verification of basic functions, and after the verification is passed, the real activity is configured according to data of the similar activity.
And secondly, configuring some white list accounts in online activities, and enabling the white list accounts to participate in the activities in advance, namely performing a series of operations such as transaction, coupon acceptance and verification by the white list accounts before the activities are formally started to verify the activities.
However, the above-described active test scheme suffers from the following drawbacks:
the similar activities are configured manually, the final real activities are not verified, the tested activities and the real activities cannot be completely consistent, and the correctness of the real interactive functions and the correctness of the business logic cannot be verified accurately.
The online marketing activity exposes the information of the coupon before the activity is formally started by configuring the white list, but once the white list is maintained by mistake, the marketing activity is exposed in advance, and certain business risk exists; the stock of the coupons is used in advance, after the white list test is finished and the activity is formally started, the actual stock may not be consistent with the quantity of the publicized stock, the actual subsidy fund is reduced, the stock and the subsidy fund need to be complemented, and the operation and communication cost is high.
The scenes and the quantity which can be verified are limited, the activity rules cannot be fully covered, and particularly for large-scale activities, stores and merchants which all the activities relate to cannot be verified. Causing problems in unverified scenes after the actual activity has been initiated.
Disclosure of Invention
The invention provides a verification method of network activities, which aims to solve the problems that the existing method can not accurately verify the correctness of functions and business logic of real activities, has business risks, has high operation and communication costs and can not comprehensively cover activity rules. The invention further provides a verification device of network activities and a computer readable storage medium.
The invention provides a simulation verification method of network activities, which comprises the following steps:
monitoring a preset monitoring object related to activity verification;
determining the activity to be verified according to the monitoring result;
obtaining the activity data of the activity to be verified by calling a service system query interface;
synchronizing the activity data of the activity to be verified to a simulation environment;
in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity
Optionally, the preset monitoring object related to activity verification includes:
and the activity identification information is regularly cleaned to an activity identification information off-line storage table through an off-line task.
Optionally, the monitoring a preset monitoring object related to activity verification includes:
and identifying the activity identification information offline storage table at regular time to determine whether the activity identification information exists in the activity identification information offline storage table.
Optionally, the determining, according to the monitoring result, an activity to be verified includes:
and if the activity identification information exists in the activity identification information offline storage table, determining that the activity corresponding to the activity identification information is the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the preset monitoring object related to activity verification includes: an activity creation message;
correspondingly, the monitoring of the preset monitoring object related to the activity verification includes: and monitoring the activity creating message.
Optionally, the determining, according to the monitoring result, an activity to be verified includes: and if the fact that a new activity is created is monitored, determining the activity as the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the monitoring the activity creation message includes:
monitoring a service log of a service system; or
The DB change message is listened to.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
and creating simulation activity data corresponding to the activity data of the activity to be verified in the simulation environment by calling a service system creation interface.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the simulation mapping relation table has a mapping relation for mapping the activity data of the activity to be verified into simulation activity data, mapping the activity data of the activity to be verified into simulation activity data according to the mapping relation;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
Optionally, before creating and running a simulation activity according to the synchronized activity data and in combination with data provided by a simulation environment, the method further includes:
the start time and the end time of the campaign are replaced.
Optionally, the running result data obtained by running the simulation activity is used as a basis for verifying the network activity, and the implementation manner includes:
and the preset program reads the operation result data of the simulation activities in an uninterrupted reading mode, and the operation result data of the simulation activities are used as a basis for verifying the network activities.
Optionally, the verifying the network activity includes:
and utilizing the service checking rule of the activity to be verified to check the operation result generated in the operation process of the simulation activity in real time.
Optionally, the simulation environment includes:
and (5) online pressure measurement of the environment.
The invention also provides a simulation verification device of network activity, which comprises:
the activity verification monitoring unit is used for monitoring a preset monitoring object related to activity verification;
the to-be-verified activity determining unit is used for determining the to-be-verified activity according to the monitoring result;
the activity data obtaining unit is used for obtaining the activity data of the activity to be verified through inquiring by calling a service system inquiry interface;
the activity data synchronization unit is used for synchronizing the activity data of the activity to be verified into a simulation environment;
a simulation activity creating and running unit, configured to create and run a simulation activity in the simulation environment according to the synchronized activity data in combination with data provided by the simulation environment; and the operation result data obtained by the simulation activity operation is used as a basis for verifying the network activity.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
monitoring a preset monitoring object related to activity verification;
determining the activity to be verified according to the monitoring result;
obtaining the activity data of the activity to be verified by calling a service system query interface;
synchronizing the activity data of the activity to be verified to a simulation environment;
in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; and the operation result data obtained by the simulation activity operation is used as a basis for verifying the network activity.
Compared with the prior art, the invention has the following advantages:
according to the simulation verification method for the network activities, the preset monitoring objects related to activity verification are monitored, the activities to be verified are determined according to the monitoring results, the activities to be verified are started to be verified in the mode, selective starting verification is not needed, and automatic full verification of all the activities can be achieved; directly calling a business system query interface to query and obtain activity data of an activity to be verified, synchronizing the activity data of the activity to be verified into a simulation environment as main basic data for creating simulation activity data, and ensuring that the composition parameters of the simulation activity and the activity to be verified are consistent, so that the running processes of the simulation activity and the real activity to be verified are completely consistent, the function of the real activity and the correctness of business logic can be accurately verified, and no invasion is caused to the real online activity; the whole simulation verification process can be truly carried out automatically, no business risk and extra operation and communication cost caused by manual participation exist, the verification coverage is more comprehensive, and the verification efficiency is higher.
Drawings
FIG. 1 is a flow chart of a method provided in a first embodiment of the present application;
fig. 2 is a schematic diagram of an apparatus according to a second embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
The application provides a simulation verification method of network activities, a simulation verification device of network activities and a computer readable storage medium. The following provides embodiments to explain the method, apparatus, and computer-readable storage medium in detail.
The first embodiment of the application provides a simulation verification method for network activities, which is mainly suitable for verifying online marketing activities of an O2O platform, and is particularly suitable for performing full verification on all newly created online marketing activities. Referring to fig. 1, this embodiment is understood, and fig. 1 is a flowchart of a method provided in the first embodiment of the present application.
As shown in fig. 1, the method comprises the steps of:
and S101, monitoring a preset monitoring object related to activity verification.
The step is used for monitoring a preset monitoring object related to activity verification to determine whether an object needing simulation verification by the activity verification method provided by the application exists or not, so that the method is entered.
The monitoring object related to the activity verification refers to preset identification information which can be used for verifying whether the network activity is started or not, the monitoring object is monitored, and the monitoring result can be converted into a starting signal for verifying the network activity. In this embodiment, the monitored object related to activity verification is activity identification information, where the activity identification information is basic information that is specified and can be used as an identification identifier of the activity, such as an activity ID, and the activity identification information is periodically flushed to an activity identification information offline storage table by an offline task. The offline task is an existing data processing function, that is, required online service data can be stored in a specified data table through specified sql logic, and the timed cleaning is an implementation manner of the offline task, that is, a timed task is set to automatically execute the specified sql logic.
The monitoring of the preset monitoring object related to the activity verification is realized by the following steps: the implementation subject of the method identifies the activity identification information offline storage table at regular time to determine whether the activity identification information exists in the activity identification information offline storage table.
It should be noted that, in addition to the above-mentioned activity identification information, the monitoring object related to the activity verification may also be an activity creation message, which is formed when a new activity is created; correspondingly, the mode for monitoring the activity creation message is as follows: the creation message of the activity is listened. The monitoring process can be realized by two modes, which are respectively as follows: and monitoring a service log of the service system and monitoring a DB change message. The monitoring of the service log of the service system and the monitoring of the DB change message can be realized by a platform with the functions of saving and sending the system log, and specifically comprises the following steps: the implementation subject of the application subscribes the log message or DB change message of the platform, the platform actively sends the service log or DB change message of the service system to the implementation subject of the application, and when a new activity is created, the creation message of the activity can be obtained through the method.
And S102, determining the activity to be verified according to the monitoring result.
The step is used for determining the network activity needing to be verified according to the monitoring result generated in the monitoring process of the step.
The to-be-verified activity refers to an activity which needs to be subjected to function and service logic verification after being configured and created, for example, a common O2O online marketing activity is one of the to-be-verified activities, the marketing activity is generated after an operation activity initiated by a platform is applied for participation by a merchant, and the marketing activity can be a service activity which is actually operated online and needs to be subjected to function correction or function improvement, or a newly created service activity which is not yet run formally. The activities to be verified in this embodiment are mainly business activities that have not run formally, and the activities are verified, so that the running data of the business activities can be obtained in advance, whether the business activities can achieve a predetermined effect is evaluated, the business logic of the activities and the rationality and the perfection of each business detail are judged, and the business activities can be improved and adjusted in time by analyzing the data, for example, the activity strategy is adjusted, the activity details are perfected, and the like.
In this embodiment, the determining, according to the monitoring result, the to-be-verified activity is performed by: and if the activity identification information exists in the activity identification information offline storage table, determining that the activity corresponding to the activity identification information is the activity to be verified, and starting to perform simulation verification on the activity to be verified. Or when it is monitored that a new activity is created, determining that the newly created activity is an activity to be verified, and starting to perform simulation verification on the activity to be verified.
Compared with the prior art that the designated network marketing activities are selectively started and verified by operators, the method and the system for verifying the activities of the network marketing activities have the advantages that monitoring is carried out through monitoring objects related to activity verification, the activities to be verified are determined according to monitoring results, the verification of the activities to be verified is started, and all network activities can be automatically triggered to be verified indiscriminately.
S103, obtaining the activity data of the activity to be verified by calling a service system query interface.
After the activity to be verified is determined in the above steps, the step is used for obtaining the activity data of the activity to be verified through querying by calling a query interface of the service system, so as to be used as the basic data of the subsequent process of the application.
The business system query interface is a preset data interface which is specially used for acquiring the activity data of the activity to be verified in the application, and all composition parameters of any specified activity in the business system can be queried and acquired through the interface. In the above steps, by monitoring the activity identification information or the activity creation message, the activity to be verified, specifically, the specific identification information of the activity to be verified, such as the activity ID, can be determined according to the monitoring result. Therefore, in this step, all other parameters of the to-be-verified activity can be obtained by querying by calling a service system query interface according to the identification information, and all the parameter information jointly form the activity data of the to-be-verified activity.
The activity data of the activity to be verified refers to various attribute information included in the activity to be verified and the association relationship between the various attribute information, for example, marketing activity information included in a marketing activity, related store information, related commodity information, and the like, and the association relationship between the marketing activity information, related store information, and related commodity information. The method comprises the steps of obtaining activity data of the activity to be verified, and determining all component elements of the activity to be verified and association relations among the component elements to be used as basic data of subsequent data simulation. For example, by calling the business system query interface, marketing activity discount, marketing activity start time and marketing activity end time, related store information, related commodity information and the like corresponding to the marketing activity ID, and marketing activity data such as the correlation among the marketing activity information, the related store information and the related commodity information are queried according to the marketing activity ID of the activity identification information offline storage table.
And S104, synchronizing the activity data of the activity to be verified to a simulation environment.
After the step of obtaining the activity data of the to-be-verified activity by calling a service system query interface for query, the step is used for synchronizing the activity data of the to-be-verified activity into the simulation environment to generate simulation activity data corresponding to the activity data of the to-be-verified activity, and the simulation activity data is used as basic data of the simulation activity in the simulation environment.
The simulation environment refers to a simulation environment having a function completely identical to that of an on-line environment in actual operation, and in the simulation environment, functions and effects of all real on-line environments can be realized. In this embodiment, the simulation environment is a virtual environment simulating an online pressure measurement environment.
In this embodiment, the synchronizing the activity data of the activity to be verified to the simulation environment may be implemented by: and directly creating simulation activity data corresponding to the activity data of the activity to be verified in the simulation environment by calling a service system creation interface so as to copy the activity data of the activity to be verified to the simulation environment. The business system establishes an interface as a preset data interface special for active data copying, and can realize the copying of all active data by calling the interface.
In addition to the above-mentioned data synchronization by calling the service system to create an interface, the data synchronization can also be implemented by: comparing the activity data of the activity to be verified with a preset simulation mapping relation table, and if the activity data of the activity to be verified is mapped into the simulation activity data in the simulation mapping relation table, mapping the activity data of the activity to be verified into the simulation activity data according to the mapping relation; if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, a business creation interface of a business system is called to copy the activity data of the activity to be verified into the simulation environment to serve as the simulation activity data corresponding to the activity data, and the mapping relation between the activity data of the activity to be verified and the simulation activity data is added into the simulation mapping relation table. The simulation mapping relation table is used for mapping activity data into simulation activity data, and mainly comprises a mapping subject and a simulation mapping method corresponding to the mapping subject, for example, in a simulation activity mapping table corresponding to marketing activities, the mapping subject is marketing activity data such as store information and commodity information and simulation marketing activity data such as simulation store information and simulation commodity information corresponding to the marketing activity data, and the marketing activity data of the same kind and the simulation activity data corresponding to the marketing activity data are mapped through a specific mapping method, for example, the store information is mapped into simulation store information and needs to be mapped through a specific store mapping method. And the mapping main body of each kind and the mapping method corresponding to the mapping main body form a group of mapping relations for performing simulation mapping on the activity data of the same type. For example, for the store information for the marketing campaign, the process of synchronizing it into the simulated environment is: searching a mapping relation corresponding to the shop type in the simulation mapping relation table according to the ID of the shop information, and if the mapping relation of the shop type exists in the simulation mapping relation table, mapping the shop information into simulation shop information through a specific mapping method in the mapping relation; if the mapping relation of the shop type does not exist in the simulation mapping relation table, a business creation interface of a business system is called to copy the shop information to the simulation environment to form simulation shop information, and the mapping relation between the shop information and the simulation shop information is added to the simulation mapping relation table.
S105, creating and running simulation activities in the simulation environment according to the synchronized activity data and in combination with data provided by the simulation environment; and the operation result data obtained by the simulation activity operation is used as a basis for verifying the network activity.
The simulation verification method for the network activities provided by the application has the following general implementation mode: and performing data simulation on the activity to be verified in the simulation environment to obtain a simulation result, wherein the simulation result is used as the basis of activity verification. Therefore, after the step completes the synchronization of the activity data of the activity to be verified to the simulation environment, the step is configured to create a simulation activity according to the simulation activity data corresponding to the activity data of the activity to be verified obtained after the synchronization and the data provided by the simulation environment, and run the created simulation activity, and the running result data obtained after the running of the simulation activity is used as a basis for verifying the correctness of the function and the business logic of the activity to be verified, thereby completing the method.
The simulation activities created and run in the simulation environment correspond to real online activities, can simulate the running mode of the real online activities to run, and can achieve the running result consistent with the online activities in function and logic. For example, a common O2O marketing campaign may include transactions, issuing coupons for users, scanning code payments online and scanning code coupons online, and the simulation campaign for the marketing campaign also includes simulation transactions, issuing simulation coupons for simulation users, simulating scanning code payments online and scanning code coupons.
The simulation activity data corresponding to the activity data of the activity to be verified obtained in the synchronous manner is main composition data of the virtual activity, such as information of an activity shop, activity commodities, activity contents and the like in the marketing activity, however, if the activity is to be run in the simulation environment, the virtual data provided by the simulation environment, such as information of a simulation user, a simulation merchant and the like, needs to be combined. The data from the two sources collectively comprise simulation activity data that creates the simulation activity.
And creating and running the simulation activity according to the simulation activity data, wherein the creation process of the simulation activity is a process of assembling the simulation activity data as a request parameter, and the starting time and the ending time of the running of the simulation activity can be replaced before the process. In this embodiment, the starting time of the running of the simulation activity is set as the first time after the creation of the simulation activity is completed, that is, once the creation of the simulation activity is completed, the simulation activity is run immediately, so that the verification of the activity to be verified is realized at the first time.
The process of running the simulation activity in the present application is a process of simulating and executing each simulation core case of the activity to be verified, for example, for the O2O marketing activity, the core case is a business closed-loop case for purchasing, issuing a coupon for a user, getting, verifying and canceling, and the like, and the core case of the corresponding simulation marketing activity is a simulation business closed-loop case for simulating purchasing, issuing a simulation coupon for a simulation user, simulating getting, simulating verifying and canceling, simulating and the like.
The operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity, and the implementation mode is as follows: the preset program reads the operation result data of the simulation activities in an uninterrupted reading mode, and the method specifically comprises the following steps: and continuously reading a data table for storing simulation results through a preset program, starting to execute the verification if the simulation results exist in the data table, and repeating the reading process if the simulation results do not exist in the data table until the verification is started after the simulation results exist in the data table. This approach may improve the efficiency of verification of the simulation activity.
Each type of activity to be verified has its service check rule, and in this embodiment, the manner of verifying the simulation result is as follows: and performing real-time check on a simulation result generated in the running process of the simulation activity corresponding to the activity to be verified by using the service check rule of the activity to be verified, namely actively assembling a request required for performing real-time check on the activity to be verified.
In this embodiment, after the simulation result generated in the running process of the simulation activity is verified in the above manner, a check result of the activity to be verified, such as a verification report of each activity to be verified, needs to be generated to show a business logic status of the activity that has been verified, such as showing that the failure of the activity is a case failure of which dimension, the reason for the failure of the network activity can be quickly locked.
In the foregoing embodiment, a method for verifying simulation of network activities is provided, and correspondingly, a second embodiment of the present application further provides a device for verifying simulation of network activities, which is described below with reference to the accompanying drawings.
Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to the corresponding description of the method embodiments provided above for relevant portions. The device embodiments described below are merely illustrative. Referring to fig. 2, to understand the embodiment, fig. 2 is a block diagram of a unit of the apparatus provided in the embodiment, as shown in fig. 2, the apparatus includes:
an activity verification monitoring unit 201, configured to monitor a preset monitoring object related to activity verification;
a to-be-verified activity determining unit 202, configured to determine, according to the monitoring result, a to-be-verified activity;
an activity data obtaining unit 203, configured to obtain activity data of the activity to be verified by querying by calling a service system query interface;
an activity data synchronization unit 204, configured to synchronize activity data of the activity to be verified into a simulation environment;
a simulation activity creating and running unit 205, configured to create and run a simulation activity in the simulation environment according to the synchronized activity data and in combination with data provided by the simulation environment; and the operation result data obtained by the simulation activity operation is used as a basis for verifying the network activity.
Optionally, the preset monitoring object related to activity verification includes:
and the activity identification information is regularly cleaned to an activity identification information off-line storage table through an off-line task.
Optionally, the monitoring a preset monitoring object related to activity verification includes:
and identifying the activity identification information offline storage table at regular time to determine whether the activity identification information exists in the activity identification information offline storage table.
Optionally, the determining, according to the monitoring result, an activity to be verified includes:
and if the activity identification information exists in the activity identification information offline storage table, determining that the activity corresponding to the activity identification information is the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the preset monitoring object related to activity verification includes: an activity creation message;
correspondingly, the monitoring of the preset monitoring object related to the activity verification includes: and monitoring the activity creating message.
Optionally, the determining, according to the monitoring result, an activity to be verified includes: and if the fact that a new activity is created is monitored, determining the activity as the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the monitoring the activity creation message includes:
monitoring a service log of a service system; or
The DB change message is listened to.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
and creating simulation activity data corresponding to the activity data of the activity to be verified in the simulation environment by calling a service system creation interface.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the simulation mapping relation table has a mapping relation for mapping the activity data of the activity to be verified into simulation activity data, mapping the activity data of the activity to be verified into simulation activity data according to the mapping relation;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
Optionally, before creating and running a simulation activity according to the synchronized activity data and in combination with data provided by a simulation environment, the method further includes:
the start time and the end time of the campaign are replaced.
Optionally, the running result data obtained by running the simulation activity is used as a basis for verifying the network activity, and the implementation manner includes:
and the preset program reads the operation result data of the simulation activities in an uninterrupted reading mode, and the operation result data of the simulation activities are used as a basis for verifying the network activities.
Optionally, the verifying the network activity includes:
and utilizing the service checking rule of the activity to be verified to check the operation result generated in the operation process of the simulation activity in real time.
Optionally, the simulation environment includes: and (5) online pressure measurement of the environment.
The embodiment of a computer-readable storage medium provided by the application is as follows:
in the above embodiments, a simulation verification method of a network activity is provided, and in addition, a computer-readable storage medium for implementing simulation verification of the network activity is also provided. Embodiments of the computer-readable storage medium provided in the present application are described more simply, and for relevant portions, reference may be made to the corresponding descriptions of the above method embodiments. The embodiments described below are merely illustrative.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
monitoring a preset monitoring object related to activity verification;
determining the activity to be verified according to the monitoring result;
obtaining the activity data of the activity to be verified by calling a service system query interface;
synchronizing the activity data of the activity to be verified to a simulation environment;
in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity
Optionally, the preset monitoring object related to activity verification includes:
and the activity identification information is regularly cleaned to an activity identification information off-line storage table through an off-line task.
Optionally, the monitoring a preset monitoring object related to activity verification includes:
and identifying the activity identification information offline storage table at regular time to determine whether the activity identification information exists in the activity identification information offline storage table.
Optionally, the determining, according to the monitoring result, an activity to be verified includes:
and if the activity identification information exists in the activity identification information offline storage table, determining that the activity corresponding to the activity identification information is the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the preset monitoring object related to activity verification includes: an activity creation message;
correspondingly, the monitoring of the preset monitoring object related to the activity verification includes: and monitoring the activity creating message.
Optionally, the determining, according to the monitoring result, an activity to be verified includes: and if the fact that a new activity is created is monitored, determining the activity as the activity to be verified, and starting to perform simulation verification on the activity to be verified.
Optionally, the monitoring the activity creation message includes:
monitoring a service log of a service system; or
The DB change message is listened to.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
and creating simulation activity data corresponding to the activity data of the activity to be verified in the simulation environment by calling a service system creation interface.
Optionally, the synchronizing the activity data of the activity to be verified into the simulation environment includes:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the simulation mapping relation table has a mapping relation for mapping the activity data of the activity to be verified into simulation activity data, mapping the activity data of the activity to be verified into simulation activity data according to the mapping relation;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
Optionally, before creating and running a simulation activity according to the synchronized activity data and in combination with data provided by a simulation environment, the method further includes:
the start time and the end time of the campaign are replaced.
Optionally, the running result data obtained by running the simulation activity is used as a basis for verifying the network activity, and the implementation manner includes:
and the preset program reads the operation result data of the simulation activities in an uninterrupted reading mode, and the operation result data of the simulation activities are used as a basis for verifying the network activities.
Optionally, the verifying the network activity includes:
and utilizing the service checking rule of the activity to be verified to check the operation result generated in the operation process of the simulation activity in real time.
Optionally, the simulation environment includes: and (5) online pressure measurement of the environment.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto, and variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present invention.
In a typical configuration, a computing device includes one or more processors, input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (12)

1. A method for simulation verification of network activity, comprising:
monitoring a preset monitoring object related to activity verification;
determining the activity to be verified according to the monitoring result;
obtaining the activity data of the activity to be verified by calling a service system query interface;
synchronizing the activity data of the activity to be verified to a simulation environment;
in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity;
wherein the preset monitoring object related to activity verification comprises: activity identification information; the determining the activity to be verified according to the monitoring result comprises the following steps: when the activity identification information exists in an activity identification information off-line storage table, determining that the activity corresponding to the activity identification information is an activity to be verified, and starting simulation verification on the activity to be verified;
alternatively, the first and second electrodes may be,
the preset monitoring objects related to activity verification comprise: an activity creation message; correspondingly, the monitoring of the preset monitoring object related to the activity verification includes: monitoring the activity creation message; the determining the activity to be verified according to the monitoring result comprises the following steps: when monitoring that a new activity is created in the monitoring result, determining the newly created activity as an activity to be verified, and starting to perform simulation verification on the activity to be verified;
the synchronizing the activity data of the activity to be verified into the simulation environment comprises:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
2. The method of claim 1, wherein the activity identification information is periodically flushed to an activity identification information offline storage table by an offline task.
3. The method for simulation verification of network activities according to claim 2, wherein the monitoring of the preset monitoring objects related to activity verification comprises:
and identifying the activity identification information offline storage table at regular time to determine whether the activity identification information exists in the activity identification information offline storage table.
4. The method of claim 1, wherein the listening for the activity creation message comprises:
monitoring a service log of a service system; or
The DB change message is listened to.
5. The method according to claim 1, wherein the synchronizing the activity data of the activity to be verified into the simulation environment comprises:
and creating simulation activity data corresponding to the activity data of the activity to be verified in the simulation environment by calling a service system creation interface.
6. The method of claim 1, further comprising:
and if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data exists in the simulation mapping relation table, mapping the activity data of the activity to be verified into the simulation activity data according to the mapping relation.
7. The method of claim 1, wherein prior to creating and running a simulation campaign based on the synchronized campaign data in combination with data provided by a simulation environment, further comprising:
the start time and the end time of the campaign are replaced.
8. The simulation verification method of network activities according to claim 1, wherein the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activities, and the implementation manner comprises:
and the preset program reads the operation result data of the simulation activities in an uninterrupted reading mode, and the operation result data of the simulation activities are used as a basis for verifying the network activities.
9. The method of claim 1, wherein said verifying said network activity comprises:
and utilizing the service checking rule of the activity to be verified to check the operation result generated in the operation process of the simulation activity in real time.
10. The method of claim 1, wherein the simulation environment comprises:
and (5) online pressure measurement of the environment.
11. An apparatus for simulation verification of network activity, comprising:
the activity verification monitoring unit is used for monitoring a preset monitoring object related to activity verification;
the to-be-verified activity determining unit is used for determining the to-be-verified activity according to the monitoring result;
the activity data obtaining unit is used for obtaining the activity data of the activity to be verified through inquiring by calling a service system inquiry interface;
the activity data synchronization unit is used for synchronizing the activity data of the activity to be verified into a simulation environment;
a simulation activity creating and running unit, configured to create and run a simulation activity in the simulation environment according to the synchronized activity data in combination with data provided by the simulation environment; the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity;
wherein the preset monitoring object related to activity verification comprises: activity identification information; the to-be-verified activity determining unit is specifically configured to determine, when the activity identification information exists in an activity identification information offline storage table, that an activity corresponding to the activity identification information is a to-be-verified activity, and start simulation verification of the to-be-verified activity;
alternatively, the first and second electrodes may be,
the preset monitoring objects related to activity verification comprise: an activity creation message; the activity verification monitoring unit is specifically configured to monitor the activity creation message; the to-be-verified activity determining unit is specifically configured to determine, when it is monitored that a new activity is created in the monitoring result, that the newly created activity is the to-be-verified activity, and start simulation verification of the to-be-verified activity;
the synchronizing the activity data of the activity to be verified into the simulation environment comprises:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
12. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, performing the steps of:
monitoring a preset monitoring object related to activity verification;
determining the activity to be verified according to the monitoring result;
obtaining the activity data of the activity to be verified by calling a service system query interface;
synchronizing the activity data of the activity to be verified to a simulation environment;
in the simulation environment, according to the synchronized activity data, combining the data provided by the simulation environment, creating and running simulation activities; the operation result data obtained by the simulation activity operation is used as the basis for verifying the network activity;
wherein the preset monitoring object related to activity verification comprises: activity identification information; the determining the activity to be verified according to the monitoring result comprises the following steps: when the activity identification information exists in an activity identification information off-line storage table, determining that the activity corresponding to the activity identification information is an activity to be verified, and starting simulation verification on the activity to be verified;
alternatively, the first and second electrodes may be,
the preset monitoring objects related to activity verification comprise: an activity creation message; correspondingly, the monitoring of the preset monitoring object related to the activity verification includes: monitoring the activity creation message; the determining the activity to be verified according to the monitoring result comprises the following steps: when monitoring that a new activity is created in the monitoring result, determining the newly created activity as an activity to be verified, and starting to perform simulation verification on the activity to be verified;
the synchronizing the activity data of the activity to be verified into the simulation environment comprises:
comparing the activity data of the activity to be verified with a preset simulation mapping relation table;
if the mapping relation for mapping the activity data of the activity to be verified into the simulation activity data does not exist in the simulation mapping relation table, calling a service creation interface of a service system to create the simulation activity data corresponding to the activity data of the activity to be verified, and adding the mapping relation between the activity data of the activity to be verified and the simulation activity data into the simulation mapping relation table.
CN201810094650.5A 2018-01-31 2018-01-31 Simulation verification method and device for network activities Active CN108389104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810094650.5A CN108389104B (en) 2018-01-31 2018-01-31 Simulation verification method and device for network activities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810094650.5A CN108389104B (en) 2018-01-31 2018-01-31 Simulation verification method and device for network activities

Publications (2)

Publication Number Publication Date
CN108389104A CN108389104A (en) 2018-08-10
CN108389104B true CN108389104B (en) 2021-06-25

Family

ID=63074887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810094650.5A Active CN108389104B (en) 2018-01-31 2018-01-31 Simulation verification method and device for network activities

Country Status (1)

Country Link
CN (1) CN108389104B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787854A (en) * 2018-12-14 2019-05-21 浙江口碑网络技术有限公司 The test method and device of business service, storage medium, electronic device
CN112486830B (en) * 2020-06-24 2023-04-18 支付宝(杭州)信息技术有限公司 Pressure testing method, device and system for block chain network

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146858A (en) * 2004-11-23 2006-06-08 Hiroki Shima Social simulation system with profiling means applied
CN102013055A (en) * 2010-12-07 2011-04-13 山东中创软件工程股份有限公司 Method and system for verifying service orchestration process
CN102117464A (en) * 2010-01-06 2011-07-06 埃森哲环球服务有限公司 Marketing investment optimizer with dynamic hierarchies
CN102541830A (en) * 2010-12-21 2012-07-04 深圳市恒扬科技有限公司 Method and device for generating simulation report in simulation platform
CN102567351A (en) * 2010-12-10 2012-07-11 中国移动通信集团北京有限公司 Testing method and testing device for database modification effects
CN103020840A (en) * 2011-10-04 2013-04-03 微软公司 Incentive optimization for social media marketing campaigns
CN103077110A (en) * 2011-10-25 2013-05-01 阿里巴巴集团控股有限公司 Test method and device
CN107133162A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 A kind of method of testing and device
CN107515922A (en) * 2017-08-23 2017-12-26 北京汽车研究总院有限公司 A kind of data managing method and system
CN107609205A (en) * 2016-07-12 2018-01-19 百度在线网络技术(北京)有限公司 Business simulating system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266628A (en) * 2008-04-02 2008-09-17 深圳先进技术研究院 Automatic real-time emulation and its paralleling method based on emulated knowledge library
CN107220105A (en) * 2017-06-22 2017-09-29 中国人民解放军国防科学技术大学 Parallel Discrete Event Simulation system auto-initiation implementation method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146858A (en) * 2004-11-23 2006-06-08 Hiroki Shima Social simulation system with profiling means applied
CN102117464A (en) * 2010-01-06 2011-07-06 埃森哲环球服务有限公司 Marketing investment optimizer with dynamic hierarchies
CN102013055A (en) * 2010-12-07 2011-04-13 山东中创软件工程股份有限公司 Method and system for verifying service orchestration process
CN102567351A (en) * 2010-12-10 2012-07-11 中国移动通信集团北京有限公司 Testing method and testing device for database modification effects
CN102541830A (en) * 2010-12-21 2012-07-04 深圳市恒扬科技有限公司 Method and device for generating simulation report in simulation platform
CN103020840A (en) * 2011-10-04 2013-04-03 微软公司 Incentive optimization for social media marketing campaigns
CN103077110A (en) * 2011-10-25 2013-05-01 阿里巴巴集团控股有限公司 Test method and device
CN107133162A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 A kind of method of testing and device
CN107609205A (en) * 2016-07-12 2018-01-19 百度在线网络技术(北京)有限公司 Business simulating system and method
CN107515922A (en) * 2017-08-23 2017-12-26 北京汽车研究总院有限公司 A kind of data managing method and system

Also Published As

Publication number Publication date
CN108389104A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
US10290007B2 (en) Method and system for turning virtual world participants into real life leads
CN109933593B (en) Asset data recording method, device and equipment
CN108536521B (en) Simulation platform-based offline environment checking method and device
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN110309022B (en) Method, simulator, device and storage medium for simulating transaction test
CN108090784B (en) Marketing activity simulation verification method and device
CN108389080A (en) Transaction processing method and platform
CN108427638A (en) Region network of relation marketing activity test method and device
CN111192089B (en) Electronic ticket generation method and device and computer system
CN108389104B (en) Simulation verification method and device for network activities
CN112365303B (en) Resource verification and cancellation method
CN110380936A (en) Test method and device
CN112286790B (en) Full link testing method, device, equipment and storage medium
US20200294057A1 (en) Business processing method, apparatus, and equipment
CN104616168B (en) A kind of method and device of marketing tool legitimacy verifies
CN111709769A (en) Data processing method and device
Chopra et al. Analyzing contract robustness through a model of commitments
CN112035156A (en) E-commerce platform docking device, method, equipment and medium
CN113449023A (en) Service processing method and device and electronic equipment
CN111563183A (en) Automatic generation method and device of visit record, computing equipment and storage medium
CN111144898A (en) Method, equipment and medium for tracing source of legal book
CN108572914A (en) A kind of method and device generating the daily record for pressure test
CN110443684A (en) The fast illuminated pricing information processing method and processing device of combination product
CN113689232B (en) Method and device for detecting crowd recall service and electronic equipment
CN109064336A (en) Method, system, computer equipment and the storage medium of Ta file interaction verifying

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