A simulation platform function test method based on business process
Patent Information
- Application Number
- CN202211331099.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-10-28
AI Technical Summary
[0003]为了解决现有技术中对于城市交通仿真系统平台的构建方式没有一个成熟的方法可以测试,导致用户很难判断仿真平台的内部运算及逻辑关系的问题,本发明提供一种基于业务流程的仿真平台功能测试方法,其可准确地测试出城市交通仿真系统平台的构建方式是否满足不同业务需求
[0058]本发明提供的一种基于业务流程的仿真平台功能测试方法,将交通仿真系统平台支持的功能模块进行总结和分类,并且按照仿真类型定义仿真平台必须支持的子模块,确保能够对功能模块的仿真类型进行判断;使用仿真软件在待测试仿真平台上测试时,通过对每个子模块中关键的测试指标的实施结果的监控,确保能够准确地判断待测试仿真平台上支持的子模块和功能模块,进而确保本方法的测试结果是基于每个子模块的测试结果获得的,而非只依据最终输出结果;基于实际业务中宏观和微观仿真的运行方式,定义方案分析模块为判断待测试仿真平台的仿真类型的核心模块,基于方案分析模块的仿真类型,判断待测试仿真平台的仿真类型;通过本申请技术方案测试出的待测试城市交通仿真系统平台的构建方式,符合待测试仿真平台的实际子模块构成,测试结果真实可靠,可真实体现城市交通仿真系统平台的构建方式是否满足不同业务需求;本申请的技术方案适用于单一宏观仿真、单一微观仿真和兼容宏微观仿真三种类型的仿真平台,避免的了传统的测试方法只是适用单一类型仿真平台的情况。
Smart Images

Figure CN115618625B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of urban road traffic simulation technology, specifically a functional testing method for a simulation platform based on business processes. Background Technology
[0002] Traffic simulation evaluation technology is currently the most widely used and vivid evaluation method in traffic operations, providing theoretical support for evaluating the feasibility and effectiveness of traffic optimization schemes. With the development of traffic simulation technology, various regions have built comprehensive urban traffic simulation system platforms, playing a significant role in improving the development level of urban traffic planning and management. However, with the deployment of simulation platforms in various regions, some problems have gradually emerged. Because different users have different business requirements, the platform type may support macroscopic simulation, microscopic simulation, or both. If the wrong type is selected, the simulation results may be incompatible with business operations, not only failing to guide work but also leading to the opposite results. Since most platforms emphasize the accuracy of simulation algorithms and adopt a universal construction approach, they do not pay attention to the different needs of different types of traffic operations regarding the purpose of simulation evaluation, evaluation indicator requirements, and functional differences. This has resulted in problems such as poor platform functionality and incompatibility with actual business needs, inconvenient operation, and a lack of evaluation indicator outputs that meet specific target needs. Currently, when judging whether a platform meets business needs, it is often based on the platform's output indicators and experience. However, in the transportation industry, some traffic evaluation indicators can be obtained through both macro and micro simulations, but they differ significantly in accuracy, meaning, and guiding role. The true differentiator between platforms lies in the simulation models and internal data logic relationships used during platform operation. However, these are not readily apparent, making it difficult for platform users to accurately and intuitively assess the suitability of a platform's functionality when selecting one. Summary of the Invention
[0003] To address the problem that existing technologies lack a mature method for testing the construction methods of urban traffic simulation system platforms, making it difficult for users to determine the internal operations and logical relationships of the simulation platform, this invention provides a business process-based simulation platform functional testing method. This method can accurately test whether the construction method of the urban traffic simulation system platform meets different business requirements.
[0004] The technical solution of this invention is as follows: a functional testing method for a business process-based simulation platform, characterized by comprising the following steps:
[0005] S1: Classify traffic simulation system platforms according to simulation type;
[0006] The simulation types include: macroscopic simulation, microscopic simulation, or a combination of macroscopic and microscopic simulation.
[0007] S2: Based on the business process, define the functional modules supported by the traffic simulation system platform and the sub-modules included in each functional module;
[0008] The functional modules include: scheme organization and generation, scheme analysis, scheme evaluation, and result display;
[0009] S3: For different functional modules, construct corresponding sub-module test projects for each sub-module; define key test indicators and corresponding test methods for each sub-module test project, and construct a test indicator library by combining the sub-module test projects, the test indicators, and the test methods.
[0010] The test metrics are the test content included in each of the sub-module test projects;
[0011] The testing method describes the operational steps for each test indicator and the expected results on the simulation platform after implementation.
[0012] S4: Define the sub-modules included in the functional modules supported by the traffic simulation system platform for different types according to the simulation type;
[0013] When the simulation type is macroscopic simulation, the sub-modules in the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, and traffic assignment analysis;
[0014] When the simulation type is microscopic traffic simulation, the sub-module of the scheme analysis module includes: traffic network operation analysis;
[0015] When the simulation type uses both macroscopic and microscopic simulations, the sub-modules in the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic assignment analysis, and traffic network operation analysis.
[0016] S5: Confirm the business type of the target business implemented by the user and the simulation platform to be tested;
[0017] Identify the simulation software used in the business based on the business type, denoted as: test simulation software; confirm the software type of the test simulation software;
[0018] The software types include: software that uses only macroscopic simulation, software that uses only microscopic simulation, or software that uses both macroscopic and microscopic simulation.
[0019] S6: Based on the simulation software type, identify the functional modules and sub-modules that the simulation software must use during operation, denoted as: modules to be tested;
[0020] S7: Find the corresponding sub-module test items based on the module to be tested; determine the corresponding test indicators and test methods in the test indicator library based on the sub-module test items;
[0021] S8: Run the test simulation software on the simulation platform to be tested to ensure that each test index in each sub-module test project is implemented;
[0022] S9: Compare the test results output for each test indicator with the test method corresponding to the test indicator to determine whether the function of the submodule has been implemented. The specific determination method includes:
[0023] When the test results do not include the expected results defined in the test method, it is determined that the simulation platform under test does not support the corresponding test indicators.
[0024] When the test results of all the test indicators corresponding to the submodule test item are supported, the simulation platform to be tested is determined to support the submodule.
[0025] S10: The method for determining the simulation type of the simulation platform under test includes the following steps:
[0026] Confirm the following two judgment conditions:
[0027] Judgment Condition 1: Confirm whether all the functions of the sub-modules in Traffic Generation Analysis, Traffic Distribution Analysis, Traffic Mode Analysis, Traffic Impedance Analysis, and Traffic Assignment Analysis have been implemented;
[0028] Judgment condition 2: Confirm whether the function of the sub-module "Traffic Network Operation Analysis" is implemented;
[0029] If only condition 1 is true, then the simulation type of the simulation platform to be tested is: macroscopic simulation;
[0030] If only condition 2 is true, then the simulation type of the simulation platform to be tested is: microscopic simulation.
[0031] If both conditions are met, the simulation type of the simulation platform to be tested is: simultaneous macroscopic and microscopic simulation.
[0032] Its further features are:
[0033] In step S10, it is also necessary to determine whether the functions generated by the solution organization have been implemented, specifically including the following:
[0034] b1: Determine whether the database generation and scheme design sub-modules in the scheme organization generation process are implemented;
[0035] If at least one of the two submodules is implemented, then proceed to step b2;
[0036] Otherwise, if neither of the two sub-modules is implemented, the function generated by the solution organization will be judged as: not implemented;
[0037] b2: Determine if the solution viewing function of the submodule is implemented;
[0038] If it has been implemented, the function generated by the solution organization will be judged as: implemented;
[0039] Otherwise, the functionality generated by the solution organization will be judged as: not implemented;
[0040] In step S9, when determining whether the function of the submodule has been implemented, the confirmation process includes the following:
[0041] When confirming the solution organization generation module:
[0042] First, confirm the sub-modules: database generation and scheme design, then confirm the scheme by checking the sub-modules;
[0043] When confirming the solution analysis module:
[0044] First, confirm the sub-modules: traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic impedance analysis, and traffic assignment analysis; then confirm the sub-module: traffic network operation analysis.
[0045] In step S4, the sub-modules supported by the traffic simulation system platform also include the following:
[0046] When the simulation type is macroscopic simulation, the sub-modules supported by the traffic simulation system platform also include: database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphic display, data tables and research reports;
[0047] When the simulation type is micro-simulation, the sub-modules supported by the traffic simulation system platform also include: scheme design, scheme viewing, network operation period efficiency evaluation, graphical display, data tables, animation demonstration and research report;
[0048] When the simulation type uses both macroscopic and microscopic simulations, the sub-modules supported by the traffic simulation system platform also include: scheme design, database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphical display, data tables, animation demonstration, and research reports.
[0049] The solution organization and generation module includes: database generation, solution design, and solution viewing;
[0050] The evaluation module of the scheme includes: network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, and comprehensive transportation system economic efficiency evaluation.
[0051] The results display module includes: graphical display, output data table, research report, and animated demonstration;
[0052] Before implementing step S5, build a bootstrap index and make it available to users;
[0053] The bootstrap index includes the following:
[0054] Content 1: The sub-modules included in the functional modules supported by the different types of traffic simulation system platforms;
[0055] Content 2: Define test metrics and test methods for each submodule test item;
[0056] Content 3: The steps and operation sequence of steps S5 and S8;
[0057] The construction methods of the guiding index include: graphical method, menu method, or both graphical and menu methods.
[0058] This invention provides a business process-based simulation platform functional testing method. It summarizes and categorizes the functional modules supported by the traffic simulation system platform, and defines the sub-modules that the simulation platform must support according to simulation type, ensuring the ability to determine the simulation type of each functional module. When testing on the simulation platform using simulation software, monitoring the implementation results of key test indicators in each sub-module ensures accurate identification of the supported sub-modules and functional modules on the platform. This ensures that the test results of this method are based on the test results of each sub-module, rather than solely on the final output. It is based on macroscopic and microscopic simulations in actual business operations. The operational method defines the scheme analysis module as the core module for determining the simulation type of the simulation platform under test. Based on the simulation type determined by the scheme analysis module, the simulation type of the simulation platform under test is determined. The construction method of the urban traffic simulation system platform under test, as tested by the technical solution of this application, conforms to the actual sub-module composition of the simulation platform under test. The test results are authentic and reliable, and can truly reflect whether the construction method of the urban traffic simulation system platform meets different business needs. The technical solution of this application is applicable to three types of simulation platforms: single macroscopic simulation, single microscopic simulation, and simulation platform that is compatible with both macroscopic and microscopic simulation, avoiding the situation where traditional testing methods are only applicable to a single type of simulation platform. Attached Figure Description
[0059] Figure 1 This is a flowchart illustrating the business process-based simulation platform functional testing method in this application;
[0060] Figure 2 A collection of simulation function modules oriented towards business processes;
[0061] Figure 3 The solution organizes and generates modules including sub-modules and test metrics;
[0062] Figure 4 This includes the sub-modules and test metrics of the solution analysis module;
[0063] Figure 5 The evaluation module includes sub-modules and test metrics.
[0064] Figure 6 The results will include the sub-modules and test metrics.
[0065] Figure 7 This is an example of a bootstrap index. Detailed Implementation
[0066] like Figure 1 As shown, the present invention includes a functional testing method for a business process-based simulation platform, which includes the following steps.
[0067] S1: Classify traffic simulation system platforms according to simulation type;
[0068] Simulation types include: macroscopic simulation, microscopic simulation, or a combination of macroscopic and microscopic simulation.
[0069] S2: Based on business processes, define the functional modules supported by the traffic simulation system platform and the sub-modules included in each functional module.
[0070] Based on actual business analysis, all three simulation types mentioned above require four major steps when conducting simulations: scheme organization and generation, scheme analysis, scheme evaluation, and result presentation.
[0071] Therefore, the functional modules in this application are defined as including: scheme organization and generation, scheme analysis, scheme evaluation, and result display;
[0072] The solution organization and generation module includes: database generation, solution design, and solution viewing;
[0073] The evaluation module includes: network operation efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, and comprehensive transportation system economic efficiency evaluation.
[0074] The results display module includes: graphical display, output data tables, research reports, and animated demonstrations.
[0075] Some research institutions use macroscopic simulation methods to simulate the traffic operation of the entire city, while some traffic management agencies use microscopic simulation to simulate the traffic operation of a specific road segment. When it comes to a specific road segment, although both macroscopic and microscopic simulations can output traffic operation simulation results, the simulation results based on macroscopic simulation and microscopic simulation differ significantly and cannot be used interchangeably.
[0076] This application combines business processes and requirements to determine the functional modules that the traffic simulation system platform for macro- and micro-simulation needs to support, thereby defining test indicators. This ensures that the simulation platform's functional testing is based on actual business needs, avoiding the problem of previous simulation platform testing that focused only on theoretical algorithms and model construction, emphasizing theoretical technology while neglecting practical application. The specific composition of functional modules and sub-modules is shown in the accompanying drawings. Figure 2 A collection of simulation function modules oriented towards business processes.
[0077] S3: For different functional modules, build corresponding submodule test projects for each submodule.
[0078] By analyzing macroscopic, microscopic, and macro-microscopic simulations to ensure their normal operation, the types of underlying simulation modules and their basic functions are determined. The required functions are categorized and specified into functional modules, as detailed in the appendix. Figure 3 The solid-line boxes in the image contain a total of 21 modules. These functional modules are categorized according to their corresponding steps, forming a functional module set.
[0079] Define key test metrics and corresponding test methods for each submodule test item, and construct a test metric library by combining submodule test items, test metrics, and test methods;
[0080] The test metrics are the test content included in each submodule test project;
[0081] The testing method defines the operational steps for each test metric and the expected results on the simulation platform after implementation.
[0082] S4: Define the sub-modules included in the functional modules supported by different types of traffic simulation system platforms according to the simulation type.
[0083] In this application, the simulation types supported by the simulation platform are reflected in the "Scheme Analysis" module.
[0084] When the simulation type is macroscopic simulation, the sub-modules of the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, and traffic assignment analysis.
[0085] When the simulation type is microscopic traffic simulation, the sub-modules of the scheme analysis module include: traffic network operation analysis;
[0086] When the simulation type uses both macroscopic and microscopic simulations, the sub-modules in the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic assignment analysis, and traffic network operation analysis.
[0087] Meanwhile, the sub-modules supported by the three types of simulation platforms are defined. When the simulation type is macro simulation, the sub-modules supported by the traffic simulation system platform also include: database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphic display, data tables and research reports.
[0088] When the simulation type is micro-simulation, the traffic simulation system platform also supports the following sub-modules: scheme design, scheme viewing, network operation efficiency evaluation, graphical display, data tables, animation demonstration and research report;
[0089] When the simulation type uses both macroscopic and microscopic simulations, the traffic simulation system platform also supports the following sub-modules: scheme design, database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphical display, data tables, animation demonstration, and research report.
[0090] In practical implementation, the evaluation of "scheme effectiveness" is categorized into five types based on the diversity of simulation evaluation indicators output by different types of simulations: network operation efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, and comprehensive transportation system economic efficiency evaluation. The specific simulation evaluation output indicators involved in each category are shown in Table 1, which categorizes the evaluation indicators for scheme effectiveness evaluation.
[0091] Table 1. Classification of Evaluation Indicators for Scheme Effectiveness Assessment (Example)
[0092]
[0093] When conducting functional testing, determine whether there are output results and whether the simulation evaluation results meet actual business requirements, based on this table. For both macroscopic and microscopic simulations, all five evaluation indicators should have corresponding output results.
[0094] When conducting micro-simulation, further classification should be considered based on business needs. If bus simulation is not involved, it is sufficient to output the network operation period efficiency evaluation results. However, if bus simulation is conducted, both the network operation period efficiency evaluation and the public transportation system operation efficiency evaluation results should be output.
[0095] This application's technical solution determines the sub-modules included in each functional module by identifying the basic functions that each module should achieve in actual operation, and then determines the evaluation objects for each module. See the attached drawings for details. Figures 3-6 Using the UML requirements analysis method, we determine the basic functions that each functional module should implement in actual operation, and determine the evaluation objects of each module, referring to the content corresponding to each branch node shown in the figure.
[0096] In the technical solution of this application, the test items, test indicators and test methods of the sub-modules are constituted into a test indicator library;
[0097] The test metrics are the test content included in each submodule test project;
[0098] The testing method defines the operational steps for each test metric and the expected results on the simulation platform after implementation. In this application, functional modules, sub-projects of functional modules, test metrics, and testing methods are defined based on actual business needs. When testing the simulation platform under test, the type of simulation platform is not determined by the final output simulation results, but rather by observing the output of each step in the process through each functional module sub-project and test metric, ensuring that the final test results meet actual business requirements.
[0099] The data format stored in the indicator library is shown in Table 2 below.
[0100] Table 2 Example of Simulation Platform Functional Evaluation Index Library
[0101]
[0102] S5: Confirm the business type of the target business implemented by the user and the simulation platform to be tested;
[0103] Identify the simulation software used in the business based on the business type, denoted as: test simulation software; confirm the software type of the test simulation software;
[0104] Software types include: software that uses only macroscopic simulation, software that uses only microscopic simulation, or software that uses both macroscopic and microscopic simulation.
[0105] S6: Based on the type of simulation software, identify the functional modules and sub-modules that must be used when the simulation software runs, denoted as: modules to be tested.
[0106] S7: Locate the corresponding submodule test items based on the module to be tested; determine the corresponding test indicators and test methods in the test indicator library based on the submodule test items.
[0107] S8: Run the test simulation software on the simulation platform to be tested to ensure that every test metric in each submodule test project is implemented.
[0108] S9: Compare the test results output for each test metric with the corresponding test method to determine whether the submodule's functionality has been implemented. Specific determination methods include:
[0109] If the test results do not include the expected results defined in the test method, it is determined that the simulation platform under test does not support the corresponding test metrics.
[0110] When the test results of all test indicators corresponding to the submodule test items are supported, the simulation platform to be tested is judged to be a supported submodule.
[0111] When determining whether the functions of a submodule are implemented based on simulation software running on the simulation platform under test, the specific implementation process involves confirming the scheme analysis module as follows: first confirm the submodules: traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic impedance analysis, and traffic assignment analysis; then confirm the submodule: traffic network operation analysis.
[0112] In actual business operations, if the simulation platform under test uses both macroscopic and microscopic simulations, the execution of its sub-module, Traffic Network Operation Analysis, requires prior confirmation of the execution results of sub-modules such as Traffic Generation Analysis, Traffic Distribution Analysis, Traffic Mode Analysis, Traffic Impedance Analysis, and Traffic Assignment Analysis. Before testing, the tester is unaware of the simulation type of the platform. Therefore, to ensure the accuracy of the test results, the sub-modules Traffic Generation Analysis, Traffic Distribution Analysis, Traffic Mode Analysis, Traffic Impedance Analysis, and Traffic Assignment Analysis must be executed first, followed by confirmation of the sub-module Traffic Network Operation Analysis.
[0113] When confirming the solution organization and generation module: first confirm the sub-modules: database generation and solution design, and then confirm the solution viewing sub-module.
[0114] According to the actual business execution order, the data viewed during the confirmation process of the solution viewing submodule depends on the database generation and the execution results of the solution design. Therefore, during testing, it is necessary to confirm the submodules of database generation and solution design first, and then confirm the solution viewing submodule. This conforms to the actual business order and ensures the accuracy of the execution results.
[0115] S10: The method for determining the simulation type of the simulation platform under test includes the following steps:
[0116] Confirm the following two judgment conditions:
[0117] Judgment Condition 1: Confirm whether all the functions of the sub-modules in Traffic Generation Analysis, Traffic Distribution Analysis, Traffic Mode Analysis, Traffic Impedance Analysis, and Traffic Assignment Analysis have been implemented;
[0118] Judgment condition 2: Confirm whether the function of the sub-module "Traffic Network Operation Analysis" is implemented;
[0119] If only condition 1 is true, then the simulation type of the simulation platform to be tested is: macroscopic simulation;
[0120] If only condition 2 is true, then the simulation type of the simulation platform to be tested is: microscopic simulation.
[0121] If both conditions are met, the simulation type of the simulation platform to be tested is: simultaneous macroscopic and microscopic simulation.
[0122] Because the simulation calculation models and internal data logic relationships included in the scheme analysis module differ, some traffic evaluation indicators in the transportation industry can be obtained in both macro and micro simulations, but they differ greatly in accuracy, meaning, and guiding role. Therefore, the scheme analysis module that implements the analysis process is the core judgment module in this application's technical solution. First, the implementation of the scheme analysis module is determined through test indicators and test methods. On the basis of ensuring that the scheme analysis module has been implemented, the simulation type of the scheme analysis module is determined based on the sub-modules that have been implemented in the scheme analysis module. The simulation type of the simulation platform to be tested is consistent with the simulation type of the scheme analysis module, ensuring that the simulation type given in the test results can truly reflect the real situation of the simulation calculation models and internal data logic relationships included in the simulation platform to be tested, thereby ensuring that the test results are true and reliable.
[0123] In step S10, it is also necessary to determine whether the functions generated by the scheme organization have been implemented, specifically including the following:
[0124] b1: Determine whether the database generation and scheme design sub-modules in the scheme organization generation process are implemented;
[0125] If at least one of the two submodules is implemented, then proceed to step b2;
[0126] Otherwise, if neither of the two sub-modules is implemented, the function generated by the solution organization will be judged as: not implemented;
[0127] b2: Determine if the solution viewing function of the submodule is implemented;
[0128] If it has been implemented, the function generated by the solution organization will be judged as: implemented;
[0129] Otherwise, the functionality generated by the solution organization will be judged as: not implemented;
[0130] The simulation type of the simulation platform under test can be determined by the simulation type of the scheme analysis module. However, in actual use, users are also concerned with whether the scheme organization and generation function is implemented. Only when the functions of both the scheme organization and generation and scheme analysis modules are implemented simultaneously can the simulation platform under test be truly put into use. Therefore, the test results in this application's technical solution also include the judgment of the implementation results of the scheme organization and generation function, ensuring that this application's technical solution is more practical.
[0131] As for functional modules: the criteria for judging the effectiveness of the solution and the display of results are as follows:
[0132] The appropriate sub-module is selected based on actual business needs. If the required sub-module functionality is implemented, it indicates that the platform possesses the "solution effectiveness evaluation" and "result display" functions. For example, if the actual business only requires evaluating the operation of the road network, the implementation of the "network operation efficiency evaluation" sub-module indicates that the platform possesses the "solution effectiveness evaluation" function; if only graphical display of simulation results is required, the implementation of the "graphical display" sub-module indicates that the platform possesses the "result display" function.
[0133] In practice, before implementing step S5, a bootstrap index is built and made available to users.
[0134] The bootstrap index includes the following:
[0135] Content 1: Sub-modules included in the functional modules supported by different types of traffic simulation system platforms;
[0136] Content 2: Define test metrics and test methods for each submodule test item;
[0137] Content 3: The steps and operation sequence of steps S5 and S8;
[0138] The construction methods for the bootstrap index include: graphical method, menu method, or a combination of both graphical and menu methods.
[0139] The business-oriented simulation functional testing process guidance and the graphical functional module set and test item combination proposed in this application make the selection of test indicators as simple as following the diagram, making the operation convenient. Figure 7 The diagram shows an example of a graphical guided index. Based on a module set, test item combination, and test indicator library, a user guided index is created. It clarifies the basic process for selecting functional test indicators, ensures the rationality of test indicator selection, ensures that users will not make mistakes during implementation, and ensures that the technical solution of this application is more practical.
[0140] Specific Implementation Example 1: When running macroscopic simulations independently, using the database import method, the evaluation method is as follows:
[0141] S11: According to Figure 2 It is determined that in the business simulation process, the modules involved in the steps of scheme organization and generation, scheme analysis, scheme effect evaluation, and result display are database generation, scheme design, scheme viewing, traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic allocation analysis, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphical display, data tables, and research reports.
[0142] S12: Based on the modules mentioned above, in Figures 3-6 Within each module, identify the corresponding functional objects to be evaluated. For example, database generation corresponds to database import as the evaluation object; solution viewing corresponds to solution retrieval, solution parameter viewing, solution parameter modification, and solution deletion as evaluation objects. Find the corresponding evaluation objects for each of the other modules in sequence.
[0143] S13: Based on Figure 3 After identifying the evaluation targets, locate the corresponding evaluation targets and evaluation methods in the evaluation indicator database shown in Table 2. For example, the corresponding indicator imported from the evaluation target database is test indicator 1; the evaluation targets involved in the solution are identified as test indicators 21 to 24. Other test targets are then located in the database with their corresponding test indicators. In this implementation case, the test indicators also include: test indicators 2 to 9, test indicators 25 to 31, test indicators 34 to 39, and test indicators 40 to 43, 45, and 46.
[0144] Specific Implementation Example 2: When running microscopic simulations independently (excluding public transportation systems), a scheme design approach is often used. Therefore, the evaluation method is as follows:
[0145] S21: According to Figure 2It is determined that in the business simulation process, the modules involved in the steps of scheme organization and generation, scheme analysis, scheme effect evaluation, and result display are scheme design, scheme viewing, traffic network operation analysis, network operation period efficiency evaluation, graphical display, data tables, animation demonstration, and research report simulation modules.
[0146] S22: Based on the modules mentioned above, in Figures 3-6 Within this framework, each module's corresponding functional object needs to be evaluated. For example, in the scheme design section, the evaluation objects are designing the road network and setting parameter attributes. Each evaluation object is further subdivided into objects such as drawing lane-level road networks, deploying detectors, setting node attributes, setting road segment attributes, setting lane attributes, setting vehicle types and proportions, setting driving behavior decisions, setting driving routes, setting route vehicle allocation ratios, and setting signal schemes. The evaluation objects for scheme viewing are scheme review, scheme parameter viewing, scheme parameter modification, and scheme deletion. The corresponding evaluation objects for each other module are found sequentially.
[0147] S23: Based on Figures 3-6 After identifying the evaluation targets, locate the corresponding evaluation targets and evaluation methods in the evaluation indicator library shown in Table 2. For example, the test indicators for the solution design module are test indicators 10, 13 to 18; the evaluation indicators for the solution evaluation targets are test indicators 21 to 24. For other test targets, find the corresponding test indicators in the database. In this implementation case, the test indicators also include test indicators 32 to 35 and test indicators 40 to 46.
[0148] This application provides a business process-based simulation platform functional testing method. By analyzing the commonalities and differences in simulation processes, functional requirements, and software call types across typical business scenarios such as planning and construction, urban traffic management, and urban traffic policy formulation, the methods modularize the functions of the simulation platform, forming a combination of simulation functional modules based on the simulation process. Since different business simulation scenarios use different types of simulation software and have varying functional requirements, the set of simulation process modules determines the selected functional modules. The functional test item combination provided in the basic method further determines the functional test items, and then the determined test items select corresponding test indicators from the test indicator library to conduct functional testing. Because this method determines the platform's test functional indicators based on specific traffic business types, it ensures that the simulation platform's functions meet actual business needs, guaranteeing the practicality of the simulation platform construction, avoiding the problem of theoretical platform construction being divorced from practical needs, and promoting the feasibility of transforming traffic simulation theoretical achievements into practical applications.
Claims
1. A functional testing method for a business process-based simulation platform, characterized in that, It includes the following steps: S1: Classify traffic simulation system platforms according to simulation type; The simulation types include: macroscopic simulation, microscopic simulation, or a combination of macroscopic and microscopic simulation. S2: Based on the business process definition, the traffic simulation system platform supports functional modules and the sub-modules included in each functional module; The functional modules include: a scheme organization and generation module, a scheme analysis module, a scheme evaluation module, and a result display module; S3: For different functional modules, construct corresponding sub-module test projects for each sub-module; define key test indicators and corresponding test methods for each sub-module test project, and construct a test indicator library by combining the sub-module test projects, the test indicators and test methods. The test metrics are the test content included in each of the sub-module test projects; The testing method describes the operational steps for each test indicator and the expected results on the simulation platform after implementation. S4: Define the sub-modules included in the functional modules supported by the traffic simulation system platform for different types according to the simulation type; When the simulation type is macroscopic simulation, the sub-modules in the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, and traffic assignment analysis; When the simulation type is microscopic traffic simulation, the sub-module of the scheme analysis module includes: traffic network operation analysis; When the simulation type uses both macroscopic and microscopic simulations, the sub-modules in the scheme analysis module include: traffic impedance analysis, traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic assignment analysis, and traffic network operation analysis. S5: Confirm the business type of the target business implemented by the user and the simulation platform to be tested; Identify the simulation software used in the business based on the business type, denoted as: test simulation software; confirm the software type of the test simulation software; The software types include: software that uses only macroscopic simulation, software that uses only microscopic simulation, or software that uses both macroscopic and microscopic simulation. S6: Based on the simulation software type, identify the functional modules and sub-modules that the simulation software must use during operation, denoted as: modules to be tested; S7: Find the corresponding sub-module test items based on the module to be tested; determine the corresponding test indicators and test methods in the test indicator library based on the sub-module test items; S8: Run the test simulation software on the simulation platform to be tested to ensure that each test index in each sub-module test project is implemented; S9: Compare the test results output for each test indicator with the test method corresponding to the test indicator to determine whether the function of the submodule has been implemented. The specific determination method includes: When the test results do not include the expected results defined in the test method, it is determined that the simulation platform under test does not support the corresponding test indicators. When the test results of all the test indicators corresponding to the submodule test item are supported, the simulation platform to be tested is determined to support the submodule. S10: The method for determining the simulation type of the simulation platform under test includes the following steps: Confirm the following two judgment conditions: Judgment Condition 1: Confirm whether all the functions of the sub-modules in Traffic Generation Analysis, Traffic Distribution Analysis, Traffic Mode Analysis, Traffic Impedance Analysis, and Traffic Assignment Analysis have been implemented; Judgment condition 2: Confirm whether the function of the sub-module "Traffic Network Operation Analysis" is implemented; If only condition 1 is true, then the simulation type of the simulation platform to be tested is: macroscopic simulation; If only condition 2 is true, then the simulation type of the simulation platform to be tested is: microscopic simulation. If both conditions are met, the simulation type of the simulation platform to be tested is: simultaneous macroscopic and microscopic simulation.
2. The functional testing method for a business process-based simulation platform according to claim 1, characterized in that: The solution organization and generation module includes: database generation, solution design, and solution viewing.
3. The functional testing method for a business process-based simulation platform according to claim 1, characterized in that: The evaluation module of the scheme includes: network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, and comprehensive transportation system economic performance evaluation.
4. The functional testing method for a business process-based simulation platform according to claim 1, characterized in that: The results display module includes: graphical display, output data table, research report, and animated demonstration.
5. The functional testing method for a business process-based simulation platform according to claim 2, characterized in that: In step S10, it is also necessary to determine whether the function of the scheme organization generation module has been implemented, specifically including the following: b1: Determine whether the database generation and scheme design sub-modules in the scheme organization generation process are implemented; If at least one of the two submodules is implemented, then proceed to step b2; Otherwise, if neither of the two sub-modules is implemented, the function generated by the solution organization will be judged as: not implemented; b2: Determine if the solution viewing function of the submodule is implemented; If it has been implemented, the function generated by the solution organization will be judged as: implemented; Otherwise, the function generated by the solution organization will be judged as: not implemented.
6. The functional testing method for a business process-based simulation platform according to claim 2, characterized in that: In step S9, when determining whether the function of the submodule has been implemented, the confirmation process includes the following: When confirming the solution organization generation module: First, confirm the sub-modules: database generation and scheme design, then confirm the scheme by checking the sub-modules; When confirming the solution analysis module: First, confirm the sub-modules: traffic generation analysis, traffic distribution analysis, traffic mode analysis, traffic impedance analysis, and traffic assignment analysis. Then, confirm the sub-module: traffic network operation analysis.
7. The functional testing method for a business process-based simulation platform according to claim 1, characterized in that: In step S4, the sub-modules supported by the traffic simulation system platform also include the following: When the simulation type is macroscopic simulation, the sub-modules supported by the traffic simulation system platform also include: database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphic display, data tables and research reports; When the simulation type is micro-simulation, the sub-modules supported by the traffic simulation system platform also include: scheme design, scheme viewing, network operation period efficiency evaluation, graphical display, data tables, animation demonstration and research report; When the simulation type uses both macroscopic and microscopic simulations, the sub-modules supported by the traffic simulation system platform also include: scheme design, database generation, scheme viewing, network operation period efficiency evaluation, resident travel efficiency evaluation, public transportation system operation efficiency evaluation, traffic environment and energy consumption evaluation, comprehensive transportation system economic performance evaluation, graphical display, data tables, animation demonstration, and research reports.
8. The functional testing method for a business process-based simulation platform according to claim 1, characterized in that: Before implementing step S5, build a bootstrap index and make it available to users; The bootstrap index includes the following: Content 1: The sub-modules included in the functional modules supported by the different types of traffic simulation system platforms; Content 2: Define test metrics and test methods for each submodule test item; Content 3: Steps S5 and S8 and their order of operation.
9. The functional testing method for a business process-based simulation platform according to claim 8, characterized in that: The construction methods of the guiding index include: graphical method, menu method, or both graphical and menu methods.
Citation Information
Patent Citations
Construction method for integrated dynamic traffic simulation platform of city
CN104866654A
Distributed traffic simulation load balancing algorithm based on simulation terminal configuration optimization
CN105119837A