Method, system and equipment for automatically generating visual chart from test data and medium

Through intelligent terminals, intelligent terminals automatically process base station test data and generate visual charts, solving the problem of low efficiency in base station test data processing, and achieving efficient and accurate data display and real-time monitoring.

CN120474943APending Publication Date: 2025-08-12DONGGUAN ACE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510564349.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, the base station test data processing efficiency is low, manual operations are cumbersome and error-prone, resulting in the visual chart being unable to accurately reflect the real situation of the base station test data, affecting performance evaluation.

Method used

Receive user requests through the smart terminal, call the visual chart generation module, collect and parse test data using automatic test scripts, generate visual charts, reduce manual intervention, and improve data processing efficiency and accuracy.

Benefits of technology

It realizes efficient and automatic processing of base station test data, and the generated visual charts accurately reflect the real situation, improves the intuitiveness of the data and user satisfaction, and supports real-time monitoring and abnormal discovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474943A_ABST
    Figure CN120474943A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of base station testing, and discloses a method, a system and equipment for automatically generating a visual chart from test data and a medium. The method comprises the steps that if the intelligent terminal receives a visual chart generation request from a user, a visual chart generation module is called; different test items are preset in the visual chart generation module, each test item has a corresponding automatic test script, and if a signal of selecting a test item by a user is received, the selected test item is executed; selecting an automatic test script corresponding to the test item to circularly collect the generated test data; storing the test data and updating the test data to a display interface on the intelligent terminal in real time; and analyzing the test data and generating a visual chart. By optimizing the processing mode of the base station test data, the storage efficiency of the base station test data is improved, the data visualization degree is improved, and the mobile communication base station test requirements are better met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of base station testing, and in particular to a method, system, device, and medium for automatically generating visual charts from test data. Background Art

[0002] With the rapid development of mobile communication technology, the demand for base stations continues to grow. To ensure that base station performance meets standards, a large number of base stations need to be tested, which leads to a corresponding increase in the amount of base station test data that needs to be processed.

[0003] However, in existing base station test data processing methods, traditional methods mainly rely on manually storing base station test data in tables, analyzing it through Excel spreadsheets, and generating visual charts. Manually storing base station test data in tables requires a lot of time and effort. Testers need to manually enter the data one by one. This process is not only cumbersome but also prone to errors, greatly reducing the efficiency of data processing. When using Excel spreadsheets for data visualization, it is necessary to manually complete a series of operations such as data selection and data table formatting using Excel chart tools. This process is not only time-consuming, but also prone to incomplete data during operation. As a result, the generated visual charts cannot accurately reflect the actual situation of the base station test data, affecting the accurate evaluation of base station performance.

[0004] Traditional manual data processing methods restrict the efficiency and accuracy of base station test data processing, and are unable to meet the needs of the rapid development of mobile communication base stations. Therefore, a solution that can improve the efficiency of base station test data storage and enhance data visualization is urgently needed to better meet the needs of mobile communication base station testing. Summary of the Invention

[0005] The technical problem to be solved by this application is to optimize the processing method of base station test data to improve the storage efficiency of base station test data and enhance the degree of data visualization to better meet the needs of mobile communication base station testing.

[0006] In a first aspect, an embodiment of the present invention provides a method for automatically generating a visual chart from test data. The method is applied to a base station test system, wherein the base station test system establishes communication connections with a base station and an intelligent terminal respectively to realize data information transmission. The method includes:

[0007] When the smart terminal receives a visualization chart generation request from a user, calling a visualization chart generation module;

[0008] The visual chart generation module is pre-set with different test items, each test item has a corresponding automatic test script, and if a signal is received that a test item is selected by the user, the selected test item is executed;

[0009] The test data generated by the automatic test script cyclically collecting the selected test item;

[0010] Storing the test data and updating it in real time to a display interface on the smart terminal;

[0011] The test data is parsed and a visual chart is generated.

[0012] In the above method, optionally, the visual chart generation module is pre-set with different test items, each of which has a corresponding automatic test script. If a signal indicating that a user has selected a test item is received, before executing the selected test item, the following steps are performed:

[0013] Import the Python libraries that the automatic test script depends on, including a table file library, a regular expression library, a time library, and a visual chart drawing library.

