CN113177000A - Order scheduling system testing method and device, storage medium and computer equipment - Google Patents

Order scheduling system testing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN113177000A
CN113177000A CN202110555146.2A CN202110555146A CN113177000A CN 113177000 A CN113177000 A CN 113177000A CN 202110555146 A CN202110555146 A CN 202110555146A CN 113177000 A CN113177000 A CN 113177000A
Authority
CN
China
Prior art keywords
data
scheduling
virtual
scheduling state
state data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110555146.2A
Other languages
Chinese (zh)
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.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai 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 Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN202110555146.2A priority Critical patent/CN113177000A/en
Publication of CN113177000A publication Critical patent/CN113177000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0838Historical data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Remote Sensing (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a testing method and device of an order scheduling system, a storage medium and computer equipment, and relates to the technical field of system testing. The method comprises the following steps: acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises distributor data, order data and geographic grid data; coordinate migration is carried out on coordinate data in the scheduling state data, identification conversion is carried out on identification data in the scheduling state data, and virtual scheduling state data are obtained; and responding to the test instruction, and calling the virtual scheduling state data by using the virtual scheduler to perform pressure test to obtain a test result of the order scheduling system. The method improves the efficiency of constructing the test data, enables the constructed test data and the real data to have a mapping relation, enables the test data to have certain data query capability, enhances the simulation capability of the data, avoids the interference of the test process to online users, and overcomes the problem of local area pressure test distortion.

Description

Order scheduling system testing method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of system testing technologies, and in particular, to a method and an apparatus for testing an order scheduling system, a storage medium, and a computer device.
Background
With the continuous development of internet technology, an order scheduling system is also continuously and rapidly developed, the order scheduling system can reasonably distribute orders to distributors, and the distributors can distribute articles corresponding to the orders to users, so that the users can obtain the required articles without going out. In order to further improve the work efficiency of the order scheduling system, developers often need to continuously update various functions in the system, and in order to ensure that the order scheduling system can still stably run for a long time after the functions are updated, the order scheduling system needs to be subjected to a pressure test.
In the prior art, the pressure test of the scheduling system is usually performed by selecting a city with a platform not opening formal services, and the purpose is to isolate test data from real user data, but after a database of the order scheduling system is fragmented according to geographical latitude, the pressure test in a certain fixed area has a serious distortion problem. In addition, before testing, a great deal of test data needs to be constructed by a tester, the constructed test data mainly comprises test rider data, test order data and the like, but the difficulty in artificially constructing the test data is high, the distortion degree is high, and the real data is used as the test data, so that a plurality of data cleaning and adapting actions are involved, the distortion also exists to a certain degree, and the interference to an online user is caused, for example, the order scheduling efficiency of a specific area is influenced, or a distributor sees a test order.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, a storage medium and a computer device for testing an order scheduling system, and mainly aims to solve the technical problems of high difficulty in constructing test data, high distortion degree of test results and high interference to online users of the order scheduling system.
According to a first aspect of the present invention, there is provided a method for testing an order scheduling system, the method comprising:
acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises distributor data, order data and geographic grid data;
coordinate migration is carried out on coordinate data in the scheduling state data, identification conversion is carried out on identification data in the scheduling state data, and virtual scheduling state data are obtained;
and responding to the test instruction, and calling the virtual scheduling state data by using the virtual scheduler to perform pressure test to obtain a test result of the order scheduling system.
Optionally, before the collecting the scheduling state data in the predetermined time interval, the method further includes: receiving test configuration information, wherein the test configuration information comprises a data acquisition period; collecting scheduling state data in a preset time interval, comprising: and periodically acquiring scheduling state data in a preset time interval from the scheduling state database according to the data acquisition period.
Optionally, before performing coordinate offset on the coordinate data in the scheduling state data, the method further includes: and carrying out coordinate offset on the total geographic grid data in the distribution range to obtain virtual total geographic grid data.
Optionally, performing coordinate offset on coordinate data in the scheduling state data, and performing identifier conversion on identifier data in the scheduling state data to obtain virtual scheduling state data, including: carrying out coordinate offset on the dispenser data, the order data and the coordinate data in the geographic grid data in the scheduling state data according to the coordinate offset of the full amount of geographic grid data; according to a preset identification conversion rule, carrying out identification conversion on the distributor data in the scheduling state data and the identification data in the order data; and carrying out data integration on the dispatcher data, the order data and the geographic grid data after coordinate deviation and identification conversion to obtain virtual scheduling state data.
Optionally, before performing data integration on the dispatcher data, the order data, and the geographic grid data after the coordinate offset and the identifier conversion to obtain the virtual scheduling state data, the method further includes: performing adaptation conversion on state data in the virtual scheduling state data; and/or desensitize processing of user data in the virtual scheduling state data.
Optionally, in response to the test instruction, the virtual scheduler calls the virtual scheduling state data to perform a pressure test, so as to obtain a test result of the order scheduling system, where the test result includes: responding to the test instruction, and storing virtual scheduling state data into a virtual scheduling state database, wherein the virtual scheduling state data comprise virtual distributor data, virtual order data and virtual geographic grid data; scheduling virtual distributor data and virtual order data according to the virtual geography grid data by using a virtual scheduler, and storing data generated in the scheduling process into a virtual scheduling state database; and analyzing and processing the virtual scheduling state data and the data generated in the scheduling process to obtain a test result of the order scheduling system.
Optionally, the invoking of the virtual scheduling state data by the virtual scheduler to perform the stress test further includes: responding to the data query request, and performing reverse conversion on the identification data in the virtual scheduling state data; and inquiring the scheduling basic data corresponding to the data query request in a scheduling basic database according to the reversely converted identification data.
According to a second aspect of the present invention, there is provided a test apparatus of an order scheduling system, the apparatus comprising:
the data acquisition module is used for acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises distributor data, order data and geographic grid data;
the data processing module is used for carrying out coordinate offset on coordinate data in the scheduling state data and carrying out identification conversion on identification data in the scheduling state data to obtain virtual scheduling state data;
and the pressure testing module is used for responding to the testing instruction, calling the virtual scheduling state data by using the virtual scheduler to perform pressure testing, and obtaining a testing result of the order scheduling system.
Optionally, the apparatus further includes an information receiving module, where the information receiving module is configured to receive test configuration information, where the test configuration information includes a data acquisition cycle; the data acquisition module is further used for periodically acquiring scheduling state data in a preset time interval from the scheduling state database according to the data acquisition period.
Optionally, the data processing module is further configured to perform coordinate offset on the full-scale geographic grid data in the distribution range to obtain virtual full-scale geographic grid data.
Optionally, the data processing module is further specifically configured to perform coordinate offset on the dispatcher data, the order data and the coordinate data in the geographic grid data in the scheduling state data according to the coordinate offset of the full amount of geographic grid data; according to a preset identification conversion rule, carrying out identification conversion on the distributor data in the scheduling state data and the identification data in the order data; and performing data integration on the distributor data, the order data and the geographic grid data after the coordinate deviation and the identification conversion to obtain virtual scheduling state data.
Optionally, the data processing module is further configured to perform adaptation conversion on state data in the virtual scheduling state data; and/or desensitize the user data in the virtual scheduling state data.
Optionally, the pressure testing module is specifically configured to respond to a test instruction, and store the virtual scheduling state data into a virtual scheduling state database, where the virtual scheduling state data includes virtual distributor data, virtual order data, and virtual geography grid data; scheduling the virtual distributor data and the virtual order data according to the virtual geography grid data by using a virtual scheduler, and storing data generated in the scheduling process into a virtual scheduling state database; and analyzing and processing the virtual scheduling state data and the data generated in the scheduling process to obtain a test result of the order scheduling system.
Optionally, the apparatus further includes a data query module, where the data query module is configured to respond to a data query request and perform reverse conversion on the identification data in the virtual scheduling state data; and inquiring the scheduling basic data corresponding to the data inquiry request in a scheduling basic database according to the identification data after the reverse conversion.
According to a third aspect of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the method of testing an order scheduling system as described above.
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 on the memory and executable on the processor, wherein the processor implements the method for testing the order scheduling system when executing the program.
According to the test method, the test device, the storage medium and the computer equipment of the order scheduling system, firstly, the virtual scheduling state data used for testing is obtained by collecting the real distributor data, the order data and the geographic grid data in a preset time interval and carrying out coordinate offset and identification conversion on the collected real scheduling state data, so that the efficiency of constructing the test data is improved, the constructed test data and the real data have a mapping relation, the test data has certain data query capability, and the simulation capability of the data is greatly enhanced. Secondly, the virtual scheduler is used for calling the virtual scheduling state data to perform pressure testing, so that the scheduling system can not cause scheduling backlog to a real grid during pressure testing, and interference caused by a testing process to an online user is avoided. Finally, coordinate migration is carried out on the coordinate data, so that the test data and the real production data have natural isolation, the global scheduling is achieved, and the problem of local area pressure measurement distortion after the database is fragmented is solved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart illustrating a testing method of an order scheduling system according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a testing method of another order scheduling system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a full-scale geographic grid of an order scheduling system according to an embodiment of the present invention;
fig. 4 is a schematic view illustrating an application scenario of a testing method of an order scheduling system according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram illustrating a testing apparatus of an order scheduling system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating a testing apparatus of another order scheduling system according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In one embodiment, as shown in fig. 1, a method for testing an order scheduling system is provided, which is described by taking the method as an example of being applied to a computer device such as a server, and includes the following steps:
101. and acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises dispatcher data, order data and geography grid data.
Specifically, before the stress test is performed on the order scheduling system, the computer device may collect full scheduling state data in a predetermined time interval from the scheduling state database, where the predetermined time interval may be set according to the user requirement, for example, set to be within 5 minutes or within 30 minutes of the current time; the dispatching state data refers to state data which is depended on in the dispatching process and mainly comprises dispatcher data, order data, geography grid data and the like, wherein the dispatcher data mainly comprises dispatcher position coordinate data and dispatcher identification data, and in addition, the dispatcher data can also comprise other state data such as dispatcher order taking capability and the like; the order data mainly comprises order delivery position coordinate data, order receiving position coordinate data and order identification data, and in addition, the order data also can comprise other stateful data such as order state data and the like; the geographic grid data mainly comprise geographic grid coordinate data, a scheduling area pressure value, a scheduling area weather state and other data, and in addition, the geographic grid data can also comprise other stateful data such as geographic grid instantaneous state data.
102. And carrying out coordinate offset on coordinate data in the scheduling state data, and carrying out identification conversion on identification data in the scheduling state data to obtain virtual scheduling state data.
Specifically, the computer device may store the collected scheduling state data in a large data wide table, so as to perform data cleaning and data integration on the collected scheduling state data. The data cleaning mainly comprises the steps of carrying out coordinate offset and identification conversion on scheduling state data, wherein the coordinate offset refers to the coordinate offset which is carried out in the same distance and direction on all coordinate data in the scheduling state data, including distributor position coordinate data, order delivery position coordinate data, order receiving position coordinate data and geographic grid coordinate data, and the geographic area after the coordinate offset is not in a scheduling range, and the purpose of the data cleaning is to parallelly transfer the scheduling state data from an actual geographic area to another geographic area which is not interfered with real data; the identification conversion refers to the conversion of all identification data in the scheduling state data in a unified rule, for example, the same prefix or suffix is added before all the identification data, and the purpose is to distinguish the virtual identification data from the real identification data to prevent the test data from interfering the online user, and meanwhile, the real identification data is conveniently solved by using the identification conversion rule subsequently, so that the virtual scheduling state data and the real scheduling state data have a certain mapping relationship, and the authenticity of the test data is improved. In addition, the data cleansing may further include performing adaptation conversion on the status data in the scheduling status data and/or performing desensitization processing on the user privacy data, and the like, which is not specifically limited herein.
Further, after the scheduling state data is cleaned, the scheduling state data obtained by cleaning the data can be integrated, so that a full amount of virtual scheduling state data is obtained, wherein the virtual scheduling state data comprises virtual distributor data, virtual order data, virtual geographic grid data and the like, and the generated virtual scheduling state data can be used for subsequent pressure testing of the scheduling system. It can be understood that the virtual scheduling state data is constructed by the real scheduling state data and has a certain mapping relation with the real scheduling state data, so that the comprehensiveness and the authenticity of the pressure test data are ensured, the construction difficulty of the pressure test data is greatly reduced, and the generated virtual scheduling data is full rather than a local area, so that the problem of test distortion caused by the incomplete acquired data after the database is fragmented is avoided.
103. And responding to the test instruction, and calling the virtual scheduling state data by using the virtual scheduler to perform pressure test to obtain a test result of the order scheduling system.
Specifically, after the user initiates a stress test on the order scheduling system, the computer device starts to perform the stress test in response to a test instruction sent by the user. After the test is started, the computer equipment firstly pushes the integrated virtual scheduling state data to the virtual scheduling state database, then uses a virtual scheduler different from the real scheduler to schedule and match the data in the virtual scheduling state database, stores the data generated in the scheduling process or the data with changed state in the scheduling process into the virtual scheduling state database, and analyzes and compares the scheduling condition after all the data are scheduled, and finally obtains the pressure test result of the order scheduling system. The virtual scheduler is used for scheduling the virtual scheduling state data to perform pressure testing, so that the testing process and the real scheduling process can be completely isolated, the interference of the testing process on an online user is avoided, and the situation that the testing data is superposed in the real data to cause backlog of the real scheduling data is also avoided.
According to the testing method of the order scheduling system, firstly, real dispatcher data, order data and geographic grid data in a preset time interval are collected, coordinate offset and identification conversion are carried out on the collected real scheduling state data, virtual scheduling state data used for testing are obtained, the efficiency of test data construction is improved, the constructed test data and the real data have a mapping relation, the test data have certain data query capability, and the data simulation capability is greatly enhanced. And secondly, the virtual scheduler is used for calling the virtual scheduling state data to perform pressure test, so that the scheduling system can not cause the problem of scheduling backlog on the real grid during pressure test, and the interference of the test process on online users is avoided. Finally, coordinate migration is carried out on the coordinate data, so that the test data and the real production data have natural isolation, the global scheduling is achieved, and the problem of local area pressure measurement distortion after the database is fragmented is solved.
Further, as a refinement and an extension of the specific implementation of the above embodiment, in order to fully illustrate the implementation process of the embodiment, a method for testing an order scheduling system is provided, as shown in fig. 2, the method includes the following steps:
201. and receiving test configuration information, wherein the test configuration information comprises a data acquisition period.
Specifically, the computer device may receive test configuration information sent by a user before the stress test, where the test configuration information may include a data acquisition period, and the data acquisition period may be set as needed, for example, set to be once in 30 minutes, and through the data acquisition period, the computer device may periodically acquire scheduling state data and perform the periodic stress test. In addition, the test configuration information may further include other information, such as a time interval length of data acquisition, a test start time, a test period, and the like, which is not specifically limited herein.
202. And periodically acquiring scheduling state data in a preset time interval from the scheduling state database according to the data acquisition period.
Specifically, the computer device may periodically collect, according to a data collection period in the test configuration information, full scheduling state data within a predetermined time interval from the scheduling state database. The scheduling state data comprises deliverer data, order data and geography grid data, the deliverer data comprises status data such as deliverer position coordinate data, deliverer identification data and deliverer order receiving capacity, the order data comprises status data such as order delivery position coordinate data, order receiving position coordinate data, order identification data and order state data, and the geography grid data comprises geography grid coordinate data, a scheduling area pressure value, a scheduling area weather state and geography grid instantaneous state data.
203. And carrying out coordinate offset on the total geographic grid data in the distribution range to obtain virtual total geographic grid data.
Specifically, the computer device may perform overall coordinate offset on the full-scale geographic grid data within the distribution range to obtain a virtual full-scale geographic grid data, where there is no intersection between the virtual full-scale geographic grid and the full-scale geographic grid. For example, as shown in FIG. 3, the coordinate latitudes of the full number of geographic grids within the delivery range may be collectively offset east by 1000 kilometers, such that real geographic grid A is in the sea and the corresponding virtual geographic grid A' is in the Pacific ocean.
204. And carrying out coordinate offset on the coordinate data in the dispatcher data, the order data and the geographic grid data in the scheduling state data according to the coordinate offset of the full amount of geographic grid data.
Specifically, the computer device may perform coordinate offset in the same direction and with the same offset on the dispatcher position coordinate data, the order delivery position coordinate data, the order receiving position coordinate data, and the geographic grid data in the collected scheduling state data according to the coordinate offset between the full-scale geographic grid and the virtual geographic grid, so as to transfer the coordinate data of the real scheduling state data to the virtual full-scale geographic grid. By the method, on one hand, the conflict between the coordinate offset which is randomly formulated and the real coordinate data can be avoided, and on the other hand, the testing personnel can manage various types of coordinate data in the scheduling state data conveniently.
205. And performing identification conversion on the distributor data in the scheduling state data and the identification data in the order data according to a preset identification conversion rule.
Specifically, the computer device may perform identifier conversion on the distributor identifier data and the order identifier data in the scheduling status data according to a preset identifier conversion rule, for example, add the same prefix or suffix to all the identifier data. It can be understood that, according to different types of the identification data, the conversion rules may be the same, and the specific conversion manner of the identification conversion rules is not specifically limited in this embodiment. Through identification conversion, virtual identification data and real identification data can be distinguished, so that interference of test data on an online user is prevented, meanwhile, the real identification data can be conveniently solved by utilizing an identification conversion rule in a follow-up mode, the virtual scheduling state data and the real scheduling state data have a certain mapping relation, and the authenticity of the test data is improved.
206. And performing adaptive conversion on the state data in the virtual scheduling state data, and/or performing desensitization processing on the user data in the virtual scheduling state data.
Specifically, the computer device may perform adaptive conversion on the status data in the scheduling status data, such as converting the order status or the geographic grid instantaneous status from the non-dispatchable status to the dispatchable status, converting the order time from the non-dispatchable time to the dispatchable time, and the like. Furthermore, the computer equipment can also perform desensitization combing on user data in the virtual scheduling state data, for example, desensitizing the name of the receiver and the mobile phone number of the receiver in the order data into virtual data, so that the privacy and the safety of the test data are ensured.
207. And carrying out data integration on the dispatcher data, the order data and the geographic grid data after coordinate deviation and identification conversion to obtain virtual scheduling state data.
Specifically, the computer device may perform data integration on the dispatcher data, the order data, and the geographic grid data after coordinate offset, identifier conversion, adaptation conversion, and desensitization processing to obtain virtual dispatch state data, where the virtual dispatch state data includes the virtual dispatcher data, the virtual order data, the virtual geographic grid data, and the like. It can be understood that the virtual scheduling state data is constructed by the real scheduling state data and has a certain mapping relation with the real scheduling state data, so that the comprehensiveness and the authenticity of the pressure test data are ensured, the construction difficulty of the pressure test data is greatly reduced, and the generated virtual scheduling data is full rather than a local area, so that the problem of test distortion caused by the incomplete acquired data after the database is fragmented is avoided.
208. And responding to the test instruction, and storing the virtual scheduling state data into a virtual scheduling state database, wherein the virtual scheduling state data comprises virtual distributor data, virtual order data and virtual geographic grid data.
Specifically, after the user initiates a stress test on the order scheduling system, the computer device will respond to a test instruction sent by the user and push the integrated virtual scheduling state data into the virtual scheduling state database. The virtual scheduling state database is different from a scheduling state database storing real scheduling state data, is specially used for storing virtual scheduling state data such as virtual distributor data, virtual order data and virtual geographic grid data, and stores all scheduling state data and generated process data scheduled by the virtual scheduler in the virtual scheduling state database when testing is performed, so that the virtual scheduling state data and the real scheduling state data are completely isolated, and the real scheduling state data are prevented from being interfered by the testing.
209. And scheduling the virtual distributor data and the virtual order data according to the virtual geography grid data by using a virtual scheduler, and storing the data generated in the scheduling process into a virtual scheduling state database.
Specifically, after the test is started, the computer device may schedule the virtual distributor data and the virtual order data according to the virtual geography grid data by using the virtual scheduler, so as to allocate each virtual order to each virtual distributor, and during the scheduling, the computer device may further store the changed order status data, the distributor order taking capability data, the geography grid instantaneous status data, and the like in the virtual scheduling state database.
210. And responding to the data query request, performing reverse conversion on the identification data in the virtual scheduling state data, and querying scheduling basic data corresponding to the data query request in a scheduling basic database according to the identification data subjected to reverse conversion.
Specifically, the computer device may access a scheduling base database in response to a data query request generated in a scheduling process, where the scheduling base database stores real scheduling base data, and the scheduling base data refers to non-stateful data, and these data do not change with changes in time and a scheduling result, and mainly include basic data of a distributor (such as distributor level information), basic data of an order (such as commodity delivery information), basic data of a geographic grid (such as merchant information included in a grid), and the like. During query, the computer device performs reverse conversion on the identification data in the virtual scheduling state data according to the identification conversion rule, and then queries data corresponding to the request in the scheduling base database according to the identification data after the reverse conversion. Through the mode, the virtual scheduling process and the real scheduling process can be kept highly consistent, so that the testing process has very high simulation, meanwhile, the scheduling basic data are data which are difficult to simulate, and through the mode, too much testing data can be avoided being constructed, and the testing efficiency and the testing effect are effectively improved.
211. And analyzing and processing the virtual scheduling state data and the data generated in the scheduling process to obtain a test result of the order scheduling system.
Specifically, the computer device may analyze and process the scheduling state data and the process data in the virtual scheduling state database, obtain scheduling efficiency, order matching degree and other scheduling parameters of the order scheduling system according to the analysis and processing result, and finally generate a test result of the order scheduling system according to the scheduling parameters and output and display the test result.
According to the testing method of the order scheduling system, firstly, testing information is configured, so that testing flexibility is effectively improved, then, reality and comprehensiveness of testing data are improved by constructing a full virtual geographic grid and carrying out coordinate offset and identification conversion on scheduling state data, finally, the virtual scheduler is used for calling data in a virtual scheduling state database for testing, real scheduling basic data are inquired in the testing process, the simulation degree of testing is further improved, and the difficulty in constructing the testing data is reduced. The test method realizes full simulation of the test process by utilizing the virtual scheduler and the virtual scheduling state data, overcomes the defects of high construction difficulty, low test simulation degree, high interference on real data and the like of the most common test data in the pressure test process, and has wide applicability.
Further, in order to specifically describe the testing method of the order scheduling system in the foregoing embodiments, this embodiment provides a specific application scenario of the testing method of the order scheduling system. As shown in fig. 4, the computer device includes a scheduling system and a data processing system, where the scheduling system includes a real scheduling module and a virtual scheduling module, and in the real scheduling module, a scheduler schedules orders and dispatchers according to geography grid information, and stores scheduling state data and scheduling basic data generated by scheduling in a scheduling state database and a scheduling basic database, respectively. Further, the data processing system periodically collects scheduling state data in a preset time interval from the scheduling state database according to a certain data collection period, carries out a series of cleaning treatments such as coordinate deviation, identification conversion, adaptation conversion and desensitization treatment on the collected scheduling state data, and finally integrates the data together to obtain the virtual scheduling state data. After the test is started, the data processing system responds to the test instruction, the virtual scheduling state data are pushed to the virtual scheduling state database, then the virtual scheduler schedules orders and dispatchers in the virtual scheduling state database according to the virtual geographic grid, in the process, the scheduling basic data are inquired in the scheduling basic database according to needs, the scheduling state data are stored in the virtual scheduling state database, and finally the data in the virtual scheduling state database are analyzed and processed to obtain the test result of the order scheduling system. The test method realizes full simulation of the test process by using the virtual scheduler and the virtual scheduling state data, reduces the construction difficulty of the test data, and effectively improves the test efficiency and the test simulation effect.
Further, as a specific implementation of the method shown in fig. 1 and fig. 2, this embodiment provides a testing apparatus for an order scheduling system, as shown in fig. 5, the apparatus includes: a data acquisition module 31, a data processing module 32 and a pressure testing module 33.
The data acquisition module 31 may be configured to acquire scheduling state data within a predetermined time interval, where the scheduling state data includes distributor data, order data, and geographic grid data;
the data processing module 32 is configured to perform coordinate offset on coordinate data in the scheduling state data, and perform identifier conversion on identifier data in the scheduling state data to obtain virtual scheduling state data;
and the pressure testing module 33 is configured to respond to the test instruction, and call the virtual scheduling state data by using the virtual scheduler to perform a pressure test, so as to obtain a test result of the order scheduling system.
In a specific application scenario, as shown in fig. 6, the apparatus further includes an information receiving module 34, where the information receiving module 34 is configured to receive test configuration information, where the test configuration information includes a data acquisition period; the data collection module 31 is specifically configured to collect the scheduling state data in the predetermined time interval periodically from the scheduling state database according to the data collection period.
In a specific application scenario, the data processing module 32 may be further configured to perform coordinate offset on the total geographic grid data in the distribution range to obtain virtual total geographic grid data.
In a specific application scenario, the data processing module 32 may be specifically configured to perform coordinate offset on the dispatcher data, the order data, and the coordinate data in the geographic grid data in the scheduling status data according to the coordinate offset of the full amount of geographic grid data; according to a preset identification conversion rule, carrying out identification conversion on the distributor data in the scheduling state data and the identification data in the order data; and carrying out data integration on the dispatcher data, the order data and the geographic grid data after coordinate deviation and identification conversion to obtain virtual scheduling state data.
In a specific application scenario, the data processing module 32 may be further configured to perform adaptation conversion on state data in the virtual scheduling state data; and/or desensitize processing of user data in the virtual scheduling state data.
In a specific application scenario, the pressure testing module 33 is specifically configured to respond to a testing instruction and store virtual scheduling state data into a virtual scheduling state database, where the virtual scheduling state data includes virtual distributor data, virtual order data, and virtual geography grid data; scheduling virtual distributor data and virtual order data according to the virtual geography grid data by using a virtual scheduler, and storing data generated in the scheduling process into a virtual scheduling state database; and analyzing and processing the virtual scheduling state data and the data generated in the scheduling process to obtain a test result of the order scheduling system.
In a specific application scenario, as shown in fig. 6, the apparatus further includes a data query module 35, where the data query module 35 is configured to respond to a data query request and perform reverse conversion on identification data in the virtual scheduling state data; and inquiring the scheduling basic data corresponding to the data query request in a scheduling basic database according to the reversely converted identification data.
It should be noted that other corresponding descriptions of the functional units related to the testing apparatus of the order scheduling system provided in this embodiment may refer to the corresponding descriptions in fig. 1 and fig. 2, and are not described herein again.
Based on the above methods shown in fig. 1 and fig. 2, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the testing method of the order scheduling system shown in fig. 1 and fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, and the software product to be identified may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, or the like), and include several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method according to the implementation scenarios of the present application.
Based on the method shown in fig. 1 and fig. 2 and the testing apparatus embodiment of the order scheduling system shown in fig. 5 and fig. 6, in order to achieve the above object, this embodiment further provides an entity device for testing the order scheduling system, which may specifically be a personal computer, a server, a smart phone, a tablet computer, a smart watch, or other network devices, and the entity device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing the computer program to implement the above-mentioned methods as shown in fig. 1 and fig. 2.
Optionally, the entity device may further include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a Display screen (Display), an input unit such as a keypad (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 (e.g., WI-FI interface), etc.
Those skilled in the art will appreciate that the physical device structure of the test of the order scheduling system provided in the present embodiment does not constitute a limitation to the physical device, and may include more or less components, or combine some components, or arrange different components.
The storage medium may further include an operating system and a network communication module. The operating system is a program for managing the hardware of the above-mentioned entity 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 for realizing communication among components in the storage medium and communication with other hardware and software in the information processing entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. The method comprises the steps of firstly collecting scheduling state data in a preset time interval, wherein the scheduling state data comprise distributor data, order data and geography grid data, then carrying out coordinate offset on coordinate data in the scheduling state data, carrying out identification conversion on identification data in the scheduling state data to obtain virtual scheduling state data, and finally responding to a test instruction, utilizing a virtual scheduler to call the virtual scheduling state data to carry out pressure test to obtain a test result of an order scheduling system. Compared with the prior art, the scheme can improve the efficiency of constructing test data, and the constructed test data and the real data have a mapping relation, so that the test data has certain data query capability, the simulation capability of the data is greatly enhanced, and the problem of scheduling backlog on the real grid can not be caused when the scheduling system performs pressure measurement, thereby avoiding the interference of the test process to online users, and further ensuring that the test data and the real production data have natural isolation, thereby realizing global scheduling, and overcoming the problem of local area pressure measurement distortion after the database is fragmented.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A method for testing an order scheduling system, the method comprising:
acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises dispatcher data, order data and geographic grid data;
coordinate migration is carried out on coordinate data in the scheduling state data, identification conversion is carried out on identification data in the scheduling state data, and virtual scheduling state data are obtained;
and responding to the test instruction, and calling the virtual scheduling state data by using the virtual scheduler to perform pressure test to obtain a test result of the order scheduling system.
2. The method of claim 1, wherein prior to collecting the scheduled state data within the predetermined time interval, the method further comprises:
receiving test configuration information, wherein the test configuration information comprises a data acquisition period;
the collecting of the scheduling state data in the preset time interval comprises the following steps:
and periodically acquiring scheduling state data in a preset time interval from the scheduling state database according to the data acquisition period.
3. The method of claim 1, wherein prior to the coordinate shifting the coordinate data in the scheduling state data, the method further comprises:
and carrying out coordinate offset on the total geographic grid data in the distribution range to obtain virtual total geographic grid data.
4. The method according to claim 3, wherein the performing coordinate offset on the coordinate data in the scheduling state data and performing identifier transformation on the identifier data in the scheduling state data to obtain virtual scheduling state data comprises:
carrying out coordinate offset on the dispenser data, the order data and the coordinate data in the geographic grid data in the scheduling state data according to the coordinate offset of the full amount of geographic grid data;
according to a preset identification conversion rule, carrying out identification conversion on the distributor data in the scheduling state data and the identification data in the order data;
and performing data integration on the distributor data, the order data and the geographic grid data after the coordinate deviation and the identification conversion to obtain virtual scheduling state data.
5. The method of claim 4, wherein before performing data integration on the converted coordinate offset and identification deliverer data, order data, and geography grid data to obtain virtual dispatch state data, the method further comprises:
performing adaptation conversion on state data in the virtual scheduling state data; and/or
And desensitizing the user data in the virtual scheduling state data.
6. The method of claim 1, wherein the responding to the test instruction, using the virtual scheduler to call the virtual scheduling state data for pressure testing, and obtaining the test result of the order scheduling system comprises:
responding to a test instruction, and storing the virtual scheduling state data into a virtual scheduling state database, wherein the virtual scheduling state data comprises virtual distributor data, virtual order data and virtual geographic grid data;
scheduling the virtual distributor data and the virtual order data according to the virtual geography grid data by using a virtual scheduler, and storing data generated in the scheduling process into a virtual scheduling state database;
and analyzing and processing the virtual scheduling state data and the data generated in the scheduling process to obtain a test result of the order scheduling system.
7. The method of claim 1 or 6, wherein said invoking the virtual scheduler state data for stress testing with the virtual scheduler further comprises:
responding to a data query request, and performing reverse conversion on identification data in the virtual scheduling state data;
and inquiring the scheduling basic data corresponding to the data inquiry request in a scheduling basic database according to the identification data after the reverse conversion.
8. A test apparatus for an order scheduling system, the apparatus comprising:
the data acquisition module is used for acquiring scheduling state data in a preset time interval, wherein the scheduling state data comprises distributor data, order data and geographic grid data;
the data processing module is used for carrying out coordinate offset on coordinate data in the scheduling state data and carrying out identification conversion on identification data in the scheduling state data to obtain virtual scheduling state data;
and the pressure testing module is used for responding to the testing instruction, calling the virtual scheduling state data by using the virtual scheduler to perform pressure testing, and obtaining a testing result of the order scheduling system.
9. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 7.
10. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by the processor.
CN202110555146.2A 2021-05-21 2021-05-21 Order scheduling system testing method and device, storage medium and computer equipment Pending CN113177000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110555146.2A CN113177000A (en) 2021-05-21 2021-05-21 Order scheduling system testing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110555146.2A CN113177000A (en) 2021-05-21 2021-05-21 Order scheduling system testing method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN113177000A true CN113177000A (en) 2021-07-27

Family

ID=76929514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110555146.2A Pending CN113177000A (en) 2021-05-21 2021-05-21 Order scheduling system testing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113177000A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112359A1 (en) * 2007-10-24 2009-04-30 Sanguinetti Thomas V System, method, and computer program product for realization of online virtual objects
US9513888B1 (en) * 2014-01-30 2016-12-06 Sprint Communications Company L.P. Virtual preloads
CN108763009A (en) * 2018-06-06 2018-11-06 驭势(上海)汽车科技有限公司 Server stress test method, system, equipment and computer readable storage medium
CN109684211A (en) * 2018-12-18 2019-04-26 北京顺丰同城科技有限公司 A kind of order dispatch system pressure test method and device based on shop dimension
CN112052152A (en) * 2019-06-06 2020-12-08 北京京东尚科信息技术有限公司 Simulation test method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112359A1 (en) * 2007-10-24 2009-04-30 Sanguinetti Thomas V System, method, and computer program product for realization of online virtual objects
US9513888B1 (en) * 2014-01-30 2016-12-06 Sprint Communications Company L.P. Virtual preloads
CN108763009A (en) * 2018-06-06 2018-11-06 驭势(上海)汽车科技有限公司 Server stress test method, system, equipment and computer readable storage medium
CN109684211A (en) * 2018-12-18 2019-04-26 北京顺丰同城科技有限公司 A kind of order dispatch system pressure test method and device based on shop dimension
CN112052152A (en) * 2019-06-06 2020-12-08 北京京东尚科信息技术有限公司 Simulation test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
架构师小秘圈: "滴滴全链路压测解决之道", pages 1 - 9, Retrieved from the Internet <URL:https://blog.csdn.net/g6U8W7p06dCO99fQ3/article/details/79119269?ops_request_misc=&request_id=&biz_id=102&utm_term=%E5%8E%8B%E5%8A%9B%E6%B5%8B%E8%AF%95%20%E5%9D%90%E6%A0%87%E5%81%8F%E7%A7%BB%20&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-3-79119269.142^v96^pc_search_result_base7&spm=1018.2226.3001.4187> *

Similar Documents

Publication Publication Date Title
CN108289121B (en) Marketing information pushing method and device
CN109309596B (en) Pressure testing method and device and server
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN104573042B (en) The determination method and device of POI
CN109242288B (en) Performance data matching method and system
CN104579854A (en) Crowdsourcing test method
CN111865622B (en) Cloud service metering and charging method and system based on rule engine cluster
CN111479321B (en) Grid construction method and device, electronic equipment and storage medium
CN111460279A (en) Information recommendation method and device, storage medium and computer equipment
CN103246606A (en) Method and system for testing performances of ESB (enterprises service bus) platform
CN108737486A (en) Information-pushing method and device
CN111311193B (en) Method and device for configuring public service resources
CN111782901A (en) Data acquisition method and device
CN111431818A (en) Cross-domain request traffic distribution method and device, storage medium and computer equipment
CN108520329B (en) Accurate automatic allocation method and device for second-hand house clients based on broker portrait
CN114022196A (en) Advertisement putting method, device, electronic device and storage medium
CN109886041B (en) Real-time data acquisition method and device
CN111428197B (en) Data processing method, device and equipment
CN113177000A (en) Order scheduling system testing method and device, storage medium and computer equipment
CN110287070B (en) ESB special protocol interface test method, server and computer readable storage medium
CN111984519B (en) Test method and device for service system
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN115220131A (en) Meteorological data quality inspection method and system
CN109559013A (en) Method for testing risk and device, electronic equipment and readable storage medium storing program for executing based on trivial games
CN109447293B (en) Product data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination