Saas-oriented order data construction platform and order data construction method

The SaaS-oriented order data construction platform addresses the complexity of regression testing on SaaS travel platforms by providing efficient tenant and environment management, enabling rapid order type creation and status switching for enhanced testing efficiency.

CN119248661APending Publication Date: 2025-01-03BEIJING BAILONG MAYUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411264472.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Regression testing on SaaS travel platforms is complicated due to isolated tenant data and the need for high code writing skills, making it difficult to switch between tenants and environments, which affects testing efficiency.

Method used

A SaaS-oriented order data construction platform with modules for tenant configuration management, order creation, query, and status transfer, allowing one-key switching and efficient data assembly into HTTP format for rapid scenario execution.

Benefits of technology

The platform simplifies regression testing by enabling quick creation and management of order types across multiple tenants and environments, reducing construction time from minutes to seconds and enhancing testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248661A_ABST
    Figure CN119248661A_ABST
Patent Text Reader

Abstract

The invention provides a saas-oriented order data construction platform and an order data construction method, and the platform comprises a database, a cache library, a platform server, a tenant configuration management module, an order creation module, an order query module, and an order state circulation module. The server is connected with a database, a cache library, a tenant configuration management module, an order creation module, an order query module and an order state circulation module; according to the method, the platform is constructed by using the order data, so that a tester can create order types of different tenants and environments only by selecting an order placing tenant and inputting order information, the requirements of daily iterative regression testing of order links can be met quickly and efficiently, the problem that only one tenant and one environment can be tested in a set of scene sets is solved, and the test efficiency is improved. And one-key processing can be carried out on scenes of frequent operation of other businesses, so that the construction duration of related test data is reduced from a minute level to a second level, and the test efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an order data construction platform, in particular to a SaaS-oriented order data construction platform, and belongs to the technical field of regression testing. Background Art

[0002] Regression testing is a testing method used in software development to verify whether the code modified or added to the software has introduced new errors and whether the existing functions still work properly. It is an important part of the software testing process, especially after requirements are updated, functional improvements or bug fixes. The main purpose of regression testing is to ensure the stability and reliability of the software and prevent newly introduced code changes from destroying existing functions.

[0003] The travel SaaS platform is a system that serves multiple companies. Companies that rent the system are called tenants. A SaaS travel system has many tenants. The data between tenants is isolated and each tenant can configure the data according to their own requirements. Therefore, the system data of each tenant is different, which makes testing difficult for testers and the test operation too complicated.

[0004] When performing regression testing on the SaaS platform, since the platform is based on an interface to build a scenario set, testers are required to have extremely high code writing skills; based on the interface automation platform, testers are required to write test cases corresponding to different ordering scenarios. Since it relies on the passenger side to place orders, it is relatively troublesome for testers to use, and a set of scenario sets cannot switch tenants and environments. Therefore, an order data construction platform and order data construction method for SaaS are proposed. Summary of the invention

[0005] In view of this, the present invention provides a SaaS-oriented order data construction platform and an order data construction method to solve or alleviate the technical problems existing in the prior art and at least provide a beneficial choice.

[0006] The technical solution of the embodiment of the present invention is implemented as follows: a SaaS-oriented order data construction platform includes a database, a cache library, a platform server, a tenant configuration management module, an order creation module, an order query module and an order status transfer module.

[0007] The server connects to the database, cache, tenant configuration management module, order creation module, order query module, and order status transfer module;

[0008] Among them, the tenant configuration management module is used to store corresponding variable values ​​according to tenant and test environment dimensions, and each value is associated with environment and tenant information;

[0009] Among them, the create order module is used to create the corresponding order type according to the order parameters;

[0010] Among them, the order query module is used to query various types of orders by calling the order service, and operate the order in the order details;

[0011] Among them, the order status flow module is used to provide a one-key switching function to achieve switching between different order statuses.

[0012] Further preferably, the order parameters include but are not limited to order type, payment method and driver matching mode.

[0013] Further preferably, the operation function is an operation function centered around the order dimension, specifically including driver binding, passenger cancellation, order status flow, and passenger payment.

[0014] A method for constructing order data comprises the following steps:

[0015] S1. Use bs structure to build order data construction platform framework;

[0016] S2. Add order creation module, order query module and order status transfer module to complete the construction of order data construction platform;

[0017] S3. Select the ordering environment and tenant through the order data construction platform, and enter the order information;

[0018] S4. Create the corresponding order type according to the order parameters;

[0019] S5. The order data construction platform extracts data and assembles the data into http format;

[0020] S6. Initiate a call to the target service through http and feed the result back to the order data construction platform.

[0021] Further preferably, in S1, the server of the order data construction platform is developed using Java language, and the front end is developed using umi+antd+ant design pro.

[0022] Further preferably, in S2, by creating an order module, an order query module and an order status transfer module, the order data construction platform has the functions of tenant configuration management, order creation, order query and order status transfer.

[0023] Further preferably, in S3, the order information includes the order start point and end point, vehicle selection type and dispatch method;

[0024] Among them, the car type is express or special car;

[0025] Among them, the scheduling methods are grabbing orders, binding orders or system scheduling.

[0026] Further preferably, in S4, an order creation module of the order data construction platform is used to create an order type according to order parameters.

[0027] Further preferably, in S5, the order data construction platform extracts data from the database and the cache according to the variable value;

[0028] The assembled http format includes the domain name, path, request body and request header.

[0029] Further preferably, in S6, the target services include an order system, a management and control system, an asset system and a financial system.

[0030] Since the embodiment of the present invention adopts the above technical solution, it has the following advantages: the present invention utilizes the order data to construct a platform, so that the tester only needs to select the ordering tenant and enter the order information to create order types for different tenants and environments, so as to quickly and efficiently meet the needs of daily iterative regression testing of the order link, and solves the problem that a set of scenario sets can only test one tenant and one environment. It can also perform one-click processing on scenarios with frequent operations of other businesses, so that the construction time of related test data is reduced from minutes to seconds, greatly improving the testing efficiency.

[0031] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is a flowchart of the order data construction method of the present invention;

[0034] Figure 2 A schematic diagram of the operation interface of the tenant configuration management module of the present invention;

[0035] Figure 3 A schematic diagram of the operation interface for creating an order module for the present invention;

[0036] Figure 4 This is a schematic diagram of the operation interface of the order status flow module of the present invention;

[0037] Figure 5 It is a schematic diagram of the process of regression testing of the present invention;

[0038] Figure 6 The architecture diagram of the order data construction platform of the present invention;

[0039] Figure 7 It is a flow chart of an order link in the prior art;

[0040] Figure 8 This is the architecture diagram of the http format of the present invention;

[0041] Fig. 9 This is a schematic diagram of HTTP calling other services in the present invention. DETAILED DESCRIPTION

[0042] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0043] It should be noted that the terms "first", "second", "symmetrical", "array", etc. are only used to distinguish between description and position description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the definition of "first", "symmetrical", etc. can explicitly or implicitly include one or more of these features; similarly, when the number of certain features is not limited in the form of words such as "two" or "three", it should be noted that this feature also explicitly or implicitly includes one or more feature quantities.

[0044] Express: refers to a relatively economical online car-hailing service, which uses relatively ordinary private cars and provides point-to-point travel services. The characteristics of express are relatively low prices and suitable for daily commuting needs;

[0045] Private car: refers to the mid-to-high-end online car-hailing service. The vehicles used are often more comfortable and clean, and the service recipients pay more attention to the quality of travel. When using private car services, passengers can enjoy a more personalized and high-quality travel experience;

[0046] Grab the order: Grab the order mode refers to the way drivers accept orders through online ride-hailing platforms. When a passenger places a travel demand, nearby drivers can see the order information through the platform's client and choose whether to grab the order. The grab order mode gives drivers a certain degree of freedom. Drivers can choose whether to accept the order based on their location, status, and willingness. This model can effectively improve the enthusiasm of drivers, but it may also lead to inefficient matching of some orders, especially during peak order periods;

