CN102932205B - A kind of automated testing method of network service end interface - Google Patents

A kind of automated testing method of network service end interface Download PDF

Info

Publication number
CN102932205B
CN102932205B CN201210466641.7A CN201210466641A CN102932205B CN 102932205 B CN102932205 B CN 102932205B CN 201210466641 A CN201210466641 A CN 201210466641A CN 102932205 B CN102932205 B CN 102932205B
Authority
CN
China
Prior art keywords
test
case data
control unit
network server
management unit
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.)
Expired - Fee Related
Application number
CN201210466641.7A
Other languages
Chinese (zh)
Other versions
CN102932205A (en
Inventor
余恒
梁亚宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN ARTEL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN ARTEL TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN ARTEL TECHNOLOGY CO LTD filed Critical SHENZHEN ARTEL TECHNOLOGY CO LTD
Priority to CN201210466641.7A priority Critical patent/CN102932205B/en
Publication of CN102932205A publication Critical patent/CN102932205A/en
Application granted granted Critical
Publication of CN102932205B publication Critical patent/CN102932205B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种网络服务端接口的自动化测试方法与测试平台,该方法包括:导入测试用例数据;提取测试用例数据并进行封装;模拟客户端发送请求,对网络服务端接口进行测试;监控测试过程;记录日志;测试结果分析,生成测试报告。该测试平台包括,用于导入并管理测试用例数据的测试管理单元;用于封装测试用例数据、模拟客户端的请求、对网络服务端接口进行测试、并监控测试过程的测试控制单元;用于根据测试控制单元反馈的数据生成日志,并记录报警、错误参数值及位置信息的日志单元;用于根据测试控制单元反馈的测试用例数据的执行状态,以测试管理单元的预期为基准,累积统计计数分析,并自动生成测试报告的测试报告单元。

The invention discloses an automatic test method and a test platform for a network server interface. The method includes: importing test case data; extracting and encapsulating the test case data; simulating a client to send a request to test the network server interface; monitoring Test process; record log; test result analysis, generate test report. The test platform includes a test management unit for importing and managing test case data; a test control unit for encapsulating test case data, simulating client requests, testing network server interfaces, and monitoring the test process; The data fed back by the test control unit generates logs and records alarms, error parameter values and location information; it is used to accumulate statistical counts based on the execution status of the test case data fed back by the test control unit and based on the expectations of the test management unit Analyze and automatically generate the test report unit of the test report.

Description

一种网络服务端接口的自动化测试方法An automated testing method for network server interface

技术领域 technical field

本发明涉及网络服务端接口的功能自动化测试领域,尤其涉及一种网络服务端接口的自动化测试方法与测试平台。 The invention relates to the field of automatic testing of network service interface functions, in particular to an automatic testing method and testing platform of the network service interface.

背景技术 Background technique

目前针对网络服务端接口的功能测试,一般采用QTP、Winrunner等商业软件,其价格昂贵且要求测试人员具备使用专利工具的技术。 At present, commercial software such as QTP and Winrunner are generally used for functional testing of network server interfaces, which are expensive and require testers to have the technology to use patented tools.

另外还可以通过客户端请求服务端确认的方式进行手工间接测试,但是,对于此种测试方式,如果存在多输入条件、多数据类型组合时,手工测试又非常繁琐、容易出错且测试不充分。 In addition, manual indirect testing can also be performed through the client requesting the server to confirm. However, for this testing method, if there are multiple input conditions and multiple data type combinations, manual testing is very cumbersome, error-prone, and insufficient.

发明内容 Contents of the invention

本发明的目的在于克服现有技术中的不足,提供一种网络服务端接口的自动化测试方法与测试平台,通过该方法可模拟客户端请求发出指令,与服务端交互,实现自动化测试,使得对于网络服务端接口的测试更高效,操作更简单,出错的几率更小。 The purpose of the present invention is to overcome the deficiencies in the prior art, to provide a kind of automatic test method and test platform of the network server interface, can simulate the client to request to issue instructions through this method, interact with the server, and realize the automatic test, so that for The test of the network server interface is more efficient, the operation is simpler, and the probability of error is smaller.

为实现上述目的,所述网络服务端接口的自动化测试方法,其特点是,包括以下步骤: In order to achieve the above object, the automatic testing method of the network server interface is characterized in that it comprises the following steps:

步骤1:导入测试用例数据; Step 1: Import test case data;

步骤2:提取测试用例数据并进行封装; Step 2: Extract test case data and encapsulate it;

步骤3:模拟客户端发送请求,对网络服务端接口进行测试; Step 3: Simulate the client sending a request and test the network server interface;

步骤4:监控测试过程; Step 4: Monitor the test process;

步骤5:记录日志; Step 5: record the log;

步骤6:测试结果分析,生成测试报告。 Step 6: Analyze test results and generate test reports.

优选的是,所述步骤1还包括以下步骤, Preferably, said step 1 also includes the following steps,

步骤11:初始化测试管理单元,完成测试管理单元的基本配置和驱动操作; Step 11: Initialize the test management unit, complete the basic configuration and drive operation of the test management unit;

步骤12:导入预先设定的测试用例数据到所述测试管理单元; Step 12: Importing preset test case data into the test management unit;

步骤13:校验所述测试用例数据的正确性和完整性,对于不符合执行条件的测试用例数据,提示错误。 Step 13: Verify the correctness and completeness of the test case data, and prompt an error for the test case data that does not meet the execution conditions.

优选的是,在所述步骤2中,测试控制单元通过调用存储于所述测试管理单元内的测试用例数据,判断所调用的测试用例数据的意图,并抽取该测试用例数据中的特定数据,然后对特定数据进行封装,生成测试脚本。 Preferably, in the step 2, the test control unit judges the intention of the called test case data by calling the test case data stored in the test management unit, and extracts specific data in the test case data, Then encapsulate specific data and generate test scripts.

优选的是,在所述步骤3中,所述测试控制单元通过调用封装好的测试脚本,根据测试脚本对应的特定数据,调用该测试控制单元的API组合,封装成HTTP请求,模拟B/S的请求,响应交互流程,自主模拟客户端向待测的目标网络服务端接口发送请求;所述测试控制单元根据设置的测试步骤,模拟测试场景,控制发送请求的步骤和时间。 Preferably, in the step 3, the test control unit calls the packaged test script, according to the specific data corresponding to the test script, calls the API combination of the test control unit, encapsulates it into an HTTP request, and simulates the B/S The request responds to the interaction process, and autonomously simulates the client to send a request to the target network server interface to be tested; the test control unit simulates the test scene according to the set test steps, and controls the steps and time of sending the request.

优选的是,在所述步骤4中,目标网络服务端接口在收到所述HTTP请求后,会返回结果给测试控制单元;所述测试控制单元接受目标网络服务端接口返回的结果,并与预期值比对;若所述返回的结果与预期值相同,则回写状态成功标记至测试管理单元,否则回写状态失败标记至测试管理单元;所述测试管理单元接受反馈回来的状态成功标记或状态失败标记,并根据反馈的标记更当前使用的测试用例数据的执行状态。 Preferably, in said step 4, after receiving said HTTP request, the target network server interface will return a result to the test control unit; said test control unit accepts the result returned by the target network server interface, and communicates with Expected value comparison; if the returned result is the same as the expected value, the write-back status is successfully marked to the test management unit, otherwise the write-back status fails to be marked to the test management unit; the test management unit accepts the returned status success mark or status failure mark, and update the execution status of the currently used test case data according to the feedback mark.

优选的是,在所述步骤5中,在执行场景测试过程中会产生操作记录日志,所述测试控制单元将操作中出现的报警错误信息以及网络服务端接口返回的错误信息记录下来,发送到日志单元,该日志单元接受所述测试控制单元反馈的错误信息,进行日志报警记录。 Preferably, in said step 5, an operation record log will be generated during the execution of the scene test, and the test control unit will record the alarm error information and the error information returned by the network server interface in the operation, and send it to A log unit, the log unit accepts the error information fed back by the test control unit, and performs log alarm recording.

优选的是,在所述步骤6中,测试报告单元接受所述测试控制单元反馈的用例数据的执行状态,同时获取测试管理单元的预置状态;该测试报告单元将上述两个状态进行累积比对,统计所有用例数据的执行状态并生成测试分析报告。 Preferably, in said step 6, the test reporting unit accepts the execution status of the use case data fed back by the test control unit, and simultaneously obtains the preset status of the test management unit; Yes, count the execution status of all use case data and generate a test analysis report.

所述网络服务端接口的自动化测试平台,其特点是,所述测试平台包括, The automated testing platform of the network server interface is characterized in that the testing platform includes,

用于导入并管理测试用例数据的测试管理单元; Test management unit for importing and managing test case data;

用于封装测试用例数据、模拟客户端的请求、对网络服务端接口进行测试、并监控测试过程的测试控制单元; A test control unit for encapsulating test case data, simulating client requests, testing network server interfaces, and monitoring the test process;

用于根据测试控制单元反馈的数据生成日志,并记录报警、错误参数值及位置信息的日志单元;以及, A log unit for generating logs based on data fed back from the test control unit, and recording alarms, error parameter values and location information; and,

用于根据测试控制单元反馈的测试用例数据的执行状态,以测试管理单元的预期为基准,累积统计计数分析,并自动生成测试报告的测试报告单元。 The test report unit is used for the execution status of the test case data fed back by the test control unit, based on the expectation of the test management unit, the cumulative statistical count analysis, and the automatic generation of test reports.

优选的是,所述测试平台还包括用于自动构建待测网络服务端接口,并根据测试预定条件部署待测业务到该网络服务端接口的构建部署待测服务单元。 Preferably, the test platform further includes a constructing and deploying service unit to be tested for automatically constructing the network server interface to be tested, and deploying the service to be tested to the network server interface according to predetermined test conditions.

本发明的有益效果在于,应用所述网络服务端接口的自动化测试方法与测试平台,在减少手工操作的同时,可模拟客户端请求发出指令,与服务端交互,实现自动化测试,使得对于网络服务端接口的测试更高效,操作更简单,出错的几率更小;该测试平台的成本低、效率高。 The beneficial effect of the present invention is that, the application of the automated testing method and testing platform of the network server interface can simulate the client request to issue instructions, interact with the server, and realize automated testing while reducing manual operations, so that the network service The test of the terminal interface is more efficient, the operation is simpler, and the probability of error is smaller; the cost of the test platform is low and the efficiency is high.

附图说明 Description of drawings

图1示出了所述的网络服务端接口的自动化测试方法的流程图。 Fig. 1 shows a flow chart of the automated testing method for the network server interface.

图2示出了所述的网络服务端接口的自动化测试平台的方框原理图。 FIG. 2 shows a schematic block diagram of the automated testing platform for the network server interface.

具体实施方式 detailed description

下面结合附图对本发明做进一步说明。 The present invention will be further described below in conjunction with the accompanying drawings.

图1示出了所述的网络服务端接口1的自动化测试方法的流程图,如图1所示,所述网络服务端接口1的自动化测试方法,包括以下步骤: Fig. 1 shows the flow chart of the automated testing method of described network server interface 1, as shown in Fig. 1, the automated testing method of described network server interface 1, comprises the following steps:

步骤0:进行测试准备工作; Step 0: Prepare for the test;

步骤1:导入测试用例数据S1; Step 1: import test case data S1;

步骤2:提取测试用例数据并进行封装S2; Step 2: extract test case data and package S2;

步骤3:模拟客户端发送请求,对网络服务端接口1进行测试S3; Step 3: Simulate the client sending a request, and test S3 on the network server interface 1;

步骤4:监控测试过程S4; Step 4: monitoring test process S4;

步骤5:记录日志S5; Step 5: record log S5;

步骤6:测试结果分析,生成测试报告S6。 Step 6: Analyze test results and generate a test report S6.

具体地,在所述步骤0中,需要完成两个方面的预备。第一是要预备好测试数据和测试用例。测试数据和测试用例是根据需要测试的目标计划,预先由测试人员按要求完成的工作,本发明的测试数据和测试用例需要按照定制模板的Excel格式要求来准备,准备好的用例可以导入到测试管理单元2,组成测试的基本数据。 Specifically, in the step 0, two preparations need to be completed. The first is to prepare test data and test cases. Test data and test cases are based on the target plan of the test, and are completed by testers in advance. The test data and test cases of the present invention need to be prepared according to the Excel format requirements of the custom template, and the prepared use cases can be imported into the test Snap-in 2, the basic data that makes up the test.

第二需要部署测试环境,预先运行构建部署待测服务单元6,自动构建待测网络服务,根据测试预定条件部署待测业务到网络测试服务端接口。可采用现有第三方技术Hudson任务建模方式实现,构建测试服务主要是为本发明的测试方法提供测试对象。 Second, it is necessary to deploy the test environment, pre-run, build and deploy the service unit 6 to be tested, automatically build the network service to be tested, and deploy the service to be tested to the network test server interface according to the predetermined test conditions. It can be realized by using the existing third-party technology Hudson task modeling method, and the construction of test service is mainly to provide test objects for the test method of the present invention.

所述步骤1还包括以下步骤, Said step 1 also includes the following steps,

步骤11:初始化测试管理单元2,完成测试管理单元2的基本配置和驱动操作; Step 11: Initialize the test management unit 2, and complete the basic configuration and driving operation of the test management unit 2;

步骤12:导入预先设定的测试用例数据到所述测试管理单元2;所述测试管理单元2管理待测服务的地址、待测接口名、接口状态、接口输入数据、测试检查点、检查点预期值等信息; Step 12: Import preset test case data into the test management unit 2; the test management unit 2 manages the address of the service to be tested, the name of the interface to be tested, the interface status, the interface input data, the test checkpoint, and the checkpoint Expected value and other information;

步骤13:校验所述测试用例数据的正确性和完整性,对于不符合执行条件的测试用例数据,提示错误。 Step 13: Verify the correctness and completeness of the test case data, and prompt an error for the test case data that does not meet the execution conditions.

在所述步骤2中,测试控制单3通过调用存储于所述测试管理单元2内的测试用例数据,判断所调用的测试用例数据的意图,并抽取该测试用例数据中的特定数据,然后对特定数据(接口名、接口状态、接口参数值、预期值等)进行封装,生成测试脚本。 In said step 2, the test control unit 3 judges the intent of the called test case data by calling the test case data stored in the test management unit 2, and extracts specific data in the test case data, and then Encapsulate specific data (interface name, interface status, interface parameter values, expected values, etc.) to generate test scripts.

在所述步骤3中,所述测试控制单3通过调用封装好的测试脚本,根据测试脚本对应的特定数据,调用该测试控制单3的API组合,封装成HTTP请求,模拟B/S的请求,响应交互流程,自主模拟客户端向待测的目标网络服务端接口1发送请求;所述测试控制单3根据设置的测试步骤,模拟测试场景,控制发送请求的步骤和时间。 In the step 3, the test control unit 3 calls the encapsulated test script, according to the specific data corresponding to the test script, calls the API combination of the test control unit 3, encapsulates it into an HTTP request, and simulates the request of the B/S , responding to the interaction process, autonomously simulating the client to send a request to the target network server interface 1 to be tested; the test control unit 3 simulates the test scene according to the set test steps, and controls the steps and time of sending the request.

在所述步骤4中,目标网络服务端接口1在收到所述HTTP请求后,会返回结果给测试控制单3;所述测试控制单3接受目标网络服务端接口1返回的结果,并与预期值比对;若所述返回的结果与预期值相同,则回写状态成功标记至测试管理单元2,否则回写状态失败标记至测试管理单元2;所述测试管理单元2接受反馈回来的状态成功标记或状态失败标记,并根据反馈的标记更当前使用的测试用例数据的执行状态。 In the step 4, after receiving the HTTP request, the target network server interface 1 will return a result to the test control unit 3; the test control unit 3 accepts the result returned by the target network server interface 1, and communicates with Expected value comparison; if the returned result is the same as the expected value, the write-back status is successfully marked to the test management unit 2, otherwise the write-back status failure is marked to the test management unit 2; the test management unit 2 accepts the feedback returned Status success mark or status failure mark, and update the execution status of the currently used test case data according to the feedback mark.

在所述步骤5中,在执行场景测试过程中会产生操作记录日志,所述测试控制单3将操作中出现的报警错误信息以及网络服务端接口1返回的错误信息记录下来,发送到日志单元4,该日志单元4接受所述测试控制单3反馈的错误信息,进行日志报警记录。 In the step 5, an operation record log will be generated during the execution of the scene test, and the test control unit 3 will record the alarm error information occurring in the operation and the error information returned by the network server interface 1, and send it to the log unit 4. The log unit 4 receives the error information fed back by the test control unit 3, and performs log alarm recording.

在所述步骤6中,测试报告单元5接受所述测试控制单3反馈的用例数据的执行状态,同时获取测试管理单元2的预置状态;该测试报告单元5将上述两个状态进行累积比对,统计所有用例数据的执行状态并生成测试分析报告。 In said step 6, the test report unit 5 accepts the execution state of the use case data fed back by the test control unit 3, and simultaneously obtains the preset state of the test management unit 2; the test report unit 5 performs a cumulative comparison of the above two states Yes, count the execution status of all use case data and generate a test analysis report.

图2示出了一种网络服务端接口1的自动化测试平台的方框原理图,所述测试平台可以利用测试管理单元2管理数据输入,通过服务端适配,测试控制单3模拟客户端发出业务请求。 Fig. 2 shows a block principle diagram of an automated test platform of a network server interface 1, the test platform can utilize a test management unit 2 to manage data input, and through server adaptation, a test control sheet 3 simulates the client sending business request.

如图2所示,所述网络服务端接口1的自动化测试平台,包括用于导入并管理测试用例数据的测试管理单元2;用于封装测试用例数据、模拟客户端的请求、对网络服务端接口1进行测试、并监控测试过程的测试控制单3;用于根据测试控制单3反馈的数据生成日志,并记录报警、错误参数值及位置信息的日志单元4;以及,用于根据测试控制单3反馈的测试用例数据的执行状态,以测试管理单元2的预期为基准,累积统计计数分析,并自动生成测试报告的测试报告单元5。 As shown in Figure 2, the automated test platform of the network server interface 1 includes a test management unit 2 for importing and managing test case data; 1. A test control sheet 3 for testing and monitoring the test process; a log unit 4 for generating logs based on the data fed back from the test control sheet 3, and recording alarms, error parameter values, and location information; 3 The execution status of the feedback test case data is based on the expectation of the test management unit 2, the cumulative statistics are counted and analyzed, and the test report unit 5 of the test report is automatically generated.

具体地,所述测试管理单元2主要负责导入并管理导入的测试数据,管理待测网络服务端接口1的接口名、接口状态、接口输入数据、测试检查点、检查点预期值及用例执行结果预置等。本测试管理单元2可封装一个Excel类实现,定制模板,维护操作直观简便。 Specifically, the test management unit 2 is mainly responsible for importing and managing the imported test data, and managing the interface name, interface status, interface input data, test checkpoint, checkpoint expected value and use case execution result of the network server interface 1 to be tested. presets etc. This test management unit 2 can be implemented by encapsulating an Excel class, custom templates, intuitive and easy maintenance operations.

所述测试控制单3主要负责完成测试数据的封装和模拟客户端的请求。该测试控制单3通过调用Excel类实现与测试管理单元2的交互,自动获取用例数据后组合封装成HTTP请求,适配后发出请求到目标服务器,检查返回值,再将执行结果回写测试管理单元2,用例执行中反馈数据至测试报告单元5和日志单元4,生成日志和测试报告。 The test control unit 3 is mainly responsible for encapsulating test data and simulating client requests. The test control sheet 3 realizes the interaction with the test management unit 2 by calling the Excel class, automatically obtains the use case data and then combines and encapsulates it into an HTTP request, sends the request to the target server after adaptation, checks the return value, and then writes the execution result back to the test management Unit 2, feedback data to test report unit 5 and log unit 4 during use case execution, to generate logs and test reports.

所述日志单元4主要根据测试控制单3反馈数据生成日志,记录报警、错误参数值及位置信息等,跟踪定位具体错误位置。 The log unit 4 mainly generates logs according to the feedback data of the test control sheet 3, records alarms, error parameter values and location information, etc., and tracks and locates specific error locations.

所述测试报告单元5主要根据测试控制单3反馈的测试执行状态,以测试管理单元2的预期为基准,累积统计计数分析,自动生成测试报告,采用定制模板的Excel表格和图形结合方式输出。 The test report unit 5 is mainly based on the test execution status fed back by the test control sheet 3, and based on the expectations of the test management unit 2, the cumulative statistical counting analysis is performed, and the test report is automatically generated, and the output is output by combining an Excel table and a graph of a custom template.

进一步地,所述测试平台还包括用于自动构建待测网络服务端接口1,并根据测试预定条件部署待测业务到该网络服务端接口1的构建部署待测服务单元6。该构建部署待测服务单元6可采用现有第三方技术Hudson任务建模方式实现。构建测试服务主要是为本发明的测试方法提供测试对象。 Further, the test platform also includes a construction and deployment service unit 6 for automatically constructing the network server interface 1 to be tested, and deploying the service to be tested to the network server interface 1 according to predetermined test conditions. The construction and deployment of the service unit 6 to be tested can be realized by using the Hudson task modeling method of the existing third-party technology. Constructing the test service mainly provides test objects for the test method of the present invention.

综上所述仅为本发明较佳的实施例,并非用来限定本发明的实施范围。即凡依本发明申请专利范围的内容所作的等效变化及修饰,皆应属于本发明的技术范畴。 In summary, the above are only preferred embodiments of the present invention, and are not intended to limit the implementation scope of the present invention. That is, all equivalent changes and modifications made according to the content of the patent scope of the present invention shall belong to the technical scope of the present invention.

Claims (2)

1.一种网络服务端接口的自动化测试方法,包括以下步骤:1. An automated testing method for a network server interface, comprising the following steps: 步骤1:导入测试用例数据;Step 1: Import test case data; 步骤2:提取测试用例数据并进行封装;Step 2: Extract test case data and encapsulate it; 步骤3:模拟客户端发送请求,对网络服务端接口进行测试;Step 3: Simulate the client sending a request and test the network server interface; 步骤4:监控测试过程;Step 4: Monitor the test process; 步骤5:记录日志;Step 5: record the log; 步骤6:测试结果分析,生成测试报告;Step 6: Analyze test results and generate test reports; 其特征在于:在所述步骤2中,测试控制单元通过调用存储于所述测试管理单元内的测试用例数据,判断所调用的测试用例数据的意图,并抽取该测试用例数据中的特定数据,然后对特定数据进行封装,生成测试脚本;It is characterized in that: in the step 2, the test control unit judges the intention of the called test case data by calling the test case data stored in the test management unit, and extracts specific data in the test case data, Then encapsulate the specific data and generate test scripts; 在所述步骤3中,所述测试控制单元通过调用封装好的测试脚本,根据测试脚本对应的特定数据,调用该测试控制单元的API组合,封装成HTTP请求,模拟B/S的请求,响应交互流程,自主模拟客户端向待测的目标网络服务端接口发送请求;所述测试控制单元根据设置的测试步骤,模拟测试场景,控制发送请求的步骤和时间;In the step 3, the test control unit calls the packaged test script, according to the specific data corresponding to the test script, calls the API combination of the test control unit, encapsulates it into an HTTP request, simulates the B/S request, and responds The interaction flow, autonomously simulates the client to send a request to the target network server interface to be tested; the test control unit simulates the test scene according to the set test steps, and controls the steps and time of sending the request; 在所述步骤4中,目标网络服务端接口在收到所述HTTP请求后,会返回结果给测试控制单元;所述测试控制单元接受目标网络服务端接口返回的结果,并与预期值比对;若所述返回的结果与预期值相同,则回写状态成功标记至测试管理单元,否则回写状态失败标记至测试管理单元;所述测试管理单元接受反馈回来的状态成功标记或状态失败标记,并根据反馈的标记更当前使用的测试用例数据的执行状态;In said step 4, after the target network server interface receives the HTTP request, it will return a result to the test control unit; the test control unit accepts the result returned by the target network server interface, and compares it with the expected value ; If the returned result is the same as the expected value, write back the status success mark to the test management unit, otherwise write back the status failure mark to the test management unit; the test management unit accepts the feedback status success mark or status failure mark , and update the execution status of the currently used test case data according to the feedback mark; 在所述步骤5中,在执行场景测试过程中会产生操作记录日志,所述测试控制单元将操作中出现的报警错误信息以及网络服务端接口返回的错误信息记录下来,发送到日志单元,该日志单元接受所述测试控制单元反馈的错误信息,进行日志报警记录;In said step 5, an operation record log will be generated during the execution of the scene test, and the test control unit will record the alarm error information occurring in the operation and the error information returned by the network server interface, and send it to the log unit. The log unit accepts the error information fed back by the test control unit, and performs log alarm recording; 在所述步骤6中,测试报告单元接受所述测试控制单元反馈的用例数据的执行状态,同时获取测试管理单元的预置状态;该测试报告单元将上述两个状态进行累积比对,统计所有用例数据的执行状态并生成测试分析报告。In said step 6, the test report unit accepts the execution state of the use case data fed back by the test control unit, and simultaneously obtains the preset state of the test management unit; the test report unit cumulatively compares the above two states, and counts all Execution status of use case data and generate test analysis report. 2.根据权利要求1所述的网络服务端接口的自动化测试方法,其特征在于:所述步骤1还包括以下步骤,2. The automated testing method of the network server interface according to claim 1, characterized in that: said step 1 further comprises the following steps, 步骤11:初始化测试管理单元,完成测试管理单元的基本配置和驱动操作;Step 11: Initialize the test management unit, complete the basic configuration and drive operation of the test management unit; 步骤12:导入预先设定的测试用例数据到所述测试管理单元;Step 12: Importing preset test case data into the test management unit; 步骤13:校验所述测试用例数据的正确性和完整性,对于不符合执行条件的测试用例数据,提示错误。Step 13: Verify the correctness and completeness of the test case data, and prompt an error for the test case data that does not meet the execution conditions.
CN201210466641.7A 2012-11-19 2012-11-19 A kind of automated testing method of network service end interface Expired - Fee Related CN102932205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210466641.7A CN102932205B (en) 2012-11-19 2012-11-19 A kind of automated testing method of network service end interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210466641.7A CN102932205B (en) 2012-11-19 2012-11-19 A kind of automated testing method of network service end interface

Publications (2)

Publication Number Publication Date
CN102932205A CN102932205A (en) 2013-02-13
CN102932205B true CN102932205B (en) 2016-01-20

Family

ID=47646912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210466641.7A Expired - Fee Related CN102932205B (en) 2012-11-19 2012-11-19 A kind of automated testing method of network service end interface

Country Status (1)

Country Link
CN (1) CN102932205B (en)

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095165A (en) * 2014-05-08 2015-11-25 北大方正集团有限公司 Test analysis report generation method and test analysis report generation device
CN105743724A (en) * 2014-12-10 2016-07-06 深圳中兴网信科技有限公司 Method and device for testing services
CN104572469B (en) * 2015-01-23 2017-12-05 广东能龙教育股份有限公司 Automatic interface testing method and system based on http request simulation
CN106201808A (en) * 2015-05-04 2016-12-07 北京畅游天下网络技术有限公司 The automation interface method of testing of a kind of server end and system
CN105138454B (en) * 2015-08-24 2018-05-18 浪潮电子信息产业股份有限公司 An automated testing method for B/S architecture security software
CN105262608B (en) * 2015-09-01 2018-09-18 北京百度网讯科技有限公司 Monitoring method and device for network service
CN105407012A (en) * 2015-10-27 2016-03-16 浪潮(北京)电子信息产业有限公司 Automatic test method and device
CN105550103B (en) * 2015-12-03 2017-12-05 泰华智慧产业集团股份有限公司 A kind of automated testing method based on self-defined test script
CN105553759A (en) * 2015-12-10 2016-05-04 惠州Tcl移动通信有限公司 Smart card and mobile terminal consistency test method and device
CN105974297B (en) * 2016-04-12 2019-08-27 烽火通信科技股份有限公司 It is a kind of to realize the virtual test instrument and test method efficiently tested
CN106021055A (en) * 2016-05-25 2016-10-12 乐视控股(北京)有限公司 Performance testing method and device for mixed interface
CN107872355A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The method and device of interface simulation test
CN106598851A (en) * 2016-12-05 2017-04-26 广州唯品会信息科技有限公司 Software interface test method and system
CN106874188B (en) * 2016-12-30 2020-05-12 北京五八信息技术有限公司 Software interface testing method and device
CN106909481B (en) * 2017-02-28 2021-03-16 北京小米移动软件有限公司 Interface test method, interface test device and electronic equipment
CN107423211B (en) * 2017-03-15 2020-03-13 中国互联网络信息中心 SDNS interface automatic test system and method
CN108694104A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 A kind of interface function contrast test method, apparatus, electronic equipment and storage medium
CN107171889A (en) * 2017-05-27 2017-09-15 北京金山安全软件有限公司 Network application interface test method and device and electronic equipment
CN107368412A (en) * 2017-07-03 2017-11-21 上海前隆信息科技有限公司 Automated testing method/system, computer-readable recording medium and electronic equipment
CN107634879A (en) * 2017-09-15 2018-01-26 深圳易嘉恩科技有限公司 XBRL platform interface automated testing methods based on PyUnit
CN107948640B (en) * 2017-12-19 2020-09-25 百度在线网络技术(北京)有限公司 Video playing test method and device, electronic equipment and storage medium
CN108270622A (en) * 2018-01-22 2018-07-10 杭州当虹科技有限公司 A kind of method and system that concurrent emulation testing is carried out to video communication service system
CN109213682A (en) * 2018-09-06 2019-01-15 郑州云海信息技术有限公司 A kind of method of test client, client, server-side and readable storage medium storing program for executing
CN109656822A (en) * 2018-12-12 2019-04-19 郑州云海信息技术有限公司 A kind of guard method of automatic test and device
CN109933522B (en) * 2019-01-25 2022-04-22 畅捷通信息技术股份有限公司 A test method, test system and storage medium for an automated use case
CN110245079A (en) * 2019-05-28 2019-09-17 深圳市六度人和科技有限公司 A kind of interface processing method, apparatus and storage device
CN110445688B (en) * 2019-08-12 2021-04-23 珠海格力电器股份有限公司 Interface service function monitoring method and system based on data collection
CN110928774B (en) * 2019-11-07 2023-05-05 杭州顺网科技股份有限公司 Automatic test system based on node type
CN111555928A (en) * 2020-04-14 2020-08-18 珠海格力电器股份有限公司 Method and device for monitoring system abnormity, computer equipment and storage medium
CN112035363A (en) * 2020-09-01 2020-12-04 中国银行股份有限公司 Interface automatic testing method and device
CN112769655B (en) * 2021-03-02 2022-08-12 北京百家科技集团有限公司 Network variation testing method, device and system
CN113207146B (en) * 2021-07-07 2021-09-07 广东南方电信规划咨询设计院有限公司 Wireless communication network quality monitoring system and method
CN115686463B (en) * 2022-12-30 2023-04-11 科讯嘉联信息技术有限公司 Python and Excel-based interface automation framework control system
WO2025012968A1 (en) * 2023-07-12 2025-01-16 Jio Platforms Limited Method and system for automated end-to-end testing and validation of telecommunication nodes
CN117033032B (en) * 2023-09-28 2024-11-26 北京谷器数据科技有限公司 A platform for automatically parsing and calling third-party service interfaces

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006111000A1 (en) * 2005-04-18 2006-10-26 Research In Motion Limited System and method of testing wireless component applications
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 A method for automatic testing of broadband access server
CN101707608A (en) * 2009-11-27 2010-05-12 成都市华为赛门铁克科技有限公司 Method and device for automatically testing application layer protocol
CN102073590A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Event simulation-based user interface test method and device
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061625A1 (en) * 2005-09-15 2007-03-15 Acosta Juan Jr Automation structure for software verification testing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006111000A1 (en) * 2005-04-18 2006-10-26 Research In Motion Limited System and method of testing wireless component applications
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 A method for automatic testing of broadband access server
CN101707608A (en) * 2009-11-27 2010-05-12 成都市华为赛门铁克科技有限公司 Method and device for automatically testing application layer protocol
CN102073590A (en) * 2011-01-11 2011-05-25 百度在线网络技术(北京)有限公司 Event simulation-based user interface test method and device
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal

Also Published As

Publication number Publication date
CN102932205A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN102932205B (en) A kind of automated testing method of network service end interface
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
CN111147322A (en) Test system and method for 5G core network micro-service architecture
CN103634154B (en) The analog systems of network state and analogy method thereof
CN104852912B (en) Domain name registration service device Performance Test System and method
CN101888318B (en) A kind of system and method for testing performance index of communication system
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
WO2015106605A1 (en) Method for testing station level of intelligent substation
CN102799519A (en) Automatic test method for cluster file system
CN102662362B (en) Universal control system for integrated circuit manufacturing equipment
CN102571396A (en) Communication network system and routing inspection subsystem and routing inspection method of communication equipment
CN111597104A (en) Multi-protocol adaptive interface regression testing method, system, equipment and medium
CN106961362A (en) Automated testing method and mobile cloud test system
CN115576817A (en) An automated test system, method, electronic device and storage medium
CN105786495A (en) Software issuing system, method and system
CN106682910B (en) An information processing method, system and related equipment
CN105279196A (en) Test script generation method and apparatus
CN102594618A (en) Method and device for realizing storage device test of storage area network (SAN)
CN101145130A (en) Simple network management protocol software testing device and testing method
CN107608291A (en) A smart substation application function linkage rule verification method and system
CN112433948A (en) Simulation test system and method based on network data analysis
CN106383759A (en) Method and apparatus convenient for tracking and locating fault of payment terminal
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN104318164B (en) A kind of checking method of application program
CN108600007B (en) Cloud platform responsibility tracing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160120