Web platform test method and system based on data acquisition simulation tool
Through the web platform testing method based on data acquisition simulation tools, different types of collected data are generated and uploaded, and the data acquisition process of railway collection engineering vehicles is simulated, which solves the problem that existing testing methods cannot verify the platform functions, and realizes comprehensive functional verification and stress testing of the subway web platform.
Patent Information
- Application Number
- CN202411483785.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-02-28
AI Technical Summary
Existing testing methods cannot create real rail and tunnel failure data, resulting in the collected test data being unable to contain different types of disease data, resulting in the problem of incomplete platform functional verification.
The web platform testing method based on data acquisition simulation tools is adopted to generate different types of collected data, including disease data and normal data, and use these data to simulate the data acquisition process of railway collection engineering vehicles to realize the function and stress testing of the web platform.
It has achieved full and comprehensive verification of the functions related to the subway web platform, and can simulate different types of track and tunnel disease failure types, saving manpower, material resources and time, and improving testing efficiency.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication testing, and in particular to a web platform testing method and system based on a data acquisition simulation tool. Background Art
[0002] The web platform of the comprehensive intelligent detection system for subway lines compares and analyzes the track data and tunnel data collected by the on-board data acquisition equipment during the operation of subway engineering vehicles with the configured standard track data and tunnel data, outputs the track and tunnel disease data and the kilometer location information of the disease data and its corresponding location, and provides special fault prompts for fault data, so as to quickly locate the fault location and make a second confirmation of the fault.
[0003] However, when collecting track and tunnel inspection data in an actual environment to test the platform, the web platform requires track and tunnel damage data for testing. However, in the actual collection environment, it is impossible to create faults on real rails and tunnels. Therefore, the collected test data cannot include different types of damage data, which will lead to incomplete platform function verification. Summary of the invention
[0004] The purpose of the present invention is to propose a web platform testing method and system based on a data acquisition simulation tool in view of the fact that the existing testing methods cannot produce real rail and tunnel fault data, so the collected test data cannot include different types of disease data, which will lead to incomplete platform function verification.
[0005] The technical solution adopted by the present invention to solve the above technical problems is:
[0006] The web platform testing method based on the data collection simulation tool includes the following steps:
[0007] Step 1: Generate corresponding collected data for different test data types, including disease data and normal data, and the collected data is track data or tunnel data;
[0008] Step 2: Detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform;
[0009] Step 3: Based on the web platform, the data collection process of the railway collection engineering vehicle is simulated by using the uploaded collection data;
[0010] Step 4: Repeat steps 1 to 3 to implement functional and stress testing of the web platform.
[0011] Furthermore, step one is specifically as follows:
[0012] Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data.
[0013] Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
[0014] Furthermore, step 2 is specifically as follows:
[0015] Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the username and password required to access the data transmission interface;
[0016] Step 22: Use the communication configuration information to establish communication with the web platform under test.
[0017] Furthermore, step three is specifically as follows:
[0018] Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed;
[0019] Step 32: Select a working mode, which includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously;
[0020] Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length;
[0021] Step 3 and 4: When the web platform issues the data collection command, the data collection simulation tool starts collecting data according to the set step size.
[0022] When the task end command issued by the web platform is received, or the data collection simulation tool simulates the total mileage, the task is automatically ended. After the task is ended, the data collection simulation tool sends a task end feedback to the web platform.
[0023] Furthermore, the web platform communicates with the data collection simulation tool through RabbitMQ.
[0024] A web platform testing system based on a data acquisition simulation tool, the system includes an acquisition data generation module, a communication module and a testing module;
[0025] The acquisition data generation module is used to generate corresponding acquisition data for different test data types. The acquisition data includes disease data and normal data. The acquisition data is track acquisition data or tunnel acquisition data.
[0026] The communication module is used to detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform;
[0027] The test module is used based on the web platform and uses the uploaded collection data to simulate the data collection process of the railway collection engineering vehicle, thereby realizing the function and stress testing of the web platform.
[0028] Furthermore, the acquisition data generation module specifically performs the following steps:
[0029] Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data.
[0030] Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
[0031] Furthermore, the communication module specifically performs the following steps:
[0032] Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the username and password required to access the data transmission interface;
[0033] Step 22: Use the communication configuration information to establish communication with the web platform under test.
[0034] Furthermore, the test module specifically performs the following steps:
[0035] Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed;
[0036] Step 32: Select a working mode, which includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously;
[0037] Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length;
[0038] Steps 3 and 4: When the web platform issues a data collection command, the data collection simulation tool starts collecting data according to the set step size. When the data collection simulation tool receives the task end command issued by the web platform, or the data collection simulation tool simulates the total mileage, it automatically ends the task. After the task ends, the data collection simulation tool sends a task end feedback to the web platform.
[0039] Furthermore, the web platform communicates with the data collection simulation tool through RabbitMQ.
[0040] The beneficial effects of the present invention are:
[0041] This application can simulate different types of track and tunnel disease fault types through data collection simulation tools, making up for the defect of incomplete fault types of real collected data, so that the relevant functions of the subway web platform can be fully and comprehensively verified.
[0042] This application can set the simulated walking kilometers and simulate long-distance data collection to perform stress testing on the web platform. It can also test the response time of various functions of the web platform under large data volumes, enriching the test scenarios and test methods.
[0043] The technical solution of this application has strong scalability and can be applied to various types of railways, trains and other projects that require data collection, in addition to subways, solving the problem of high cost and low efficiency of collecting data from real trains.
[0044] This application can realize the testing of the subway web platform without running real engineering vehicles to collect test data on tracks and tunnels, saving a lot of manpower, material resources and time, making the test more agile and convenient, and greatly improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a schematic diagram of the overall process of this application. DETAILED DESCRIPTION
[0046] It should be particularly noted that, in the absence of conflict, the various embodiments disclosed in this application can be combined with each other.
[0047] Specific implementation method 1: The web platform testing method based on the data acquisition simulation tool of this implementation method includes the following steps:
[0048] Step 1: Generate corresponding collected data for different test data types, including disease data and normal data, and the collected data is track data or tunnel data;
[0049] Step 2: Detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform;
[0050] Step 3: Based on the web platform, the data collection process of the railway collection engineering vehicle is simulated by using the uploaded collection data;
[0051] Step 4: Repeat steps 1 to 3 to implement functional and stress testing of the web platform.
[0052] The method of this application mainly includes: simulating the operation of subway data collection engineering vehicles and recording the mileage, and realizing the simulation of track data collection or tunnel data collection by adjusting the simulation configuration parameters. It can also simulate different types of track and tunnel disease data by modifying the data, and output the kilometer location information of the disease to realize the web platform function test. At the same time, the kilometer distance can be set to simulate the long-distance data collection scenario, realize the stress test of the platform's large data volume scenario, improve the test efficiency, and enrich the test scenario. The structure of this application is as follows: Figure 1 shown.
[0053] Specific implementation method 2: This implementation method is a further description of the specific implementation method 1. The difference between this implementation method and the specific implementation method 1 is that step 1 is specifically as follows:
[0054] Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data.
[0055] Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
[0056] Collect data generation
[0057] a. Setting and reading standard data types
[0058] Track data collection and tunnel data collection both have "specific" data types (gauge overrun, vertical wear, horizontal expansion), and each data type also has its corresponding standard threshold. Data below the standard threshold is defective data, and data above or equal to the standard threshold is normal data. These "specific" data types and corresponding standard thresholds are all formulated by relevant railway departments.
[0059] The data types and standard thresholds corresponding to track data collection and tunnel data collection are set in two different Excel tables. The first column is set to the data type name, each row is a data type, and the second column is set to the standard threshold corresponding to each data type. The corresponding format is: the first row "Data type name 1" "Standard threshold 1", the second row "Data type name 2" "Standard threshold 2", and so on. If there are subsequent modifications, additions, deletions, etc. to the data type name, just add, delete, and modify it in this table accordingly.
[0060] b. Collect data and generate
[0061] Read the tunnel data collection standard table and track data collection standard table set above, read the standard threshold of each data type, and automatically randomly generate the corresponding collection value for each data type based on the standard threshold ±10, for example: the first line "Data type name 1" "Random number within the range of standard threshold ±10", the second line "Data type name 2" "Random number within the range of standard threshold ±10" and so on. The generated collection data needs to be saved as, and the file name can be customized
[0062] The collection standard table does not need to be read repeatedly, it only needs to be read once, and it only needs to be read once when the simulation tool is first opened. After reading, the collection data file can be generated at any time, and the collection data file can be generated repeatedly. Since the values corresponding to each data type in the collection data file are randomly generated, each collection data file can be regarded as a different test data set.
[0063] Specific implementation method three: This implementation method is a further description of specific implementation method two. The difference between this implementation method and specific implementation method two is that step two is specifically as follows:
[0064] Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the username and password required to access the data transmission interface;
[0065] Step 22: Use the communication configuration information to establish communication with the web platform under test.
[0066] (2) Network communication configuration
[0067] Determine the web platform IP address, port number, and username and password required to access the data transmission interface. The data acquisition simulation tool interface provides an input interface for the above communication configuration information. Enter the above parameter information in sequence. When establishing a network communication link, it will first detect whether the network of the tested web platform is available. If the network connection is established successfully or failed, the corresponding prompt information will be returned.
[0068] Specific implementation method 4: This implementation method is a further description of specific implementation method 3. The difference between this implementation method and specific implementation method 3 is that step 3 is specifically as follows:
[0069] Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed;
[0070] Step 32: Select a working mode, which includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously;
[0071] Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length;
[0072] Step 3 and 4: When the web platform issues the data collection command, the data collection simulation tool starts collecting data according to the set step size.
[0073] When the task end command issued by the web platform is received, or the data collection simulation tool simulates the total mileage, the task is automatically ended. After the task is ended, the data collection simulation tool sends a task end feedback to the web platform.
[0074] Train operation simulation:
[0075] a. Route setting
[0076] Set the walking distance. This distance is the total distance expected to be simulated for the train operation. In addition, you also need to configure the speed value of the simulated train operation. According to the formula that distance (km) divided by speed (km / h) equals time (t), the simulation tool will automatically calculate the total time required for this task execution based on this formula.
[0077] b. Working mode configuration
[0078] The working mode can be flexibly selected. A single task can simulate track data collection alone or tunnel data collection alone, or both types of data collection can be performed at the same time. Just make the corresponding selection on the data collection simulation tool page. After starting the task, the simulation tool will automatically read the selection and perform data collection simulation in the corresponding mode.
[0079] c. Collect data and read
[0080] Read the data generated in the data collection generation (step (1)). The data collection simulation tool will upload the collected data evenly distributed within the total mileage range according to a fixed kilometer step size. To ensure test flexibility, this fixed step size can be flexibly set. For example: if the total distance of this task is set to 10km and the speed is set to 5km / h, then the total execution time of this task is 2h. If the fixed step size is set to 0.1km, then after starting the data collection task, the collected data will be uploaded every 72s until the task is completed.
[0081] d. Driving state simulation
[0082] After steps a, b, and c are set, the data collection simulation task can be started at any time. The task is started by issuing a data collection command through the web platform, and the web platform and the data collection simulation tool communicate in rabbitmq mode. After receiving the start task, the data collection simulation tool will perform data collection simulation (i.e. steps b and c) according to the set total distance, driving speed, and working mode.
[0083] There are two ways to end the task. One is to receive the task end command issued by the web platform. The other is to wait for the simulation tool to simulate the total mileage and then automatically end the task. After the task ends, a task end instruction will be sent to the web platform to ensure that the task status of the data collection simulation tool is consistent with the task status of the web platform.
[0084] During the simulated train operation, if the web platform issues a command to suspend collection, the collection task will be suspended; after the web platform issues a continue task, the simulated collection task will continue.
[0085] If you need to restart a new task, just repeat steps a, b, c, and d to complete the function and stress testing of the web platform.
[0086] Specific implementation method five: This implementation method is a further explanation of specific implementation method four. The difference between this implementation method and specific implementation method four is that the web platform and the data acquisition simulation tool communicate through rabbitmq.
[0087] Specific implementation method 6: The web platform testing system based on the data acquisition simulation tool of this implementation method includes a collection data generation module, a communication module and a testing module;
[0088] The acquisition data generation module is used to generate corresponding acquisition data for different test data types. The acquisition data includes disease data and normal data. The acquisition data is track acquisition data or tunnel acquisition data.
[0089] The communication module is used to detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform;
[0090] The test module is used based on the web platform and uses the uploaded collection data to simulate the data collection process of the railway collection engineering vehicle, thereby realizing the function and stress testing of the web platform.
[0091] Specific implementation method 7: This implementation method is a further description of specific implementation method 6. The difference between this implementation method and specific implementation method 6 is that the acquisition data generation module specifically performs the following steps:
[0092] Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data.
[0093] Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
[0094] Specific implementation eight: This implementation is a further description of specific implementation seven. The difference between this implementation and specific implementation seven is that the communication module specifically performs the following steps:
[0095] Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the username and password required to access the data transmission interface;
[0096] Step 22: Use the communication configuration information to establish communication with the web platform under test.
[0097] Specific implementation method 9: This implementation method is a further description of specific implementation method 8. The difference between this implementation method and specific implementation method 8 is that the test module specifically performs the following steps:
[0098] Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed;
[0099] Step 32: Select a working mode, which includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously;
[0100] Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length;
[0101] Step 3 and 4: When the web platform issues the data collection command, the data collection simulation tool starts collecting data according to the set step size.
[0102] When the task end command issued by the web platform is received, or the data collection simulation tool simulates the total mileage, the task is automatically ended. After the task is ended, the data collection simulation tool sends a task end feedback to the web platform.
[0103] Specific implementation method ten: This implementation method is a further explanation of specific implementation method nine. The difference between this implementation method and specific implementation method nine is that the web platform and the data acquisition simulation tool communicate through rabbitmq.
[0104] It should be noted that the specific implementation is only an explanation and description of the technical solution of the present invention, and cannot be used to limit the scope of protection of the rights. Any partial changes made according to the claims and description of the present invention should still fall within the scope of protection of the present invention.
Claims
1. A web platform testing method based on a data acquisition simulation tool, characterized in that The following steps are involved: Step 1: Generate corresponding collected data for different test data types, wherein the collected data includes disease data and normal data, and the collected data is track collected data or tunnel collected data; Step 2: Detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform; Step 3: Based on the web platform, the data collection process of the railway collection engineering vehicle is simulated by using the uploaded collection data; Step 4: Repeat steps 1 to 3 to implement functional and stress testing of the web platform.
2. The web platform testing method based on the data acquisition simulation tool according to claim 1 is characterized in that The step 1 is specifically as follows: Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data. Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
3. The web platform testing method based on data acquisition simulation tool according to claim 2 is characterized in that The step 2 is specifically as follows: Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the user name and password required to access the data transmission interface; Step 22: Use the communication configuration information to establish communication with the web platform under test.
4. The web platform testing method based on the data acquisition simulation tool according to claim 3 is characterized in that The step three is specifically as follows: Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed; Step 32: Select a working mode, wherein the working mode includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously; Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length; Step 3 and 4: When the web platform issues the data collection command, the data collection simulation tool starts collecting data according to the set step size. When the task end command issued by the web platform is received, or the data collection simulation tool simulates the total mileage, the task is automatically ended. After the task is ended, the data collection simulation tool sends a task end feedback to the web platform.
5. The web platform testing method based on data acquisition simulation tool according to claim 4 is characterized in that The web platform communicates with the data acquisition simulation tool via RabbitMQ.
6. A web platform testing system based on data acquisition simulation tools, characterized by The system includes a collection data generation module, a communication module and a testing module; The acquisition data generation module is used to generate corresponding acquisition data for different test data types, wherein the acquisition data includes disease data and normal data, and the acquisition data is track acquisition data or tunnel acquisition data; The communication module is used to detect the network of the web platform under test, configure network communication information, establish communication with the web platform under test, and finally upload the generated collected data to the web platform; The test module is used to simulate the data collection process of the railway data collection engineering vehicle based on the web platform and utilize the uploaded collection data, thereby realizing the function and stress test of the web platform.
7. The web platform testing system based on data acquisition simulation tool according to claim 6 is characterized in that The acquisition data generation module specifically performs the following steps: Step 1: For each type of data collected, set a standard threshold. Data below the standard threshold is disease data, and data above or equal to the standard threshold is normal data. Step 12: Set a fluctuation range based on the standard threshold in step 11, and randomly generate the value of the collected data corresponding to each data type within the fluctuation range, thereby completing the generation of the collected data.
8. The web platform testing system based on data acquisition simulation tool according to claim 7 is characterized in that The communication module specifically performs the following steps: Step 21: Obtain communication configuration information, which includes the IP address and port number of the web platform and the user name and password required to access the data transmission interface; Step 22: Use the communication configuration information to establish communication with the web platform under test.
9. The web platform testing system based on data acquisition simulation tool according to claim 8, characterized in that The test module specifically performs the following steps: Step 31: Set the total mileage and speed of the simulated train operation, and obtain the required time based on the total mileage and speed; Step 32: Select a working mode, wherein the working mode includes collecting data from simulated track alone, collecting data from simulated tunnel alone, or collecting data from simulated track and simulated tunnel simultaneously; Step 33: Read the collected data generated in step 1 and set the step length, and then evenly distribute the collected data within the total mileage range according to the set step length; Steps 3 and 4: When the web platform issues a data collection command, the data collection simulation tool starts collecting data according to the set step size. When the data collection simulation tool receives the task end command issued by the web platform, or the data collection simulation tool simulates the total mileage, it automatically ends the task. After the task ends, the data collection simulation tool sends a task end feedback to the web platform.
10. The web platform testing system based on data acquisition simulation tool according to claim 9, characterized in that The web platform communicates with the data acquisition simulation tool via RabbitMQ.