[0047] Order Binding: Order binding usually refers to a binding relationship between the driver and the platform, that is, the driver promises to accept all orders assigned by the platform within a certain period of time when registering, but does not have the right to actively choose orders. This method allows the platform to better control the allocation of orders and ensure that the driver has a stable workload, but it will reduce the driver's flexibility and autonomy;

[0048] System dispatch: System dispatch is a method used by online ride-hailing platforms to allocate orders through algorithms and artificial intelligence technology. The platform will automatically assign orders to the best driver based on factors such as the driver's location, driving direction, order distance, and estimated delivery time. This method can improve the efficiency of order matching, reduce empty driving rates, and increase the satisfaction of passengers and drivers.

[0049] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0050] Embodiment 1

[0051] like Figure 2-6 As shown, an embodiment of the present invention provides a SaaS-oriented order data construction platform, including a database, a cache library, a platform server, a tenant configuration management module, an order creation module, an order query module and an order status circulation module, and the server is connected to the database, the cache library, the tenant configuration management module, the order creation module, the order query module and the order status circulation module;

[0052] The tenant configuration management module is used to store the corresponding variable values ​​according to the tenant and test environment dimensions. Each value is associated with the environment and tenant information. The operation interface is as follows: Figure 2 As shown;

[0053] The create order module is used to create the corresponding order type according to the order parameters. The operation interface is as follows: Figure 3 As shown;

[0054] Among them, the order query module is used to query various types of orders by calling the order service, and operate the order in the order details;

[0055] Among them, the order status flow module is used to provide a one-key switching function to achieve switching between different order statuses. The operation interface is as follows Figure 4 shown.

[0056] In one embodiment, order parameters include but are not limited to order type, payment method, and driver matching mode.

[0057] In one embodiment, the operation function is an operation function centered around the order dimension, specifically including driver binding, passenger cancellation, order status flow, and passenger payment.

[0058] Embodiment 2

[0059] Take the selection of express type and order grabbing dispatching method as an example. Figure 1 As shown, the present invention further provides an order data construction method based on the first embodiment, comprising the following steps:

[0060] S1. Use bs structure to build order data construction platform framework;

[0061] S2. Add order creation module, order query module and order status transfer module to complete the construction of order data construction platform;

[0062] S3. Select the ordering environment and tenant through the order data construction platform, and enter the order information;

[0063] S4. Create the corresponding order type according to the order parameters;

[0064] S5. The order data construction platform extracts data and assembles the data into http format;

[0065] S6. Initiate a call to the target service via http and feed the result back to the order data construction platform;

[0066] Order link Figure 7 As shown in the figure, testers need to do regression testing in each iteration, which is usually performed through interface scenario automation. It is necessary to build multiple automated scenario cases, and the scenario can only be a single tenant dimension scenario, which is also more troublesome to use. This platform can configure the ordering environment and ordering tenants to perform multi-environment and multi-tenant ordering scenarios, which can meet the needs of testers more quickly and efficiently.

[0067] Specific usage scenarios: The user logs in to the platform, selects the environment and tenant to place an order, adds specific parameters such as order type, order starting point, end point, selects the type of car, dispatch method and then selects the corresponding driver, clicks to place an order, and the platform will call various services to complete the order. The order status can be selected as the passenger placing the order or the order being accepted successfully. The subsequent steps such as the arrival of the driver can be carried out through the status flow. The order can be closed at any time during this period, and other scenarios required by other businesses can also be inserted.

[0068] In one embodiment, in S1, the server of the order data construction platform is developed using Java language, and the front end is developed using umi+antd+ant des i gn pro;

[0069] Adopting bs structure, the server is developed in Java language, and the front end is developed in umi+antd+ant design pro to build the order data construction platform framework, so that testers can log in and use it through the browser, improving ease of use;

[0070] The BS (Browser / Server) structure is a network application architecture in which the server is responsible for data processing and storage, while the client is responsible for the display of the user interface and interaction with the user. In the BS structure, the server is responsible for running the core logic of the application, processing business requests, and returning data to the client. The client is responsible for sending requests to the server, receiving data returned by the server, and displaying it to the user. This architecture can provide more flexible and scalable network applications, while reducing the burden on the server and improving the security of data processing and transmission;

[0071] Java is an object-oriented programming language that absorbs the advantages of C++ and abandons the difficult-to-understand concepts of multiple inheritance and pointers in C++. Therefore, Java is powerful and easy to use. Java can be used to write various applications, including desktop applications, Web applications, distributed systems, and embedded system applications.

[0072] Umi is a pluggable enterprise-level React application framework that provides React application development with routing management, build configuration, plug-in mechanism and other enterprise-level application functions. Umi's core features include routing-level code splitting, dynamic import, etc., which help improve application performance and development efficiency;

[0073] Ant Design, or Ant Design, is a React-based UI component library developed by the Ant Financial team, providing an enterprise-level UI solution. It contains a large number of React components, covering common UI elements from layout, navigation, data display to form validation. Ant Design also provides features such as theme customization, internationalization, and Accessibility, making it very suitable for building enterprise-level mid- and back-end applications.

[0074] Ant Design Pro is a React backend template based on Ant Design. It provides a complete solution, including layout, components, routing, menus, etc., which can help developers quickly build backend applications. It integrates many commonly used business components and tools, such as data visualization, form builder, etc., which greatly improves development efficiency.

[0075] In one embodiment, in S2, by creating an order module, an order query module, and an order status transfer module, the order data construction platform is provided with functions of tenant configuration management, order creation, order query, and order status transfer;

[0076] By creating order modules, order query modules and order status flow modules, the order data construction platform can cope with the order data construction needs of multi-tenants, multi-environment and complex scenarios.

[0077] In one embodiment, in S3, the order information includes the order start and end points, the vehicle selection type, and the dispatch method;

[0078] Among them, the car type is express;

[0079] Among them, the dispatching method is grabbing orders;

[0080] By selecting the order tenant and entering the order information, you can subsequently create order types for different tenants and environments based on the selected and entered information to meet the needs of daily iterative regression testing of the order link.

[0081] In one embodiment, in S4, a create order module of the order data construction platform is used to create an order type according to order parameters;

[0082] Create corresponding order types according to order parameters such as order type, payment method, driver matching mode, etc. The specific operation interface is as follows: Figure 3 shown.

[0083] In one embodiment, in S5, the order data construction platform extracts data from the database and the cache according to the variable value;

[0084] Among them, the assembled http format includes domain name, path, request body and request header;

[0085] like Figure 8 As shown, the http request consists of four parts: domain name, path, request body, and request header. The path remains unchanged, while other parts will have variable content.

[0086] In one embodiment, in S6, the target services include an order system, a management and control system, an asset system, and a financial system;

[0087] like Fig. 9 As shown, the http interface information is retrieved from the database and assembled into an http request according to the tenant and environment, and the services of other businesses are called via http and the results are returned to the travel platform.

[0088] Embodiment 3

[0089] Taking the selection of the type of special car and the order binding dispatching mode as an example, the present invention further provides an order data construction method based on the first embodiment, comprising the following steps:

[0090] S1. Use bs structure to build order data construction platform framework;

[0091] S2. Add order creation module, order query module and order status transfer module to complete the construction of order data construction platform;

[0092] S3. Select the ordering environment and tenant through the order data construction platform, and enter the order information;

[0093] S4. Create the corresponding order type according to the order parameters;

[0094] S5. The order data construction platform extracts data and assembles the data into http format;

[0095] S6. Initiate a call to the target service via http and feed back the result to the order data construction platform;

[0096] Specific usage scenarios: The user logs in to the platform, selects the environment and tenant to place an order, adds specific parameters such as order type, order starting point, end point, selects the type of car, dispatch method and then selects the corresponding driver, clicks to place an order, and the platform will call various services to complete the order. The order status can be selected as the passenger placing the order or the order being accepted successfully. The subsequent steps such as the arrival of the driver can be carried out through the status flow. The order can be closed at any time during this period, and other scenarios required by other businesses can also be inserted.

[0097] In one embodiment, in S1, the server of the order data construction platform is developed using Java language, and the front end is developed using umi+antd+ant des i gn pro;

[0098] The bs structure is adopted, the server is developed in Java language, and the front end is developed in umi+antd+ant des ign pro to build an order data construction platform framework, so that testers can log in and use it through a browser to improve usability.

[0099] In one embodiment, in S2, by creating an order module, an order query module, and an order status transfer module, the order data construction platform is provided with functions of tenant configuration management, order creation, order query, and order status transfer;

[0100] By creating order modules, order query modules and order status flow modules, the order data construction platform can cope with the order data construction needs of multi-tenants, multi-environment and complex scenarios.

[0101] In one embodiment, in S3, the order information includes the order start and end points, the vehicle selection type, and the dispatch method;

[0102] Among them, the car type is a special car;

[0103] Among them, the dispatching method is binding order;

[0104] By selecting the order tenant and entering the order information, you can subsequently create order types for different tenants and environments based on the selected and entered information to meet the needs of daily iterative regression testing of the order link.

[0105] In one embodiment, in S4, a create order module of the order data construction platform is used to create an order type according to order parameters;

[0106] Create corresponding order types according to order parameters such as order type, payment method, driver matching mode, etc. The specific operation interface is as follows: Figure 3 shown.

[0107] In one embodiment, in S5, the order data construction platform extracts data from the database and the cache according to the variable value;

[0108] Among them, the assembled http format includes domain name, path, request body and request header;

[0109] like Figure 8 As shown, the http request consists of four parts: domain name, path, request body, and request header. The path remains unchanged, while other parts will have variable content.

[0110] In one embodiment, in S6, the target services include an order system, a management and control system, an asset system, and a financial system;

[0111] like Fig. 9 As shown, the http interface information is retrieved from the database and assembled into an http request according to the tenant and environment, and the services of other businesses are called via http and the results are returned to the travel platform.

[0112] Embodiment 4

[0113] Taking the selection of express type and system scheduling mode as an example, the present invention further provides an order data construction method based on the first embodiment, comprising the following steps:

[0114] S1. Use bs structure to build order data construction platform framework;

[0115] S2. Add order creation module, order query module and order status transfer module to complete the construction of order data construction platform;

[0116] S3. Select the ordering environment and tenant through the order data construction platform, and enter the order information;

[0117] S4. Create the corresponding order type according to the order parameters;

[0118] S5. The order data construction platform extracts data and assembles the data into http format;

[0119] S6. Initiate a call to the target service via http and feed back the result to the order data construction platform;

[0120] Specific usage scenarios: The user logs in to the platform, selects the environment and tenant to place an order, adds specific parameters such as order type, order starting point, end point, selects the type of car, dispatch method and then selects the corresponding driver, clicks to place an order, and the platform will call various services to complete the order. The order status can be selected as the passenger placing the order or the order being accepted successfully. The subsequent steps such as the arrival of the driver can be carried out through the status flow. The order can be closed at any time during this period, and other scenarios required by other businesses can also be inserted.

[0121] In one embodiment, in S1, the server of the order data construction platform is developed using Java language, and the front end is developed using umi+antd+ant des i gn pro;

[0122] The bs structure is adopted, the server is developed in Java language, and the front end is developed in umi+antd+ant des ign pro to build an order data construction platform framework, so that testers can log in and use it through a browser to improve usability.

[0123] In one embodiment, in S2, by creating an order module, an order query module, and an order status transfer module, the order data construction platform is provided with functions of tenant configuration management, order creation, order query, and order status transfer;