[0014] In the above method, optionally, the automatic test script includes a time acquisition module and a data storage list initialization module;

[0015] The time acquisition module obtains the current real-time time through the time library, and divides and stores the real-time time in the format of "hour: minute: second";

[0016] The data storage list initialization module is preset with three empty lists, which are a storage time information table, an X-axis data table, and a Y-axis data table.

[0017] In the above method, optionally, the test data generated by the automatic test script corresponding to the selected test item is cyclically collected, including:

[0018] Open a specified table file through a table file library and obtain the data in the table file;

[0019] Adding the X-axis data obtained from the table file to the X-axis data table, and adding the obtained Y-axis data to the Y-axis data table;

[0020] The current real time is acquired through the time library, and the real time is added to the storage time information table.

[0021] In the above method, optionally, parsing the test data and generating a visual chart includes:

[0022] Setting the font of the visualization chart;

[0023] Setting the size of the visualization chart;

[0024] Drawing the visualization chart;

[0025] storing the visualization chart;

[0026] The visual chart is displayed on the display interface.

[0027] In the above method, optionally, drawing the visualization chart includes:

[0028] The visualization chart is drawn according to the X-axis data in the X-axis data table and the Y-axis data in the Y-axis data table; the user can set information such as labels, titles and legends of the visualization chart through the display interface.

[0029] In a second aspect, an embodiment of the present invention provides a system for automatically generating a visual chart from test data, the system comprising:

[0030] a calling module, configured to call a visualization chart generating module if the smart terminal receives a visualization chart generating request from a user;

[0031] A test item module, which is used for the visual chart generation module to preset different test items, each of which has a corresponding automatic test script. If a signal of a test item being selected by the user is received, the selected test item is executed;

[0032] A data acquisition module, configured to cyclically acquire test data generated by the automatic test script corresponding to the selected test item;

[0033] A data storage module, used to store the test data and update it to the display interface of the smart terminal in real time;

[0034] The visualization module is used to analyze the test data and generate visualization charts.

[0035] In a third aspect, an embodiment of the present invention further provides a device for automatically generating a visual chart from test data, which includes a server, a communication interface, a memory, and a communication bus, wherein the server, the communication interface, and the memory communicate with each other via the communication bus;

[0036] Memory for storing computer programs;

[0037] The server is configured to implement the steps of the method for automatically generating a visual chart from test data as described in any one of the first aspects when executing a program stored in the memory.

[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a server, implements the steps of the method for automatically generating a visual chart from test data as described in any embodiment of the first aspect.

[0039] Compared with the prior art, this application has at least one of the following beneficial technical effects:

[0040] The present invention optimizes the processing method of base station test data. Through automatic processes, it reduces manual intervention and avoids human errors. At the same time, it speeds up data processing and realizes efficient automation of the entire process from data collection to visual chart generation. The automatically generated visual chart can accurately reflect the actual situation of the base station test data. The display effect of the chart is further optimized through user-defined settings, making the data more intuitive and easy to understand. Users can initiate requests, select test items, view data in real time, and adjust the settings of visual charts through smart terminals. The whole process is more flexible and convenient, which improves user satisfaction with the system. Real-time data collection and updating, combined with dynamically generated visual charts, can help users monitor the base station test process in real time, detect anomalies in a timely manner and make adjustments, thereby improving the real-time performance and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0042] Figure 1 A flowchart of a method for automatically generating a visual chart from test data provided by an embodiment of the present invention.

[0043] Figure 2 A schematic diagram of a scenario of a method for automatically generating visual charts from test data provided by an embodiment of the present invention.

[0044] Figure 3 A schematic diagram of a sub-process of a method for automatically generating a visual chart from test data provided by an embodiment of the present invention.

[0045] Figure 4 This is another sub-flow diagram of the method for automatically generating a visual chart from test data provided by an embodiment of the present invention.

[0046] Figure 5 A schematic block diagram of a system for automatically generating visual charts from test data provided by an embodiment of the present invention.

[0047] Figure 6A schematic block diagram of a data acquisition module provided in an embodiment of the present invention.

[0048] Figure 7 A schematic block diagram of a visualization module provided in an embodiment of the present invention.

[0049] Figure 8 A schematic block diagram of a computer device provided in an embodiment of the present invention.

[0050] The accompanying drawings are marked as follows: 01, base station; 02, base station test system; 03, intelligent terminal; 12, server; 14, memory; 15, communication interface; 16, communication bus. DETAILED DESCRIPTION

[0051] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0052] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0053] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0054] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0055] In order to solve the problem that the traditional manual data processing method in the prior art has low efficiency in processing base station test data and the generated visualization chart cannot accurately reflect the actual situation of the base station test data, the embodiment of the present invention provides a method for automatically generating visualization charts from test data. Figure 1 and Figure 2 , Figure 1 A flowchart of a method for automatically generating a visual chart from test data provided by an embodiment of the present invention is provided. Figure 2A schematic diagram of an application scenario of a method for automatically generating visual charts from test data provided by an embodiment of the present invention.

[0056] In this embodiment, the method for automatically generating a visual chart from test data is applied to a base station test system 02. This method is executed by an application installed in base station test system 02. Base station test system 02 establishes communication connections with base station 01 and smart terminal 03 to achieve data information transmission. Base station test system 02 is used to control the operation of base station 01 and smart terminal 03. The base station test system includes each base station to be tested, a spectrum analyzer, a signal source, and a power meter connected to the base station. Smart terminal 03 is connected to the spectrum analyzer, signal source, and each base station to be tested, and has a display interface for human-computer interaction.

[0057] Here, the spectrum analyzer is used to measure signal parameters such as signal distortion, modulation, spectral purity, frequency stability and intermodulation distortion; the signal source is used to generate various signals so that testers can test the object under test; the power meter is an instrument for measuring electrical power, generally referring to a power meter that measures power in DC and low-frequency technologies.

[0058] The specific implementation process of the method for automatically generating a visual chart based on test data provided by the present invention is described in detail below. Figure 1 As shown, the method includes steps S110 to S150.

[0059] S110: If the smart terminal receives a visualization chart generation request from the user, it calls a visualization chart generation module.

[0060] Users can input a visualization chart generation request through the display interface of the smart terminal, thereby calling the visualization chart generation module preset in the smart terminal. This ensures that the visualization chart generation process is initiated based on user needs rather than running without reason, thus avoiding unnecessary resource waste and invalid operations. By calling the dedicated visualization chart generation module, modular management of functions is achieved, making the system structure clearer and facilitating subsequent maintenance and upgrades.

[0061] S120 , the visual chart generation module is preset with different test items, each of which has a corresponding automatic test script. If a signal indicating that a test item is selected by the user is received, the selected test item is executed.

[0062] The visualization chart generation module offers a variety of test items for users to choose from, meeting testing requirements in diverse scenarios and scenarios, enhancing the system's versatility and applicability. Each test item has a corresponding automated test script, ensuring standardization and consistency throughout the testing process, reducing human error and improving test accuracy and reliability. Users can select specific test items based on their actual needs, making the testing process more targeted, avoiding unnecessary test steps, and improving test efficiency.

[0063] Automated test scripts are used to define test processes, control test execution, and generate corresponding test data. Automatic execution of test scripts enables automated testing of base stations, improving test efficiency and accuracy while reducing manual intervention.

[0064] In a specific embodiment, the step before step S120 includes the following steps: importing the Python library that the automatic test script depends on for running, wherein the Python library includes a table file library, a regular expression library, a time library, and a visual chart drawing library.

[0065] In programming, a Python library is a set of prewritten code modules containing reusable code structures such as functions and classes. The spreadsheet library (i.e., the xlrd library) is used to read data from spreadsheet files. In base station testing scenarios, much test data may be stored in spreadsheet files. This library helps automated test scripts easily access this data. The regular expression library (i.e., the re library) is used for text processing and matching. During testing, log files or other text messages may need to be parsed. The regular expression library can assist with these complex text processing tasks. The time library (i.e., the time library) is used to obtain real-time timestamps. Time information is crucial in test data recording, and the time library accurately records the time corresponding to each data point. The visual charting library (i.e., the matplotlib.pyplot library) is used to draw visual charts. After the test, the collected data needs to be presented in an intuitive chart format. This library can help create various chart types, such as scatter plots, bar charts, and line charts.

