Test method, device, storage medium and computer equipment for order scheduling system
By shifting and identifying the scheduling state data of the order scheduling system, virtual data is generated, and stress testing is used by the virtual scheduler, the problem of data construction is solved and the problem of distortion of test results is achieved efficient testing and full-domain scheduling is achieved , avoid interference with online users.
Patent Information
- Application Number
- CN202110555146.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-21
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2041-05-21
AI Technical Summary
When the order scheduling system performs stress tests after the function is updated, there are problems such as high difficulty in data construction, high degree of distortion of test results, and great interference to online users.
Collect scheduling attitude data within a predetermined time interval, perform coordinate offset and identification conversion, generate virtual scheduling attitude data, and use the virtual scheduler to perform stress testing to ensure that the test data has mapping relationships and isolation between the real data.
It improves the construction efficiency and authenticity of the test data, reduces interference to online users, avoids the problem of local area pressure measurement distortion after database sharding, and realizes full-domain scheduling.
Smart Images

Figure CN113177000B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of system testing, and in particular to a testing method, device, storage medium and computer equipment for an order scheduling system. Background Art
[0002] With the continuous development of Internet technology, the order scheduling system has also been developing rapidly. The order scheduling system can reasonably allocate orders to delivery personnel, and the delivery personnel will deliver the corresponding items to the users, so that users can get the items they need without leaving home. In order to further improve the working efficiency of the order scheduling system, developers often need to continuously update the various functions in the system. In order to ensure that the order scheduling system can still run stably for a long time after the function update, it is necessary to stress test the order scheduling system.
[0003] In the prior art, stress testing of the dispatching system usually involves selecting a city where the platform has not yet launched formal services. The purpose is to isolate the test data from the real user data. However, after the database of the order dispatching system is sharded according to geographical latitudes, stress testing in a fixed area will have serious distortion problems. In addition, before testing, testers also need to construct a large amount of test data. The constructed test data mainly includes test rider data and test order data, etc. However, it is difficult to construct test data manually and the degree of distortion is high. Using real data as test data will involve many data cleaning and adaptation actions, which also have a certain degree of distortion, and will also cause interference to online users, such as affecting the order dispatching efficiency in a specific area or causing delivery personnel to see test orders. Summary of the invention
[0004] In view of this, the present application provides a testing method, device, storage medium and computer equipment for an order scheduling system, the main purpose of which is to solve the technical problems of difficulty in constructing test data for the order scheduling system, high distortion of test results and great interference to online users.
[0005] According to a first aspect of the present invention, a method for testing an order scheduling system is provided, the method comprising:
[0006] Collecting dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data, and geographic grid data;
[0007] Performing coordinate shift on the coordinate data in the dispatching state data, and performing identity conversion on the identity data in the dispatching state data, to obtain virtual dispatching state data;
[0008] In response to the test instruction, the virtual scheduler is used to call the virtual scheduling state data to perform a stress test to obtain the test result of the order scheduling system.
[0009] Optionally, before collecting the scheduling state data within a predetermined time interval, the method also includes: receiving test configuration information, wherein the test configuration information includes a data collection period; collecting the scheduling state data within the predetermined time interval, including: periodically collecting the scheduling state data within the predetermined time interval from a scheduling state database according to the data collection period.
[0010] Optionally, before performing coordinate offset on the coordinate data in the dispatch state data, the method further comprises: performing coordinate offset on the full amount of geographic grid data within the distribution range to obtain virtual full amount of geographic grid data.
[0011] Optionally, coordinate data in the dispatching state data are coordinate offset, and identification data in the dispatching state data are identity converted to obtain virtual dispatching state data, including: coordinate offset of the coordinate data in the delivery person data, order data and geographic grid data in the dispatching state data according to the coordinate offset of the full amount of geographic grid data; identity conversion of the delivery person data in the dispatching state data and identification data in the order data according to predetermined identity conversion rules; data integration of the delivery person data, order data and geographic grid data after coordinate offset and identity conversion to obtain virtual dispatching state data.
[0012] Optionally, before integrating the delivery personnel data, order data and geographic grid data after coordinate offset and identification conversion to obtain virtual dispatch state data, the method also includes: adapting and converting the state data in the virtual dispatch state data; and / or desensitizing the user data in the virtual dispatch state data.
[0013] Optionally, in response to a test instruction, a virtual scheduler is used to call virtual scheduling state data for stress testing to obtain test results of the order scheduling system, including: in response to a test instruction, the virtual scheduling state data is stored in a virtual scheduling state database, the virtual scheduling state data includes virtual deliveryman data, virtual order data and virtual geographic grid data; using a virtual scheduler, virtual deliveryman data and virtual order data are scheduled according to the virtual geographic grid data, and the data generated during the scheduling process is stored in the virtual scheduling state database; the virtual scheduling state data and the data generated during the scheduling process are analyzed and processed to obtain test results of the order scheduling system.
[0014] Optionally, using a virtual scheduler to call virtual scheduling state data for stress testing also includes: in response to a data query request, performing a reverse conversion on identification data in the virtual scheduling state data; and querying the scheduling basic data corresponding to the data query request in a scheduling basic database according to the reversely converted identification data.
[0015] According to a second aspect of the present invention, a testing device for an order scheduling system is provided, the device comprising:
[0016] A data collection module is used to collect dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data and geographic grid data;
[0017] A data processing module, used for performing coordinate shift on the coordinate data in the dispatching state data, performing identity conversion on the identity data in the dispatching state data, and obtaining virtual dispatching state data;
[0018] The stress test module is used to respond to the test instruction, use the virtual scheduler to call the virtual scheduling state data to perform stress testing, and obtain the test result of the order scheduling system.
[0019] Optionally, the device also includes an information receiving module, wherein the information receiving module is used to receive test configuration information, wherein the test configuration information includes a data collection cycle; the data collection module is also used to periodically collect scheduling state data within a predetermined time interval from a scheduling state database according to the data collection cycle.
[0020] Optionally, the data processing module is further used to perform coordinate offset on the full amount of geographic grid data within the distribution range to obtain virtual full amount of geographic grid data.
[0021] Optionally, the data processing module is further used to perform coordinate offset on the coordinate data of the deliveryman data, order data and geographic grid data in the scheduling state data according to the coordinate offset of the full amount of geographic grid data; perform identity conversion on the deliveryman data and identity data in the order data in the scheduling state data according to predetermined identity conversion rules; and perform data integration on the deliveryman data, order data and geographic grid data after the coordinate offset and identity conversion to obtain virtual scheduling state data.
[0022] Optionally, the data processing module is further used to perform adaptation conversion on the state data in the virtual scheduling state data; and / or perform desensitization processing on the user data in the virtual scheduling state data.
[0023] Optionally, the stress testing module is specifically used to respond to test instructions, store the virtual scheduling state data in a virtual scheduling state database, the virtual scheduling state data including virtual delivery personnel data, virtual order data and virtual geographic grid data; utilize a virtual scheduler to schedule the virtual delivery personnel data and the virtual order data according to the virtual geographic grid data, and store the data generated during the scheduling process in the virtual scheduling state database; analyze and process the virtual scheduling state data and the data generated during the scheduling process to obtain test results of the order scheduling system.
[0024] Optionally, the device also includes a data query module, wherein the data query module is used to perform a reverse conversion on the identification data in the virtual scheduling state data in response to a data query request; and query the scheduling basic data corresponding to the data query request in the scheduling basic database according to the reversely converted identification data.
[0025] According to a third aspect of the present invention, there is provided a storage medium on which a computer program is stored, and when the program is executed by a processor, the test method of the order scheduling system described above is implemented.
[0026] According to a fourth aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the test method of the order scheduling system described above is implemented when the processor executes the program.
[0027] The present invention provides a test method, device, storage medium and computer equipment for an order scheduling system. First, by collecting real delivery personnel data, order data and geographic grid data within a predetermined time interval, and performing coordinate offset and identity conversion on the collected real scheduling state data, virtual scheduling state data used for testing is obtained, thereby improving the efficiency of constructing test data, and making the constructed test data have a mapping relationship with the real data, so that the test data has a certain data query capability, and greatly enhancing the simulation capability of the data. Secondly, by using a virtual scheduler to call virtual scheduling state data for stress testing, the scheduling system will not cause scheduling backlog problems to the real grid when performing stress testing, thereby avoiding interference to online users caused by the testing process. Finally, by performing coordinate offset on the coordinate data, the test data and the real production data are naturally isolated, thereby achieving global scheduling and overcoming the problem of distortion in stress testing in local areas after database sharding.
[0028] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0030] Figure 1 A schematic diagram showing a flow chart of a test method for an order scheduling system provided by an embodiment of the present invention;
[0031] Figure 2 A schematic flow chart of another method for testing an order scheduling system provided by an embodiment of the present invention is shown;
[0032] Figure 3 A schematic diagram of an application scenario of a test method for an order scheduling system provided by an embodiment of the present invention is shown;
[0033] Figure 4 A schematic diagram showing the structure of a test device for an order scheduling system provided by an embodiment of the present invention is shown;
[0034] Figure 5 A structural schematic diagram of another order scheduling system testing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0035] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0036] In one embodiment, Figure 1 As shown, a test method for an order scheduling system is provided, and the method is applied to a computer device such as a server as an example for explanation, including the following steps:
[0037] 101. Collect dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data, and geographic grid data.
[0038] Specifically, before stress testing the order scheduling system, the computer equipment can first collect the full amount of scheduling state data within a predetermined time interval from the scheduling state database, wherein the predetermined time interval can be set according to user needs, such as within 5 minutes or 30 minutes of the current time, etc.; scheduling state data refers to the state data relied on in the scheduling process, mainly including delivery personnel data, order data and geographic grid data, etc., wherein the delivery personnel data mainly includes delivery personnel location coordinate data and delivery personnel identification data. In addition, the delivery personnel data can also include other state data such as the delivery personnel's order acceptance ability; order data mainly includes order shipping location coordinate data, order receiving location coordinate data and order identification data. In addition, the order data can also include other state data such as order status data; geographic grid data mainly includes geographic grid coordinate data, scheduling area pressure value and scheduling area weather status data, etc. In addition, the geographic grid data can also include other state data such as geographic grid instantaneous state data.
[0039] 102. Perform coordinate shift on the coordinate data in the dispatching state data, perform identity conversion on the identity data in the dispatching state data, and obtain virtual dispatching state data.
[0040] Specifically, the computer device can store the collected dispatch state data in a large data wide table, thereby performing data cleaning and data integration on the collected dispatch state data. Among them, data cleaning mainly includes coordinate offset and identity conversion of the dispatch state data. Coordinate offset refers to the same distance and same direction coordinate offset of all coordinate data in the dispatch state data, including the delivery person's location coordinate data, order delivery location coordinate data, order delivery location coordinate data and geographic grid coordinate data, and the geographic area after the coordinate offset is not within the dispatch range. The purpose is to transfer the dispatch state data from the actual geographic area in parallel to another geographic area that does not interfere with the real data; identity conversion refers to the conversion of all identification data in the dispatch state data according to unified rules, such as adding the same prefix or suffix before all identification data, etc. The purpose is to distinguish virtual identification data from real identification data to prevent test data from interfering with online users. At the same time, it is also convenient to use the identity conversion rules to reverse the real identification data in the future, so that the virtual dispatch state data and the real dispatch state data have a certain mapping relationship, thereby improving the authenticity of the test data. In addition, data cleaning may also include adapting and converting the state data in the scheduling state data and / or desensitizing the user privacy data, etc., which is not specifically limited in this embodiment.
[0041] Furthermore, after the dispatch state data is cleaned, the dispatch state data obtained by data cleaning can be integrated to obtain the full amount of virtual dispatch state data, wherein the virtual dispatch state data includes virtual delivery personnel data, virtual order data, and virtual geographic grid data, etc. The generated virtual dispatch state data can be used for subsequent stress testing of the dispatch system. It can be understood that the virtual dispatch state data is constructed from the real dispatch state data and has a certain mapping relationship with the real dispatch state data, thus ensuring the comprehensiveness and authenticity of the stress test data, and greatly reducing the difficulty of constructing the stress test data. Moreover, the generated virtual dispatch data is full rather than local area, which also avoids the test distortion problem caused by incomplete collection of data after database sharding.
[0042] 103. In response to the test instruction, the virtual scheduler is used to call the virtual scheduling state data to perform a stress test to obtain the test result of the order scheduling system.
[0043] Specifically, when the user initiates a stress test on the order scheduling system, the computer device will respond to the test instruction sent by the user and start the stress test. After the test starts, the computer device will first push the integrated virtual scheduling state data to the virtual scheduling state database, and then use a virtual scheduler that is different from the real scheduler to schedule and match the data in the virtual scheduling state database, and store the data generated during the scheduling process or the data whose state changes during the scheduling process into the virtual scheduling state database. After all data scheduling is completed, the scheduling situation is analyzed and compared, and finally the stress test results of the order scheduling system are obtained. By using a virtual scheduler to schedule virtual scheduling state data for stress testing, the test process can be completely isolated from the real scheduling process, thereby avoiding interference to online users caused by the test process, and also avoiding the test data being superimposed on the real data, causing a backlog of real scheduling data.
[0044] The test method of the order scheduling system provided in this embodiment first collects real delivery personnel data, order data and geographic grid data within a predetermined time interval, and performs coordinate offset and identity conversion on the collected real scheduling state data to obtain virtual scheduling state data used for testing, thereby improving the efficiency of constructing test data, and making the constructed test data have a mapping relationship with the real data, so that the test data has a certain data query capability, and greatly enhances the simulation capability of the data. Secondly, by using a virtual scheduler to call virtual scheduling state data for stress testing, the scheduling system will not cause scheduling backlog problems to the real grid when performing stress testing, avoiding interference to online users caused by the testing process. Finally, by performing coordinate offset on the coordinate data, the test data and the real production data are naturally isolated, thereby achieving global scheduling and overcoming the problem of distortion in stress testing in local areas after database sharding.
[0045] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the implementation process of this embodiment, a test method of the order scheduling system is provided, such as Figure 2 As shown, the method comprises the following steps:
[0046] 201. Receive test configuration information, where the test configuration information includes a data collection period.
[0047] Specifically, the computer device may receive the test configuration information sent by the user before the stress test, wherein the test configuration information may include a data collection period, and the data collection period may be set as needed, such as once every 30 minutes, etc. Through the data collection period, the computer device may periodically collect scheduling state data and perform periodic stress testing. In addition, the test configuration information may also include other information, such as the length of the time interval for data collection, the test start time, and the test period, etc., which are not specifically limited in this embodiment.
[0048] 202. According to a data collection cycle, periodically collect dispatching state data within a predetermined time interval from a dispatching state database.
[0049] Specifically, the computer device can periodically collect the full amount of dispatch state data within a predetermined time interval from the dispatch state database according to the data collection cycle in the test configuration information. The dispatch state data includes delivery personnel data, order data and geographic grid data. The delivery personnel data includes delivery personnel location coordinate data, delivery personnel identification data and delivery personnel order acceptance ability and other state data. The order data includes order delivery location coordinate data, order receipt location coordinate data, order identification data and order status data and other state data. The geographic grid data includes geographic grid coordinate data, dispatch area pressure value and dispatch area weather status, geographic grid instantaneous status data and other data.
[0050] 203. Perform coordinate shifting on the full amount of geographic grid data within the distribution range to obtain virtual full amount of geographic grid data.
[0051] Specifically, the computer device can perform an overall coordinate offset on the full amount of geographic grid data within the delivery range, thereby obtaining a virtual full amount of geographic grid data, wherein the virtual full amount of geographic grid data has no intersection with the full amount of geographic grid data. For example, the coordinate latitudes of the full amount of geographic grids within the delivery range can be offset 1000 kilometers to the east.
[0052] 204. According to the coordinate offset of the full amount of geographic grid data, coordinate offset is performed on the coordinate data of the delivery person data, the order data and the geographic grid data in the dispatch state data.
[0053] Specifically, the computer device can perform a coordinate offset in the same direction and with the same offset on the coordinate data of the delivery person, the coordinate data of the order delivery location, the coordinate data of the order receipt location, and the geographic grid data in the collected dispatch state data according to the coordinate offset between the full geographic grid and the virtual geographic grid, thereby transferring the coordinate data of the real dispatch state data to the virtual full geographic grid. In this way, on the one hand, it can avoid conflicts between the arbitrarily set coordinate offset and the real coordinate data, and on the other hand, it is also convenient for testers to manage various types of coordinate data in the dispatch state data.
[0054] 205. Perform identity conversion on the delivery person data in the dispatch state data and the identity data in the order data according to a predetermined identity conversion rule.
[0055] Specifically, the computer device can perform identity conversion on the delivery person identification data and order identification data in the dispatch state data according to the pre-set identity conversion rules, such as adding the same prefix or suffix before all identification data. It can be understood that the conversion rules may be different depending on the type of identification data, and the present embodiment does not specifically limit the specific conversion method of the identification conversion rules. Through identity conversion, virtual identification data and real identification data can be distinguished to prevent the test data from interfering with online users. At the same time, it is also convenient to use the identity conversion rules to reverse the real identification data later, so that the virtual dispatch state data and the real dispatch state data have a certain mapping relationship, thereby improving the authenticity of the test data.
[0056] 206. Adapt and convert the state data in the virtual scheduling state data, and / or desensitize the user data in the virtual scheduling state data.
[0057] Specifically, the computer device can adapt and convert the state data in the dispatch state data, such as converting the order state or the instantaneous state of the geographic grid from an undeliverable state to a deliverable state, converting the order time from an undeliverable time to a deliverable time, etc. In this way, the unavailable data in the dispatch state data can be converted into available data in the virtual dispatch state data, thereby increasing the data test scope. Furthermore, the computer device can also desensitize the user data in the virtual dispatch state data, such as desensitizing the consignee's name and consignee's mobile phone number in the order data into virtual data, thereby ensuring the privacy and security of the test data.
[0058] 207. Integrate the delivery personnel data, order data and geographic grid data after coordinate offset and identification conversion to obtain virtual dispatch state data.
[0059] Specifically, the computer device can integrate the data of the delivery personnel, order data and geographic grid data after coordinate offset, identification conversion, adaptation conversion and desensitization processing to obtain virtual dispatch state data, wherein the virtual dispatch state data includes virtual delivery personnel data, virtual order data and virtual geographic grid data, etc. It can be understood that the virtual dispatch state data is constructed from the real dispatch state data and has a certain mapping relationship with the real dispatch state data, thus ensuring the comprehensiveness and authenticity of the stress test data and greatly reducing the difficulty of constructing the stress test data. Moreover, the generated virtual dispatch data is full rather than local area, which also avoids the test distortion problem caused by incomplete collection of data after database sharding.
[0060] 208. In response to the test instruction, the virtual dispatch state data is stored in a virtual dispatch state database, wherein the virtual dispatch state data includes virtual delivery person data, virtual order data and virtual geographic grid data.
[0061] Specifically, after the user initiates a stress test on the order scheduling system, the computer device will respond to the test instruction sent by the user and push the integrated virtual scheduling state data to the virtual scheduling state database. The virtual scheduling state database is different from the scheduling state database that stores the real scheduling state data. It is dedicated to storing virtual scheduling state data such as virtual delivery personnel data, virtual order data and virtual geographic grid data. When testing, all scheduling state data and process data generated by the virtual scheduler will be stored in the virtual scheduling state database, thereby completely isolating the virtual scheduling state data from the real scheduling state data, and avoiding the real scheduling state data from being interfered by the test.
[0062] 209. Using the virtual dispatcher, dispatch the virtual delivery personnel data and virtual order data according to the virtual geographic grid data, and store the data generated during the dispatch process into the virtual dispatch state database.
[0063] Specifically, after the test starts, the computer device can use the virtual scheduler to schedule virtual delivery personnel data and virtual order data according to the virtual geographic grid data, so as to assign each virtual order to each virtual delivery personnel. During the scheduling process, the computer device can also store the changed order status data, delivery personnel's order acceptance ability data, and geographic grid instantaneous status data in the virtual scheduling state database.
[0064] 210. In response to a data query request, reversely convert the identification data in the virtual scheduling state data, and query the scheduling basic data corresponding to the data query request in the scheduling basic database according to the reversely converted identification data.
[0065] Specifically, the computer device can access the scheduling basic database in response to the data query request generated in the scheduling process, wherein the scheduling basic database stores real scheduling basic data, which refers to non-state data. These data will not change with the change of time and the retrieval result, and mainly include delivery personnel basic data (such as delivery personnel level information), order basic data (such as delivery commodity information) and geographic grid basic data (such as the merchant information covered in the grid). When querying, the computer device will first reversely convert the identification data in the virtual scheduling state data according to the identification conversion rule, and then query the data corresponding to the request in the scheduling basic database according to the reversely converted identification data. In this way, the virtual scheduling process can be kept highly consistent with the real scheduling process, so that the test process has a very high simulation. At the same time, the scheduling basic data is the most difficult data to simulate. In this way, it is also possible to avoid constructing too much test data, thereby effectively improving the test efficiency and test effect.
[0066] 211. Analyze and process the virtual scheduling state data and the data generated during the scheduling process to obtain the test results of the order scheduling system.
[0067] Specifically, the computer equipment can analyze and process the scheduling state data and process data in the virtual scheduling state database, and obtain various scheduling parameters such as the scheduling efficiency and order matching degree of the order scheduling system based on the results of the analysis and processing. Finally, the test results of the order scheduling system are generated according to the various scheduling parameters and output and displayed.
[0068] The test method of the order scheduling system provided in this embodiment first effectively improves the flexibility of the test by configuring the test information, then improves the authenticity and comprehensiveness of the test data by constructing a full virtual geographic grid and performing coordinate offset and identification conversion on the scheduling state data, and finally uses the virtual scheduler to call the data in the virtual scheduling state database for testing, and queries the real scheduling basic data during the test process, further improving the simulation degree of the test and reducing the difficulty of constructing the test data. The above-mentioned test method uses a virtual scheduler and virtual scheduling state data to realize the full simulation of the test process, overcoming many of the most common defects in the stress test process, such as the difficulty of constructing test data, the low degree of test simulation, and the large interference with real data, and has wide applicability.
[0069] Further, in order to specifically illustrate the test method of the order scheduling system described in the above embodiments, this embodiment provides a specific application scenario of the test method of the order scheduling system. Figure 3The computer device shown in the figure includes a scheduling system and a data processing system, wherein the scheduling system includes two parts: a real scheduling module and a virtual scheduling module. In the real scheduling module, the scheduler schedules orders and delivery personnel according to the geographic grid information, and stores the scheduling state data and scheduling basic data generated by the scheduling in the scheduling state database and the scheduling basic database respectively. Further, the data processing system periodically collects the scheduling state data within a predetermined time interval from the scheduling state database according to a certain data collection cycle, and performs a series of cleaning processes such as coordinate offset, identification conversion, adaptation conversion and desensitization processing on the collected scheduling state data, and finally integrates the data together to obtain virtual scheduling state data. After the test starts, the data processing system responds to the test instruction and pushes the virtual scheduling state data to the virtual scheduling state database, and then the virtual scheduler schedules the orders and delivery personnel in the virtual scheduling state database according to the virtual geographic grid. In this process, the scheduling basic data is queried in the scheduling basic database as needed, and the scheduling state data is stored in the virtual scheduling state database. Finally, the data in the virtual scheduling state database is analyzed and processed to obtain the test results of the order scheduling system. The above test method utilizes a virtual scheduler and virtual scheduling state data to realize a full simulation of the test process, reduces the difficulty of constructing test data, and effectively improves the test efficiency and test simulation effect.
[0070] Further, as Figure 1 , Figure 2 The specific implementation of the method shown in the embodiment provides a test device for an order scheduling system, such as Figure 4 As shown, the device includes: a data acquisition module 31, a data processing module 32, and a pressure testing module 33.
[0071] The data collection module 31 can be used to collect dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data and geographic grid data;
[0072] The data processing module 32 may be used to perform coordinate shift on the coordinate data in the dispatch state data and perform identity conversion on the identity data in the dispatch state data to obtain virtual dispatch state data;
[0073] The stress test module 33 can be used to respond to the test instruction, use the virtual scheduler to call the virtual scheduling state data to perform stress testing, and obtain the test result of the order scheduling system.
[0074] In specific application scenarios, such as Figure 5As shown, the device also includes an information receiving module 34, which can be used to receive test configuration information, wherein the test configuration information includes a data collection cycle; the data collection module 31 can be specifically used to periodically collect scheduling state data within a predetermined time interval from the scheduling state database according to the data collection cycle.
[0075] In a specific application scenario, the data processing module 32 can also be used to perform coordinate offset on the full amount of geographic grid data within the distribution range to obtain virtual full amount of geographic grid data.
[0076] In a specific application scenario, the data processing module 32 can be used to perform coordinate offset on the coordinate data of the delivery person data, order data and geographic grid data in the dispatching state data according to the coordinate offset of the full amount of geographic grid data; perform identity conversion on the delivery person data in the dispatching state data and the identity data in the order data according to a predetermined identity conversion rule; perform data integration on the delivery person data, order data and geographic grid data after coordinate offset and identity conversion to obtain virtual dispatching state data.
[0077] In a specific application scenario, the data processing module 32 may also be used to perform adaptation conversion on the state data in the virtual scheduling state data; and / or perform desensitization processing on the user data in the virtual scheduling state data.
[0078] In a specific application scenario, the stress testing module 33 can be specifically used to respond to test instructions and store virtual scheduling state data in a virtual scheduling state database, where the virtual scheduling state data includes virtual delivery personnel data, virtual order data and virtual geographic grid data; use a virtual scheduler to schedule virtual delivery personnel data and virtual order data according to the virtual geographic grid data, and store the data generated during the scheduling process in the virtual scheduling state database; analyze and process the virtual scheduling state data and the data generated during the scheduling process to obtain test results of the order scheduling system.
[0079] In specific application scenarios, such as Figure 5 As shown, the device also includes a data query module 35, which can be used to respond to a data query request and perform a reverse conversion on the identification data in the virtual scheduling state data; and query the scheduling basic data corresponding to the data query request in the scheduling basic database according to the reverse converted identification data.
[0080] It should be noted that for other corresponding descriptions of the functional units involved in the test device for an order scheduling system provided in this embodiment, reference can be made to Figure 1 , Figure 2 The corresponding description in will not be repeated here.
[0081] Based on the above Figure 1 , Figure 2 The method shown in the embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned Figure 1 , Figure 2 The testing method of the order scheduling system is shown.
[0082] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product. The software product to be identified can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0083] Based on the above Figure 1 , Figure 2 The method shown, and Figure 4 and Figure 5 The test device embodiment of the order scheduling system shown in the figure, in order to achieve the above purpose, this embodiment also provides a physical device for testing the order scheduling system, which can be a personal computer, a server, a smart phone, a tablet computer, a smart watch, or other network devices, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above Figure 1 , Figure 2 The method shown.
[0084] Optionally, the physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0085] Those skilled in the art will appreciate that the physical device structure for testing an order scheduling system provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0086] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware of the physical device and the software resources to be identified, and supports the operation of the information processing program and other software and / or programs to be identified. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0087] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. The present solution first collects the dispatch state data within a predetermined time interval, wherein the dispatch state data includes the delivery person data, order data and geographic grid data, then performs coordinate offset on the coordinate data in the dispatch state data, performs identity conversion on the identification data in the dispatch state data, obtains the virtual dispatch state data, and finally responds to the test instruction, uses the virtual scheduler to call the virtual dispatch state data for stress testing, and obtains the test result of the order scheduling system. Compared with the prior art, the present solution can improve the efficiency of constructing test data, and make the constructed test data have a mapping relationship with the real data, so that the test data has a certain data query capability, greatly enhances the simulation capability of the data, and also makes the dispatch system not cause the scheduling backlog problem to the real grid when performing stress testing, thereby avoiding the interference of the test process to the online users, and also makes the test data and the real production data have natural isolation, so as to achieve global scheduling, and overcome the problem of local area stress testing distortion after database sharding.
[0088] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0089] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A testing method for an order scheduling system, characterized in that: The method comprises: Collecting dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data and geographic grid data; Performing coordinate shift on the coordinate data in the dispatching state data, and performing identity conversion on the identity data in the dispatching state data, to obtain virtual dispatching state data; In response to the test instruction, the virtual dispatching state data is called by the virtual dispatcher to perform stress testing to obtain the test result of the order dispatching system, which specifically includes: in response to the test instruction, the virtual dispatching state data is pushed to the virtual dispatching state database, and the virtual dispatcher dispatches the virtual orders and virtual delivery personnel in the virtual dispatching state database according to the virtual geographic grid; in response to the data query request, the identification data in the virtual dispatching state data is reversely converted, and the corresponding dispatching basic data is queried in the dispatching basic database according to the reversely converted identification data, and the dispatching basic data is stored in the virtual dispatching state database, wherein the dispatching basic data refers to data that does not change with the change of time and retrieval results, including delivery personnel basic data, order basic data and geographic grid basic data; the data in the virtual dispatching state database is analyzed and processed to obtain the test result of the order dispatching system.
2. The method according to claim 1, characterized in that Before collecting the dispatching state data within the predetermined time interval, the method further includes: Receiving test configuration information, wherein the test configuration information includes a data collection period; The collecting of the dispatching state data within a predetermined time interval includes: According to the data collection cycle, the dispatching state data within a predetermined time interval is periodically collected from the dispatching state database.
3. The method according to claim 1, characterized in that Before performing coordinate offset on the coordinate data in the scheduling state data, the method further includes: The coordinates of the full amount of geographic grid data within the distribution range are offset to obtain virtual full amount of geographic grid data.
4. The method according to claim 3, characterized in that The coordinate shifting of the coordinate data in the dispatching state data and the identification conversion of the identification data in the dispatching state data to obtain the virtual dispatching state data include: According to the coordinate offset of the full amount of geographic grid data, coordinate offset is performed on the coordinate data of the delivery person data, the order data and the geographic grid data in the dispatch state data; According to a predetermined identification conversion rule, identification conversion is performed on the delivery person data in the dispatch state data and the identification data in the order data; The delivery personnel data, order data and geographic grid data after the coordinate offset and identification conversion are integrated to obtain virtual dispatch state data.
5. The method according to claim 4, characterized in that Before integrating the delivery personnel data, order data and geographic grid data after coordinate offset and identification conversion to obtain virtual dispatch state data, the method further includes: Adapting and converting the state data in the virtual scheduling state data; and / or The user data in the virtual scheduling state data is desensitized.
6. The method according to claim 1, characterized in that In response to the test instruction, the virtual scheduling state data is called by the virtual scheduler to perform a stress test to obtain a test result of the order scheduling system, including: In response to the test instruction, the virtual dispatch state data is stored in a virtual dispatch state database, wherein the virtual dispatch state data includes virtual delivery person data, virtual order data and virtual geographic grid data; Using a virtual dispatcher, dispatching the virtual delivery person data and the virtual order data according to the virtual geographic grid data, and storing the data generated during the dispatching process in the virtual dispatching state database; The virtual scheduling state data and the data generated in the scheduling process are analyzed and processed to obtain the test results of the order scheduling system.
7. A test device for an order scheduling system, characterized in that: The device comprises: A data collection module, used to collect dispatch status data within a predetermined time interval, wherein the dispatch status data includes delivery personnel data, order data and geographic grid data; A data processing module, used for performing coordinate shift on the coordinate data in the dispatching state data, performing identity conversion on the identity data in the dispatching state data, and obtaining virtual dispatching state data; The stress testing module is used to respond to the test instruction and use the virtual scheduler to call the virtual scheduling state data for stress testing to obtain the test result of the order scheduling system, specifically including: in response to the test instruction, the virtual scheduling state data is pushed to the virtual scheduling state database, and the virtual scheduler schedules the virtual orders and virtual delivery personnel in the virtual scheduling state database according to the virtual geographic grid; in response to the data query request, the identification data in the virtual scheduling state data is reversely converted, and the corresponding scheduling basic data is queried in the scheduling basic database according to the reversely converted identification data, and the scheduling basic data is stored in the virtual scheduling state database, wherein the scheduling basic data refers to data that does not change with the change of time and retrieval results, including delivery personnel basic data, order basic data and geographic grid basic data; the data in the virtual scheduling state database is analyzed and processed to obtain the test result of the order scheduling system.
8. The device according to claim 7, characterized in that The device also includes an information receiving module, wherein: The information receiving module is used to receive test configuration information, wherein the test configuration information includes a data collection period; The data collection module is also used to periodically collect the scheduling state data within a predetermined time interval from the scheduling state database according to the data collection cycle.
9. The device according to claim 7, characterized in that The data processing module is also used to perform coordinate shifting on the full amount of geographic grid data within the distribution range to obtain virtual full amount of geographic grid data.
10. The device according to claim 9, characterized in that The data processing module is further configured to perform coordinate offset on the coordinate data of the delivery person data, order data and geographic grid data in the dispatch state data according to the coordinate offset of the full amount of geographic grid data; According to a predetermined identification conversion rule, identification conversion is performed on the delivery person data in the dispatch state data and the identification data in the order data; The delivery personnel data, order data and geographic grid data after the coordinate offset and identification conversion are integrated to obtain virtual dispatch state data.
11. The device according to claim 10, characterized in that The data processing module is further used to perform adaptation conversion on the state data in the virtual scheduling state data; and / or perform desensitization processing on the user data in the virtual scheduling state data.
12. The device according to claim 7, characterized in that The stress testing module is specifically used to store the virtual dispatching state data in a virtual dispatching state database in response to a test instruction, wherein the virtual dispatching state data includes virtual delivery person data, virtual order data and virtual geographic grid data; Using a virtual dispatcher, dispatching the virtual delivery person data and the virtual order data according to the virtual geographic grid data, and storing the data generated during the dispatching process in the virtual dispatching state database; The virtual scheduling state data and the data generated in the scheduling process are analyzed and processed to obtain the test results of the order scheduling system.
13. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