[0124] By creating order modules, order query modules and order status flow modules, the order data construction platform can cope with the order data construction needs of multi-tenants, multi-environment and complex scenarios.

[0125] In one embodiment, in S3, the order information includes the order start and end points, the vehicle selection type, and the dispatch method;

[0126] Among them, the car type is express;

[0127] Among them, the scheduling mode is system scheduling;

[0128] By selecting the order tenant and entering the order information, you can subsequently create order types for different tenants and environments based on the selected and entered information to meet the needs of daily iterative regression testing of the order link.

[0129] In one embodiment, in S4, a create order module of the order data construction platform is used to create an order type according to order parameters;

[0130] Create corresponding order types according to order parameters such as order type, payment method, driver matching mode, etc. The specific operation interface is as follows: Figure 3 shown.

[0131] In one embodiment, in S5, the order data construction platform extracts data from the database and the cache according to the variable value;

[0132] Among them, the assembled http format includes domain name, path, request body and request header;

[0133] like Figure 8 As shown, the http request consists of four parts: domain name, path, request body, and request header. The path remains unchanged, while other parts will have variable content.

[0134] In one embodiment, in S6, the target services include an order system, a management and control system, an asset system, and a financial system;

[0135] like Fig. 9 As shown, the http interface information is retrieved from the database and assembled into an http request according to the tenant and environment, and the services of other businesses are called via http and the results are returned to the travel platform.

[0136] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A SaaS-oriented order data construction platform, including a database, a cache library, a platform server, a tenant configuration management module, an order creation module, an order query module and an order status transfer module, characterized in that: The server connects to the database, cache, tenant configuration management module, order creation module, order query module, and order status transfer module; Among them, the tenant configuration management module is used to store corresponding variable values ​​according to tenant and test environment dimensions, and each value is associated with environment and tenant information; Among them, the create order module is used to create the corresponding order type according to the order parameters; Among them, the order query module is used to query various types of orders by calling the order service, and operate the order in the order details; Among them, the order status flow module is used to provide a one-key switching function to achieve switching between different order statuses.

2. The SaaS-oriented order data construction platform according to claim 1, characterized in that: The order parameters include but are not limited to order type, payment method and driver matching mode.

3. The SaaS-oriented order data construction platform according to claim 1, characterized in that: The operation functions are operation functions centered around the order dimension, specifically including driver binding, passenger cancellation, order status flow, and passenger payment.

4. An order data construction method for a SaaS-oriented order data construction platform according to any one of claims 1 to 3, characterized in that: The following steps are involved: S1. Use bs structure to build order data construction platform framework; S2. Add order creation module, order query module and order status transfer module to complete the construction of order data construction platform; S3. Select the ordering environment and tenant through the order data construction platform, and enter the order information; S4. Create the corresponding order type according to the order parameters; S5. The order data construction platform extracts data and assembles the data into http format; S6. Initiate a call to the target service through http and feed the result back to the order data construction platform.

5. The order data construction method according to claim 4, characterized in that: In S1, the server of the order data construction platform is developed using Java language, and the front end is developed using umi+antd+ant design pro.

6. The order data construction method according to claim 4, characterized in that: In S2, by creating an order module, an order query module and an order status transfer module, the order data construction platform has the functions of tenant configuration management, order creation, order query and order status transfer.

7. The order data construction method according to claim 4, characterized in that: In S3, the order information includes the order start and end point, vehicle selection type and dispatch method; Among them, the car type is express or special car; Among them, the scheduling methods are grabbing orders, binding orders or system scheduling.

8. The order data construction method according to claim 4, characterized in that: In S4, a creation order module of the platform is constructed through order data, and an order type is created according to order parameters.

9. The order data construction method according to claim 4, characterized in that: In S5, the order data construction platform extracts data from the database and cache according to the variable value; The assembled http format includes the domain name, path, request body and request header.

10. The order data construction method according to claim 4, characterized in that: In S6, the target services include an order system, a management and control system, an asset system, and a financial system.