[0066] In a specific embodiment, the automatic test script includes a time acquisition module and a data storage list initialization module.

[0067] The time acquisition module retrieves the current real-time time from the time database and stores it in the "hour:minute:second" format. This module accurately marks the acquisition time of each data point when recording data, facilitating subsequent analysis of the data's time series characteristics. For example, during base station testing, signal strength changes over time can be analyzed based on test data at different time points.

[0068] The Data Storage List Initialization module comes with three empty lists: the storage time information table, the X-axis data table, and the Y-axis data table. During subsequent data collection cycles, the Data Storage List Initialization module will sequentially add data acquired from spreadsheet files or hardware devices to these lists. These three empty lists act as containers, categorizing and storing the collected data according to different dimensions, preparing them for subsequent charting.

[0069] S130: The automatic test script corresponding to the selected test item cyclically collects and generates test data.

[0070] Automated test scripts enable cyclical data collection, eliminating the need for manual operations and significantly improving data collection efficiency. This cyclical collection method ensures data continuity and integrity, avoiding omissions and interruptions during data collection, and providing a reliable foundation for subsequent data analysis. Furthermore, the cyclical collection process captures the latest test data in real time, enabling the system to promptly reflect the actual status of base station testing and supporting real-time monitoring and analysis.

[0071] like Figure 3 As shown, in a specific embodiment, step S130 includes steps S131-S133.

[0072] S131. Open a specified table file through a table file library and obtain data in the table file.

[0073] Allowing automated test scripts to obtain data from external spreadsheet files (such as CSV, Excel, etc.) enriches the data source and makes test data not limited to real-time collection. It can also be combined with pre-prepared or historical data, thereby improving the flexibility and coverage of the test. By opening the specified spreadsheet file and obtaining the data in it, external data can be imported into the test system, providing a basis for subsequent data processing and analysis, ensuring that external data can be read and loaded correctly, and avoiding test interruptions caused by data format or path errors. For some scenarios that need to be tested based on specific data sets (such as regression testing, comparative testing, etc.), by reading data from spreadsheet files, more complex test logic and scenario simulation can be implemented, improving the depth and breadth of the test.

[0074] S132. Add the X-axis data obtained from the table file to the X-axis data table, and add the obtained Y-axis data to the Y-axis data table.

[0075] The acquired data is clearly divided into X-axis data and Y-axis data, and stored in the corresponding X-axis data table and Y-axis data table respectively. This classified storage method makes the data structure clearer and facilitates subsequent data processing and chart generation. For example, when generating a two-dimensional chart, these classified data can be used directly without the need for additional data sorting. By pre-allocating the data to the X-axis data table and the Y-axis data table, the repeated parsing and screening operations of the data are reduced in the subsequent data processing process, thereby improving the efficiency of the entire data processing process. In addition, it can provide a basis for subsequent multi-dimensional data analysis and visualization. The clear division of X-axis data and Y-axis data enables the system to generate different types of charts (such as line charts, bar charts, scatter plots, etc.) more flexibly to meet the needs of different users for data display.

[0076] S133: Acquire the current real time through the time library, and add the real time to the storage time information table.

[0077] Adding a real-time timestamp to each data collection record the specific time point of data collection, so that the data contains not only numerical information, but also information on the time dimension, which facilitates analysis of the time characteristics of the data, such as observing the trend of data changes over time. On the one hand, the recording of timestamps provides a basis for data tracing. Users can quickly locate data at a specific time point based on time information, facilitating operations such as troubleshooting and historical data comparison. At the same time, real-time time information also provides an additional dimension for data analysis, such as calculating the average rate of change of data, periodic changes, etc. On the other hand, the recording of real-time time provides support for dynamic data display. For example, when generating a real-time updated chart, the data change process can be dynamically displayed based on the timestamp information, allowing users to more intuitively observe the real-time changes of the data.

[0078] To this end, the automatic test script is responsible for collecting test data from base stations and related equipment, such as EVM, ACLR, power and other key performance indicator data, providing the raw data basis for subsequent data processing and visualization, and ensuring the accuracy and completeness of the data.

