WO2016165461A1 - 一种电信网网管系统软件自动化测试方法和装置 - Google Patents

一种电信网网管系统软件自动化测试方法和装置 Download PDF

Info

Publication number
WO2016165461A1
WO2016165461A1 PCT/CN2016/073756 CN2016073756W WO2016165461A1 WO 2016165461 A1 WO2016165461 A1 WO 2016165461A1 CN 2016073756 W CN2016073756 W CN 2016073756W WO 2016165461 A1 WO2016165461 A1 WO 2016165461A1
Authority
WO
WIPO (PCT)
Prior art keywords
management system
network management
telecommunication network
system software
test case
Prior art date
Application number
PCT/CN2016/073756
Other languages
English (en)
French (fr)
Inventor
徐�明
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016165461A1 publication Critical patent/WO2016165461A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • the invention relates to, but is not limited to, the technical field of telecommunication networks, and in particular to a method and device for automatically testing software of a telecommunication network network management system.
  • TMN Telecom Management Network
  • the software automation test of the telecommunication network management system mainly includes two parts: the preparation of test cases and the execution of automated tests.
  • the test case generation technology of the telecommunication network management system software mainly includes two ways of manually creating test cases and recording and generating test cases.
  • Manually creating a test case means that the tester directly translates the operation into a test case of the software by knowing the common operations of the software;
  • the record generation test case refers to recording the process of manually operating the software by using the record software. And use this to generate test cases for the software.
  • the automated test technology of the network management system of the telecommunication network has the following problems: the manual creation of the test case is inefficient, and the method of recording and generating the test case is not directed to the user's operating habits, and thus the generated test case does not conform to the probability distribution of the user using the software. And the two ways to generate test cases must be completed by professionals. The process of generating test cases is complicated and less flexible.
  • the embodiment of the invention provides a method and a device for automatically testing the software of the network management system of the telecommunication network, so as to avoid the problem that the test cases in the related art do not meet the probability distribution of the software used by the user.
  • the embodiment of the invention provides a method for automatically testing a software of a telecommunication network management system, and the method comprises the following steps:
  • the initial test case for generating the telecommunication network management system software according to the actual operation habit of the user
  • An automated test is performed on the telecommunications network management system software in accordance with the final test case.
  • the initial test case for generating the telecommunication network management system software according to the actual operation habit of the user includes:
  • the operation trace includes a user operation log, a system log, a current and historical alarm, a system configuration data size, and/or a system environment information in the telecommunication network management system software.
  • the generating, according to the operation trace, the initial test case by using a telecommunication network management system software automatic generation tool including:
  • the telecommunications network management system software generation tool obtains the system environment of the user operation according to the current and historical alarms, the system configuration data size, and the system environment information, as the test condition of the initial test case;
  • the telecommunication network network management system software automatic generation tool acquires atomic operations and operation objects that each user performs in the same time period according to the user operation log and the system log, and takes the time as the operation step of the initial test case;
  • the telecommunication network network management system software automation generation tool is used as an acceptance criterion of the initial test case according to actual atomic operation results.
  • the initial test case of the telecommunication network management system software is written by using a visualization method.
  • the initial test case is compatible with all atomic operation and operation object models of the telecommunication network management system software, to obtain a final test case that can be run, including:
  • the telecommunication network management system software automation generation tool docks the telecommunication network network management system software, and acquires atomic operation and operation object model information of the telecommunication network management system software;
  • the initial test case is adapted according to the acquired atomic operation and operation object model information to obtain a final test case that can be run.
  • the method further includes: recording, at the time of executing the automatic testing, the time when the telecommunication network management system software fails and the corresponding operation step information.
  • the method further includes: after performing an automated test on the telecommunication network management system software according to the final test case, correcting the telecommunication network management system software according to the failure information obtained by the testing .
  • the embodiment of the invention further provides a software automatic testing device for the network management system of the telecommunication network, the device comprising:
  • the initial test case generating unit is configured to generate an initial test case of the telecommunication network management system software according to the actual operation habit of the user;
  • the final test case generating unit is configured to perform compatibility processing on the atomic operation and operation object models of the telecommunication network management system software by the initial test case to obtain a final test case that can be run;
  • An automated test unit is configured to perform an automated test on the telecommunications network management system software in accordance with the final test case.
  • the initial test case generating unit includes:
  • the operation trace extraction subunit is configured to extract operation traces of the actual operation of the actual user in the telecommunication network management system software, where the operation trace includes user operation logs, system logs, current and historical alarms, and system configuration in the telecommunication network management system software. Data size and/or system environment information;
  • the telecommunications network management system software generation tool is configured to generate an initial test case based on the operation trace.
  • the device further includes a failure information recording unit configured to record a time when the telecommunication network management system software fails and corresponding operation step information during the execution of the automatic testing process.
  • a failure information recording unit configured to record a time when the telecommunication network management system software fails and corresponding operation step information during the execution of the automatic testing process.
  • the device further includes a correction unit configured to perform corresponding modification on the telecommunication network management system software according to the failure information obtained by the testing.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • the embodiment of the invention automatically generates a test case according to the user's operating habits of the telecommunication network management system software, which is more in line with the actual operation characteristics of the user. Moreover, the embodiment of the present invention performs compatible processing on the actual atomic operation and operation object model of the user, and has wider applicability. In addition, the embodiment of the invention can automatically perform the software test of the telecommunication network management system, which saves the test cost and improves the test efficiency. In the embodiment of the present invention, when the software fails, the related information of the software failure is automatically recorded, and the network management system software of the telecommunication network can be conveniently corrected.
  • FIG. 1 is a flowchart of a software automatic test method for a telecommunication network management system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a software automatic test device for a telecommunication network network management system according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method and an apparatus for automatically testing the software of the telecommunication network network management system, and further embodiments of the present invention are further described below with reference to the accompanying drawings and embodiments. Detailed description. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • the embodiment provides an automated test method for the network management system of the telecommunication network, firstly generating an initial test case of the telecommunication network management system software according to the actual operation habit of the user; and then using the initial test case for the telecommunication network management system software All atomic operation and operation object models are compatible with each other to obtain a final test case that can be run. Finally, an automated test is performed on the telecommunication network management system software according to the final test case.
  • the specific process of this embodiment is shown in FIG. 1 and includes the following steps:
  • step s101 an operation trace of the actual operation of the actual user in the telecommunication network management system software is extracted.
  • the operational trace includes user operation logs, system logs, current and historical alarms, system configuration data size, and/or system environment information in the telecommunications network management system software.
  • Step s102 Generate the initial test case by using a telecommunication network management system software automatic generation tool according to the operation trace.
  • the initial test case of the telecommunication network management system software is prepared by using a visualization method, including:
  • the telecommunications network management system software generation tool obtains the system environment of the user operation according to the current and historical alarms, the system configuration data size, and the system environment information, as the test condition of the initial test case;
  • the telecommunication network network management system software automatic generation tool acquires atomic operations and operation objects that each user performs in the same time period according to the user operation log and the system log, and takes the time as the operation step of the initial test case;
  • the telecommunication network network management system software automation generation tool is used as an acceptance criterion of the initial test case according to actual atomic operation results.
  • Step s103 The telecommunication network management system software automation generation tool docks the telecommunication network network management system software, and acquires atomic operation and operation object model information of the telecommunication network management system software.
  • Atomic operation Operation description Add Increase configuration object Delete Delete configuration object Modify Modify configuration object Query Query configuration object Block Occlusion Unblock Unblock Query Current Alarm Query current alarm ... ...
  • Step s104 adapting the initial test case according to the acquired atomic operation and operation object model information, to obtain a final test case that can be run.
  • step s105 the final test case is imported into the telecommunication network network management system software automatic test tool.
  • step s106 an automated test is performed, and the time when the telecommunication network management system software fails and the corresponding operation step information are recorded.
  • Step s107 Perform corresponding modification on the telecommunication network management system software according to the failure information obtained by the test.
  • Step s108 Determine whether the telecommunication network management system software meets the reliability requirement, and if yes, end the test, if not, go to step s106.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • FIG. 2 An automatic test device for a network management system of a telecommunication network according to an embodiment of the present invention is shown in FIG. 2,
  • the initial test case generation unit 21, the final test case generation unit 22, the automated test unit 23, the failure information recording unit 24, and the correction unit 25 are included.
  • the final test case generation unit 22 is connected to the initial test case generation unit 21 and the automatic test unit 23, respectively, and the failure information recording unit 24 is connected to the automatic test unit 23 and the correction unit 25, respectively.
  • the initial test case generation unit 21 is configured to generate an initial test case of the telecommunication network management system software according to the actual operation habit of the user; the final test case generation unit 22 is configured to set the initial test case to the telecommunication network management system Compatible processing of all atomic operations and operational object models of the software to obtain a final test case that can be run; the automated test unit 23 is configured to perform an automated test on the telecommunications network management system software in accordance with the final test case;
  • the failure information recording unit 24 is configured to record the time when the telecommunication network management system software fails and the corresponding operation step information during the execution of the automatic test; the correction unit 25 is configured to perform the failure information according to the test, The telecommunication network management system software is modified accordingly.
  • the initial test case generation unit 21 includes an operation trace extraction subunit 211 and a telecommunication network network management system software automation generation tool 212, and the operation trace extraction subunit 211 is connected to the telecommunication network network management system software automation generation tool 212.
  • the operation trace extraction sub-unit 211 is configured to extract an operation trace of an actual user's actual operation in the telecommunication network management system software, where the operation trace includes a user operation log, a system log, current and historical alarms in the telecommunication network management system software,
  • the system configures data size and/or system environment information;
  • the telecommunications network management system software automation generation tool 212 is configured to generate an initial test case based on the operational traces.
  • the embodiment of the invention automatically generates a test case according to the user's operating habits of the telecommunication network management system software, which is more in line with the actual operation characteristics of the user. Moreover, the embodiment of the present invention performs compatible processing on the actual atomic operation and operation object model of the user, and has wider applicability. In addition, the embodiment of the invention can automatically perform the software test of the telecommunication network management system, which saves the test cost and improves the test efficiency. In the embodiment of the present invention, when the software fails, the related information of the software failure is automatically recorded, and the network management system software of the telecommunication network can be conveniently corrected.
  • the instructions are related to hardware (eg, a processor) that can be stored in a computer readable storage medium, such as a read only memory, a magnetic disk, or an optical disk.
  • a computer readable storage medium such as a read only memory, a magnetic disk, or an optical disk.
  • all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution automatically generates a test case according to the user's operating habits of the telecommunication network management system software, which is more in line with the actual operation characteristics of the user. Moreover, the user's actual atomic operation and operation object model are compatible, and the applicability is wider.
  • the software test of the telecommunication network management system can be automatically performed, which saves the test cost and improves the test efficiency. It is also possible to automatically record information about software failures when the software fails, and to easily modify the network management system software of the telecommunication network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种电信网网管系统软件自动化测试方法和装置,其中,所述方法包括:首先根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;然后将初始测试用例对电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;最后根据最终测试用例,对电信网网管系统软件执行自动化测试。所述方法和装置根据用户对于电信网网管系统软件的操作习惯自动生成测试用例,更加符合用户实际操作的特点。而且,对于用户实际的原子操作和操作对象模型进行了兼容处理,适用性更广。

Description

一种电信网网管系统软件自动化测试方法和装置 技术领域
本文涉及但不限于电信网技术领域,特别是涉及一种电信网网管系统软件自动化测试方法和装置。
背景技术
TMN(Telecom Management Network,电信管理网)为电信网及电信业务提供一系列的管理功能,主要划分为以下五种管理功能域:性能管理、配置管理、计费管理、故障管理、安全管理。随着电信行业日益发展,市场竞争激烈,各类增值性应用功能越来越丰富,越来越复杂。电信网网管系统软件的多用户并发、多功能域交互等复杂的用户应用场景,导致软件测试设计时很难设计出符合用户使用习惯的软件测试用例。进行软件测试时,测试用例的设计、编写和测试的执行是一个费时费力的工作,手工设计、编写测试用例和运行测试已经不能满足软件测试的需要。
电信网网管系统软件自动化测试主要包括测试用例的编写、自动化测试执行两部分。目前,电信网网管系统软件的测试用例生成技术主要包括:手工创建测试用例和录制生成测试用例两种方式。其中手工创建测试用例是指,测试人员通过对软件常用操作的了解,使用手工方式将这些操作直接翻译成软件的测试用例;录制生成测试用例是指,利用记录软件将手工操作软件的过程记录下来,并以此生成软件的测试用例。
但是,目前电信网网管系统软件自动化测试技术存在以下问题:手工创建测试用例方式效率低下,而录制生成测试用例方式不是针对用户的操作习惯,因而生成的测试用例不符合用户使用软件的概率分布。并且两种生成测试用例的方式都要由专业人员来完成,生成测试用例过程复杂,灵活性较低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种电信网网管系统软件自动化测试方法和装置,以避免相关技术中测试用例不符合用户使用软件的概率分布的问题。
本发明实施例提供一种电信网网管系统软件自动化测试方法,所述方法包括以下步骤:
根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;
将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;
根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试。
可选地,所述根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例,包括:
提取实际用户的实际操作在电信网网管系统软件的操作痕迹;
根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初始测试用例。
可选地,所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息。
可选地,所述根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初始测试用例,包括:
所述电信网网管系统软件自动化生成工具根据当前和历史告警、系统配置数据规模、系统环境信息,获取用户操作的系统环境情况,作为所述初始测试用例的测试条件;
所述电信网网管系统软件自动化生成工具根据用户操作日志、系统日志,获取每个用户在相同时间段做的原子操作和操作对象,以时间为序作为所述初始测试用例的操作步骤;
所述电信网网管系统软件自动化生成工具根据实际的原子操作结果,作为所述初始测试用例的验收准则。
可选地,采用可视化方法对所述电信网网管系统软件进行初始测试用例的编写。
可选地,所述将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例,包括:
所述电信网网管系统软件自动化生成工具对接电信网网管系统软件,获取所述电信网网管系统软件的原子操作及操作对象模型信息;
根据获取的原子操作及操作对象模型信息,对所述初始测试用例进行适配,得到可运行的最终测试用例。
可选地,所述方法还包括:记录执行所述自动化测试过程中,所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息。
可选地,所述方法还包括:在根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试之后,根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
本发明实施例还提供一种电信网网管系统软件自动化测试装置,所述装置包括:
初始测试用例生成单元,设置为根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;
最终测试用例生成单元,设置为将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;
自动化测试单元,设置为根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试。
可选地,所述初始测试用例生成单元包括:
操作痕迹提取子单元,设置为提取实际用户的实际操作在电信网网管系统软件的操作痕迹,所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息;
电信网网管系统软件自动化生成工具,设置为根据所述操作痕迹生成初始测试用例。
可选地,所述装置还包括失效信息记录单元,设置为记录在执行所述自动化测试过程中,所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息。
可选地,所述装置还包括修正单元,设置为根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
本发明实施例有益效果如下:
本发明实施例根据用户对于电信网网管系统软件的操作习惯自动生成测试用例,更加符合用户实际操作的特点。而且,本发明实施例对于用户实际的原子操作和操作对象模型进行了兼容处理,适用性更广。另外,本发明实施例能够自动化执行电信网网管系统软件测试,节约了测试成本,提高了测试效率。本发明实施例还可以在软件发生失效时,自动记录软件失效的相关信息,能够方便地对电信网网管系统软件进行修正。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是本发明实施例的一种电信网网管系统软件自动化测试方法的流程图;
图2是本发明实施例的一种电信网网管系统软件自动化测试装置的结构示意图。
本发明的实施方式
为了解决相关技术测试用例不符合用户使用软件的概率分布的问题,本发明实施例提供了一种电信网网管系统软件自动化测试方法和装置,以下结合附图以及实施例,对本发明实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。
实施例1
本实施例提供了一种电信网网管系统软件自动化测试方法,首先根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;然后将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;最后根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试。本实施例的具体流程如图1所示,包括以下步骤:
步骤s101,提取实际用户的实际操作在电信网网管系统软件的操作痕迹。所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息。
步骤s102,根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初始测试用例。本实施例采用可视化方法对所述电信网网管系统软件进行初始测试用例的编写,包括:
所述电信网网管系统软件自动化生成工具根据当前和历史告警、系统配置数据规模、系统环境信息,获取用户操作的系统环境情况,作为所述初始测试用例的测试条件;
所述电信网网管系统软件自动化生成工具根据用户操作日志、系统日志,获取每个用户在相同时间段做的原子操作和操作对象,以时间为序作为所述初始测试用例的操作步骤;
所述电信网网管系统软件自动化生成工具根据实际的原子操作结果,作为所述初始测试用例的验收准则。
本实施例中,通过对电信网网管系统软件中实际用户的操作痕迹,分析出实际用户使用的功能、操作的对象以及多用户并发性等信息,生成初始测 试用例。其中,生成的初始测试用例示例如表1所示:
表1
Figure PCTCN2016073756-appb-000001
步骤s103,所述电信网网管系统软件自动化生成工具对接电信网网管系统软件,获取所述电信网网管系统软件的原子操作及操作对象模型信息。
其中,获取的所述电信网网管系统软件的原子操作如表2所示:
表2
原子操作 操作描述
Add 增加配置对象
Delete 删除配置对象
Modify 修改配置对象
Query 查询配置对象
Block 闭塞
Unblock 解闭
Query Current Alarm 查询当前告警
获取的所述电信网网管系统软件的操作对象模型信息如表3所示:
表3
操作对象 对象描述
SubNetwork 子网
NeManagedElement 管理网元
PlmnGroup 运营商组
LocalPlmnGroup 本网元运营商组
Rack 机架
Shelf 机框
Board 单板
步骤s104,根据获取的原子操作及操作对象模型信息,对所述初始测试用例进行适配,得到可运行的最终测试用例。
步骤s105,将所述最终测试用例导入电信网网管系统软件自动化测试工具中。
步骤s106,执行自动化测试,并记录所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息。
步骤s107,根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
步骤s108,判断所述电信网网管系统软件是否满足可靠性要求,如果是,则结束测试,如果不是,转步骤s106。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
实施例2
本发明实施例的一种电信网网管系统软件自动化测试装置如图2所示, 包括初始测试用例生成单元21、最终测试用例生成单元22、自动化测试单元23、失效信息记录单元24和修正单元25。其中,所述最终测试用例生成单元22分别与所述初始测试用例生成单元21和自动化测试单元23连接,所述失效信息记录单元24分别与所述自动化测试单元23和修正单元25连接。
所述初始测试用例生成单元21设置为根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;所述最终测试用例生成单元22设置为将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;所述自动化测试单元23设置为根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试;所述失效信息记录单元24设置为在执行所述自动化测试过程中,记录所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息;所述修正单元25设置为根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
所述初始测试用例生成单元21包括操作痕迹提取子单元211和电信网网管系统软件自动化生成工具212,所述操作痕迹提取子单元211和所述电信网网管系统软件自动化生成工具212连接。
所述操作痕迹提取子单元211设置为提取实际用户的实际操作在电信网网管系统软件的操作痕迹,所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息;所述电信网网管系统软件自动化生成工具212设置为根据所述操作痕迹生成初始测试用例。
本发明实施例根据用户对于电信网网管系统软件的操作习惯自动生成测试用例,更加符合用户实际操作的特点。而且,本发明实施例对于用户实际的原子操作和操作对象模型进行了兼容处理,适用性更广。另外,本发明实施例能够自动化执行电信网网管系统软件测试,节约了测试成本,提高了测试效率。本发明实施例还可以在软件发生失效时,自动记录软件失效的相关信息,能够方便地对电信网网管系统软件进行修正。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。
工业实用性
上述技术方案根据用户对于电信网网管系统软件的操作习惯自动生成测试用例,更加符合用户实际操作的特点。而且,对于用户实际的原子操作和操作对象模型进行了兼容处理,适用性更广。另外,能够自动化执行电信网网管系统软件测试,节约了测试成本,提高了测试效率。还可以在软件发生失效时,自动记录软件失效的相关信息,能够方便地对电信网网管系统软件进行修正。

Claims (13)

  1. 一种电信网网管系统软件自动化测试方法,所述方法包括以下步骤:
    根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;
    将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;
    根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试。
  2. 如权利要求1所述的电信网网管系统软件自动化测试方法,其中,所述根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例包括:
    提取实际用户的实际操作在电信网网管系统软件的操作痕迹;
    根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初始测试用例。
  3. 如权利要求2所述的电信网网管系统软件自动化测试方法,其中,所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息。
  4. 如权利要求3所述的电信网网管系统软件自动化测试方法,其中,所述根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初始测试用例包括:
    所述电信网网管系统软件自动化生成工具根据当前和历史告警、系统配置数据规模、系统环境信息,获取用户操作的系统环境情况,作为所述初始测试用例的测试条件;
    所述电信网网管系统软件自动化生成工具根据用户操作日志、系统日志,获取每个用户在相同时间段做的原子操作和操作对象,以时间为序作为所述初始测试用例的操作步骤;
    所述电信网网管系统软件自动化生成工具根据实际的原子操作结果,作为所述初始测试用例的验收准则。
  5. 如权利要求2所述的电信网网管系统软件自动化测试方法,其中,所述根据所述操作痕迹,利用电信网网管系统软件自动化生成工具生成所述初 始测试用例,包括:
    采用可视化方法对所述电信网网管系统软件进行初始测试用例的编写。
  6. 如权利要求2所述的电信网网管系统软件自动化测试方法,其中,所述将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例,包括:
    所述电信网网管系统软件自动化生成工具对接电信网网管系统软件,获取所述电信网网管系统软件的原子操作及操作对象模型信息;
    根据获取的原子操作及操作对象模型信息,对所述初始测试用例进行适配,得到可运行的最终测试用例。
  7. 如权利要求1至6任一项所述的电信网网管系统软件自动化测试方法,还包括:
    记录执行所述自动化测试过程中,所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息。
  8. 如权利要求7所述的电信网网管系统软件自动化测试方法,还包括:
    根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试之后,根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
  9. 一种电信网网管系统软件自动化测试装置,所述装置包括:
    初始测试用例生成单元,设置为根据用户的实际操作习惯生成电信网网管系统软件的初始测试用例;
    最终测试用例生成单元,设置为将所述初始测试用例对所述电信网网管系统软件的所有原子操作及操作对象模型进行兼容处理,得到可运行的最终测试用例;
    自动化测试单元,设置为根据所述最终测试用例,对所述电信网网管系统软件执行自动化测试。
  10. 如权利要求9所述的电信网网管系统软件自动化测试装置,其中,所述初始测试用例生成单元包括:
    操作痕迹提取子单元,设置为提取实际用户的实际操作在电信网网管系 统软件的操作痕迹,所述操作痕迹包括电信网网管系统软件中的用户操作日志、系统日志、当前和历史告警、系统配置数据规模和/或系统环境信息;
    电信网网管系统软件自动化生成工具,设置为根据所述操作痕迹生成初始测试用例。
  11. 如权利要求9或10所述的电信网网管系统软件自动化测试装置,所述装置还包括:
    失效信息记录单元,设置为记录在执行所述自动化测试过程中,所述电信网网管系统软件发生失效的时刻及对应的操作步骤信息。
  12. 如权利要求11所述的电信网网管系统软件自动化测试装置,所述装置还包括:
    修正单元,设置为根据测试得到的失效信息,对所述电信网网管系统软件进行相应地修正。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~8中任一项所述的方法。
