Method for supporting regression test by using test city configuration information
By determining whether the user or driver is in the test whitelist on the server side of the online ride-hailing platform, replacing the real city information with the test city information, and obtaining the configuration information, the problem of incomplete testing is solved and a richer and more flexible testing scenario is achieved. Omissions are reduced.
Patent Information
- Application Number
- CN202410753334.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-03
AI Technical Summary
In the production environment of the online ride-hailing platform, when testers use test users and test drivers to conduct regression testing, it is difficult to fully cover the real city configuration information, resulting in incomplete testing and omissions.
Through a method, when the user or driver requests configuration information from the server, it is judged whether it is in the test whitelist. If so, the real city information is replaced with the test city information to obtain the test city configuration information. If not, the real city is used. information to ensure the acquisition of configuration information.
The virtual test city dimension is added, the test scenarios are enriched and flexible, the omission of test points is reduced, and the completeness of the test is improved.
Smart Images

Figure CN118587073A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of online car-hailing platforms, and specifically relates to a method for supporting regression testing using test city configuration information. Background Art
[0002] In the online car-hailing scenario, users place orders from the online car-hailing platform, and drivers accept orders and carry out subsequent service processes. When testers regress or test in the production environment, they use dedicated test users and test drivers to test in real cities, which can only cover scenarios under real city configuration information. The test and regression scenarios are incomplete and easy to leave behind tests.
[0003] To this end, the present invention designs a method for supporting regression testing using test city configuration information. Summary of the invention
[0004] The object of the present invention is to provide a method for supporting regression testing using test city configuration information to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for supporting regression testing using test city configuration information, the specific steps comprising:
[0006] S1: The user or driver makes a test operation request on the customer service end;
[0007] S2: After receiving the configuration information request from the user or driver, the server determines whether the user and driver are in the test whitelist. If not, execute step S5; if yes, execute the subsequent process.
[0008] S3: Change the real city information requested by the user or driver to the test city information;
[0009] S4: Use the test city information to obtain the background configuration information, and determine whether to configure the test city configuration information. If yes, execute step S6; if no, execute the subsequent process;
[0010] S5: Use the real city information to obtain background configuration information;
[0011] S6: Return configuration information to the user or driver;
[0012] S7: End.
[0013] Preferably, in step S2, if a user or driver is added to the test whitelist, he or she is considered to be a test user or test driver.
[0014] Preferably, if a user or driver needs to regress or test in a production environment, the user or driver can be added to a test whitelist.
[0015] Preferably, the purpose of step S4 is to use the test city configuration information first if it exists, and to use the real city to obtain the configuration information if it does not exist.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention is a method for adding virtual test city dimension configuration information to satisfy the needs of testers for online regression and testing. When a user or driver joins the test whitelist, he or she is considered a test user or driver. When the test user or driver requests configuration information, the test city is first used to obtain the background configuration information. If the test city configuration information exists, it is used first. If not, the real city is used to obtain the configuration information. The test scenarios are richer and more flexible, reducing the problems caused by missing test points. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] See also Figure 1 The present invention provides a technical solution: a method for supporting regression testing using test city configuration information; if regression or testing is required in a production environment, users and drivers are added to a test whitelist; if the real city configuration information cannot meet the test requirements, the corresponding configuration information of the test city dimension is added in the background; the specific steps include:
[0020] S1: The user or driver makes an operation request on the customer service end;
[0021] S2: After receiving the configuration information request from the user or driver, the server determines whether the user and driver are in the test whitelist. If not, execute step S5; if yes, execute the subsequent process.
[0022] S3: Change the real city information requested by the user or driver to the test city information;
[0023] S4: Use the test city information to obtain the background configuration information, and determine whether to configure the test city configuration information. If yes, execute step S6; if no, execute the subsequent process;
[0024] S5: Use the real city information to obtain background configuration information;
[0025] S6: Return configuration information to the user or driver;
[0026] S7: End.
[0027] In this embodiment, preferably, in step S2, if a user or driver is added to the test whitelist, he or she is considered to be a test user or test driver.
[0028] In this embodiment, preferably, if the user or driver needs to regress or test in the production environment, the user or driver can be added to the test whitelist.
[0029] In this embodiment, preferably, the purpose of step S4 is to use the test city configuration information first if it exists, and then use the real city to obtain the configuration information if it does not exist.
[0030] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for supporting regression testing using test city configuration information, characterized in that: The specific steps include: S1: The user or driver makes a test operation request on the customer service end; S2: After receiving the configuration information request from the user or driver, the server determines whether the user and driver are in the test whitelist. If not, execute step S5; if yes, execute the subsequent process. S3: Change the real city information requested by the user or driver to the test city information; S4: Use the test city information to obtain the background configuration information, and determine whether to configure the test city configuration information. If yes, execute step S6; if no, execute the subsequent process; S5: Use the real city information to obtain background configuration information; S6: Return configuration information to the user or driver; S7: End.
2. A method for supporting regression testing using test city configuration information according to claim 1, characterized in that: In step S2, if a user or driver is added to the test whitelist, he or she is considered to be a test user or test driver.
3. A method for supporting regression testing using test city configuration information according to claim 1, characterized in that: If a user or driver needs to regress or test in the production environment, the user or driver can be added to the test whitelist.
4. A method for supporting regression testing using test city configuration information according to claim 1, characterized in that: The purpose of step S4 is to use the test city configuration information first if it exists, and then use the real city to obtain the configuration information if it does not exist.
