WO2023125706A1 - Test method and system for mileage order generation of battery swapping vehicle, device and medium - Google Patents
Test method and system for mileage order generation of battery swapping vehicle, device and medium Download PDFInfo
- Publication number
- WO2023125706A1 WO2023125706A1 PCT/CN2022/142964 CN2022142964W WO2023125706A1 WO 2023125706 A1 WO2023125706 A1 WO 2023125706A1 CN 2022142964 W CN2022142964 W CN 2022142964W WO 2023125706 A1 WO2023125706 A1 WO 2023125706A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- mileage
- vehicle
- simulated
- simulation
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/70—Energy storage systems for electromobility, e.g. batteries
Definitions
- the present invention relates to the technical field of electric vehicles, in particular to a test method, system, equipment and medium for generating mileage orders for electric vehicles.
- the battery exchange vehicle needs to actually enter the station and perform data interaction with the battery exchange site.
- the staff After the staff confirms the relevant information of the vehicle, the staff and the owner Use their respective software to manually scan codes to generate retail consumption mileage orders. Since such a test process is carried out at the actual power exchange site, not only are there many steps, but it will seriously affect the actual business of the power exchange site and reduce the operational efficiency of the power exchange site. As far as the test itself is concerned, the progress of R&D and testing is also hindered by the inability to efficiently generate mileage orders.
- the technical problem to be solved by the present invention is to overcome the fact that in the prior art, the entire process of generating mileage orders at the battery exchange site for testing the battery exchange vehicle needs to be completed by manual participation at the site of the test battery exchange site, resulting in low test efficiency and affecting the battery exchange station. Defects in normal operation provide a test method, system, equipment and medium for generating mileage orders for battery replacement vehicles.
- the invention provides a test method for generating a mileage order for a battery exchange vehicle, comprising the following steps:
- the vehicle entry simulation information including vehicle identification simulation information and vehicle mileage simulation information;
- This solution effectively restores the application scenarios and generation process of mileage orders, and tests the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely detection of related software and hardware problems or faults; at the same time, the fully automated remote testing process greatly improves The test efficiency of the mileage order not only meets the requirements for upgrading and debugging the relevant software version, but also prevents the normal operation of the test battery exchange site from being disturbed.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; the step of generating a simulated mileage order according to the simulated bill information and the simulated payment voucher information includes:
- a resource transfer operation is performed on the user account corresponding to the simulated payment credential information to generate the simulated mileage order.
- This solution uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of vehicle mileage information sources, and timely Find problem nodes.
- the vehicle mileage simulation information includes target purchase mileage information corresponding to the vehicle; the step of generating a simulated mileage order according to the simulated bill information and the simulated payment voucher information includes:
- a resource transfer operation is performed on the user account corresponding to the simulated payment credential information to generate the simulated mileage order.
- This solution uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and timely verify various pricing standards and preferential standards, so that the pricing department can make timely adjustments.
- the step of sending the simulated vehicle entry information to the target power exchange site it further includes:
- first feedback information is used to characterize the station-side service abnormality of the target power swap site; the second feedback information is used to characterize the target power swap site
- the cloud service of the site is abnormal.
- This solution effectively detects problematic nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that the corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
- the prompt test results include:
- This solution judges the test results of simulated mileage orders, especially the key station-side services and cloud services in the power exchange site, and generates targeted fault information when a fault occurs, which helps relevant personnel to maintain and repair in time .
- the step further includes:
- This solution detects the simulation information of the vehicle entering the station to ensure the smooth execution of the subsequent simulated mileage order test process, avoiding test failure due to data errors and affecting the normal progress of the test.
- the simulated vehicle entry information also includes identification information of the station,
- the target power swapping site is determined according to the identification information of the swapping station.
- This solution can be applied to different specified swapping stations by providing a variety of identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
- the present invention also provides a test system for generating a mileage order for a battery exchange vehicle, including:
- the input module is used to receive the input vehicle entry simulation information, and the vehicle entry simulation information includes vehicle identification simulation information and vehicle mileage simulation information;
- a sending module configured to send the simulated vehicle entry information to the target power exchange site
- An acquisition module configured to acquire simulated bill information and simulated payment voucher information generated by the target power exchange site according to the simulated vehicle entry information
- a generating module configured to generate a simulated mileage order according to the simulated bill information and the simulated payment voucher information
- Prompt module used to prompt test results.
- This solution effectively restores the application scenarios and generation process of mileage orders, and tests the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely detection of related software and hardware problems or faults; at the same time, the fully automated remote testing process greatly improves The test efficiency of the mileage order not only meets the requirements for upgrading and debugging the relevant software version, but also prevents the normal operation of the test battery exchange site from being disturbed.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information;
- the generating module includes:
- a first resource transfer information determining unit configured to determine resource transfer information according to the historical mileage simulation information and the current mileage simulation information
- the first order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment credential information, so as to generate the simulated mileage order.
- This solution uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of vehicle mileage information sources, and timely Find problem nodes.
- the vehicle mileage simulation information includes target purchase mileage information corresponding to the vehicle; the generating module includes:
- a second resource transfer information determining unit configured to determine resource transfer information according to the target purchase mileage information
- the second order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment credential information, so as to generate the simulated mileage order.
- This solution uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and timely verify various pricing standards and preferential standards, so that the pricing department can make timely adjustments.
- test system also includes:
- a feedback information acquisition module configured to acquire first feedback information and/or second feedback information; wherein, the first feedback information is used to represent the station-side service abnormality of the target power exchange site; the second feedback information is used The cloud service representing the target power exchange site is abnormal.
- This solution effectively detects problematic nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that the corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
- the judging module is specifically used to judge whether the mileage order is valid
- This solution judges the test results of simulated mileage orders, especially the key station-side services and cloud services in the power exchange site, and generates targeted fault information when a fault occurs, which helps relevant personnel to maintain and repair in time .
- test system also includes:
- the detection module is used to detect whether the simulated information of the vehicle entering the station meets the requirements of the parameter format
- This solution detects the simulation information of the vehicle entering the station to ensure the smooth execution of the subsequent simulated mileage order test process, avoiding test failure due to data errors and affecting the normal progress of the test.
- the simulation information of the vehicle entering the station also includes the identification information of the swapping station, and the test system further includes:
- a station determining module configured to determine the target power swapping station according to the identification information of the swapping station.
- This solution can be applied to different specified swapping stations by providing a variety of identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
- the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor.
- the processor executes the computer program, the above-mentioned mileage order of the battery-swapping vehicle is realized. Generated test methods.
- This solution implements the test method of generating the mileage order of the battery-swapping vehicle through electronic equipment, realizes the application scenario and generation process of effectively restoring the mileage order, and tests the various links involved in the generation of the mileage order in a targeted manner, which is helpful for timely discovery of related issues.
- the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned test method for generating a mileage order for a battery-swapping vehicle is realized.
- This solution uses the computer program stored in the computer-readable storage medium to be called and executed when needed, realizing the application scenario and generation process of effectively restoring the mileage order, and testing the various links involved in the generation of the mileage order in a targeted manner, which is helpful Timely detection of relevant software and hardware problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
- the positive and progressive effect of the present invention lies in: the test method, system, equipment and medium for generating the mileage order of the battery-swapping vehicle of the present invention send the simulation information of the vehicle entering the station to the target battery-swapping site, so that the latter can generate simulated billing information accordingly and simulated payment voucher information, and then generate simulated mileage orders and obtain test results, which can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of relevant software and hardware Problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery replacement sites from being disturbed.
- FIG. 1 is a flow chart of a test method for generating a mileage order for a battery-swapping vehicle in Embodiment 1 of the present invention.
- Fig. 2 is a block diagram of a test system for generating a mileage order for a battery-swapping vehicle in Embodiment 2 of the present invention.
- Fig. 3 is a block diagram of a preferred embodiment of a test system for generating a mileage order for a battery-swapping vehicle in Embodiment 2 of the present invention.
- FIG. 4 is a structural block diagram of an electronic device according to Embodiment 3 of the present invention.
- the mileage order refers to the consumption certificate generated during the consumption behavior of the battery replacement vehicle at the battery replacement station.
- the mileage order is generated by the battery exchange vehicle entering the battery exchange site, and the vehicle sends an on-board message to the station server at the battery exchange site through Tbox (a vehicle box with a communication function with its own operating system).
- Tbox a vehicle box with a communication function with its own operating system.
- the station-side server pushes vehicle information such as vehicle message information and license plate recognition equipment information to the operator APP (application program) used by the station staff, and the staff conducts on-site exchanges with the vehicle based on the received vehicle information.
- vehicle information such as vehicle message information and license plate recognition equipment information
- operator APP application program
- this embodiment specifically provides a test method for generating a mileage order for a battery swap vehicle, including the following steps:
- the test method for generating the mileage order of the battery exchange vehicle can be implemented on a page-type test platform with user interaction function.
- the test platform communicates with the station server of the battery exchange site to be tested, and the mileage order Information interaction options for the build process.
- intermediate data involved in the process of generating mileage orders entered into the test platform its sources include but are not limited to input by testers, or automatic generation, and remote reading from other terminals; the above data should meet the requirements of intermediate data
- the data format can be pre-cleaned or compared and regulated after input.
- the concept of the present invention is not limited by the above-mentioned test platform; the method of generating simulated data corresponding to the intermediate data in the embodiment is only an example and does not limit the present invention.
- the simulation information of the vehicle entering the station in step S1 may be directly input by the user or automatically generated according to preset data rules input by the user.
- Vehicle entry simulation information includes but is not limited to vehicle identification simulation information and vehicle mileage simulation information, wherein vehicle identification simulation information includes but is not limited to vehicle license plate information or vehicle VIN code (Vehicle Identification Number, vehicle identification code, that is, vehicle chassis number ) etc. can uniquely represent the identification information of a certain vehicle.
- vehicle identification simulation information includes but is not limited to vehicle license plate information or vehicle VIN code (Vehicle Identification Number, vehicle identification code, that is, vehicle chassis number ) etc. can uniquely represent the identification information of a certain vehicle.
- Vehicle mileage simulation information can be input by the user or automatically generated.
- ODO optical character recognition
- vehicle BMS Battery Management System, battery management system
- Step S2 sends the simulated vehicle entry information to the target power exchange station, so that the target power exchange station can process according to the simulated vehicle entry information, and return the relevant intermediate data for generating mileage orders.
- Processing the simulated vehicle entry information can Including but not limited to cloud servers and station-side servers of target power exchange sites.
- step S2 it also includes:
- the simulation information of the vehicle entering the station is detected, and if it meets the parameter format requirements, step S2 is executed; otherwise, corresponding prompt information is generated.
- the simulation information of the vehicle entering the station can be input by the user on the platform; the input information required by the parameter format includes but is not limited to the license plate number, battery exchange station, channel number, station terminal number, number of vehicles in line for battery exchange, and order mileage Count and so on.
- the station number of the vehicle entering the station, the license plate number of the vehicle entering the station cannot be empty, and must be a vehicle entering the network; the channel of the vehicle entering the station cannot be empty, etc.
- test platform can also detect the connection information, For example, the station number, address domain name and port number of the power exchange site.
- the connection information For example, the station number, address domain name and port number of the power exchange site.
- the simulated information of the vehicle entering the station also includes the identification information of the station,
- step S2 it also includes: determining the target power swapping station according to the identification information of the swapping station.
- the identification information of the swapping station in this embodiment includes but is not limited to the name of the swapping station, the number of the swapping station, etc.
- screening can be provided according to variables such as operating time and the number of replaceable batteries; it can also be combined with map display, by map point
- map display by map point
- the coordinate range obtained by operations such as selection and frame selection is used to comprehensively determine the identification information of the swap station.
- This embodiment can be applied to different designated swapping stations by providing diversified identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
- Step S3 obtains the simulated payment voucher information sent by the target power exchange site; for the aforementioned application scenarios, the simulated bill information can be used to simulate the payment demand information in the operator APP, such as payment amount, collection account, etc.; the simulated payment voucher information is available It is used to simulate the payment voucher in the client APP, such as the payment account information corresponding to the QR code information, so that step S3 can simulate the operation of the operator scanning the code for the user in the existing application scenario.
- the simulated bill information can be used to simulate the payment demand information in the operator APP, such as payment amount, collection account, etc.
- the simulated payment voucher information is available It is used to simulate the payment voucher in the client APP, such as the payment account information corresponding to the QR code information, so that step S3 can simulate the operation of the operator scanning the code for the user in the existing application scenario.
- Step S4 can be used to simulate the payment operation performed by the operator after the user scans the code and simulate the generation of the mileage order in the above-mentioned existing application scenario.
- the actual payment operation can be performed according to the payment amount and collection account in the simulated bill information and the payment account in the simulated payment voucher information, and a simulated mileage order can be generated according to the payment operation result.
- the simulated mileage order includes but is not limited to both payers Information, payment time, payment amount, etc.; preferably, for the generated simulated mileage orders, a query function can be provided in the above test platform, so that testers can call back to check.
- step S5 detects and prompts the test result according to whether the simulated mileage order is normally generated or not, and whether the parameters in the generated simulated mileage order meet the expected results.
- the replacement data parameters
- the preset replacement result can be used as an identifier in the corresponding process. For example, in step S4, if the simulated bill information and the simulated payment voucher information are incorrect or cannot be generated and the payment cannot be realized, the payment amount of the simulated mileage order can be set to 0.01 yuan as an identification.
- the simulated bill information and simulated payment credential information obtained in step S3 do not meet the preset data requirements, they may be set as corresponding identification data.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; step S4 includes:
- the payment amount of the order is determined according to the newly added mileage, that is, the resource transfer information, and the newly added mileage is obtained by deducting the historical mileage information from the current mileage information; among them, the current mileage information is usually provided by the vehicle in real time; and
- the historical mileage information can be stored in the cloud server, so that different station servers can read the historical mileage information corresponding to the last time a mileage order was generated for a battery replacement vehicle.
- historical simulation mileage information and current mileage simulation information are respectively set, so that the source of vehicle mileage information can be tested more flexibly than obtaining vehicle mileage information generated by direct simulation.
- step S5 reports possible error numbers in the cloud according to the intermediate test data with the added mileage being zero.
- the current mileage information uploaded by the vehicle can be retrieved from the station side of the power exchange site as the simulated current mileage information.
- the historical simulated mileage information can be set to a special value, and the current mileage simulation information can be set to zero, so that the newly added mileage is the special value, such as 1000 kilometers .
- step S5 reports possible error numbers at the station side according to the intermediate test data of the newly added mileage.
- This embodiment uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of the vehicle mileage information source, and Find problem nodes in time.
- the vehicle mileage simulation information includes the target purchase mileage information corresponding to the vehicle;
- Step S4 includes:
- This embodiment is aimed at a mileage order consumption method in the pre-sale mode, and determines the resource transfer information according to the acquired target purchase mileage information; specifically, the resource transfer information can be combined and calculated according to the target purchase mileage information, pricing rules, and preferential activity information. , to determine resource transfer information. For example, the amount to be paid is accumulated according to the target purchase mileage and segment pricing rules, and the coupon amount is deducted to obtain resource transfer information.
- This implementation mode uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and check various pricing standards and preferential standards in time, so that the pricing department can make timely adjustments.
- step S2 it also includes:
- the first feedback information is used to indicate the station-side service abnormality of the target power exchange site; the second feedback information is used to indicate the cloud service abnormality of the target power exchange site.
- the information processing and interaction of the power exchange site usually includes not only the local station-side services, but also cloud services for storing cross-site big data.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information, wherein the current mileage information is sent to the station service by the vehicle; the historical mileage information is stored in the cloud service, In this way, different station-side services can read the historical mileage information corresponding to the last time a mileage order was generated for a battery exchange vehicle.
- the first feedback information and/or the second feedback information are respectively obtained for the feedback information after sending the vehicle entry information; wherein, the first feedback information is used to represent the station-end service abnormality of the target power exchange site; the second The feedback information is used to represent the cloud service exception of the target power exchange site; for example, when the station-side service is abnormal, return "station-side service authentication exception" to the call interface, and when the cloud service is abnormal, return the error parameter corresponding to the cloud exception to the call interface.
- This implementation mode effectively detects problem nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
- step S5 includes:
- the output information in the simulated mileage order content can be compared with the expected information, and judgment can be made according to the comparison result.
- the expected information corresponding to the above output information can be obtained according to the preset rules of the simulation test. If the output information matches the expected information, it will prompt that the test has passed; if it does not match, a fault prompt will be generated. For example, if the first feedback information is obtained from the power exchange station after sending the vehicle entry information, it will prompt the station-side service failure.
- This implementation method judges the test results of the simulated mileage order, especially the key station-side services and cloud services in the power exchange site. When a fault occurs, targeted fault information is generated to help relevant personnel maintain it in a timely manner. repair.
- the test method for generating mileage orders for battery swap vehicles in this embodiment can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of related software and hardware problems or
- the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery swap sites from being disturbed.
- this embodiment specifically provides a test method for generating a mileage order for a battery-swapping vehicle, including the following steps:
- the input module 51 is used to receive the input vehicle entry simulation information, and the vehicle entry simulation information includes vehicle identification simulation information and vehicle mileage simulation information;
- a sending module 52 configured to send the simulated vehicle entry information to the target power exchange site
- An acquisition module 53 configured to acquire simulated bill information and simulated payment voucher information generated by the target power exchange site according to the simulated vehicle entry information
- a generating module 54 configured to generate a simulated mileage order according to the simulated bill information and the simulated payment voucher information
- the prompting module 55 is used for prompting the test result.
- the test method for generating the mileage order of the battery exchange vehicle can be implemented on a page-type test platform with user interaction function.
- the test platform communicates with the station server of the battery exchange site to be tested, and the mileage order Information interaction options for the build process.
- intermediate data involved in the process of generating mileage orders entered into the test platform its sources include but are not limited to input by testers, or automatic generation, and remote reading from other terminals; the above data should meet the requirements of intermediate data
- the data format can be pre-cleaned or compared and regulated after input.
- the concept of the present invention is not limited by the above-mentioned test platform; the method of generating simulated data corresponding to the intermediate data in the embodiment is only an example and does not limit the present invention.
- the vehicle entry simulation information received in the input module 51 may be directly input by the user or automatically generated according to preset data rules input by the user.
- Vehicle entry simulation information includes but is not limited to vehicle identification simulation information and vehicle mileage simulation information, wherein vehicle identification simulation information includes but is not limited to vehicle license plate information or vehicle VIN code and other identification information that can uniquely characterize a certain vehicle.
- the vehicle mileage simulation information can be input by the user or automatically generated.
- the ODO data can be directly obtained from the vehicle BMS as the vehicle mileage simulation information through remote communication with the actual vehicle.
- the sending module 52 sends the simulated vehicle entry information to the target power exchange site, so that the target power exchange site can process according to the simulated vehicle entry information, and return the relevant intermediate data for generating mileage orders, and process the simulated vehicle entry information It may include, but not limited to, cloud servers and station-side servers of target power exchange sites.
- the test system also includes a detection module 56, which is used to detect whether the vehicle entry simulation information meets the parameter format requirements; if not, then generate a prompt message, and if so, send the vehicle entry simulation information to the target Replacement site.
- a detection module 56 which is used to detect whether the vehicle entry simulation information meets the parameter format requirements; if not, then generate a prompt message, and if so, send the vehicle entry simulation information to the target Replacement site.
- the simulation information of the vehicle entering the station is detected, and if it meets the parameter format requirements, the simulated information of the vehicle entering the station is sent to the target power exchange site; otherwise, corresponding prompt information is generated.
- the simulation information of the vehicle entering the station can be input by the user on the platform; the input information required by the parameter format includes but is not limited to the license plate number, battery exchange station, channel number, station terminal number, number of vehicles in line for battery exchange, and order mileage Count and so on.
- the test platform can also detect the connection information, For example, the station number, address domain name and port number of the power exchange site.
- the simulation information of the vehicle entering the station it is ensured that the subsequent simulated mileage order test process can be carried out smoothly, and the test failure caused by data errors is avoided, which affects the normal progress of the test.
- the simulation information of the vehicle entering the station also includes identification information of the swapping station
- the test system further includes a station determination module 57 for determining a target swapping station according to the identification information of the swapping station.
- the identification information of the swapping station in this embodiment includes but is not limited to the name of the swapping station, the number of the swapping station, etc.
- screening can be provided according to variables such as operating time and the number of replaceable batteries; it can also be combined with map display, by map point
- map display by map point
- the coordinate range obtained by operations such as selection and frame selection is used to comprehensively determine the identification information of the swap station.
- This embodiment can be applied to different designated swapping stations by providing diversified identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
- the acquisition module 53 acquires the simulated payment voucher information sent by the target power exchange site; for the aforementioned application scenarios, the simulated bill information can be used to simulate the payment demand information in the operator APP, such as payment amount, collection account, etc.; the simulated payment voucher information It can be used to simulate the payment voucher in the client APP, such as the payment account information corresponding to the QR code information, etc., so that the acquisition module 53 can simulate the operation of the operator scanning the code for the user in the existing application scenario.
- the generation module 54 can be used to simulate the payment operation performed by the operator after scanning the code for the user and the generation operation of the simulated mileage order in the above-mentioned existing application scenario.
- the actual payment operation can be performed according to the payment amount and collection account in the simulated bill information and the payment account in the simulated payment voucher information, and a simulated mileage order can be generated according to the payment operation result.
- the simulated mileage order includes but is not limited to both payers Information, payment time, payment amount, etc.; preferably, for the generated simulated mileage orders, a query function can be provided in the above test platform, so that testers can call back to check.
- the prompting module 55 detects and prompts the test result according to whether the simulated mileage order is normally generated or not, and whether the parameters in the generated simulated mileage order meet the expected results.
- the replacement data parameters
- the preset replacement result can be used as an identifier in the corresponding process. For example, if the step generation module 54 cannot realize the payment due to the simulated bill information and the simulated payment voucher information being incorrect or not generated, the payment amount of the simulated mileage order can be set to 0.01 yuan as an indicator.
- the simulated bill information and simulated payment credential information acquired by the acquiring module 53 do not meet the preset data requirements, they may be set as corresponding identification data.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information;
- the generation module 54 includes:
- the first resource transfer information determining unit is configured to determine resource transfer information according to historical mileage simulation information and current mileage simulation information;
- the first order generation unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment voucher information, so as to generate a simulated mileage order.
- the payment amount of the order is determined according to the newly added mileage, that is, the resource transfer information, and the newly added mileage is obtained by deducting the historical mileage information from the current mileage information; among them, the current mileage information is usually provided by the vehicle in real time; and
- the historical mileage information can be stored in the cloud server, so that different station servers can read the historical mileage information corresponding to the last time a mileage order was generated for a battery replacement vehicle.
- historical simulation mileage information and current mileage simulation information are respectively set, so that the source of vehicle mileage information can be tested more flexibly than obtaining vehicle mileage information generated by direct simulation.
- historical mileage information (according to other requirements such as vehicle models) is retrieved from the cloud as historical mileage simulation information.
- the simulation information is set to be the same as the current mileage simulation information, so that the new mileage is zero.
- the prompting module 55 reports possible error numbers in the cloud according to the intermediate test data whose newly added mileage is zero.
- the current mileage information uploaded by the vehicle can be retrieved from the station side of the power exchange site as the simulated current mileage information.
- the historical simulated mileage information can be set to a special value, and the current mileage simulation information can be set to zero, so that the newly added mileage is the special value, such as 1000 kilometers .
- the step prompting module 55 reports possible error numbers at the station end according to the intermediate test data of the newly added mileage.
- This embodiment uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of the vehicle mileage information source, and Find problem nodes in time.
- the vehicle mileage simulation information includes the corresponding target purchase mileage information of the vehicle; the generating module 54 includes:
- a second resource transfer information determining unit configured to determine resource transfer information according to target purchase mileage information
- the second order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment voucher information, so as to generate a simulated mileage order.
- This embodiment is aimed at a mileage order consumption method in the pre-sale mode, and determines the resource transfer information according to the acquired target purchase mileage information; specifically, the resource transfer information can be combined and calculated according to the target purchase mileage information, pricing rules, and preferential activity information. , to determine resource transfer information. For example, the amount to be paid is accumulated according to the target purchase mileage and segment pricing rules, and the coupon amount is deducted to obtain resource transfer information.
- This implementation mode uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and check various pricing standards and preferential standards in time, so that the pricing department can make timely adjustments.
- test system also includes:
- Feedback information acquisition module 58 configured to acquire first feedback information and/or second feedback information; wherein, the first feedback information is used to represent the station-side service abnormality of the target power exchange site; the second feedback information is used to represent the target power exchange site The cloud service of the site is abnormal.
- the information processing and interaction of the power exchange site usually includes not only the local station-side services, but also cloud services for storing cross-site big data.
- the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information, wherein the current mileage information is sent to the station service by the vehicle; the historical mileage information is stored in the cloud service, In this way, different station-side services can read the historical mileage information corresponding to the last time a mileage order was generated for a battery exchange vehicle.
- the first feedback information and/or the second feedback information are respectively obtained for the feedback information after sending the vehicle entry information; wherein, the first feedback information is used to represent the station-end service abnormality of the target power exchange site; the second The feedback information is used to represent the cloud service exception of the target power exchange site; for example, when the station-side service is abnormal, return "station-side service authentication exception" to the call interface, and when the cloud service is abnormal, return the error parameter corresponding to the cloud exception to the call interface.
- This implementation mode effectively detects problem nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
- the prompt module 55 is used to judge whether the simulated mileage order is valid
- the output information in the simulated mileage order content can be compared with the expected information, and judgment can be made according to the comparison result.
- the expected information corresponding to the above output information can be obtained according to the preset rules of the simulation test. If the output information matches the expected information, it will prompt that the test has passed; if it does not match, a fault prompt will be generated. For example, if the first feedback information is obtained from the power exchange station after sending the vehicle entry information, it will prompt the station-side service failure.
- This implementation method judges the test results of the simulated mileage order, especially the key station-side services and cloud services in the power exchange site. When a fault occurs, targeted fault information is generated to help relevant personnel maintain it in a timely manner. repair.
- the test system for generating mileage orders for battery swap vehicles in this embodiment can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of related software and hardware problems or
- the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery swap sites from being disturbed.
- the present embodiment provides an electronic device 30, including a processor 31, a memory 32, and a computer program stored on the memory 32 and operable on the processor 31, and the processor 31 implements the program when executing the program.
- the electronic device 30 shown in FIG. 4 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.
- Electronic device 30 may take the form of a general-purpose computing device, which may be a server device, for example.
- Components of the electronic device 30 may include, but are not limited to: at least one processor 31 , at least one memory 32 , and a bus 33 connecting different system components (including the memory 32 and the processor 31 ).
- the bus 33 includes a data bus, an address bus, and a control bus.
- the memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and/or a cache memory 322 , and may further include a read only memory (ROM) 323 .
- RAM random access memory
- ROM read only memory
- Memory 32 may also include a program/utility tool 325 having a set (at least one) of program modules 324 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, which Each or some combination of the examples may include the implementation of a network environment.
- program/utility tool 325 having a set (at least one) of program modules 324 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, which Each or some combination of the examples may include the implementation of a network environment.
- the processor 31 executes various functional applications and data processing by running the computer program stored in the memory 32 , such as the test method for generating a mileage order for a battery-swapping vehicle in Embodiment 1 of the present invention.
- Electronic device 30 may also communicate with one or more external devices 34 (eg, keyboards, pointing devices, etc.). Such communication may occur through input/output (I/O) interface 35 .
- the model generation device 30 can also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and/or a public network, such as the Internet) via a network adapter 36 .
- Network adapter 36 communicates with other modules of model generation device 30 via bus 33 .
- Other hardware and/or software modules may be used in conjunction with the model generating device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage system etc.
- the application scenarios and generation process of mileage orders can be effectively restored, and the various links involved in the generation of mileage orders can be tested in a targeted manner, which is helpful for timely Find related software and hardware problems or faults; at the same time, the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
- This embodiment provides a computer-readable storage medium on which a computer program is stored.
- the program is executed by a processor, the test method for generating a mileage order for a battery swap vehicle in Embodiment 1 is implemented.
- the readable storage medium may more specifically include but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device or any of the above-mentioned the right combination.
- the present invention can also be implemented in the form of a program product, which includes program code.
- program product runs on the terminal device
- the program code is used to enable the terminal device to implement the battery swap in Embodiment 1. Test method for mileage order generation for vehicles.
- program code for executing the present invention may be written in any combination of one or more programming languages, and the program code may be completely executed on the user equipment, partially executed on the user equipment, or used as an independent software Package execution, partly on the user device and partly on the remote device, or entirely on the remote device.
- the computer program stored in the computer-readable storage medium is called and executed when needed, which can effectively restore the application scenario and generation process of the mileage order, and test the various links involved in the generation of the mileage order in a targeted manner, which is helpful Timely detection of relevant software and hardware problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Train Traffic Observation, Control, And Security (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本申请要求申请日为2021/12/30的中国专利申请2021116590742的优先权。本申请引用上述中国专利申请的全文。This application claims the priority of Chinese patent application 2021116590742 with a filing date of 2021/12/30. This application cites the full text of the above-mentioned Chinese patent application.
本发明涉及电动车辆技术领域,尤其涉及一种换电车辆的里程订单生成的测试方法及系统、设备及介质。The present invention relates to the technical field of electric vehicles, in particular to a test method, system, equipment and medium for generating mileage orders for electric vehicles.
目前,测试换电车辆在换电站点中生成里程订单的整个过程,需要换电车辆真实进站并和换电站点进行数据交互,并由工作人员对车辆相关信息确认后,通过工作人员和车主分别使用各自的软件进行人工扫码操作后,生成零售消费里程订单。而这样的测试过程由于在实际的换电站点进行,不仅操作步骤多,而且会严重影响换电站点的实际业务,降低换电站点的运营效率。就测试本身而言,也因无法高效生成里程订单而对研发和测试进度造成阻碍。At present, to test the whole process of generating mileage orders at the battery exchange site, the battery exchange vehicle needs to actually enter the station and perform data interaction with the battery exchange site. After the staff confirms the relevant information of the vehicle, the staff and the owner Use their respective software to manually scan codes to generate retail consumption mileage orders. Since such a test process is carried out at the actual power exchange site, not only are there many steps, but it will seriously affect the actual business of the power exchange site and reduce the operational efficiency of the power exchange site. As far as the test itself is concerned, the progress of R&D and testing is also hindered by the inability to efficiently generate mileage orders.
发明内容Contents of the invention
本发明要解决的技术问题是为了克服现有技术中测试换电车辆在换电站点中生成里程订单的整个过程需要在测试换电站点的实地由人工参与完成,导致测试效率低下且影响换电站正常运营的缺陷,提供一种换电车辆的里程订单生成的测试方法及系统、设备及介质。The technical problem to be solved by the present invention is to overcome the fact that in the prior art, the entire process of generating mileage orders at the battery exchange site for testing the battery exchange vehicle needs to be completed by manual participation at the site of the test battery exchange site, resulting in low test efficiency and affecting the battery exchange station. Defects in normal operation provide a test method, system, equipment and medium for generating mileage orders for battery replacement vehicles.
本发明是通过下述技术方案来解决上述技术问题:The present invention solves the above technical problems through the following technical solutions:
本发明提供了一种换电车辆的里程订单生成的测试方法,包括如下步骤:The invention provides a test method for generating a mileage order for a battery exchange vehicle, comprising the following steps:
接收输入的车辆进站模拟信息,所述车辆进站模拟信息包括车辆识别模拟信息和车辆里程模拟信息;receiving input vehicle entry simulation information, the vehicle entry simulation information including vehicle identification simulation information and vehicle mileage simulation information;
发送所述车辆进站模拟信息至目标换电站点;Send the simulated information of the vehicle entering the station to the target power exchange site;
获取所述目标换电站点根据所述车辆进站模拟信息生成的模拟账单信息以及模拟支付凭证信息;Acquiring simulated bill information and simulated payment voucher information generated by the target power exchange site according to the simulated vehicle entry information;
根据所述模拟账单信息及所述模拟支付凭证信息,生成模拟里程订单;Generate a simulated mileage order according to the simulated bill information and the simulated payment voucher information;
提示测试结果。Prompt the test result.
本方案有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。This solution effectively restores the application scenarios and generation process of mileage orders, and tests the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely detection of related software and hardware problems or faults; at the same time, the fully automated remote testing process greatly improves The test efficiency of the mileage order not only meets the requirements for upgrading and debugging the relevant software version, but also prevents the normal operation of the test battery exchange site from being disturbed.
较佳地,所述车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息;所述根据所述模拟账单信息及所述模拟支付凭证信息生成模拟里程订单的步骤包括:Preferably, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; the step of generating a simulated mileage order according to the simulated bill information and the simulated payment voucher information includes:
根据所述历史里程模拟信息和所述当前里程模拟信息,确定资源转移信息;Determine resource transfer information according to the historical mileage simulation information and the current mileage simulation information;
在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成所述模拟里程订单。A resource transfer operation is performed on the user account corresponding to the simulated payment credential information to generate the simulated mileage order.
本方案分别用当前里程模拟信息和历史里程模拟信息来模拟车辆里程模拟信息,能够使测试更为贴合实际应用场景,灵活有效地检测车辆里程信息来源的软硬件以及网络链路状态,并及时发现问题节点。This solution uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of vehicle mileage information sources, and timely Find problem nodes.
较佳地,所述车辆里程模拟信息包括所述车辆对应的目标购买里程信息;所述根据所述模拟账单信息及所述模拟支付凭证信息,生成模拟里程订单的步骤包括:Preferably, the vehicle mileage simulation information includes target purchase mileage information corresponding to the vehicle; the step of generating a simulated mileage order according to the simulated bill information and the simulated payment voucher information includes:
根据所述目标购买里程信息确定资源转移信息;Determine resource transfer information according to the target purchase mileage information;
在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成所述模拟里程订单。A resource transfer operation is performed on the user account corresponding to the simulated payment credential information to generate the simulated mileage order.
本方案采用目标购买里程信息模拟车辆里程模拟信息,能够高效准确地对于预售模式下的里程订单生成进行测试,并及时验核各类计价标准以及优惠标准,以便定价部门及时进行调整。This solution uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and timely verify various pricing standards and preferential standards, so that the pricing department can make timely adjustments.
较佳地,所述发送所述车辆进站模拟信息至目标换电站点的步骤之后还包括:Preferably, after the step of sending the simulated vehicle entry information to the target power exchange site, it further includes:
获取第一反馈信息和/或第二反馈信息;其中,所述第一反馈信息用于表征所述目标换电站点的站端服务异常;所述第二反馈信息用于表征所述目标换电站点的云端服务异常。Acquiring first feedback information and/or second feedback information; wherein, the first feedback information is used to characterize the station-side service abnormality of the target power swap site; the second feedback information is used to characterize the target power swap site The cloud service of the site is abnormal.
本方案通过调用接口判读服务端反馈参数等方式,有效地检测到通信链路中的问题节点,从而能够及时地开展相应的维护工作,确保系统服务端恢复正常运行。This solution effectively detects problematic nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that the corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
较佳地,所述提示测试结果包括:Preferably, the prompt test results include:
判断所述模拟里程订单是否有效;Judging whether the simulated mileage order is valid;
若是,则提示测试通过,若否,则根据所述第一反馈信息和第二反馈信息生成故障提示。If yes, prompt that the test is passed; if not, generate a fault prompt according to the first feedback information and the second feedback information.
本方案针对模拟里程订单的测试结果进行判断,尤其针对换电站点中关键的站端服务和云端服务进行检验,当其发生故障时生成针对性的故障信息,有助于相关人员及时予以维护修复。This solution judges the test results of simulated mileage orders, especially the key station-side services and cloud services in the power exchange site, and generates targeted fault information when a fault occurs, which helps relevant personnel to maintain and repair in time .
较佳地,所述发送所述车辆进站模拟信息至目标换电站点的步骤之前还包括:Preferably, before the step of sending the simulated vehicle entry information to the target power exchange site, the step further includes:
检测所述车辆进站模拟信息是否符合参数格式要求的操作;The operation of detecting whether the simulation information of the vehicle entering the station meets the parameter format requirements;
若否,则生成提示信息,若是,则发送所述车辆进站模拟信息至目标换电站点。If not, generate prompt information, and if yes, send the vehicle entering station simulation information to the target battery swap site.
本方案通过对车辆进站模拟信息进行检测,确保后续模拟里程订单测试过程能够顺利执行,避免因数据错误导致测试失败,影响测试的正常进行。This solution detects the simulation information of the vehicle entering the station to ensure the smooth execution of the subsequent simulated mileage order test process, avoiding test failure due to data errors and affecting the normal progress of the test.
较佳地,所述车辆进站模拟信息还包括换电站识别信息,Preferably, the simulated vehicle entry information also includes identification information of the station,
在所述发送所述车辆进站模拟信息至目标换电站点的步骤之前还包括,It also includes before the step of sending the simulated vehicle entry information to the target power exchange site,
根据所述换电站识别信息确定所述目标换电站点。The target power swapping site is determined according to the identification information of the swapping station.
本方案通过提供多样化的换电站识别信息,能够应用于指定的不同换电站,从而满足换电站点不断增加落成带来的测试需求。This solution can be applied to different specified swapping stations by providing a variety of identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
本发明还提供了一种换电车辆的里程订单生成的测试系统,包括:The present invention also provides a test system for generating a mileage order for a battery exchange vehicle, including:
输入模块,用于接收输入的车辆进站模拟信息,所述车辆进站模拟信息包括车辆识别模拟信息和车辆里程模拟信息;The input module is used to receive the input vehicle entry simulation information, and the vehicle entry simulation information includes vehicle identification simulation information and vehicle mileage simulation information;
发送模块,用于发送所述车辆进站模拟信息至目标换电站点;A sending module, configured to send the simulated vehicle entry information to the target power exchange site;
获取模块,用于获取所述目标换电站点根据所述车辆进站模拟信息生成的模拟账单信息以及模拟支付凭证信息;An acquisition module, configured to acquire simulated bill information and simulated payment voucher information generated by the target power exchange site according to the simulated vehicle entry information;
生成模块,用于根据所述模拟账单信息及所述模拟支付凭证信息,生成模拟里程订单;A generating module, configured to generate a simulated mileage order according to the simulated bill information and the simulated payment voucher information;
提示模块,用于提示测试结果。Prompt module, used to prompt test results.
本方案有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。This solution effectively restores the application scenarios and generation process of mileage orders, and tests the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely detection of related software and hardware problems or faults; at the same time, the fully automated remote testing process greatly improves The test efficiency of the mileage order not only meets the requirements for upgrading and debugging the relevant software version, but also prevents the normal operation of the test battery exchange site from being disturbed.
较佳地,所述车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息;所述生成模块包括:Preferably, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; the generating module includes:
第一资源转移信息确定单元,用于根据所述历史里程模拟信息和所述当前里程模拟信息,确定资源转移信息;A first resource transfer information determining unit, configured to determine resource transfer information according to the historical mileage simulation information and the current mileage simulation information;
第一订单生成单元,用于在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成所述模拟里程订单。The first order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment credential information, so as to generate the simulated mileage order.
本方案分别用当前里程模拟信息和历史里程模拟信息来模拟车辆里程模拟信息,能够使测试更为贴合实际应用场景,灵活有效地检测车辆里程信息来源的软硬件以及网络链路状态,并及时发现问题节点。This solution uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of vehicle mileage information sources, and timely Find problem nodes.
较佳地,所述车辆里程模拟信息包括所述车辆对应的目标购买里程信息;所述生成模块包括:Preferably, the vehicle mileage simulation information includes target purchase mileage information corresponding to the vehicle; the generating module includes:
第二资源转移信息确定单元,用于根据所述目标购买里程信息确定资源转移信息;A second resource transfer information determining unit, configured to determine resource transfer information according to the target purchase mileage information;
第二订单生成单元,用于在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成所述模拟里程订单。The second order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment credential information, so as to generate the simulated mileage order.
本方案采用目标购买里程信息模拟车辆里程模拟信息,能够高效准确地对于预售模式下的里程订单生成进行测试,并及时验核各类计价标准以及优惠标准,以便定价部门及时进行调整。This solution uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and timely verify various pricing standards and preferential standards, so that the pricing department can make timely adjustments.
较佳地,所述测试系统还包括:Preferably, the test system also includes:
反馈信息获取模块,用于获取第一反馈信息和/或第二反馈信息;其中,所述第一反馈信息用于表征所述目标换电站点的站端服务异常;所述第二反馈信息用于表征所述目标换电站点的云端服务异常。A feedback information acquisition module, configured to acquire first feedback information and/or second feedback information; wherein, the first feedback information is used to represent the station-side service abnormality of the target power exchange site; the second feedback information is used The cloud service representing the target power exchange site is abnormal.
本方案通过调用接口判读服务端反馈参数等方式,有效地检测到通信链路中的问题节点,从而能够及时地开展相应的维护工作,确保系统服务端恢复正常运行。This solution effectively detects problematic nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that the corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
较佳地,所述判断模块具体用于判断里程订单是否有效;Preferably, the judging module is specifically used to judge whether the mileage order is valid;
若是,则提示测试通过,若否,则根据所述第一反馈信息和第二反馈信息生成故障提示。If yes, prompt that the test is passed; if not, generate a fault prompt according to the first feedback information and the second feedback information.
本方案针对模拟里程订单的测试结果进行判断,尤其针对换电站点中关键的站端服务和云端服务进行检验,当其发生故障时生成针对性的故障信息,有助于相关人员及时予以维护修复。This solution judges the test results of simulated mileage orders, especially the key station-side services and cloud services in the power exchange site, and generates targeted fault information when a fault occurs, which helps relevant personnel to maintain and repair in time .
较佳地,所述测试系统还包括:Preferably, the test system also includes:
检测模块,用于检测所述车辆进站模拟信息是否符合参数格式要求的操作;The detection module is used to detect whether the simulated information of the vehicle entering the station meets the requirements of the parameter format;
若否,则生成提示信息,若是,则发送所述车辆进站模拟信息至目标换电站点。If not, generate prompt information, and if yes, send the vehicle entering station simulation information to the target battery swap site.
本方案通过对车辆进站模拟信息进行检测,确保后续模拟里程订单测试过程能够顺利执行,避免 因数据错误导致测试失败,影响测试的正常进行。This solution detects the simulation information of the vehicle entering the station to ensure the smooth execution of the subsequent simulated mileage order test process, avoiding test failure due to data errors and affecting the normal progress of the test.
较佳地,所述车辆进站模拟信息还包括换电站识别信息,所述测试系统还包括:Preferably, the simulation information of the vehicle entering the station also includes the identification information of the swapping station, and the test system further includes:
站点确定模块,用于根据所述换电站识别信息确定所述目标换电站点。A station determining module, configured to determine the target power swapping station according to the identification information of the swapping station.
本方案通过提供多样化的换电站识别信息,能够应用于指定的不同换电站,从而满足换电站点不断增加落成带来的测试需求。This solution can be applied to different specified swapping stations by providing a variety of identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
本发明还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的换电车辆的里程订单生成的测试方法。The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned mileage order of the battery-swapping vehicle is realized. Generated test methods.
本方案通过电子设备执行换电车辆的里程订单生成的测试方法,实现了有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。This solution implements the test method of generating the mileage order of the battery-swapping vehicle through electronic equipment, realizes the application scenario and generation process of effectively restoring the mileage order, and tests the various links involved in the generation of the mileage order in a targeted manner, which is helpful for timely discovery of related issues. Software and hardware problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of the test battery replacement site from being disturbed.
本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的换电车辆的里程订单生成的测试方法。The present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned test method for generating a mileage order for a battery-swapping vehicle is realized.
本方案通过计算机可读存储介质存储的计算机程序在需要时被调用并执行,实现了有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。This solution uses the computer program stored in the computer-readable storage medium to be called and executed when needed, realizing the application scenario and generation process of effectively restoring the mileage order, and testing the various links involved in the generation of the mileage order in a targeted manner, which is helpful Timely detection of relevant software and hardware problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
本发明的积极进步效果在于:本发明的换电车辆的里程订单生成的测试方法及系统、设备及介质通过将车辆进站模拟信息发送至目标换电站点,使后者据此生成模拟账单信息及模拟支付凭证信息,进而生成模拟里程订单,得到测试结果,能够有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。The positive and progressive effect of the present invention lies in: the test method, system, equipment and medium for generating the mileage order of the battery-swapping vehicle of the present invention send the simulation information of the vehicle entering the station to the target battery-swapping site, so that the latter can generate simulated billing information accordingly and simulated payment voucher information, and then generate simulated mileage orders and obtain test results, which can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of relevant software and hardware Problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery replacement sites from being disturbed.
图1为本发明的实施例1中的换电车辆的里程订单生成的测试方法的流程图。FIG. 1 is a flow chart of a test method for generating a mileage order for a battery-swapping vehicle in Embodiment 1 of the present invention.
图2为本发明的实施例2中的换电车辆的里程订单生成的测试系统的模块图。Fig. 2 is a block diagram of a test system for generating a mileage order for a battery-swapping vehicle in Embodiment 2 of the present invention.
图3为本发明的实施例2中的换电车辆的里程订单生成的测试系统的较佳实施例的模块图。Fig. 3 is a block diagram of a preferred embodiment of a test system for generating a mileage order for a battery-swapping vehicle in Embodiment 2 of the present invention.
图4为本发明实施例3的电子设备的结构框图。FIG. 4 is a structural block diagram of an electronic device according to Embodiment 3 of the present invention.
下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.
里程订单是指换电车辆在换电站点更换电池的消费行为中产生的消费凭据。通常的应用场景中,里程订单的生成是由换电车辆进入换电站点,由车辆通过Tbox(自带操作系统的具有通讯功能的车 载盒子)发送车载报文到换电站点的站端服务器,站端服务器将车载报文信息、车牌识别设备信息等车辆信息推送至站点工作人员的使用的操作员APP(应用程序),由工作人员根据接收到的车辆信息,在实地与该换电车辆进行核验无误后(例如,查看车型、车牌是否符合),再用上述操作员APP对着换电车辆用户打开用户端APP并生成的支付二维码进行扫码,从而完成支付过程并生成零售消费里程订单。The mileage order refers to the consumption certificate generated during the consumption behavior of the battery replacement vehicle at the battery replacement station. In the usual application scenario, the mileage order is generated by the battery exchange vehicle entering the battery exchange site, and the vehicle sends an on-board message to the station server at the battery exchange site through Tbox (a vehicle box with a communication function with its own operating system). The station-side server pushes vehicle information such as vehicle message information and license plate recognition equipment information to the operator APP (application program) used by the station staff, and the staff conducts on-site exchanges with the vehicle based on the received vehicle information. After the verification is correct (for example, check whether the model and license plate match), then use the above-mentioned operator APP to scan the payment QR code generated by the user of the replacement vehicle to open the client APP, thereby completing the payment process and generating retail consumption mileage Order.
然而如上所述,对于上述支付过程即里程订单的生成过程进行的模拟测试如果均以真实场景来实现,则不但操作步骤繁多,而且影响换电站点的实际运营。由于操作员APP及用户端APP的版本的升级迭代,乃至站点相关车辆信息采集或发送设备的更新维护等都会牵涉到里程订单的生成,因此上述软硬件的变更都需要对生成里程订单进行测试,甚至是高密度数据的压力测试,如果无法高效地完成里程订单生成的流程,会给验收测试带来极大的阻碍。However, as mentioned above, if the simulation tests for the above-mentioned payment process, that is, the generation process of the mileage order, are all implemented in real scenarios, not only will there be many operating steps, but it will also affect the actual operation of the power exchange site. Since the upgrade and iteration of the operator APP and the client APP version, as well as the site-related vehicle information collection or the update and maintenance of the sending equipment, etc. will involve the generation of mileage orders, the above-mentioned software and hardware changes need to be tested for generating mileage orders. Even the stress test of high-density data, if the process of generating mileage orders cannot be completed efficiently, will bring great obstacles to the acceptance test.
实施例1Example 1
为解决上述问题,参见图1所示,本实施例具体提供了一种换电车辆的里程订单生成的测试方法,包括如下步骤:In order to solve the above problems, as shown in Figure 1, this embodiment specifically provides a test method for generating a mileage order for a battery swap vehicle, including the following steps:
S1.接收输入的车辆进站模拟信息,所述车辆进站模拟信息包括车辆识别模拟信息和车辆里程模拟信息;S1. Receive the input simulation information of the vehicle entering the station, the simulation information of the vehicle entering the station includes the simulation information of the vehicle identification and the simulation information of the vehicle mileage;
S2.发送所述车辆进站模拟信息至目标换电站点;S2. Sending the simulation information of the vehicle entering the station to the target power exchange site;
S3.获取所述目标换电站点根据所述车辆进站模拟信息生成的模拟账单信息以及模拟支付凭证信息;S3. Acquiring the simulated bill information and simulated payment voucher information generated by the target power exchange site according to the simulated vehicle entry information;
S4.根据所述模拟账单信息及所述模拟支付凭证信息,生成模拟里程订单;S4. Generate a simulated mileage order according to the simulated bill information and the simulated payment voucher information;
S5.提示测试结果。S5. Prompt the test result.
本实施例中,换电车辆的里程订单生成的测试方法可以在一种具有用户交互功能的页面式测试平台实现,测试平台与待测换电站点的站端服务器通信连接,其中集成了里程订单生成过程的信息交互选项。对于输入测试平台的里程订单生成过程中涉及的各类中间数据,其来源包括但不限于由测试人员输入,或自动生成,以及从其他终端远程读取获得;上述数据均应符合中间数据所要求的数据格式,可以进行预先的数据清洗或输入后的比对规制。本领域技术人员可知,本发明的构思不受上述测试平台的限制;实施例中对于中间数据对应的模拟数据生成方式仅作为例举,也不对本发明构成限制。In this embodiment, the test method for generating the mileage order of the battery exchange vehicle can be implemented on a page-type test platform with user interaction function. The test platform communicates with the station server of the battery exchange site to be tested, and the mileage order Information interaction options for the build process. For all kinds of intermediate data involved in the process of generating mileage orders entered into the test platform, its sources include but are not limited to input by testers, or automatic generation, and remote reading from other terminals; the above data should meet the requirements of intermediate data The data format can be pre-cleaned or compared and regulated after input. Those skilled in the art know that the concept of the present invention is not limited by the above-mentioned test platform; the method of generating simulated data corresponding to the intermediate data in the embodiment is only an example and does not limit the present invention.
具体地,步骤S1中的车辆进站模拟信息可以通过用户直接输入或根据用户输入的预设数据规则而自动生成。Specifically, the simulation information of the vehicle entering the station in step S1 may be directly input by the user or automatically generated according to preset data rules input by the user.
车辆进站模拟信息包括但不限于车辆识别模拟信息和车辆里程模拟信息,其中车辆识别模拟信息包括但不限于车辆的车牌信息或车辆的VIN码(Vehicle Identification Number,车辆识别代码,即车架号)等可以唯一表征某一车辆的识别信息。Vehicle entry simulation information includes but is not limited to vehicle identification simulation information and vehicle mileage simulation information, wherein vehicle identification simulation information includes but is not limited to vehicle license plate information or vehicle VIN code (Vehicle Identification Number, vehicle identification code, that is, vehicle chassis number ) etc. can uniquely represent the identification information of a certain vehicle.
车辆里程模拟信息可由用户输入或自动生成,当然也可以通过和实际车辆进行远程通信,从车辆BMS(Battery Management System,电池管理系统)直接获取ODO(Odograph,里程表)数据以作为车辆里程模拟信息。Vehicle mileage simulation information can be input by the user or automatically generated. Of course, ODO (Odograph, odometer) data can be directly obtained from the vehicle BMS (Battery Management System, battery management system) through remote communication with the actual vehicle as vehicle mileage simulation information. .
步骤S2将车辆进站模拟信息发送至目标换电站点,以使目标换电站点能够根据车辆进站模拟信息进行处理,并返回生成里程订单的相关中间数据,对车辆进站模拟信息进行处理可以包括但不限于云端服务器以及目标换电站点的站端服务器等。Step S2 sends the simulated vehicle entry information to the target power exchange station, so that the target power exchange station can process according to the simulated vehicle entry information, and return the relevant intermediate data for generating mileage orders. Processing the simulated vehicle entry information can Including but not limited to cloud servers and station-side servers of target power exchange sites.
作为较佳的实施方式,步骤S2之前还包括:As a preferred implementation manner, before step S2, it also includes:
检测车辆进站模拟信息是否符合参数格式要求的操作;The operation of detecting whether the simulation information of the vehicle entering the station meets the requirements of the parameter format;
若否,则生成提示信息,若是,则发送车辆进站模拟信息至目标换电站点。If not, generate a prompt message, and if yes, send the simulation information of the vehicle entering the station to the target power exchange site.
本实施方式对车辆进站模拟信息进行检测,如果符合参数格式要求则执行步骤S2,否则生成对应的提示信息。对于上述测试平台,车辆进站模拟信息可以在平台由用户进行输入;参数格式要求的输入信息包括但不限于车牌号、换电站点、通道号、站端编号、换电车辆排队数量、订单里程数等。具体地,例如车辆进站的站端编号、车辆进站的车牌号不能为空,且必须为入网车辆;车辆进站的通道不能为空等;此外,测试平台还可以对连接信息进行检测,例如换电站点的站端编号、地址域名及端口号等。本实施方式通过对车辆进站模拟信息进行检测,确保后续模拟里程订单测试过程能够顺利执行,避免因数据错误导致测试失败,影响测试的正常进行。In this embodiment, the simulation information of the vehicle entering the station is detected, and if it meets the parameter format requirements, step S2 is executed; otherwise, corresponding prompt information is generated. For the above-mentioned test platform, the simulation information of the vehicle entering the station can be input by the user on the platform; the input information required by the parameter format includes but is not limited to the license plate number, battery exchange station, channel number, station terminal number, number of vehicles in line for battery exchange, and order mileage Count and so on. Specifically, for example, the station number of the vehicle entering the station, the license plate number of the vehicle entering the station cannot be empty, and must be a vehicle entering the network; the channel of the vehicle entering the station cannot be empty, etc. In addition, the test platform can also detect the connection information, For example, the station number, address domain name and port number of the power exchange site. In this embodiment, by detecting the simulation information of the vehicle entering the station, it is ensured that the subsequent simulated mileage order test process can be carried out smoothly, and the test failure caused by data errors is avoided, which affects the normal progress of the test.
作为较佳的实施方式,车辆进站模拟信息还包括换电站识别信息,As a preferred embodiment, the simulated information of the vehicle entering the station also includes the identification information of the station,
步骤S2之前还包括:根据换电站识别信息确定目标换电站点。Before step S2, it also includes: determining the target power swapping station according to the identification information of the swapping station.
本实施方式中的换电站识别信息包括但不限于换电站名称、换电站编号等,对于上述测试平台,可以根据营运时间、可换电池数量等变量提供筛选;也可以结合地图显示,由地图点选及框选等操作得到的坐标范围综合确定换电站识别信息。本实施方式通过提供多样化的换电站识别信息,能够应用于指定的不同换电站,从而满足换电站点不断增加落成带来的测试需求。The identification information of the swapping station in this embodiment includes but is not limited to the name of the swapping station, the number of the swapping station, etc. For the above-mentioned test platform, screening can be provided according to variables such as operating time and the number of replaceable batteries; it can also be combined with map display, by map point The coordinate range obtained by operations such as selection and frame selection is used to comprehensively determine the identification information of the swap station. This embodiment can be applied to different designated swapping stations by providing diversified identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
步骤S3获取目标换电站点发送的及模拟支付凭证信息;其中针对前述应用场景,模拟账单信息可用于模拟操作员APP中的支付需求信息,例如支付金额,收款账户等;模拟支付凭证信息可用于模拟用户端APP里的支付凭证,例如二维码信息对应的支付账户信息等,从而步骤S3可以模拟现有应用场景中操作员对用户扫码的操作。Step S3 obtains the simulated payment voucher information sent by the target power exchange site; for the aforementioned application scenarios, the simulated bill information can be used to simulate the payment demand information in the operator APP, such as payment amount, collection account, etc.; the simulated payment voucher information is available It is used to simulate the payment voucher in the client APP, such as the payment account information corresponding to the QR code information, so that step S3 can simulate the operation of the operator scanning the code for the user in the existing application scenario.
步骤S4中可用于模拟上述的现有应用场景中,操作员对用户扫码后进行的支付操作及模拟里程订单生成操作。具体地,可以根据模拟账单信息中的支付金额及收款账户以及模拟支付凭证信息中的支付账户进行实际支付操作,并根据支付操作结果生成模拟里程订单,模拟里程订单中包括但不限于支付双方信息、支付时间、支付金额等;较佳地,对于生成的模拟里程订单,可以在上述测试平台中提供查询功能,以便测试人员回调查看。从而步骤S5根据模拟里程订单正常生成与否,以及生成的模拟里程订单中的参数是否符合预期结果等进行检测并提示测试结果。为了更好地针对模拟里程订单进行检验,当中间数据错误或无法获取时,可以设置代替数据(参数)来使测试流程进行,以生成模拟里程订单;对于测试进程因中间数据而无法继续的情况,可在相应的进程采用预设代替结果作为标识。例如,步骤S4中如果因模拟账单信息及模拟支付凭证信息有误或未能生成导致无法实现支付,则可以将模拟里程订单的支付金额设置为0.01元作为标识。类似地,如果步骤S3中获取的模拟账单信息及模拟支付凭证信息不符合预设数据要求,则可以将其设置为相应的标识数据。Step S4 can be used to simulate the payment operation performed by the operator after the user scans the code and simulate the generation of the mileage order in the above-mentioned existing application scenario. Specifically, the actual payment operation can be performed according to the payment amount and collection account in the simulated bill information and the payment account in the simulated payment voucher information, and a simulated mileage order can be generated according to the payment operation result. The simulated mileage order includes but is not limited to both payers Information, payment time, payment amount, etc.; preferably, for the generated simulated mileage orders, a query function can be provided in the above test platform, so that testers can call back to check. Therefore, step S5 detects and prompts the test result according to whether the simulated mileage order is normally generated or not, and whether the parameters in the generated simulated mileage order meet the expected results. In order to better test the simulated mileage order, when the intermediate data is wrong or cannot be obtained, you can set the replacement data (parameters) to make the test process proceed to generate the simulated mileage order; for the case where the test process cannot continue due to intermediate data , the preset replacement result can be used as an identifier in the corresponding process. For example, in step S4, if the simulated bill information and the simulated payment voucher information are incorrect or cannot be generated and the payment cannot be realized, the payment amount of the simulated mileage order can be set to 0.01 yuan as an identification. Similarly, if the simulated bill information and simulated payment credential information obtained in step S3 do not meet the preset data requirements, they may be set as corresponding identification data.
作为较佳的实施方式,车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息;步骤S4包括:As a preferred embodiment, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; step S4 includes:
根据历史里程模拟信息和当前里程模拟信息,确定资源转移信息;Determine resource transfer information based on historical mileage simulation information and current mileage simulation information;
在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成模拟里程订单。Perform a resource transfer operation on the user account corresponding to the simulated payment voucher information to generate a simulated mileage order.
通常应用场景中,根据新增的里程数来确定订单的支付金额即资源转移信息,新增的里程数即由当前里程信息扣除历史里程信息获得;其中,当前里程信息通常由车辆即时提供;而历史里程信息则可以存储于云端服务器,从而使不同的站端服务器可以读取某换电车辆上一次生成里程订单时对应的历史里程信息。本实施方式中,分别设置历史模拟里程信息和当前里程模拟信息,从而相比于获取直接模拟生成的车辆里程信息,能够更为灵活地测试车辆里程信息的来源。In general application scenarios, the payment amount of the order is determined according to the newly added mileage, that is, the resource transfer information, and the newly added mileage is obtained by deducting the historical mileage information from the current mileage information; among them, the current mileage information is usually provided by the vehicle in real time; and The historical mileage information can be stored in the cloud server, so that different station servers can read the historical mileage information corresponding to the last time a mileage order was generated for a battery replacement vehicle. In this embodiment, historical simulation mileage information and current mileage simulation information are respectively set, so that the source of vehicle mileage information can be tested more flexibly than obtaining vehicle mileage information generated by direct simulation.
例如,从云端调取历史里程信息(符合车型等其他要求)作为历史里程模拟信息,当云端由于云端服务器软硬件故障或链路故障而出错,导致历史里程信息调取失败时,可将历史里程模拟信息设置为和当前里程模拟信息相同,从而使新增里程为零。相应地,步骤S5根据新增里程为零的中间测试数据呈报云端可能存在的错误编号。For example, historical mileage information (according to other requirements such as vehicle models) is retrieved from the cloud as historical mileage simulation information. The simulation information is set to be the same as the current mileage simulation information, so that the new mileage is zero. Correspondingly, step S5 reports possible error numbers in the cloud according to the intermediate test data with the added mileage being zero.
类似的,可以从换电站点的站端调取车辆上传的当前里程信息作为模拟当前里程信息,当站端由于站端服务器软硬件故障、链路故障(例如,导致站端无法接受车辆TBOX发送的里程信息)而出错,导致当前模拟里程信息调取失败时,可将历史模拟里程信息设置为特殊数值,将当前里程模拟信息设置为零,从而使新增里程为该特殊数值,如1000公里。相应地,步骤S5根据新增里程的中间测试数据呈报站端可能存在的错误编号。Similarly, the current mileage information uploaded by the vehicle can be retrieved from the station side of the power exchange site as the simulated current mileage information. When the current simulated mileage information fails to be retrieved due to an error, the historical simulated mileage information can be set to a special value, and the current mileage simulation information can be set to zero, so that the newly added mileage is the special value, such as 1000 kilometers . Correspondingly, step S5 reports possible error numbers at the station side according to the intermediate test data of the newly added mileage.
本实施方式分别用当前里程模拟信息和历史里程模拟信息来模拟车辆里程模拟信息,能够使测试更为贴合实际应用场景,灵活有效地检测车辆里程信息来源的软硬件以及网络链路状态,并及时发现问题节点。This embodiment uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of the vehicle mileage information source, and Find problem nodes in time.
作为较佳的实施方式,车辆里程模拟信息包括车辆对应的目标购买里程信息;步骤S4包括:As a preferred embodiment, the vehicle mileage simulation information includes the target purchase mileage information corresponding to the vehicle; Step S4 includes:
根据目标购买里程信息确定资源转移信息;Determine resource transfer information according to target purchase mileage information;
在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成模拟里程订单。Perform a resource transfer operation on the user account corresponding to the simulated payment voucher information to generate a simulated mileage order.
本实施方式针对一种预售模式的里程订单消费方式,根据获取的目标购买里程信息确定资源转移信息;具体地,资源转移信息可以根据目标购买里程信息和定价规则及优惠活动信息等进行组合计算,以确定资源转移信息。例如根据目标购买里程和分段计价规则累加需要支付的金额,并扣除优惠券金额,以得到资源转移信息。This embodiment is aimed at a mileage order consumption method in the pre-sale mode, and determines the resource transfer information according to the acquired target purchase mileage information; specifically, the resource transfer information can be combined and calculated according to the target purchase mileage information, pricing rules, and preferential activity information. , to determine resource transfer information. For example, the amount to be paid is accumulated according to the target purchase mileage and segment pricing rules, and the coupon amount is deducted to obtain resource transfer information.
本实施方式采用目标购买里程信息模拟车辆里程模拟信息,能够高效准确地对于预售模式下的里程订单生成进行测试,并及时验核各类计价标准以及优惠标准,以便定价部门及时进行调整。This implementation mode uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and check various pricing standards and preferential standards in time, so that the pricing department can make timely adjustments.
作为较佳的实施方式,步骤S2之后还包括:As a preferred implementation manner, after step S2, it also includes:
获取第一反馈信息和/或第二反馈信息;其中,第一反馈信息用于表征目标换电站点的站端服务异常;第二反馈信息用于表征目标换电站点的云端服务异常。Acquiring the first feedback information and/or the second feedback information; wherein, the first feedback information is used to indicate the station-side service abnormality of the target power exchange site; the second feedback information is used to indicate the cloud service abnormality of the target power exchange site.
在里程订单的生成过程中,换电站点的信息处理及交互通常不仅包括设置于本地的站端服务,还 包括用于存储跨站大数据的云端服务。如上文所述,在一种较佳的实施方式中,车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息,其中当前里程信息由车辆发送至站端服务;历史里程信息存储于云端服务,从而使不同的站端服务可以读取某换电车辆上一次生成里程订单时对应的历史里程信息。本实施方式中,对于发送车辆进站信息后的反馈信息分别获取第一反馈信息和/或第二反馈信息;其中,第一反馈信息用于表征目标换电站点的站端服务异常;第二反馈信息用于表征目标换电站点的云端服务异常;例如当站端服务异常时,向调用接口返回“站端服务认证异常”,云端服务异常时,向调用接口返回云端异常对应的报错参数。In the process of generating mileage orders, the information processing and interaction of the power exchange site usually includes not only the local station-side services, but also cloud services for storing cross-site big data. As mentioned above, in a preferred embodiment, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information, wherein the current mileage information is sent to the station service by the vehicle; the historical mileage information is stored in the cloud service, In this way, different station-side services can read the historical mileage information corresponding to the last time a mileage order was generated for a battery exchange vehicle. In this embodiment, the first feedback information and/or the second feedback information are respectively obtained for the feedback information after sending the vehicle entry information; wherein, the first feedback information is used to represent the station-end service abnormality of the target power exchange site; the second The feedback information is used to represent the cloud service exception of the target power exchange site; for example, when the station-side service is abnormal, return "station-side service authentication exception" to the call interface, and when the cloud service is abnormal, return the error parameter corresponding to the cloud exception to the call interface.
本实施方式通过调用接口判读服务端反馈参数等方式,有效地检测到通信链路中的问题节点,从而能够及时地开展相应的维护工作,确保系统服务端恢复正常运行。This implementation mode effectively detects problem nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
作为较佳的实施方式,步骤S5包括:As a preferred implementation manner, step S5 includes:
判断模拟里程订单是否有效;Determine whether the simulated mileage order is valid;
若是,则提示测试通过,若否,则根据第一反馈信息和第二反馈信息生成故障提示。If yes, prompt that the test is passed; if not, generate a fault prompt according to the first feedback information and the second feedback information.
本实施方式具体根据模拟里程订单的生成结果,判断是否为有效订单。具体地,可以针对模拟里程订单内容中的输出信息和预期信息进行比较,根据比较结果进行判断。例如对于模拟里程订单中的输出信息如换电站点编号、车牌号、操作员编号、购买里程数、支付金额、支付时间等,根据模拟测试的预设规则可以获知上述输出信息对应的预期信息,如果输出信息和预期信息相符则提示测试通过;若不相符则生成故障提示,例如发送车辆进站信息后从换电站点获取到第一反馈信息,则提示站端服务故障。In this embodiment, it is specifically determined whether the order is a valid order based on the generation result of the simulated mileage order. Specifically, the output information in the simulated mileage order content can be compared with the expected information, and judgment can be made according to the comparison result. For example, for the output information in the simulated mileage order, such as the battery exchange station number, license plate number, operator number, purchased mileage, payment amount, payment time, etc., the expected information corresponding to the above output information can be obtained according to the preset rules of the simulation test. If the output information matches the expected information, it will prompt that the test has passed; if it does not match, a fault prompt will be generated. For example, if the first feedback information is obtained from the power exchange station after sending the vehicle entry information, it will prompt the station-side service failure.
本实施方式针对模拟里程订单的测试结果进行判断,尤其针对换电站点中关键的站端服务和云端服务进行检验,当其发生故障时生成针对性的故障信息,有助于相关人员及时予以维护修复。This implementation method judges the test results of the simulated mileage order, especially the key station-side services and cloud services in the power exchange site. When a fault occurs, targeted fault information is generated to help relevant personnel maintain it in a timely manner. repair.
本实施例的换电车辆的里程订单生成的测试方法能够有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。The test method for generating mileage orders for battery swap vehicles in this embodiment can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of related software and hardware problems or At the same time, the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery swap sites from being disturbed.
实施例2Example 2
参见图2、图3所示,本实施例具体提供了一种换电车辆的里程订单生成的测试方法,包括如下步骤:Referring to Fig. 2 and Fig. 3, this embodiment specifically provides a test method for generating a mileage order for a battery-swapping vehicle, including the following steps:
输入模块51,用于接收输入的车辆进站模拟信息,所述车辆进站模拟信息包括车辆识别模拟信息和车辆里程模拟信息;The
发送模块52,用于发送所述车辆进站模拟信息至目标换电站点;A sending
获取模块53,用于获取所述目标换电站点根据所述车辆进站模拟信息生成的模拟账单信息以及模拟支付凭证信息;An
生成模块54,用于根据所述模拟账单信息及所述模拟支付凭证信息,生成模拟里程订单;A generating
提示模块55,用于提示测试结果。The prompting
本实施例中,换电车辆的里程订单生成的测试方法可以在一种具有用户交互功能的页面式测试平台实现,测试平台与待测换电站点的站端服务器通信连接,其中集成了里程订单生成过程的信息交互选项。对于输入测试平台的里程订单生成过程中涉及的各类中间数据,其来源包括但不限于由测试人员输入,或自动生成,以及从其他终端远程读取获得;上述数据均应符合中间数据所要求的数据格式,可以进行预先的数据清洗或输入后的比对规制。本领域技术人员可知,本发明的构思不受上述测试平台的限制;实施例中对于中间数据对应的模拟数据生成方式仅作为例举,也不对本发明构成限制。In this embodiment, the test method for generating the mileage order of the battery exchange vehicle can be implemented on a page-type test platform with user interaction function. The test platform communicates with the station server of the battery exchange site to be tested, and the mileage order Information interaction options for the build process. For all kinds of intermediate data involved in the process of generating mileage orders entered into the test platform, its sources include but are not limited to input by testers, or automatic generation, and remote reading from other terminals; the above data should meet the requirements of intermediate data The data format can be pre-cleaned or compared and regulated after input. Those skilled in the art know that the concept of the present invention is not limited by the above-mentioned test platform; the method of generating simulated data corresponding to the intermediate data in the embodiment is only an example and does not limit the present invention.
具体地,输入模块51中接收的车辆进站模拟信息可以通过用户直接输入或根据用户输入的预设数据规则而自动生成。Specifically, the vehicle entry simulation information received in the
车辆进站模拟信息包括但不限于车辆识别模拟信息和车辆里程模拟信息,其中车辆识别模拟信息包括但不限于车辆的车牌信息或车辆的VIN码等可以唯一表征某一车辆的识别信息。Vehicle entry simulation information includes but is not limited to vehicle identification simulation information and vehicle mileage simulation information, wherein vehicle identification simulation information includes but is not limited to vehicle license plate information or vehicle VIN code and other identification information that can uniquely characterize a certain vehicle.
车辆里程模拟信息可由用户输入或自动生成,当然也可以通过和实际车辆进行远程通信,从车辆BMS直接获取ODO数据作为车辆里程模拟信息。The vehicle mileage simulation information can be input by the user or automatically generated. Of course, the ODO data can be directly obtained from the vehicle BMS as the vehicle mileage simulation information through remote communication with the actual vehicle.
发送模块52将车辆进站模拟信息发送至目标换电站点,以使目标换电站点能够根据车辆进站模拟信息进行处理,并返回生成里程订单的相关中间数据,对车辆进站模拟信息进行处理可以包括但不限于云端服务器以及目标换电站点的站端服务器等。The sending
作为较佳的实施方式,测试系统还包括检测模块56,用于检测车辆进站模拟信息是否符合参数格式要求的操作;若否,则生成提示信息,若是,则发送车辆进站模拟信息至目标换电站点。As a preferred embodiment, the test system also includes a
本实施方式对车辆进站模拟信息进行检测,如果符合参数格式要求则发送车辆进站模拟信息至目标换电站点,否则生成对应的提示信息。对于上述测试平台,车辆进站模拟信息可以在平台由用户进行输入;参数格式要求的输入信息包括但不限于车牌号、换电站点、通道号、站端编号、换电车辆排队数量、订单里程数等。具体地,例如车辆进站的站端编号、车辆进站的车牌号不能为空,且必须为入网车辆;车辆进站的通道不能为空等;此外,测试平台还可以对连接信息进行检测,例如换电站点的站端编号、地址域名及端口号等。本实施方式通过对车辆进站模拟信息进行检测,确保后续模拟里程订单测试过程能够顺利执行,避免因数据错误导致测试失败,影响测试的正常进行。In this embodiment, the simulation information of the vehicle entering the station is detected, and if it meets the parameter format requirements, the simulated information of the vehicle entering the station is sent to the target power exchange site; otherwise, corresponding prompt information is generated. For the above-mentioned test platform, the simulation information of the vehicle entering the station can be input by the user on the platform; the input information required by the parameter format includes but is not limited to the license plate number, battery exchange station, channel number, station terminal number, number of vehicles in line for battery exchange, and order mileage Count and so on. Specifically, for example, the station number of the vehicle entering the station, the license plate number of the vehicle entering the station cannot be empty, and must be a vehicle entering the network; the channel of the vehicle entering the station cannot be empty, etc.; in addition, the test platform can also detect the connection information, For example, the station number, address domain name and port number of the power exchange site. In this embodiment, by detecting the simulation information of the vehicle entering the station, it is ensured that the subsequent simulated mileage order test process can be carried out smoothly, and the test failure caused by data errors is avoided, which affects the normal progress of the test.
作为较佳的实施方式,车辆进站模拟信息还包括换电站识别信息,测试系统还包括站点确定模块57,用于根据换电站识别信息确定目标换电站点。As a preferred embodiment, the simulation information of the vehicle entering the station also includes identification information of the swapping station, and the test system further includes a
本实施方式中的换电站识别信息包括但不限于换电站名称、换电站编号等,对于上述测试平台,可以根据营运时间、可换电池数量等变量提供筛选;也可以结合地图显示,由地图点选及框选等操作得到的坐标范围综合确定换电站识别信息。本实施方式通过提供多样化的换电站识别信息,能够应用于指定的不同换电站,从而满足换电站点不断增加落成带来的测试需求。The identification information of the swapping station in this embodiment includes but is not limited to the name of the swapping station, the number of the swapping station, etc. For the above-mentioned test platform, screening can be provided according to variables such as operating time and the number of replaceable batteries; it can also be combined with map display, by map point The coordinate range obtained by operations such as selection and frame selection is used to comprehensively determine the identification information of the swap station. This embodiment can be applied to different designated swapping stations by providing diversified identification information of swapping stations, so as to meet the test requirements brought about by the continuous increase and completion of swapping stations.
获取模块53获取目标换电站点发送的及模拟支付凭证信息;其中针对前述应用场景,模拟账单信息可用于模拟操作员APP中的支付需求信息,例如支付金额,收款账户等;模拟支付凭证信息可用于模拟用户端APP里的支付凭证,例如二维码信息对应的支付账户信息等,从而获取模块53可以模拟现有应用场景中操作员对用户扫码的操作。The
生成模块54可用于模拟上述的现有应用场景中,操作员对用户扫码后进行的支付操作及模拟里程订单生成操作。具体地,可以根据模拟账单信息中的支付金额及收款账户以及模拟支付凭证信息中的支付账户进行实际支付操作,并根据支付操作结果生成模拟里程订单,模拟里程订单中包括但不限于支付双方信息、支付时间、支付金额等;较佳地,对于生成的模拟里程订单,可以在上述测试平台中提供查询功能,以便测试人员回调查看。从而提示模块55根据模拟里程订单正常生成与否,以及生成的模拟里程订单中的参数是否符合预期结果等进行检测并提示测试结果。为了更好地针对模拟里程订单进行检验,当中间数据错误或无法获取时,可以设置代替数据(参数)来使测试流程进行,以生成模拟里程订单;对于测试进程因中间数据而无法继续的情况,可在相应的进程采用预设代替结果作为标识。例如,步骤生成模块54如果因模拟账单信息及模拟支付凭证信息有误或未能生成导致无法实现支付,则可以将模拟里程订单的支付金额设置为0.01元作为标识。类似地,如果获取模块53获取的模拟账单信息及模拟支付凭证信息不符合预设数据要求,则可以将其设置为相应的标识数据。The
作为较佳的实施方式,车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息;生成模块54包括:As a preferred embodiment, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information; the
第一资源转移信息确定单元,用于根据历史里程模拟信息和当前里程模拟信息,确定资源转移信息;The first resource transfer information determining unit is configured to determine resource transfer information according to historical mileage simulation information and current mileage simulation information;
第一订单生成单元,用于在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成模拟里程订单。The first order generation unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment voucher information, so as to generate a simulated mileage order.
通常应用场景中,根据新增的里程数来确定订单的支付金额即资源转移信息,新增的里程数即由当前里程信息扣除历史里程信息获得;其中,当前里程信息通常由车辆即时提供;而历史里程信息则可以存储于云端服务器,从而使不同的站端服务器可以读取某换电车辆上一次生成里程订单时对应的历史里程信息。本实施方式中,分别设置历史模拟里程信息和当前里程模拟信息,从而相比于获取直接模拟生成的车辆里程信息,能够更为灵活地测试车辆里程信息的来源。In general application scenarios, the payment amount of the order is determined according to the newly added mileage, that is, the resource transfer information, and the newly added mileage is obtained by deducting the historical mileage information from the current mileage information; among them, the current mileage information is usually provided by the vehicle in real time; and The historical mileage information can be stored in the cloud server, so that different station servers can read the historical mileage information corresponding to the last time a mileage order was generated for a battery replacement vehicle. In this embodiment, historical simulation mileage information and current mileage simulation information are respectively set, so that the source of vehicle mileage information can be tested more flexibly than obtaining vehicle mileage information generated by direct simulation.
例如,从云端调取历史里程信息(符合车型等其他要求)作为历史里程模拟信息,当云端由于云端服务器软硬件故障或链路故障而出错,导致历史里程信息调取失败时,可将历史里程模拟信息设置为和当前里程模拟信息相同,从而使新增里程为零。相应地,提示模块55根据新增里程为零的中间测试数据呈报云端可能存在的错误编号。For example, historical mileage information (according to other requirements such as vehicle models) is retrieved from the cloud as historical mileage simulation information. The simulation information is set to be the same as the current mileage simulation information, so that the new mileage is zero. Correspondingly, the prompting
类似的,可以从换电站点的站端调取车辆上传的当前里程信息作为模拟当前里程信息,当站端由于站端服务器软硬件故障、链路故障(例如,导致站端无法接受车辆TBOX发送的里程信息)而出错,导致当前模拟里程信息调取失败时,可将历史模拟里程信息设置为特殊数值,将当前里程模拟信息设置为零,从而使新增里程为该特殊数值,如1000公里。相应地,步骤提示模块55根据新增里程的中间测试数据呈报站端可能存在的错误编号。Similarly, the current mileage information uploaded by the vehicle can be retrieved from the station side of the power exchange site as the simulated current mileage information. When the current simulated mileage information fails to be retrieved due to an error, the historical simulated mileage information can be set to a special value, and the current mileage simulation information can be set to zero, so that the newly added mileage is the special value, such as 1000 kilometers . Correspondingly, the
本实施方式分别用当前里程模拟信息和历史里程模拟信息来模拟车辆里程模拟信息,能够使测试更为贴合实际应用场景,灵活有效地检测车辆里程信息来源的软硬件以及网络链路状态,并及时发现问题节点。This embodiment uses current mileage simulation information and historical mileage simulation information to simulate vehicle mileage simulation information, which can make the test more suitable for actual application scenarios, flexibly and effectively detect the software, hardware and network link status of the vehicle mileage information source, and Find problem nodes in time.
作为较佳的实施方式,车辆里程模拟信息包括车辆对应的目标购买里程信息;生成模块54包括:As a preferred embodiment, the vehicle mileage simulation information includes the corresponding target purchase mileage information of the vehicle; the generating
第二资源转移信息确定单元,用于根据目标购买里程信息确定资源转移信息;A second resource transfer information determining unit, configured to determine resource transfer information according to target purchase mileage information;
第二订单生成单元,用于在模拟支付凭证信息对应的用户账户执行资源转移操作,以生成模拟里程订单。The second order generating unit is configured to perform a resource transfer operation on the user account corresponding to the simulated payment voucher information, so as to generate a simulated mileage order.
本实施方式针对一种预售模式的里程订单消费方式,根据获取的目标购买里程信息确定资源转移信息;具体地,资源转移信息可以根据目标购买里程信息和定价规则及优惠活动信息等进行组合计算,以确定资源转移信息。例如根据目标购买里程和分段计价规则累加需要支付的金额,并扣除优惠券金额,以得到资源转移信息。This embodiment is aimed at a mileage order consumption method in the pre-sale mode, and determines the resource transfer information according to the acquired target purchase mileage information; specifically, the resource transfer information can be combined and calculated according to the target purchase mileage information, pricing rules, and preferential activity information. , to determine resource transfer information. For example, the amount to be paid is accumulated according to the target purchase mileage and segment pricing rules, and the coupon amount is deducted to obtain resource transfer information.
本实施方式采用目标购买里程信息模拟车辆里程模拟信息,能够高效准确地对于预售模式下的里程订单生成进行测试,并及时验核各类计价标准以及优惠标准,以便定价部门及时进行调整。This implementation mode uses target purchase mileage information to simulate vehicle mileage simulation information, which can efficiently and accurately test the generation of mileage orders in the pre-sale mode, and check various pricing standards and preferential standards in time, so that the pricing department can make timely adjustments.
作为较佳的实施方式,测试系统还包括:As a preferred implementation, the test system also includes:
反馈信息获取模块58,用于获取第一反馈信息和/或第二反馈信息;其中,第一反馈信息用于表征目标换电站点的站端服务异常;第二反馈信息用于表征目标换电站点的云端服务异常。Feedback
在里程订单的生成过程中,换电站点的信息处理及交互通常不仅包括设置于本地的站端服务,还包括用于存储跨站大数据的云端服务。如上文所述,在一种较佳的实施方式中,车辆里程模拟信息包括当前里程模拟信息和历史里程模拟信息,其中当前里程信息由车辆发送至站端服务;历史里程信息存储于云端服务,从而使不同的站端服务可以读取某换电车辆上一次生成里程订单时对应的历史里程信息。本实施方式中,对于发送车辆进站信息后的反馈信息分别获取第一反馈信息和/或第二反馈信息;其中,第一反馈信息用于表征目标换电站点的站端服务异常;第二反馈信息用于表征目标换电站点的云端服务异常;例如当站端服务异常时,向调用接口返回“站端服务认证异常”,云端服务异常时,向调用接口返回云端异常对应的报错参数。In the process of generating mileage orders, the information processing and interaction of the power exchange site usually includes not only the local station-side services, but also cloud services for storing cross-site big data. As mentioned above, in a preferred embodiment, the vehicle mileage simulation information includes current mileage simulation information and historical mileage simulation information, wherein the current mileage information is sent to the station service by the vehicle; the historical mileage information is stored in the cloud service, In this way, different station-side services can read the historical mileage information corresponding to the last time a mileage order was generated for a battery exchange vehicle. In this embodiment, the first feedback information and/or the second feedback information are respectively obtained for the feedback information after sending the vehicle entry information; wherein, the first feedback information is used to represent the station-end service abnormality of the target power exchange site; the second The feedback information is used to represent the cloud service exception of the target power exchange site; for example, when the station-side service is abnormal, return "station-side service authentication exception" to the call interface, and when the cloud service is abnormal, return the error parameter corresponding to the cloud exception to the call interface.
本实施方式通过调用接口判读服务端反馈参数等方式,有效地检测到通信链路中的问题节点,从而能够及时地开展相应的维护工作,确保系统服务端恢复正常运行。This implementation mode effectively detects problem nodes in the communication link by calling the interface to interpret the server feedback parameters, etc., so that corresponding maintenance work can be carried out in a timely manner to ensure that the system server returns to normal operation.
作为较佳的实施方式,提示模块55用于判断模拟里程订单是否有效;As a preferred embodiment, the
若是,则提示测试通过,若否,则根据第一反馈信息和第二反馈信息生成故障提示。If yes, prompt that the test is passed; if not, generate a fault prompt according to the first feedback information and the second feedback information.
本实施方式具体根据模拟里程订单的生成结果,判断是否为有效订单。具体地,可以针对模拟里程订单内容中的输出信息和预期信息进行比较,根据比较结果进行判断。例如对于模拟里程订单中的输出信息如换电站点编号、车牌号、操作员编号、购买里程数、支付金额、支付时间等,根据模拟测试的预设规则可以获知上述输出信息对应的预期信息,如果输出信息和预期信息相符则提示测试通过;若不相符则生成故障提示,例如发送车辆进站信息后从换电站点获取到第一反馈信息,则提示站端服务故障。In this embodiment, it is specifically determined whether the order is a valid order based on the generation result of the simulated mileage order. Specifically, the output information in the simulated mileage order content can be compared with the expected information, and judgment can be made according to the comparison result. For example, for the output information in the simulated mileage order, such as the battery exchange station number, license plate number, operator number, purchased mileage, payment amount, payment time, etc., the expected information corresponding to the above output information can be obtained according to the preset rules of the simulation test. If the output information matches the expected information, it will prompt that the test has passed; if it does not match, a fault prompt will be generated. For example, if the first feedback information is obtained from the power exchange station after sending the vehicle entry information, it will prompt the station-side service failure.
本实施方式针对模拟里程订单的测试结果进行判断,尤其针对换电站点中关键的站端服务和云端服务进行检验,当其发生故障时生成针对性的故障信息,有助于相关人员及时予以维护修复。This implementation method judges the test results of the simulated mileage order, especially the key station-side services and cloud services in the power exchange site. When a fault occurs, targeted fault information is generated to help relevant personnel maintain it in a timely manner. repair.
本实施例的换电车辆的里程订单生成的测试系统能够有效地还原里程订单的应用场景及生成过 程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。The test system for generating mileage orders for battery swap vehicles in this embodiment can effectively restore the application scenarios and generation process of mileage orders, and test the various links involved in the generation of mileage orders in a targeted manner, which is helpful for timely discovery of related software and hardware problems or At the same time, the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and at the same time prevents the normal operation of test battery swap sites from being disturbed.
实施例3Example 3
参见图4所示,本实施例提供了一种电子设备30,包括处理器31、存储器32及存储在存储器32上并可在处理器31上运行的计算机程序,处理器31执行程序时实现实施例1中的换电车辆的里程订单生成的测试方法。图4显示的电子设备30仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring to Fig. 4, the present embodiment provides an
电子设备30可以以通用计算设备的形式表现,例如其可以为服务器设备。电子设备30的组件可以包括但不限于:上述至少一个处理器31、上述至少一个存储器32、连接不同系统组件(包括存储器32和处理器31)的总线33。
总线33包括数据总线、地址总线和控制总线。The
存储器32可以包括易失性存储器,例如随机存取存储器(RAM)321和/或高速缓存存储器322,还可以进一步包括只读存储器(ROM)323。The
存储器32还可以包括具有一组(至少一个)程序模块324的程序/实用工具325,这样的程序模块324包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
处理器31通过运行存储在存储器32中的计算机程序,从而执行各种功能应用以及数据处理,例如本发明实施例1中的换电车辆的里程订单生成的测试方法。The
电子设备30也可以与一个或多个外部设备34(例如键盘、指向设备等)通信。这种通信可以通过输入/输出(I/O)接口35进行。并且,模型生成的设备30还可以通过网络适配器36与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器36通过总线33与模型生成的设备30的其它模块通信。可以结合模型生成的设备30使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID(磁盘阵列)系统、磁带驱动器以及数据备份存储系统等。
应当注意,尽管在上文详细描述中提及了电子设备的若干单元/模块或子单元/模块,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多单元/模块的特征和功能可以在一个单元/模块中具体化。反之,上文描述的一个单元/模块的特征和功能可以进一步划分为由多个单元/模块来具体化。It should be noted that although several units/modules or subunits/modules of an electronic device are mentioned in the above detailed description, such division is only exemplary and not mandatory. Actually, according to the embodiment of the present invention, the features and functions of two or more units/modules described above may be embodied in one unit/module. Conversely, the features and functions of one unit/module described above can be further divided to be embodied by a plurality of units/modules.
本实施例通过提供一种电子设备执行换电车辆的里程订单生成的测试方法,有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。In this embodiment, by providing a test method for generating mileage orders for vehicles with electronic equipment, the application scenarios and generation process of mileage orders can be effectively restored, and the various links involved in the generation of mileage orders can be tested in a targeted manner, which is helpful for timely Find related software and hardware problems or faults; at the same time, the fully automated remote test process greatly improves the test efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
实施例4Example 4
本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,程序被处理器执行时实现实施例1中换电车辆的里程订单生成的测试方法。This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the test method for generating a mileage order for a battery swap vehicle in Embodiment 1 is implemented.
其中,可读存储介质可以采用的更具体可以包括但不限于:便携式盘、硬盘、随机存取存储器、只读存储器、可擦拭可编程只读存储器、光存储器件、磁存储器件或上述的任意合适的组合。Wherein, the readable storage medium may more specifically include but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device or any of the above-mentioned the right combination.
在可能的实施方式中,本发明还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在终端设备上运行时,程序代码用于使终端设备执行实现实施例1中换电车辆的里程订单生成的测试方法。In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on the terminal device, the program code is used to enable the terminal device to implement the battery swap in Embodiment 1. Test method for mileage order generation for vehicles.
其中,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明的程序代码,程序代码可以完全地在用户设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户设备上部分在远程设备上执行或完全在远程设备上执行。Wherein, the program code for executing the present invention may be written in any combination of one or more programming languages, and the program code may be completely executed on the user equipment, partially executed on the user equipment, or used as an independent software Package execution, partly on the user device and partly on the remote device, or entirely on the remote device.
本实施例通过计算机可读存储介质存储的计算机程序在需要时被调用并执行,能够有效地还原里程订单的应用场景及生成过程,并针对性地测试里程订单生成涉及的各环节,有助于及时发现相关软硬件问题或故障;同时全自动化的远程测试流程极大地提高了里程订单的测试效率,满足相关软件版本升级调试需求的同时,也使测试换电站点的正常营运免受干扰。In this embodiment, the computer program stored in the computer-readable storage medium is called and executed when needed, which can effectively restore the application scenario and generation process of the mileage order, and test the various links involved in the generation of the mileage order in a targeted manner, which is helpful Timely detection of relevant software and hardware problems or failures; at the same time, the fully automated remote testing process greatly improves the testing efficiency of mileage orders, meets the needs of related software version upgrades and debugging, and also prevents the normal operation of test battery swap sites from being disturbed.
虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although the specific implementation of the present invention has been described above, those skilled in the art should understand that this is only an example, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims (11)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111659074.2A CN116414676A (en) | 2021-12-30 | 2021-12-30 | Test method, system, equipment and medium for generating mileage order of battery-changing vehicle |
| CN202111659074.2 | 2021-12-30 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023125706A1 true WO2023125706A1 (en) | 2023-07-06 |
Family
ID=86998046
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/142964 Ceased WO2023125706A1 (en) | 2021-12-30 | 2022-12-28 | Test method and system for mileage order generation of battery swapping vehicle, device and medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116414676A (en) |
| WO (1) | WO2023125706A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117408463A (en) * | 2023-10-20 | 2024-01-16 | 重庆大学 | An intelligent electric material vehicle battery swapping station location selection and dispatching method and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200065443A1 (en) * | 2017-05-02 | 2020-02-27 | The Regents Of The University Of Michigan | Simulated vehicle traffic for autonomous vehicles |
| CN111191802A (en) * | 2019-12-31 | 2020-05-22 | 上海钧正网络科技有限公司 | Vehicle battery replacement method, system, terminal and readable storage medium |
| CN111746339A (en) * | 2019-03-26 | 2020-10-09 | 奥动新能源汽车科技有限公司 | Intelligent power exchange method and system for power exchange station |
| CN112215502A (en) * | 2020-10-16 | 2021-01-12 | 宁波小遛共享信息科技有限公司 | Scheduling and supplying method and device for battery, electronic equipment and storage medium |
-
2021
- 2021-12-30 CN CN202111659074.2A patent/CN116414676A/en active Pending
-
2022
- 2022-12-28 WO PCT/CN2022/142964 patent/WO2023125706A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200065443A1 (en) * | 2017-05-02 | 2020-02-27 | The Regents Of The University Of Michigan | Simulated vehicle traffic for autonomous vehicles |
| CN111746339A (en) * | 2019-03-26 | 2020-10-09 | 奥动新能源汽车科技有限公司 | Intelligent power exchange method and system for power exchange station |
| CN111191802A (en) * | 2019-12-31 | 2020-05-22 | 上海钧正网络科技有限公司 | Vehicle battery replacement method, system, terminal and readable storage medium |
| CN112215502A (en) * | 2020-10-16 | 2021-01-12 | 宁波小遛共享信息科技有限公司 | Scheduling and supplying method and device for battery, electronic equipment and storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117408463A (en) * | 2023-10-20 | 2024-01-16 | 重庆大学 | An intelligent electric material vehicle battery swapping station location selection and dispatching method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116414676A (en) | 2023-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110888414B (en) | Test method for upgrading vehicle controller | |
| CN117914758A (en) | Full-link monitoring method and system for intelligently measuring complex service scene | |
| CN113946499A (en) | Micro-service link tracking and performance analysis method, system, equipment and application | |
| CN111752833A (en) | Software quality system approval method, device, server and storage medium | |
| CN111242648A (en) | A power battery information traceability system | |
| CN112541011A (en) | Power grid terminal fault processing method and device based on RPA and AI | |
| CN118972279B (en) | A vehicle-mounted TBOX signal test verification method, device and medium | |
| CN109918103A (en) | A kind of acquisition terminal remote update system and its working method based on whole process supervision | |
| CN113672501B (en) | Parking lot service testing method and device | |
| CN119130723A (en) | Automatic management method and device for power supply guarantee work order, electronic equipment, and storage medium | |
| WO2023125706A1 (en) | Test method and system for mileage order generation of battery swapping vehicle, device and medium | |
| CN110119348B (en) | Software upgrading test method and terminal | |
| CN112184072B (en) | Computer room equipment management method and device | |
| CN118473914B (en) | Deployment management method for network equipment | |
| Bernard | Improving public charging infrastructure reliability | |
| CN114683856B (en) | Vehicle mileage processing method, system, electronic device and storage medium | |
| CN118195573A (en) | Standard operation program generation method, device, medium and equipment for intelligent maintenance system of charging equipment | |
| CN118863919A (en) | A system and method for binding SN code to perform EOL test | |
| CN111061687A (en) | Abnormal data positioning method, device and system | |
| CN110750452B (en) | Automatic test method and device | |
| CN115291585A (en) | Method for acquiring fault data of VCU and related device | |
| CN115099670A (en) | Battery replacement station management method and device, electronic equipment and storage medium | |
| CN114546423A (en) | Vehicle gateway flash method, device, equipment and storage medium | |
| CN119254794B (en) | Vehicle model signal inspection test methods, devices, electronic equipment and media | |
| US12265465B2 (en) | System and method for auto-generation of test scripts |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22914957 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22914957 Country of ref document: EP Kind code of ref document: A1 |