PCT/CN2016/073756 2015-08-19 2016-02-14 一种电信网网管系统软件自动化测试方法和装置 WO2016165461A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510509483.2A CN106469115A (zh) 2015-08-19 2015-08-19 一种电信网网管系统软件自动化测试方法和装置
CN201510509483.2 2015-08-19

Publications (1)

Publication Number Publication Date
WO2016165461A1 true WO2016165461A1 (zh) 2016-10-20

Family

ID=57125756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073756 WO2016165461A1 (zh) 2015-08-19 2016-02-14 一种电信网网管系统软件自动化测试方法和装置

Country Status (2)

Country Link
CN (1) CN106469115A (zh)
WO (1) WO2016165461A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951373A (zh) * 2017-04-25 2017-07-14 国家电网公司 一种用于电网网管移动运维软件的自动化测试方法及装置
CN109144842A (zh) * 2017-06-16 2019-01-04 百度在线网络技术(北京)有限公司 用于测试应用的方法和装置
CN109460363B (zh) * 2018-11-09 2022-04-01 贵州医渡云技术有限公司 自动化测试方法、装置、电子设备及计算机可读介质
CN109308266A (zh) * 2018-11-30 2019-02-05 北京微播视界科技有限公司 测试用例的构建方法、测试方法、装置、设备和介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030070120A1 (en) * 2001-10-05 2003-04-10 International Business Machines Corporation Method and system for managing software testing
CN103049367A (zh) * 2011-10-11 2013-04-17 神州数码信息系统有限公司 一种软件自动化测试的方法
CN103246599A (zh) * 2012-02-10 2013-08-14 广州博纳信息技术有限公司 软件测评快速执行方法
US20130263089A1 (en) * 2012-03-30 2013-10-03 NIIT Technologies Ltd Generating test cases for functional testing of a software application
CN104375934A (zh) * 2014-10-22 2015-02-25 江苏科技大学 一种Android手机软件可靠性测试方法
CN104572031A (zh) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 一种测试用例的生成方法及装置
CN104598776A (zh) * 2013-10-31 2015-05-06 深圳市腾讯计算机系统有限公司 一种对软件进行测试的方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030070120A1 (en) * 2001-10-05 2003-04-10 International Business Machines Corporation Method and system for managing software testing
CN103049367A (zh) * 2011-10-11 2013-04-17 神州数码信息系统有限公司 一种软件自动化测试的方法
CN103246599A (zh) * 2012-02-10 2013-08-14 广州博纳信息技术有限公司 软件测评快速执行方法
US20130263089A1 (en) * 2012-03-30 2013-10-03 NIIT Technologies Ltd Generating test cases for functional testing of a software application
CN104572031A (zh) * 2013-10-09 2015-04-29 腾讯科技(深圳)有限公司 一种测试用例的生成方法及装置
CN104598776A (zh) * 2013-10-31 2015-05-06 深圳市腾讯计算机系统有限公司 一种对软件进行测试的方法及装置
CN104375934A (zh) * 2014-10-22 2015-02-25 江苏科技大学 一种Android手机软件可靠性测试方法

Also Published As

Publication number Publication date
CN106469115A (zh) 2017-03-01

Similar Documents

Publication Publication Date Title
WO2018120721A1 (zh) 用户界面的测试方法、系统、电子装置及计算机可读存储介质
WO2018000607A1 (zh) 一种识别测试用例失败原因的方法及电子设备
CN110737594B (zh) 自动生成测试用例的数据库标准符合性测试方法及装置
CN107145437B (zh) 一种java注解测试方法及装置
US10354031B2 (en) Information processing by interpenetrating signal transmission channel in design for testability of chip
WO2016165461A1 (zh) 一种电信网网管系统软件自动化测试方法和装置
CN106649164B (zh) 一种硬件接口管理方法
CN108923997B (zh) 一种基于python的云服务节点自动测试方法及装置
US10078579B1 (en) Metrics-based analysis for testing a service
CN108459850B (zh) 生成测试脚本的方法、装置及系统
WO2019085466A1 (zh) 关联测试方法、系统、应用服务器及计算机可读存储介质
CN114003451B (zh) 一种接口测试方法、装置、系统及介质
CN115080398A (zh) 一种接口自动化测试系统及方法
CN106557419B (zh) 程序的测试方法及装置
CN113448826A (zh) 一种软件自动化测试系统及方法
CN108459960A (zh) 测试环境的自动配置方法、装置、设备及存储介质
CN111124828B (zh) 一种数据处理方法、装置、设备及存储介质
US20140215440A1 (en) Marked test script creation
CN110362294A (zh) 开发任务执行方法、装置、电子设备及存储介质
CN103914377B (zh) 接口测试方法及装置
CN107885527A (zh) 一种测试系统的代码修改方法及装置
CN110543416A (zh) 一种自动测试终端程序的方法、装置、设备及存储介质
CN116225911A (zh) 一种可观测性平台的功能测试方法及装置
CN114546823B (zh) 用于重现逻辑系统设计的调试场景的方法及相关设备
CN115757174A (zh) 一种数据库的差异检测方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16779436

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16779436

Country of ref document: EP

Kind code of ref document: A1