[0079] In this embodiment, the automated test script is written in Python, defining test cases and test logic. For example, a Button function is written, along with test functions, each corresponding to a test case. Data collection logic is also added to the script to store the data generated during the test in a designated storage system, such as a database or file system. Additionally, test data can be loaded from external data files (such as CSV or Excel) to improve test coverage.

[0080] S140: Store the test data and update it to a display interface on the smart terminal in real time.

[0081] Storing collected test data ensures data security and traceability, facilitating subsequent query and analysis. Updating test data to the smart terminal's display interface in real time allows users to intuitively see changes in test data, enhancing their understanding of the testing process. This real-time display allows users to promptly identify problems or anomalies during testing and make timely adjustments and resolutions, improving system interactivity and user experience.

[0082] S150: Analyze the test data and generate a visual chart.

[0083] Parsing collected test data accurately extracts useful information, providing precise data support for generating visualization charts and avoiding distortion caused by data errors. Generating visualization charts from parsed data intuitively displays the true state of base station test data, enabling users to more quickly and intuitively understand test results and facilitate analysis and decision-making. The generated visualization charts present data in a professional manner, enhancing the system's professionalism and credibility, and helping users better leverage test results for subsequent work.

[0084] like Figure 4 As shown, in a specific embodiment, step S150 includes steps S151-S155.

[0085] S151. Set the font of the visual chart.

[0086] By setting appropriate fonts, ensure that the text information in the chart (such as titles, labels, legends, etc.) is clear and easy to read, avoiding information that is difficult to understand due to fonts that are too small, blurred, or inconsistent in style. Choosing the right font style can improve the overall aesthetics of the chart, making it more in line with the user's visual habits and aesthetic needs, thereby increasing user acceptance and willingness to use the chart. According to different application scenarios and user needs, you can flexibly adjust the font size, style (such as bold, italics), and color to ensure that the chart maintains good display effects on different display devices and environments.

[0087] S152: Set the size of the visualization chart.

[0088] The chart size can be adjusted based on the screen size and resolution of smart terminals or other display devices to ensure that the chart is displayed completely and clearly on different devices, avoiding display issues caused by overly large or small chart sizes. The appropriate chart size can better utilize the display interface space, avoid crowding or oversparseness between chart elements, and thus improve the overall layout and visual effect of the chart. Users can adjust the chart size according to their needs, such as enlarging the chart when viewing data in detail, and reducing the chart when displaying multiple charts simultaneously, which improves the flexibility of the system and user experience.

[0089] S153: Draw the visualization chart.

[0090] By displaying collected and processed data graphically, abstract data is transformed into intuitive charts (such as line charts, bar charts, pie charts, scatter plots, etc.), allowing users to more quickly and intuitively understand the meaning and trends of the data. Charting makes the relationships and patterns between data clearer. Users can easily identify anomalies, trend changes, and distribution patterns in the data by observing the charts, providing strong support for subsequent data analysis and decision-making. Intuitive charts are easier for users to understand and accept than simple data tables. By creating high-quality visual charts, user satisfaction with the system and user experience can be improved.

[0091] S154: Store the visualization chart.

[0092] Generated visualizations are stored for easy review and tracing of historical data, preventing data loss due to system failures or accidents and ensuring data security and traceability. Stored charts can be viewed offline, even without a network connection or system operation, making them convenient for use in various scenarios, such as quickly displaying charts in meetings, reports, or on-site inspections. Furthermore, stored charts can be easily shared and communicated with other users or departments, promoting information sharing and collaboration, and improving work efficiency.

[0093] S155: Display the visual chart on the display interface.

[0094] Generated visualization charts are displayed in real time on the smart terminal's display interface, providing users with instant feedback. Users can immediately see the test data visualization results, thereby promptly identifying problems and making adjustments. The intuitive chart display makes it easier for users to interact with the system. Users can further explore the data through operations such as zooming and dragging, improving their operational experience and satisfaction with the system. The real-time display of charts on the display interface enables the system to support real-time monitoring. Users can observe changes in base station test data at any time, detect anomalies promptly, and take action, improving the system's real-time performance and reliability.

[0095] In one specific embodiment, step S153 includes drawing the visualization chart based on the X-axis data in the X-axis data table and the Y-axis data in the Y-axis data table; the user can set information such as the label, title, and legend of the visualization chart through the display interface. This not only enables intuitive data visualization, but also enhances the readability, flexibility, and professionalism of the chart, while also improving the user's interactive experience and the overall practicality of the system.

[0096] To this end, by combining X-axis data with Y-axis data, meaningful charts (such as line charts, bar charts, scatter plots, etc.) are generated, allowing users to quickly understand the relationships and trends between data. For example, in base station testing, the X-axis may represent time or frequency, and the Y-axis may represent power or signal strength. By drawing a chart, users can intuitively observe the trend of power changes over time, or the distribution of signal strength at different frequencies. By explicitly using X-axis data and Y-axis data for drawing, it is ensured that the chart generation is based on accurate data input, avoiding chart distortion caused by data errors or confusion, and ensuring that the chart can truly reflect the actual status of the base station test data. Based on the characteristics of the X-axis data and Y-axis data, different chart types can be flexibly selected (such as line charts for showing trends, bar charts for comparing sizes, scatter plots for analyzing correlations, etc.) to meet the data analysis needs in different scenarios.

[0097] Users can add clear labels to the X-axis and Y-axis to explain the meaning of the data (such as "time," "power," "frequency," etc.), allowing other users to quickly understand the meaning of the chart's coordinate axes. By adding a chart title, users can clearly indicate the chart's theme or test content, such as "Base Station Power Trend Over Time," allowing other users to quickly understand the core content of the chart. In charts containing multiple data series, legends can help users distinguish between different data series (such as test data from different base stations or results under different test conditions), thereby avoiding confusion.

[0098] Therefore, the present invention optimizes the processing method of base station test data. Through the automatic process, it reduces manual intervention and avoids human errors. At the same time, it speeds up data processing and realizes efficient automation of the entire process from data collection to visual chart generation. The automatically generated visual chart can accurately reflect the actual situation of the base station test data. The display effect of the chart is further optimized through user-defined settings, making the data more intuitive and easy to understand. Users can initiate requests, select test items, view data in real time, and adjust the settings of visual charts through smart terminals. The whole process is more flexible and convenient, which improves user satisfaction with the system. Real-time data collection and updating, combined with dynamically generated visual charts, can help users monitor the base station test process in real time, detect anomalies in a timely manner and make adjustments, thereby improving the real-time performance and reliability of the system.

[0099] Corresponding to the above-mentioned method for automatically generating a visual chart from test data, an embodiment of the present invention further provides a system for automatically generating a visual chart from test data, which is used to execute any embodiment of the above-mentioned method for automatically generating a visual chart from test data. Figure 5 , Figure 5 A schematic block diagram of a system for automatically generating visual charts from test data provided by an embodiment of the present invention.

[0100] like Figure 5 As shown, the system for automatically generating visual charts from test data includes a calling module, a test item module, a data acquisition module, a data storage module and a visualization module.

[0101] a calling module, configured to call a visualization chart generating module if the smart terminal receives a visualization chart generating request from a user;

[0102] A test item module, which is used for the visual chart generation module to preset different test items, each of which has a corresponding automatic test script. If a signal of a test item being selected by the user is received, the selected test item is executed;

[0103] A data acquisition module, configured to cyclically acquire test data generated by the automatic test script corresponding to the selected test item;

[0104] In a specific embodiment, Figure 6As shown, the data acquisition module includes the following sub-units: a data acquisition unit, used to open a specified table file through a table file library and obtain the data in the table file; a data adding unit, used to add the X-axis data obtained from the table file to the X-axis data table, and add the obtained Y-axis data to the Y-axis data table; a time acquisition unit, used to obtain the current real-time time through the time library, and add the real-time time to the storage time information table.

[0105] A data storage module, used to store the test data and update it to the display interface of the smart terminal in real time;

[0106] The visualization module is used to analyze the test data and generate visualization charts.

[0107] In a specific embodiment, Figure 7 As shown, the visualization module includes the following sub-units: a font setting unit, used to set the font of the visualization chart; a size setting unit, used to set the size of the visualization chart; a chart drawing unit, used to draw the visualization chart; a storage unit, used to store the visualization chart; and a display unit, used to display the visualization chart on the display interface.

[0108] like Figure 8 As shown, an embodiment of the present invention further provides a device for automatically generating visual charts from test data, comprising a server 12, a communication interface 15, a memory 14 and a communication bus 16, wherein the server 12, the communication interface 15 and the memory 14 communicate with each other via the communication bus 16; in one embodiment of the present invention, the memory 14 is used to store computer programs; the server 12 is used to implement the steps of the method for automatically generating visual charts from test data provided by any of the aforementioned method embodiments when executing the program stored in the memory 14.

[0109] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by the server 12 , the steps of the method for automatically generating a visual chart from test data as provided in any of the aforementioned method embodiments are implemented.

[0110] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A method for automatically generating a visual chart from test data, the method being applied to a base station test system, wherein the base station test system establishes communication connections with a base station and an intelligent terminal to achieve data information transmission, characterized in that: The method comprises: When the smart terminal receives a visualization chart generation request from a user, calling a visualization chart generation module; The visual chart generation module is pre-set with different test items, each test item has a corresponding automatic test script, and if a signal is received that a test item is selected by the user, the selected test item is executed; The automatic test script corresponding to the selected test item cyclically collects the generated test data; Storing the test data and updating it in real time to a display interface on the smart terminal; The test data is parsed and a visual chart is generated.

2. The method for automatically generating a visual chart from test data according to claim 1, characterized in that: The visualization chart generation module is preset with different test items, each of which has a corresponding automatic test script. When a signal is received that a user has selected a test item, before executing the selected test item, the following steps are performed: Import the Python libraries that the automatic test script depends on, including a table file library, a regular expression library, a time library, and a visual chart drawing library.

3. The method for automatically generating a visual chart from test data according to claim 2, characterized in that: The automatic test script includes a time acquisition module and a data storage list initialization module; The time acquisition module obtains the current real-time time through the time library, and divides and stores the real-time time in the format of "hour: minute: second"; The data storage list initialization module is preset with three empty lists, each of which is a storage time information table, an X-axis data table, and a Y-axis data table.

4. The method for automatically generating a visual chart from test data according to claim 3, characterized in that: The test data generated by the automatic test script cyclically collecting corresponding to the selected test item includes: Open a specified table file through a table file library and obtain the data in the table file; Adding the X-axis data obtained from the table file to the X-axis data table, and adding the obtained Y-axis data to the Y-axis data table; The current real time is acquired through the time library, and the real time is added to the storage time information table.

5. The method for automatically generating a visual chart from test data according to claim 4, characterized in that: The step of analyzing the test data and generating a visual chart includes: Setting the font of the visualization chart; Setting the size of the visualization chart; Drawing the visualization chart; storing the visualization chart; The visual chart is displayed on the display interface.

6. The method for automatically generating a visual chart from test data according to claim 5, characterized in that: Drawing the visual chart includes: The visualization chart is drawn according to the X-axis data in the X-axis data table and the Y-axis data in the Y-axis data table; the user can set information such as labels, titles and legends of the visualization chart through the display interface.

7. A system for automatically generating visual charts from test data, characterized in that: The system comprises: a calling module, configured to call a visualization chart generating module if the smart terminal receives a visualization chart generating request from a user; A test item module, which is used for the visual chart generation module to preset different test items, each of which has a corresponding automatic test script. If a signal of a test item being selected by the user is received, the selected test item is executed; A data acquisition module, configured to cyclically acquire test data generated by the automatic test script corresponding to the selected test item; A data storage module, used to store the test data and update it to the display interface of the smart terminal in real time; The visualization module is used to analyze the test data and generate visualization charts.

8. A device for automatically generating visual charts from test data, characterized in that: The device includes a server, a communication interface, a memory and a communication bus, wherein the server, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The server is configured to implement the steps of the method for automatically generating a visual chart from test data according to any one of claims 1 to 6 when executing the program stored in the memory.

9. A computer-readable storage medium, characterized in that When the computer program is executed by the server, the steps of the method for automatically generating a visual chart from test data according to any one of claims 1 to 6 are implemented.