Test method and system of the invention discloses a network pressure method, including the configuration of the server and the client node, open the test tool on the server on the service service; to create a test function, the first, second and third Numerical numerical values were written test scripts; execute the test function, the first value, the second value and third value into the corresponding test command, and a pressure test, selected numerical obtained from the log file, comparing with the theoretical value, the results of the tests; the system including the server and the client, the server is provided with a front-end module, the module is used to open the pre testing tool service the client service; a setting module and execution module. Compared with the existing technology, the testing process of the present invention needs no human participation, the whole test is carried out automatically and continuously, and the time and cost are saved.
【技术实现步骤摘要】
一种网络压力的测试方法及系统
本专利技术涉及计算机
,具体地说是一种网络压力的测试方法及系统。
技术介绍
随着计算机技术的不断发展,以及对网络速度需求的不断增大,需要不断提升网线、网卡等相关网络设备的性能。在进行网络设备的研发阶段需要反复的进行压力测试,来达到设计目的。网络压力测试过程中需要两个节点之间可相互访问,一个节点作为service端,另一节点作为Client端。Service端节点打开Server服务后,Client端节点上输入压力测试命令,测试完成后对测试数据进行分析。现有技术中网络压力测试都是手动进行测试,测试过程中需要不断的输入相关信息,测试完成后还需要手动检查测试结果,较为费时。
技术实现思路
本专利技术的目的在于提供一种网络压力的测试方法及系统,用于解决现有测试过程中需要人为参与测试、且多次中断测试过程的问题。本专利技术解决其技术问题所采用的技术方案是:一种网络压力的测试方法,包括以下步骤:配置服务端和客户端节点,在服务端上开启测试工具的service服务;创建测试函数,将第一数值、第二数值和第三数值分别写入测试脚本内;执行测试函数,将所述第 ...
【技术保护点】
一种网络压力的测试方法,其特征是:包括以下步骤:配置服务端和客户端节点,在服务端上开启测试工具的service服务;创建测试函数,将第一数值、第二数值和第三数值分别写入测试脚本内;执行测试函数,将所述第一数值、第二数值和第三数值导入到对应测试命令处,并进行压力测试,从获得的log文件中筛选出数值,与理论值进行对比,得到测试结果。
【技术特征摘要】
1.一种网络压力的测试方法,其特征是:包括以下步骤:配置服务端和客户端节点,在服务端上开启测试工具的service服务;创建测试函数,将第一数值、第二数值和第三数值分别写入测试脚本内;执行测试函数,将所述第一数值、第二数值和第三数值导入到对应测试命令处,并进行压力测试,从获得的log文件中筛选出数值,与理论值进行对比,得到测试结果。2.根据权利要求1所述的测试方法,其特征是:所述测试工具采用iperf网络压力性能测试工具,创建的测试函数为iperf函数。3.根据权利要求1或2所述的测试方法,其特征是:所述第一数值、第二数值、第三数值分别为服务端节点的IP、测试时长和线程数。4.根据权利要求3所述的测试方法,其特征是:在所述执行测试函数之前还包括步骤:检查测试函数脚本内是否存在第三个数值的步骤,如存在,则执行测试函数,否则显示例句。5.根据权利要求4所述的测试方法,其特征是:所述例句为写...
【专利技术属性】
技术研发人员:杨惠,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。