CN116244131A - Server interface testing method and device, electronic equipment and medium - Google Patents
Server interface testing method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN116244131A CN116244131A CN202310272317.XA CN202310272317A CN116244131A CN 116244131 A CN116244131 A CN 116244131A CN 202310272317 A CN202310272317 A CN 202310272317A CN 116244131 A CN116244131 A CN 116244131A
- Authority
- CN
- China
- Prior art keywords
- test
- target
- test data
- database
- curve fitting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2268—Logging of test results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及服务器技术领域,具体涉及一种服务器接口测试方法、装置、电子设备和介质。The invention relates to the technical field of servers, in particular to a server interface testing method, device, electronic equipment and media.
背景技术Background technique
随着云计算和大数据产业的飞速发展,服务器集群规模越来越大。为保证服务器的稳定运行及服务器各接口与各部件的正常工作,测量服务器各接口的信号完整性是否符合标准已经成了服务器研发过程中必不可少的重要流程。With the rapid development of cloud computing and big data industries, the scale of server clusters is getting larger and larger. In order to ensure the stable operation of the server and the normal operation of each interface and each component of the server, measuring whether the signal integrity of each interface of the server meets the standard has become an indispensable and important process in the server development process.
服务器接口测试一般包含信号两个方向的验证,即接收和发送。其中发送方向测试一般需依赖于高速示波器及接口配套测试治具和线缆,物理连接十分复杂。同时接口种类及同种类接口数量也较多。目前现有的服务器接口测试,为得到服务器接口的所有链路测试结果,需要对所有接口进行测试。如果测试资源不满足时,需要根据仿真结果对被测链路进行一些删减,只测试风险较高的链路,这使得测试覆盖率不够并且整体准确度存疑。Server interface testing generally includes verification of signals in both directions, namely receiving and sending. Among them, the transmission direction test generally needs to rely on high-speed oscilloscopes, interface supporting test fixtures and cables, and the physical connection is very complicated. At the same time, there are many types of interfaces and the number of interfaces of the same type. In the existing server interface test, in order to obtain all link test results of the server interface, all interfaces need to be tested. If the test resources are not enough, it is necessary to delete the tested links according to the simulation results, and only test the links with higher risks, which makes the test coverage insufficient and the overall accuracy is questionable.
发明内容Contents of the invention
为了解决上述问题,本申请实施例提供一种服务器接口测试方法、装置、电子设备和介质。In order to solve the above problems, embodiments of the present application provide a server interface testing method, device, electronic equipment, and media.
本申请一些实施例公开了一种服务器接口测试方法,所述方法包括:Some embodiments of the present application disclose a server interface testing method, the method comprising:
在接收到测试指令后,获取所述测试指令所指示的基本参数;After receiving the test instruction, obtain the basic parameters indicated by the test instruction;
从数据库中获取与所述基本参数相匹配的历史测试结果;其中,所述数据库预先存有对各类接口链路进行测试得到的测试结果;Obtain historical test results matching the basic parameters from the database; wherein, the database pre-stores test results obtained by testing various interface links;
对所述历史测试结果进行曲线拟合,得到曲线拟合结果;Carry out curve fitting to described historical test result, obtain curve fitting result;
控制示波器对目标接口链路进行测试得到目标测试数据;Control the oscilloscope to test the target interface link to obtain the target test data;
基于所述曲线拟合结果预测本次链路测试的预测测试数据;Predicting the predicted test data of this link test based on the curve fitting result;
当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库。When the comparison gap between the predicted test data and the target test data reaches the test requirement, the target test data is stored in the database.
可选地,所述在接收到测试指令后,获取所述测试指令所指示的基本参数,包括:Optionally, after receiving the test instruction, acquiring the basic parameters indicated by the test instruction includes:
在接收到测试指令后,对目标接口链路配置不同的测试参数作为所述基本参数;其中,所述测试参数包括被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的至少一项。After receiving the test instruction, configure different test parameters for the target interface link as the basic parameters; wherein, the test parameters include the tested mainboard plate, mainboard trace length, external cable wire, cable length, turn At least one of the riser board material and riser card routing length.
可选地,所述从数据库中获取与所述基本参数相匹配的历史测试结果,包括:Optionally, the obtaining historical test results matching the basic parameters from the database includes:
使用所述基本参数及其对应属性作为特定的键值条件;Use the basic parameters and their corresponding attributes as specific key-value conditions;
获取数据库中相同键值条件的匹配测试结果。Get matching test results for the same key-value condition in the database.
可选地,所述对所述历史测试结果进行曲线拟合,得到曲线拟合结果,包括:Optionally, performing curve fitting on the historical test results to obtain a curve fitting result includes:
使用离散点进行曲线拟合算法对所述历史测试结果进行曲线拟合,得到曲线拟合结果。A curve fitting algorithm is used to perform curve fitting on the historical test results by using discrete points to obtain a curve fitting result.
可选地,在所述控制示波器对目标接口链路进行测试得到目标测试数据之前,所述方法包括:Optionally, before the control oscilloscope tests the target interface link to obtain target test data, the method includes:
设置示波器和目标接口链路物理连接相应的通信参数;其中,所述通信参数包括IP地址、端口号的至少一种。Set communication parameters corresponding to the physical connection between the oscilloscope and the target interface link; wherein, the communication parameters include at least one of an IP address and a port number.
可选地,在所述当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库之后,所述方法还包括:Optionally, after storing the target test data in the database when the comparison gap between the predicted test data and the target test data reaches the test requirement, the method further includes:
使用预设的统计分析工具对所述目标测试结果解析得到服务器性能指标;Using a preset statistical analysis tool to analyze the target test results to obtain server performance indicators;
记录所述服务器性能指标至系统日志;其中,所述服务器性能指标包括响应时间、吞吐量、CPU利用率、网络带宽。Recording the server performance index to a system log; wherein, the server performance index includes response time, throughput, CPU utilization, and network bandwidth.
可选地,在所述当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库之后,所述方法还包括:Optionally, after storing the target test data in the database when the comparison gap between the predicted test data and the target test data reaches the test requirement, the method further includes:
将所述目标测试数据以及比对结果进行可视化处理得到可视化处理结果;其中,所述可视化处理包括创建图表、报告;Performing visual processing on the target test data and comparison results to obtain visual processing results; wherein, the visual processing includes creating charts and reports;
将所述可视化处理结果发送至客户端界面。Send the visualization processing result to the client interface.
本申请一些实施例提供一种服务器接口测试装置,所述装置包括:Some embodiments of the present application provide a server interface testing device, the device comprising:
传输模块,用于在接收到测试指令后,获取所述测试指令所指示的基本参数;从数据库中获取与所述基本参数相匹配的历史测试结果;其中,所述数据库预先存有对各类接口链路进行测试得到的测试结果;The transmission module is used to obtain the basic parameters indicated by the test instructions after receiving the test instructions; obtain the historical test results matching the basic parameters from the database; The test results obtained by testing the interface link;
处理模块,用于对所述历史测试结果进行曲线拟合,得到曲线拟合结果;控制示波器对目标接口链路进行测试得到目标测试数据;基于所述曲线拟合结果预测本次链路测试的预测测试数据;A processing module, configured to perform curve fitting on the historical test results to obtain a curve fitting result; control the oscilloscope to test the target interface link to obtain target test data; predict the link test result based on the curve fitting result predictive test data;
储存模块,用于当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库。The storage module is used for storing the target test data into the database when the comparison gap between the predicted test data and the target test data reaches the test requirement.
可选地,所述传输模块,还用于:Optionally, the transmission module is also used for:
在接收到测试指令后,对目标接口链路配置不同的测试参数作为所述基本参数;其中,所述测试参数包括被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的至少一项。After receiving the test instruction, configure different test parameters for the target interface link as the basic parameters; wherein, the test parameters include the tested mainboard plate, mainboard trace length, external cable wire, cable length, turn At least one of the riser board material and riser card routing length.
可选地,所述传输模块,还用于:Optionally, the transmission module is also used for:
使用所述基本参数及其对应属性作为特定的键值条件;Use the basic parameters and their corresponding attributes as specific key-value conditions;
获取数据库中相同键值条件的匹配测试结果。Get matching test results for the same key-value condition in the database.
可选地,所述处理模块,还用于:Optionally, the processing module is also used for:
使用离散点进行曲线拟合算法对所述匹配测试.结果进行曲线拟合,得到曲线拟合结果。The discrete points are used to perform a curve fitting algorithm to perform curve fitting on the matching test results to obtain a curve fitting result.
可选地,所述处理模块,还用于:Optionally, the processing module is also used for:
设置示波器和目标接口链路物理连接相应的通信参数;其中,所述通信参数包括IP地址、端口号的至少一种。Set communication parameters corresponding to the physical connection between the oscilloscope and the target interface link; wherein, the communication parameters include at least one of an IP address and a port number.
可选地,所述处理模块,还用于:Optionally, the processing module is also used for:
使用预设的统计分析工具对所述目标测试结果解析得到服务器性能指标;Using a preset statistical analysis tool to analyze the target test results to obtain server performance indicators;
记录所述服务器性能指标至系统日志;其中,所述服务器性能指标包括响应时间、吞吐量、CPU利用率、网络带宽。Recording the server performance index to a system log; wherein, the server performance index includes response time, throughput, CPU utilization, and network bandwidth.
可选地,所述处理模块,还用于:Optionally, the processing module is also used for:
将所述目标测试数据以及比对结果进行可视化处理得到可视化处理结果;其中,所述可视化处理包括创建图表、报告;Performing visual processing on the target test data and comparison results to obtain visual processing results; wherein, the visual processing includes creating charts and reports;
将所述可视化处理结果发送至客户端界面。Send the visualization processing result to the client interface.
本申请实施例还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述服务器接口测试方法的步骤。The embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, it implements any one of the above-mentioned server The steps of the interface test method.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述服务器接口测试方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the server interface testing methods described above are implemented.
本申请实施例提供的服务器接口测试方法、系统、电子设备及介质,通过在接收到测试指令后,获取指定的基本参数,筛选出与该参数匹配的历史测试结果,并对这些结果进行曲线拟合,可以获得更精确的预测测试数据。利用这些预测数据和目标测试数据进行比对,可以更快速、准确地评估测试结果是否符合要求。可以有效平衡测试数量与数据准确度的关系,提高测试覆盖率并保证准确度,从而可以减少测试所需的时间和人力成本。此外,该模型还可以使用历史测试结果进行预测,减少测试工作量,同时保证判定准确度,提高测试效率和可靠性。此外,该方法还将符合要求的目标测试数据存入数据库,方便后续的测试和分析。The server interface testing method, system, electronic equipment, and medium provided in the embodiments of the present application obtain the specified basic parameters after receiving the test instructions, filter out the historical test results that match the parameters, and perform curve fitting on these results. Together, more accurate predictive test data can be obtained. By comparing these predicted data with the target test data, it is possible to more quickly and accurately evaluate whether the test results meet the requirements. It can effectively balance the relationship between the number of tests and data accuracy, improve test coverage and ensure accuracy, thereby reducing the time and labor costs required for testing. In addition, the model can also use historical test results to make predictions, reducing the testing workload, while ensuring the accuracy of judgment, and improving testing efficiency and reliability. In addition, this method also saves the target test data meeting the requirements into the database to facilitate subsequent testing and analysis.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to better understand the technical means of the present application, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and understandable , the following specifically cites the specific implementation manner of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1示意性地示出了本申请一些实施例提供的一种服务器接口测试方法的流程示意图;Fig. 1 schematically shows a schematic flowchart of a server interface testing method provided by some embodiments of the present application;
图2示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的流程示意图;FIG. 2 schematically shows a schematic flowchart of another server interface testing method provided by some embodiments of the present application;
图3示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的系统组成示意图;FIG. 3 schematically shows a system composition diagram of another server interface testing method provided by some embodiments of the present application;
图4示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的被测信号组成模块示意图;Fig. 4 schematically shows a schematic diagram of a tested signal composition module of another server interface testing method provided by some embodiments of the present application;
图5示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的条件参变量表示意图;Fig. 5 schematically shows a schematic diagram of a condition parameter table of another server interface testing method provided by some embodiments of the present application;
图6示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的工作流程示意图;FIG. 6 schematically shows a schematic workflow diagram of another server interface testing method provided by some embodiments of the present application;
图7示意性地示出了本申请一些实施例提供的另一种服务器接口测试方法的拟合曲线示意图;Fig. 7 schematically shows a schematic diagram of a fitting curve of another server interface testing method provided by some embodiments of the present application;
图8示意性地示出了本申请一些实施例提供的一种服务器接口测试装置的结构示意图;Fig. 8 schematically shows a schematic structural diagram of a server interface testing device provided by some embodiments of the present application;
图9示意性地示出了用于执行根据本申请一些实施例的方法的计算处理设备的框图;Figure 9 schematically shows a block diagram of a computing processing device for performing a method according to some embodiments of the present application;
图10示意性地示出了用于保持或者携带实现根据本申请一些实施例的方法的程序代码的存储单元。Fig. 10 schematically shows a storage unit for holding or carrying program codes for implementing methods according to some embodiments of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
图1示意性地示出了本申请一些实施例提供的一种服务器接口测试方法的流程示意图,所述方法包括:Fig. 1 schematically shows a schematic flowchart of a server interface testing method provided by some embodiments of the present application, the method comprising:
步骤101,在接收到测试指令后,获取所述测试指令所指示的基本参数。
在本申请实施例中,“测试指令”指的是服务器接口测试的指令,其包含了需要测试的目标接口以及测试所需的相关参数。接收到这个测试指令后,模型需要根据指令中的信息,提取出需要用于测试的“基本参数”,即用于标识不同接口链路的关键属性,如外接线缆线材、长度等。这是进行后续测试和数据处理的前提。In the embodiment of the present application, "test instruction" refers to an instruction for server interface testing, which includes the target interface to be tested and related parameters required for the test. After receiving the test instruction, the model needs to extract the "basic parameters" that need to be used for testing according to the information in the instruction, that is, the key attributes used to identify different interface links, such as external cables and wires, length, etc. This is a prerequisite for subsequent testing and data processing.
步骤102,从数据库中获取与所述基本参数相匹配的历史测试结果;其中,所述数据库预先存有对各类接口链路进行测试得到的测试结果。Step 102, obtaining historical test results matching the basic parameters from the database; wherein, the database pre-stores test results obtained from testing various interface links.
在本申请实施例中,在数据库中根据所指定的基本参数搜索匹配的历史测试结果,这些历史测试结果是预先存储在数据库中的。示例性的,如果测试指令要求对某个接口的响应时间进行测试,那么在数据库中搜索匹配的历史测试结果时,需要指定接口的名称和响应时间作为基本参数。如果数据库中已经包含了之前针对该接口进行的响应时间测试的测试结果,那么就可以获取到这些匹配的历史测试结果。In the embodiment of the present application, the matching historical test results are searched in the database according to the specified basic parameters, and these historical test results are pre-stored in the database. Exemplarily, if the test instruction requires to test the response time of a certain interface, when searching for matching historical test results in the database, it is necessary to specify the name of the interface and the response time as basic parameters. If the database already contains test results of previous response time tests for this interface, then these matching historical test results can be obtained.
步骤103,对所述历史测试结果进行曲线拟合,得到曲线拟合结果。
在本申请实施例中,对于从数据库中获取的历史测试结果,需要进行曲线拟合处理以得到准确的曲线拟合结果。曲线拟合是指对一组离散的数据点进行统计分析,并寻找一个可以代表这组数据点的数学模型。通常使用曲线拟合来对数据进行平滑、预测和分类等操作。曲线拟合的目的是为了预测当前测试结果的趋势和数据分布,从而为后续的测试工作提供参考。常见的曲线拟合方法包括最小二乘法、多项式拟合、指数拟合等等。示例性的,我们要对某一种接口链路的传输速率进行测试,首先需要从数据库中获取该接口链之前的历史测试结果。假设我们已经获取了该接口链路的前十次测试结果,其中每一次测试结果都包括测试时间和传输速率两个属性。我们可以使用曲线拟合方法对这些测试结果进行处理,得到一个可以代表传输速率变化趋势的数学模型。比如我们可以使用最小二乘法,拟合出一个与测试数据最接近的二次函数曲线。这样我们就得到了一个准确的曲线拟合结果,从而可以为后续的测试工作提供参考。In the embodiment of the present application, for the historical test results obtained from the database, curve fitting processing is required to obtain accurate curve fitting results. Curve fitting refers to performing statistical analysis on a set of discrete data points and finding a mathematical model that can represent this set of data points. Curve fitting is often used to perform operations such as smoothing, predicting, and classifying data. The purpose of curve fitting is to predict the trend and data distribution of the current test results, so as to provide a reference for subsequent test work. Common curve fitting methods include least squares method, polynomial fitting, exponential fitting and so on. Exemplarily, if we want to test the transmission rate of a certain interface link, we first need to obtain the previous historical test results of the interface link from the database. Assume that we have obtained the first ten test results of the interface link, and each test result includes two attributes of test time and transmission rate. We can use the curve fitting method to process these test results to obtain a mathematical model that can represent the changing trend of the transmission rate. For example, we can use the least squares method to fit a quadratic function curve that is closest to the test data. In this way, we get an accurate curve fitting result, which can provide a reference for subsequent testing work.
步骤104,控制示波器对目标接口链路进行测试得到目标测试数据。
在本申请实施例中,控制示波器是一种用于测量电子信号的仪器,用于检测和测量接口链路中的电子信号。控制示波器会根据测试指令,向目标接口链发送测试信号,并接收返回的信号数据。示波器会将信号数据转换为数字信号,存储在计算机中,供后续的数据处理和分析使用。示例性的,如果测试指令要求测试一个网络接口的传输速率,那么控制示波器会向该网络接口发送测试信号,然后接收该接口传输的数据,并将其存储为数字信号。数字信号可以表示成波形图或其他形式,供后续的数据处理和分析使用。In this embodiment of the present application, the control oscilloscope is an instrument for measuring electronic signals, and is used for detecting and measuring electronic signals in an interface link. The control oscilloscope will send a test signal to the target interface chain according to the test command, and receive the returned signal data. The oscilloscope converts the signal data into digital signals and stores them in the computer for subsequent data processing and analysis. Exemplarily, if the test command requires testing the transmission rate of a network interface, the control oscilloscope will send a test signal to the network interface, then receive the data transmitted by the interface, and store it as a digital signal. Digital signals can be represented as waveform diagrams or other forms for subsequent data processing and analysis.
步骤105,基于所述曲线拟合结果预测本次链路测试的预测测试数据。
在本申请实施例中,基于历史测试结果得到的曲线拟合结果可以用来预测本次链路测试的预测测试数据。具体来说,通过曲线拟合算法可以得到一个曲线模型,该模型能够描述历史测试结果的变化趋势。然后,使用这个曲线模型对未来的测试数据进行预测,从而得到本次链路测试的预测测试数据。例如,假设历史测试结果显示随着外接线缆长度的增加,测试结果的幅度变化呈线性增加的趋势,那么可以使用曲线拟合算法得到一条直线作为模型,然后根据当前外接线缆长度,预测出本次测试的幅度变化数据。In the embodiment of the present application, the curve fitting results obtained based on the historical test results can be used to predict the predicted test data of this link test. Specifically, a curve model can be obtained through a curve fitting algorithm, which can describe the changing trend of historical test results. Then, use this curve model to predict the future test data, so as to obtain the predicted test data of this link test. For example, assuming that the historical test results show that the amplitude of the test results increases linearly with the increase of the length of the external cable, you can use the curve fitting algorithm to obtain a straight line as a model, and then predict the Amplitude change data for this test.
步骤106,当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库。
在本申请实施例中,通过对预测测试数据和目标测试数据的比对,判断它们之间的差距是否达到测试要求,如果达到,则将目标测试数据存入数据库。这样做的目的是在测试过程中通过预测测试数据来预测目标测试数据,进而减少测试时间和人力成本,同时又保证了测试结果的准确性。示例性的,在测试某个接口时,预测测试数据为100ms,目标测试数据为98ms,测试要求允许2ms的误差,因此两者之间的比对差距小于测试要求,目标测试数据会被存入数据库中作为历史测试结果。在测试某个接口时,预测测试数据为100ms,目标测试数据为105ms,两者之间的比对差距大于于测试要求,这意味着测试结果与预期的结果存在较大差距,超出了测试的要求。这可能意味着存在问题或故障,需要进行进一步的调查和分析,以确定原因并采取必要的措施来纠正问题。此外,示例性的,若设计时规定了只有符合特定标准的测试结果才会被存入数据库中,则目标测试数据可能不会被存入数据库中;反之,如果设计时规定了所有测试结果都会被存入数据库中,则目标测试数据依然会被存入数据库中。作为误差结果指明可能性原因。In the embodiment of the present application, by comparing the predicted test data with the target test data, it is judged whether the gap between them meets the test requirements, and if so, the target test data is stored in the database. The purpose of this is to predict the target test data by predicting the test data during the test, thereby reducing the test time and labor costs, while ensuring the accuracy of the test results. For example, when testing a certain interface, the predicted test data is 100ms, the target test data is 98ms, and the test requirement allows an error of 2ms, so the comparison gap between the two is smaller than the test requirement, and the target test data will be stored in database as historical test results. When testing a certain interface, the predicted test data is 100ms, and the target test data is 105ms. The comparison gap between the two is greater than the test requirement, which means that there is a large gap between the test result and the expected result, which exceeds the test limit. Require. This may indicate a problem or malfunction and further investigation and analysis is required to determine the cause and take necessary actions to correct the problem. In addition, for example, if the design stipulates that only test results that meet specific standards will be stored in the database, the target test data may not be stored in the database; on the contrary, if the design specifies that all test results will be is stored in the database, the target test data will still be stored in the database. Indicates possible causes as error results.
在本申请实施例中,通过在接收到测试指令后,获取指定的基本参数,筛选出与该参数匹配的历史测试结果,并对这些结果进行曲线拟合,可以获得更精确的预测测试数据。利用这些预测数据和目标测试数据进行比对,可以更快速、准确地评估测试结果是否符合要求。可以有效平衡测试数量与数据准确度的关系,提高测试覆盖率并保证准确度,从而可以减少测试所需的时间和人力成本。此外,该模型还可以使用历史测试结果进行预测,减少测试工作量,同时保证判定准确度,提高测试效率和可靠性。此外,该方法还将符合要求的目标测试数据存入数据库,方便后续的测试和分析。In the embodiment of the present application, after receiving the test instruction, by obtaining the specified basic parameters, filtering out the historical test results matching the parameters, and performing curve fitting on these results, more accurate predictive test data can be obtained. By comparing these predicted data with the target test data, it is possible to more quickly and accurately evaluate whether the test results meet the requirements. It can effectively balance the relationship between the number of tests and data accuracy, improve test coverage and ensure accuracy, thereby reducing the time and labor costs required for testing. In addition, the model can also use historical test results to make predictions, reducing the testing workload, while ensuring the accuracy of judgment, and improving testing efficiency and reliability. In addition, this method also saves the target test data meeting the requirements into the database to facilitate subsequent testing and analysis.
可选地,所述步骤101,包括:在接收到测试指令后,对目标接口链路配置不同的测试参数作为所述基本参数;其中,所述测试参数包括被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的至少一项。Optionally, the
在本申请实施例中,在接收到测试指令后,服务器需要根据指令中所指示的测试参数对目标接口链路进行测试,这些测试参数包括被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的至少一项。示例性的,如果测试指令指示需要对一个主板进行测试,服务器将根据该测试指令获取被测主板的板材、走线长度等参数,并以这些参数为基本参数对目标接口链路进行测试。另外,如果测试指令指示需要测试一个外接设备,服务器将获取该外接设备的线缆类型和长度等参数,并以这些参数为基本参数对目标接口链路进行测试。In the embodiment of this application, after receiving the test instruction, the server needs to test the target interface link according to the test parameters indicated in the instruction. , cable length, board material of the riser card, and at least one of the cable length of the riser card. Exemplarily, if the test instruction indicates that a motherboard needs to be tested, the server will obtain parameters such as board material and trace length of the motherboard to be tested according to the test instruction, and use these parameters as basic parameters to test the target interface link. In addition, if the test instruction indicates that an external device needs to be tested, the server will obtain parameters such as the cable type and length of the external device, and use these parameters as basic parameters to test the target interface link.
在本申请实施例中,通过配置不同的测试参数作为基本参数,可以在保持接口链路不变的情况下,通过测试不同的测试参数,从而更全面地测试接口链路的稳定性和可靠性。例如,在测试不同的线缆长度时,可以观察到链路在不同长度下的表现,从而找出链路长度对链路性能的影响,有助于对链路进行优化和改进。这样可以提高测试的准确性和覆盖率,从而提高产品的稳定性和可靠性。In the embodiment of this application, by configuring different test parameters as basic parameters, the stability and reliability of the interface link can be tested more comprehensively by testing different test parameters while keeping the interface link unchanged . For example, when testing different cable lengths, you can observe the performance of the link at different lengths, so as to find out the impact of link length on link performance, which helps to optimize and improve the link. This improves test accuracy and coverage, which in turn increases product stability and reliability.
可选地,如图2所示,步骤102,包括:Optionally, as shown in Figure 2, step 102 includes:
步骤201,使用所述基本参数及其对应属性作为特定的键值条件。
基本参数指的是不同测试参数中的至少一项(例如被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的一项或多项)。而属性指的是不同测试参数的具体取值,比如被测主板板材可以是FR4、RO4350B、RO4003C等。使用基本参数及其对应属性作为特定的键值条件,是指将不同测试参数及其属性组合在一起作为唯一的键值,用于在数据库中查找相应的历史测试结果。示例性的,如果测试指令要求对被测主板板材为FR4、主板走线长度为20cm、转接卡板材为PI等参数进行测试,那么这些参数及其属性(FR4、20cm、PI)就被组合在一起,作为特定的键值条件。通过匹配这些键值条件,可以从数据库中获取与这些参数及其属性匹配的历史测试结果。The basic parameter refers to at least one of the different test parameters (for example, one of the board material under test, the length of the main board trace, the external cable wire, the length of the cable, the board material of the riser card, the length of the trace of the riser card or multiple). The attribute refers to the specific values of different test parameters. For example, the tested motherboard board can be FR4, RO4350B, RO4003C, etc. Using basic parameters and their corresponding attributes as specific key-value conditions refers to combining different test parameters and their attributes as a unique key value for searching the corresponding historical test results in the database. Exemplarily, if the test instruction requires testing parameters such as FR4 for the main board to be tested, 20cm for the wiring length of the main board, and PI for the riser board, then these parameters and their attributes (FR4, 20cm, PI) are combined together, as a specific key-value condition. By matching these key-value conditions, historical test results matching these parameters and their attributes can be retrieved from the database.
步骤202,获取数据库中相同键值条件的匹配测试结果。
在本申请实施例中,获取数据库中相同键值条件的匹配测试结果是指根据之前测试得到的键值条件和相应的测试结果,从数据库中检索出与当前测试所需键值条件相匹配的历史测试结果。示例性的,在一个电子产品的测试过程中,测试人员需要测试不同型号的主板与转接卡的连接性能。为了获取匹配的测试结果,测试人员需要在每次测试前设置被测主板的板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度等测试参数作为键值条件。当测试人员在后续的测试过程中需要获取之前测试过的同样条件下的测试结果时,系统会根据这些键值条件在数据库中检索,获取与之匹配的历史测试结果。In the embodiment of this application, obtaining the matching test results of the same key-value conditions in the database refers to retrieving from the database the key-value conditions that match the key-value conditions required by the current test according to the key-value conditions and corresponding test results obtained in the previous test. Historical test results. Exemplarily, during the testing process of an electronic product, the tester needs to test the connection performance of different models of motherboards and riser cards. In order to obtain matching test results, testers need to set test parameters such as board material of the main board under test, main board trace length, external cable wire, cable length, riser card board material, riser card trace length, etc. before each test as a key-value condition. When testers need to obtain test results under the same conditions that have been tested before in the subsequent test process, the system will search in the database according to these key-value conditions to obtain matching historical test results.
在本申请实施例中,使用特定的键值条件来获取数据库中相同键值条件的匹配测试结果,可以帮助测试人员快速获取与当前测试参数相似的历史测试结果。可以更快速地了解以往测试结果的表现情况和数据变化趋势,对本次测试进行更有针对性的测试。可以避免重复测试已经被覆盖的测试参数组合,提高测试效率。可以为产品研发提供更加全面和准确的测试数据,以便更好地优化产品设计和性能。In the embodiment of the present application, using specific key-value conditions to obtain matching test results with the same key-value conditions in the database can help testers quickly obtain historical test results similar to current test parameters. It is possible to understand the performance of previous test results and the trend of data changes more quickly, and conduct a more targeted test for this test. It can avoid repeated testing of test parameter combinations that have been covered, and improve test efficiency. It can provide more comprehensive and accurate test data for product development, so as to better optimize product design and performance.
可选地,步骤103,包括:使用离散点进行曲线拟合算法对所述历史测试结果进行曲线拟合,得到曲线拟合结果。Optionally,
在本申请实施例中,使用离散点进行曲线拟合算法是一种的曲线拟合方法,它通过离散点的坐标值进行数学模型的拟合。离散点指的是一组坐标值,比如(x1,y1),(x2,y2),...,(xn,yn)。拟合算法通过寻找最优的数学模型,使得该模型可以通过这组离散点,从而预测出其他数据点的值。示例性的,假设有一个函数y=f(x),我们需要通过一组离散点(x1,y1),(x2,y2),…,(xn,yn)来拟合这个函数。如果我们假设f(x)是一个二次函数,那么就可以使用二次拟合算法来计算出该函数的系数a,b,c,从而得到曲线拟合结果。In the embodiment of the present application, the curve fitting algorithm using discrete points is a kind of curve fitting method, which performs mathematical model fitting through the coordinate values of discrete points. A discrete point refers to a set of coordinate values, such as (x1,y1),(x2,y2),...,(xn,yn). The fitting algorithm finds the optimal mathematical model so that the model can pass through this set of discrete points, thereby predicting the values of other data points. Exemplarily, suppose there is a function y=f(x), we need to fit this function through a set of discrete points (x1,y1),(x2,y2),...,(xn,yn). If we assume that f(x) is a quadratic function, then the quadratic fitting algorithm can be used to calculate the coefficients a, b, and c of the function to obtain the curve fitting result.
在本申请实施例中,能够根据历史测试数据得到曲线拟合结果,用以预测本次测试数据,从而减少实际测试的工作量。与传统的测试方法相比,使用曲线拟合算法可以更准确地预测测试数据,并且在测试时能够更加高效地覆盖接口链路的各种情况。In the embodiment of the present application, the curve fitting result can be obtained according to the historical test data, and used to predict the current test data, thereby reducing the workload of the actual test. Compared with the traditional test method, using the curve fitting algorithm can predict the test data more accurately, and can cover various conditions of the interface link more efficiently during the test.
可选地,在步骤104之前,所述方法包括:设置示波器和目标接口链路物理连接相应的通信参数;其中,所述通信参数包括IP地址、端口号的至少一种。Optionally, before
在本申请实施例中,在进行服务器接口测试时,需要将示波器和目标接口链路进行物理连接,并设置相应的通信参数,以便能够在两者之间进行数据传输和通信。示例性的,如果要进行一个网络服务器的接口测试,就需要将示波器与服务器进行连接,并设置相应的IP地址和端口号,以便示波器能够向服务器发送测试请求,并从服务器接收到测试结果。通常情况下,示波器和目标接口链路之间的通信参数设置是根据具体的测试要求和环境条件来进行的。In the embodiment of the present application, when performing the server interface test, it is necessary to physically connect the oscilloscope to the target interface link, and set corresponding communication parameters so that data transmission and communication can be performed between the two. Exemplarily, if an interface test of a network server is to be performed, it is necessary to connect the oscilloscope to the server, and set a corresponding IP address and port number, so that the oscilloscope can send a test request to the server and receive a test result from the server. Usually, the communication parameter setting between the oscilloscope and the target interface link is carried out according to the specific test requirements and environmental conditions.
在本申请实施例中,在确保示波器和目标接口链路的物理连接正常的前提下,通过设置合适的通信参数建立通信连接,实现数据的传输和接收。这是整个测试流程中非常重要的一步,确保了数据的可靠性和准确性。例如,通过设置正确的IP地址和端口号,示波器可以向目标接口链路发送正确的测试指令并接收到目标测试数据,从而保证测试结果的准确性。In the embodiment of the present application, on the premise of ensuring that the physical connection between the oscilloscope and the target interface link is normal, a communication connection is established by setting appropriate communication parameters to realize data transmission and reception. This is a very important step in the entire testing process to ensure the reliability and accuracy of the data. For example, by setting the correct IP address and port number, the oscilloscope can send correct test instructions to the target interface link and receive target test data, thereby ensuring the accuracy of test results.
可选地,在步骤106之后,所述方法还包括:Optionally, after
步骤A1,使用预设的统计分析工具对所述目标测试结果解析得到服务器性能指标。Step A1, using a preset statistical analysis tool to analyze the target test results to obtain server performance indicators.
在本申请实施例中,使用预设的统计分析工具可以对目标测试结果进行解析,并从中提取出服务器性能指标。这些统计分析工具可以包括各种类型的软件和算法,用于计算和汇总服务器性能的关键指标,例如响应时间、吞吐量、CPU使用率、内存使用率等等。示例性的,在测试一个Web服务器的性能时,获取到的目标测试结果包括对不同用户并发访问服务器时的响应时间和吞吐量的数据,这些数据可以通过预设的统计分析工具进行解析,并从中提取出关键的性能指标,例如最大响应时间、平均响应时间、吞吐量峰值等等。通过对这些指标的分析和比较,可以评估服务器的性能表现,并提供反馈以指导进一步的优化和改进。In the embodiment of the present application, the target test result can be analyzed by using a preset statistical analysis tool, and the server performance index can be extracted therefrom. These statistical analysis tools may include various types of software and algorithms for calculating and summarizing key metrics of server performance, such as response time, throughput, CPU usage, memory usage, and more. Exemplarily, when testing the performance of a web server, the obtained target test results include data on response time and throughput when different users access the server concurrently, these data can be analyzed by a preset statistical analysis tool, and Key performance metrics are extracted from it, such as maximum response time, average response time, peak throughput, and more. Through the analysis and comparison of these indicators, the performance of the server can be evaluated, and feedback can be provided to guide further optimization and improvement.
步骤A2,记录所述服务器性能指标至系统日志;其中,所述服务器性能指标包括响应时间、吞吐量、CPU利用率、网络带宽。Step A2, recording the server performance index to a system log; wherein, the server performance index includes response time, throughput, CPU utilization, and network bandwidth.
在本申请实施例中,记录服务器性能指标至系统日志是将所得到的性能指标记录在系统的日志文件中,以便于后续的查看、分析和处理。这些性能指标包括但不限于响应时间、吞吐量、CPU利用率、网络带宽等。示例性的,假设某个系统需要测试其服务器的性能,并记录性能指标。在进行测试过程中,系统会收集到不同的性能指标数据,例如在某一时间段内服务器的响应时间、吞吐量、CPU利用率和网络带宽等数据。这些数据会被记录在系统的日志文件中,以便于系统管理员或开发人员对这些数据进行分析和处理,以便对系统的性能进行评估和改进。In the embodiment of the present application, recording the server performance index to the system log is to record the obtained performance index in the log file of the system, so as to facilitate subsequent viewing, analysis and processing. These performance indicators include but are not limited to response time, throughput, CPU utilization, network bandwidth, etc. Exemplarily, it is assumed that a certain system needs to test the performance of its server and record performance indicators. During the testing process, the system will collect different performance index data, such as server response time, throughput, CPU utilization and network bandwidth data within a certain period of time. These data will be recorded in the log files of the system, so that system administrators or developers can analyze and process these data, so as to evaluate and improve the performance of the system.
在本申请实施例中,对服务器的性能指标进行解析和记录,能够帮助诊断系统中可能存在的性能问题,并对系统进行性能分析和优化,提高系统的稳定性和性能。同时,记录这些性能指标也有助于了解系统在不同负载情况下的表现,为未来的系统设计提供参考。示例性的,如果使用预设的统计分析工具对服务器的响应时间进行解析,可能发现系统在某些情况下响应时间较长,可以进一步分析问题所在并进行优化。又比如记录系统的CPU利用率可以帮助了解系统的负载情况,判断是否需要进行扩容或优化等。In the embodiment of the present application, parsing and recording the performance indicators of the server can help diagnose possible performance problems in the system, analyze and optimize the performance of the system, and improve the stability and performance of the system. At the same time, recording these performance indicators is also helpful to understand the performance of the system under different load conditions and provide reference for future system design. Exemplarily, if a preset statistical analysis tool is used to analyze the response time of the server, it may be found that the response time of the system is relatively long in some cases, and the problem can be further analyzed and optimized. Another example is that recording the CPU utilization of the system can help understand the load of the system and determine whether expansion or optimization is required.
可选地,在步骤106之后,所述方法还包括:Optionally, after
步骤S1,将所述目标测试数据以及比对结果进行可视化处理得到可视化处理结果;其中,所述可视化处理包括创建图表、报告。Step S1, performing visual processing on the target test data and comparison results to obtain a visual processing result; wherein, the visual processing includes creating charts and reports.
在本申请实施例中,将得到的目标测试数据和比对结果进行可视化处理,以便于直观地观察测试结果。这个过程通常涉及到图表和报告的创建,可以使用各种数据可视化工具来实现。例如,使用Python中的Matplotlib库或Tableau软件,可以创建各种类型的图表和报告,如折线图、柱状图、散点图等。这些可视化工具可以有效地帮助测试人员理解测试结果并快速发现潜在的问题。In the embodiment of the present application, the obtained target test data and comparison results are visualized so as to observe the test results intuitively. This process often involves the creation of charts and reports, which can be achieved using a variety of data visualization tools. For example, using the Matplotlib library in Python or Tableau software, various types of charts and reports can be created, such as line charts, column charts, scatter plots, etc. These visualization tools can effectively help testers understand test results and quickly discover potential problems.
步骤S2,将所述可视化处理结果发送至客户端界面。Step S2, sending the visualization processing result to the client interface.
在本申请实施例中,将可视化处理结果发送至客户端界面,是指将处理后的图表、报告等展示在用户所使用的客户端界面上,供用户查看、分析和操作。这可以通过将结果以图像、文件等形式传输至客户端实现,或者使用网页或应用程序等方式呈现。例如,一个网络监控系统通过收集网络数据、进行处理并生成报告,将报告以图表和表格的形式发送至客户端,客户端以网页的形式展示这些结果,用户可以通过浏览器访问该网页进行数据的查看和分析。In this embodiment of the present application, sending the visualization processing results to the client interface refers to displaying the processed charts, reports, etc. on the client interface used by the user for viewing, analysis and operation by the user. This can be done by transferring the results to the client in the form of images, files, etc., or by presenting them using web pages or applications, etc. For example, a network monitoring system collects network data, processes and generates reports, and sends the reports to the client in the form of charts and tables, and the client displays these results in the form of web pages, and users can access the web pages through browsers to view data. viewing and analysis.
在本申请实施例中,将测试结果通过可视化处理呈现给用户,有助于用户更直观地了解测试结果和性能表现,从而更好地评估系统的性能和瓶颈。同时,将处理结果发送至客户端界面,使用户能够方便地查看测试结果,提高了系统的易用性和效率,具有很好的效果。In the embodiment of the present application, the test results are presented to the user through visual processing, which helps the user to understand the test results and performance more intuitively, so as to better evaluate the performance and bottleneck of the system. At the same time, the processing results are sent to the client interface, so that users can view the test results conveniently, which improves the ease of use and efficiency of the system, and has a good effect.
如图3所示,在本申请实施例中,控制模块控制电脑搭配人机交互软件组成,用于下发操作指令、控制示波器、保存测试数据、数据分析等作用。其中包含数据库及数据分析模块。数据库:数据库内数据来源为各类测试结果,测试结果积累越多,测试评判越准确。所有测试结果在接受判断后进入数据库内作为后续测试判断标准的一部分。数据分析模块:以影响测试结果的各种参变量作为筛选条件,以数据库内测试结果作为测试标准,对数据库接收到的新数据进行判断。测试模块:主要由示波器组成,配合控制台的人机交互界面,实现示波器自动采集测试数据并保存至相应数据库。As shown in Figure 3, in the embodiment of this application, the control module is composed of a control computer and human-computer interaction software, which are used to issue operation instructions, control the oscilloscope, save test data, and analyze data. It includes database and data analysis module. Database: The data sources in the database are various test results. The more test results are accumulated, the more accurate the test judgment will be. All test results are entered into the database after being judged as part of the subsequent test judgment criteria. Data analysis module: use various parameters that affect the test results as screening conditions, and use the test results in the database as the test standard to judge the new data received by the database. Test module: mainly composed of an oscilloscope, which cooperates with the human-computer interaction interface of the console to realize the automatic collection of test data by the oscilloscope and save it to the corresponding database.
如图4所示,被测信号组成模块包括主板、转接卡、线缆以及相应的参数。主板参数包括板材、长度;转接卡参数包括板材、长度;线缆参数包括线材、长度。As shown in FIG. 4 , the components of the signal to be tested include a main board, an adapter card, cables and corresponding parameters. Main board parameters include board material and length; riser card parameters include board material and length; cable parameters include wire material and length.
如图5所示,条件参变量主要包括:被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度。以上为当前影响测试结果的主要参数,根据测试数据的积累,也可能会发现其他关键影响因素,可随时添加参数定义。变量区分键值包含Key1:被测主板板材,Key2:转接卡板材,Key3:外接线缆线材。Key1/Key2/Key3相应参变量分别为其对应长度。测试结果分析以各键值组合作为筛选条件,筛选出不同走线或线缆长度的测试结果。As shown in Figure 5, the conditional parameters mainly include: the board material to be tested, the length of the main board wiring, the external cable wire, the length of the cable, the board material of the adapter card, and the length of the wiring of the adapter card. The above are the main parameters that currently affect the test results. According to the accumulation of test data, other key influencing factors may also be found, and parameter definitions can be added at any time. The variable distinguishing key values include Key1: the board material of the main board under test, Key2: the board material of the adapter card, and Key3: the external cable wire material. The corresponding parameters of Key1/Key2/Key3 are their corresponding lengths. The test result analysis uses each key-value combination as a filter condition to filter out the test results of different wiring or cable lengths.
如图6所示,在本申请实施例中,示例性的,其中,S1,启动测试,打开控制模块中人机交互界面。As shown in FIG. 6 , in the embodiment of the present application, for example, S1 starts the test and opens the human-computer interaction interface in the control module.
S2,在界面中对被测链路进行基本参数配置,用于数据库测试结果的保存。S2, configure the basic parameters of the link under test in the interface for saving the test results in the database.
S3,参变量设置完成后,自动获取数据库中相同键值条件的测试结果,后台对这些测试结果进行曲线拟合,获得基本测试参考标准。由于拟合曲线的精度与测试数据量有关,因此随着数据库中数据量的增多,曲线精度越来越高,相应的判定标准越来越精确。如图7所示。S3, after the parameter setting is completed, the test results of the same key value conditions in the database are automatically obtained, and the background performs curve fitting on these test results to obtain the basic test reference standard. Since the accuracy of the fitting curve is related to the amount of test data, with the increase of the amount of data in the database, the accuracy of the curve is getting higher and higher, and the corresponding judgment standard is getting more and more accurate. As shown in Figure 7.
其中,离散数据拟合时,对所有样本点进行3次多项式曲线拟合获得关系式y(x)=a*x3+b*x2+c*x+d,当前测试结果(X,Y)误差Δe=|Y-y(X)|,按照工程误差3%作为评判标准,如果则测试结果PASS;如果/>则测试结果FAIL。Among them, when fitting discrete data, all sample points are fitted with a 3-degree polynomial curve to obtain the relationship y(x)=a*x 3 +b*x 2 +c*x+d, and the current test results (X, Y ) error Δe=|Yy(X)|, according to engineering error 3% as the evaluation standard, if Then the test result is PASS; if /> Then the test result is FAIL.
S4,控制示波器进行测试数据采集并保存。S4, controlling the oscilloscope to collect and save test data.
S5,根据S3判定方法判断测试结果。S5, judging the test result according to the judging method of S3.
S6,保存数据。S6, saving data.
S7,测试完成。S7, the test is completed.
通过以上测试数据积累,拟合曲线越发接近理想值。同时,因为测试难免存在客观误差,因此随着数据积累,可判断特定条件下的测试结果走向,结合仿真理论值,间接判断部分链路的结果,从而减少实测量,达到提高效率节省成本的目的。Through the accumulation of the above test data, the fitting curve is getting closer to the ideal value. At the same time, because the test inevitably has objective errors, with the accumulation of data, the direction of the test results under specific conditions can be judged, combined with the simulation theoretical value, the results of some links can be indirectly judged, so as to reduce the actual measurement and achieve the purpose of improving efficiency and saving costs .
如图8所示,本申请一些实施例提供一种服务器接口测试装置30,所述装置30包括:As shown in Figure 8, some embodiments of the present application provide a server
传输模块301,用于在接收到测试指令后,获取所述测试指令所指示的基本参数;从数据库中获取与所述基本参数相匹配的历史测试结果;其中,所述数据库预先存有对各类接口链路进行测试得到的测试结果;The
处理模块302,用于对所述历史测试结果进行曲线拟合,得到曲线拟合结果;控制示波器对目标接口链路进行测试得到目标测试数据;基于所述曲线拟合结果预测本次链路测试的预测测试数据;The
储存模块303,用于当所述预测测试数据与所述目标测试数据的比对差距达到测试要求时,将所述目标测试数据存入所述数据库。The
可选地,所述传输模块301,还用于:Optionally, the
在接收到测试指令后,对目标接口链路配置不同的测试参数作为所述基本参数;其中,所述测试参数包括被测主板板材、主板走线长度、外接线缆线材、线缆长度、转接卡板材、转接卡走线长度中的至少一项。After receiving the test instruction, configure different test parameters for the target interface link as the basic parameters; wherein, the test parameters include the tested mainboard plate, mainboard trace length, external cable wire, cable length, turn At least one of the riser board material and riser card routing length.
可选地,所述传输模块301,还用于:Optionally, the
使用所述基本参数及其对应属性作为特定的键值条件;Use the basic parameters and their corresponding attributes as specific key-value conditions;
获取数据库中相同键值条件的匹配测试结果。Get matching test results for the same key-value condition in the database.
可选地,所述处理模块302,还用于:Optionally, the
使用离散点进行曲线拟合算法对所述匹配测试.结果进行曲线拟合,得到曲线拟合结果。The discrete points are used to perform a curve fitting algorithm to perform curve fitting on the matching test results to obtain a curve fitting result.
可选地,所述处理模块302,还用于:Optionally, the
设置示波器和目标接口链路物理连接相应的通信参数;其中,所述通信参数包括IP地址、端口号的至少一种。Set communication parameters corresponding to the physical connection between the oscilloscope and the target interface link; wherein, the communication parameters include at least one of an IP address and a port number.
可选地,所述处理模块302,还用于:Optionally, the
使用预设的统计分析工具对所述目标测试结果解析得到服务器性能指标;Using a preset statistical analysis tool to analyze the target test results to obtain server performance indicators;
记录所述服务器性能指标至系统日志;其中,所述服务器性能指标包括响应时间、吞吐量、CPU利用率、网络带宽。Recording the server performance index to a system log; wherein, the server performance index includes response time, throughput, CPU utilization, and network bandwidth.
可选地,所述处理模块302,还用于:Optionally, the
将所述目标测试数据以及比对结果进行可视化处理得到可视化处理结果;其中,所述可视化处理包括创建图表、报告;Performing visual processing on the target test data and comparison results to obtain visual processing results; wherein, the visual processing includes creating charts and reports;
将所述可视化处理结果发送至客户端界面。Send the visualization processing result to the client interface.
在本申请实施例中通过在接收到测试指令后,获取指定的基本参数,筛选出与该参数匹配的历史测试结果,并对这些结果进行曲线拟合,可以获得更精确的预测测试数据。利用这些预测数据和目标测试数据进行比对,可以更快速、准确地评估测试结果是否符合要求。可以有效平衡测试数量与数据准确度的关系,提高测试覆盖率并保证准确度,从而可以减少测试所需的时间和人力成本。此外,该模型还可以使用历史测试结果进行预测,减少测试工作量,同时保证判定准确度,提高测试效率和可靠性。此外,该方法还将符合要求的目标测试数据存入数据库,方便后续的测试和分析。In the embodiment of the present application, after receiving the test instruction, the designated basic parameters are obtained, the historical test results matching the parameters are filtered out, and curve fitting is performed on these results, so that more accurate predictive test data can be obtained. By comparing these predicted data with the target test data, it is possible to more quickly and accurately evaluate whether the test results meet the requirements. It can effectively balance the relationship between the number of tests and data accuracy, improve test coverage and ensure accuracy, thereby reducing the time and labor costs required for testing. In addition, the model can also use historical test results to make predictions, reducing the testing workload, while ensuring the accuracy of judgment, and improving testing efficiency and reliability. In addition, this method also saves the target test data meeting the requirements into the database to facilitate subsequent testing and analysis.
以上所描述的设备实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的计算处理设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在非瞬态计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application may be realized in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the computing processing device according to the embodiments of the present application. The present application can also be implemented as an apparatus or apparatus program (eg, computer program and computer program product) for performing a part or all of the methods described herein. Such a program implementing the present application may be stored on a non-transitory computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
例如,图9示出了可以实现根据本申请的方法的计算处理设备。该计算处理设备传统上包括处理器410和以存储器420形式的计算机程序产品或者非瞬态计算机可读介质。存储器420可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器420具有用于执行上述方法中的任何方法步骤的程序代码431的存储空间430。例如,用于程序代码的存储空间430可以包括分别用于实现上面的方法中的各种步骤的各个程序代码431。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图10所述的便携式或者固定存储单元。该存储单元可以具有与图9的计算处理设备中的存储器420类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码431’,即可以由例如诸如410之类的处理器读取的代码,这些代码当由计算处理设备运行时,导致该计算处理设备执行上面所描述的方法中的各个步骤。For example, FIG. 9 illustrates a computing processing device that may implement methods according to the present application. The computing processing device conventionally includes a
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of the accompanying drawings are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages may not necessarily be executed at the same time, but may be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Additionally, please note that examples of the word "in one embodiment" herein do not necessarily all refer to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310272317.XA CN116244131A (en) | 2023-03-20 | 2023-03-20 | Server interface testing method and device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310272317.XA CN116244131A (en) | 2023-03-20 | 2023-03-20 | Server interface testing method and device, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116244131A true CN116244131A (en) | 2023-06-09 |
Family
ID=86624221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310272317.XA Pending CN116244131A (en) | 2023-03-20 | 2023-03-20 | Server interface testing method and device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116244131A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116610511A (en) * | 2023-07-18 | 2023-08-18 | 合肥康芯威存储技术有限公司 | Storage test equipment and test method thereof |
-
2023
- 2023-03-20 CN CN202310272317.XA patent/CN116244131A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116610511A (en) * | 2023-07-18 | 2023-08-18 | 合肥康芯威存储技术有限公司 | Storage test equipment and test method thereof |
CN116610511B (en) * | 2023-07-18 | 2024-04-05 | 合肥康芯威存储技术有限公司 | Storage test equipment and test method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683562B (en) | Anomaly detection positioning method and device, computer equipment and storage medium | |
JP5586835B2 (en) | Clinical diagnostic analyzer performance estimator | |
CN100538656C (en) | The method and apparatus of debugging computer program in distributed debugger | |
US10116534B2 (en) | Systems and methods for WebSphere MQ performance metrics analysis | |
WO2022121337A1 (en) | Data exploration method and apparatus, and electronic device and storage medium | |
CN111666201A (en) | Regression testing method, device, medium and electronic equipment | |
CN116244131A (en) | Server interface testing method and device, electronic equipment and medium | |
US10382311B2 (en) | Benchmarking servers based on production data | |
CN111523764B (en) | Service architecture detection method, device, tool, electronic equipment and medium | |
CN115248782B (en) | Automatic testing method and device and computer equipment | |
CN114942914A (en) | Method for generating metadata from acquired signals for search, filtering and machine learning input | |
CN114528215A (en) | Interactive page testing method and element template generating method and device | |
CN114564853B (en) | Evaluation report generation method based on FMEA data and electronic equipment | |
US7752580B2 (en) | Method and system for analyzing an integrated circuit based on sample windows selected using an open deterministic sequencing technique | |
CN117077592B (en) | Regression data monitoring method, monitoring device and monitoring system | |
CN115348195B (en) | Method and system for transmitting and measuring speed of earth system mode data | |
CN115062701B (en) | Data processing method, device and electronic equipment | |
CN111324775B (en) | Data collection analysis system for electronic balance detection | |
CN119512927A (en) | Automatic analysis method and related equipment for interface performance test | |
CN118964161A (en) | A test system, method, device and medium | |
CN117033210A (en) | Flow playback test system and method | |
CN116048975A (en) | Database testing method and device, electronic equipment and storage medium | |
CN106855840A (en) | A kind of system CPU analysis method and device | |
CN110083516A (en) | A kind of automated operating system test method | |
CN118796534A (en) | Test data management method, device, computing equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |