WO2016082476A1 - 业务测试方法及装置 - Google Patents

业务测试方法及装置 Download PDF

Info

Publication number
WO2016082476A1
WO2016082476A1 PCT/CN2015/078806 CN2015078806W WO2016082476A1 WO 2016082476 A1 WO2016082476 A1 WO 2016082476A1 CN 2015078806 W CN2015078806 W CN 2015078806W WO 2016082476 A1 WO2016082476 A1 WO 2016082476A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
control script
service control
preset
testing
Prior art date
Application number
PCT/CN2015/078806
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 WO2016082476A1 publication Critical patent/WO2016082476A1/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 present invention relates to the field of communications, and in particular to a service testing method and apparatus.
  • the intelligent network platform extracts a set of intelligent network common protocol interfaces that can adapt to various existing protocol versions based on the parlayX protocol, and opens it as a capability.
  • the external service can ignore the signaling difference of the specific bearer network through the common protocol interface, directly develop the business process, and provide a good platform for the secondary development of the operator.
  • the embodiment of the invention provides a service testing method and device, so as to solve at least the problem that the service testing method provided in the related art is cumbersome and costly.
  • a service testing method is provided.
  • the service testing method includes: generating a service control script, wherein the service control script is compiled by using a preset scripting language; and loading the service control script to simulate a service corresponding to the service control script, wherein the loading service is used for performing Integration Testing.
  • generating the service control script includes: adding or deleting an open capability interface operation according to the service to be simulated; configuring a parameter corresponding to adding or deleting an open capability interface operation, and generating a service control script in the preset storage area.
  • the service corresponding to the service control script is simulated by loading the service control script, and the service corresponding to the service control script is registered in the case that the current normal operation state is determined;
  • the service corresponding to the service control script is registered, and the service simulation is performed according to the preset business process.
  • the preset business process includes a plurality of preset task actions from the task loading state to the shutdown state.
  • performing the integration test comprises: performing a tracking test on the execution process of the service simulation to determine whether an abnormality occurs in the test process; if yes, issuing an alert prompt.
  • the preset scripting language is Extensible Markup Language (XML).
  • a service testing apparatus is provided.
  • the service testing apparatus includes: a generating module, configured to generate a service control script, wherein the service control script is programmed by using a preset scripting language; and the testing module is configured to load the service control script and simulate The service corresponding to the business control script, where the load service is used for integration testing.
  • the generating module includes: a processing unit configured to perform an operation of adding or deleting an open capability interface according to the service to be simulated; and a generating unit configured to configure a parameter corresponding to the operation of adding or deleting an open capability interface, and preset
  • the storage area generates a business control script.
  • the test module includes: a registration unit configured to register a service corresponding to the service control script when determining that the current process is in a normal processing operation state; and the simulation unit is configured to complete the service corresponding to the service control script.
  • Registration performing business simulation according to a preset business process, wherein the preset business process includes a plurality of preset task actions from the task loading state to the closing state process.
  • the testing module further includes: a determining unit configured to perform a tracking test on the execution process of the service simulation to determine whether an abnormality occurs in the testing process; and the alarm unit is configured to issue an alarm prompt when the output of the determining unit is YES.
  • the preset scripting language is Extensible Markup Language (XML).
  • a service control script is generated, where the service control script is compiled by using a preset script language; the service control script is loaded to simulate a service corresponding to the service control script, where the load service is used for integration testing and solving
  • the business test method provided in the related art is cumbersome and costly, and thus can simulate various services, so that the platform personnel can test according to their own modification points without requiring coordination manpower, instead of Need to rely on the actual business environment, and can achieve automated testing, version regression testing on the intelligent network open platform, without paying attention to specific business types, in order to replace expensive test equipment and environment, saving test costs, realized
  • the simple method is adopted to meet the requirements of the fusion test in various business tests, and the test efficiency is improved.
  • FIG. 1 is a flow chart of a service testing method according to an embodiment of the present invention.
  • FIG. 2 is a flow chart showing an execution process of an XML script generation tool in accordance with a preferred embodiment of the present invention
  • FIG. 3 is a flowchart of a service simulator execution process of an intelligent network capability open platform according to a preferred embodiment of the present invention
  • FIG. 4 is a structural block diagram of a service testing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a service testing apparatus according to a preferred embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a service simulator of an intelligent network capability open platform according to a preferred embodiment of the present invention.
  • FIG. 1 is a flow chart of a service testing method in accordance with an embodiment of the present invention. As shown in FIG. 1, the method may include the following processing steps:
  • Step S102 Generate a service control script, where the service control script is compiled by using a preset script language
  • Step S104 The loading service control script simulates a service corresponding to the service control script, where the loading service is used for performing integration testing.
  • Multi-network convergence is the mainstream trend of China's telecom industry.
  • the network convergence in telecom networks is also an important part of this mainstream trend.
  • the integration of multiple different networks on one platform is the integration test of the platform.
  • the test process can be simplified without the need to coordinate the business manpower, and the platform part can be tested separately, which greatly improves the flexibility of platform development.
  • it can also weaken the platform's reliance on business testing, so that the intelligent network capability open platform can serve multiple services at the same time faster and better.
  • use the simulator Automated testing can also be performed to perform version regression testing on the open platform of the intelligent network without paying attention to specific business types, thereby saving a large amount of regression testing time and equipment, reducing R&D and testing costs, and improving testing efficiency.
  • the preset scripting language may be an extensible markup language XML.
  • generating a service control script may include the following operations:
  • Step S1 adding or deleting an open capability interface operation according to the service to be simulated
  • Step S2 Configure parameters corresponding to the operation of adding or deleting an open capability interface, and generate a service control script in the preset storage area.
  • FIG. 2 is a flow diagram of an XML script generation tool execution process in accordance with a preferred embodiment of the present invention. As shown in FIG. 2, the process may include the following processing steps:
  • Step S202 Start a script generation tool.
  • Step S204 determining whether to add an open capability interface or deleting an open capability interface; if it is necessary to add an open capability interface, go to step S206; if it is necessary to delete an open capability interface, go to step S212;
  • Step S206 Add an open capability interface operation, edit the open capability interface, and edit the variables therein.
  • Variables can have initial values, where integers fill in values directly.
  • Step S208 Add a peer-to-peer open capability interface node. After selecting a specific interface, right-click to add a node of the same type; after adding, the node name is automatically represented by an array; if multiple peer nodes are added, they must be The last node starts to increase. Continue to step S212;
  • Step S210 If it is not the required interface, an open capability interface operation may also be deleted.
  • Step S212 Fill in the remaining related configurations, which may include, but are not limited to, Caps, and the instance has a maximum time.
  • Step S214 Generate an XML script.
  • the script is generated in the directory where the executable is located, and the name is fixed to cser_simulator_task.xml. Upload the script to the specified server after generating the script.
  • simulating the service corresponding to the service control script by loading the service control script may include the following steps:
  • Step S3 registering the service corresponding to the service control script in the case that it is determined that the current processing is in the normal running state;
  • step S4 the service is simulated according to the service corresponding to the service control script, and the service simulation is performed according to the preset business process, where the preset business process includes multiple preset tasks from the task loading state to the shutdown state process. action.
  • performing the integration test may include the following operations:
  • Step S5 Perform a tracking test on the execution process of the service simulation to determine whether an abnormality occurs in the testing process
  • Step S6 If yes, an alert is issued.
  • FIG. 3 is a flow chart of a service simulator execution process of an intelligent network capability open platform in accordance with a preferred embodiment of the present invention. As shown in FIG. 3, the process may include the following processing steps:
  • Step S302 Load the relevant script, and read the configuration table through the 60001 instruction simulator.
  • Step S304 The service simulator starts to run. After the 60002 instruction, the simulator sends a service registration message, and the simulator runs according to the process in the task table, and starts the maximum call duration timer to prevent the call time from exceeding the preset duration. Start the report timer and write the relevant information every 3 seconds. Start the heartbeat detection timer to prevent chain scission. Perform all actions in the configuration table to generate a call.
  • Step S306 The service simulator stops generating the call, closes the call generation timer through 60003, no longer generates a new call, and sets a stop detection timer for 1 second.
  • Step S308 The service simulator stops all calls, closes the call generation timer through 60004, closes the report timer, closes the stop monitoring timer, and clears the data area.
  • Step S310 The process flow related to the service simulator is printed, and the task type, the event number, the timeout period, and the current PNO in all the configuration table steps are printed through 60005.
  • Step S312 The log function turns on (closes) the log through 60006 (60007), and tracks the execution of the printing call process. According to the log printing, it can be judged whether the test meets the requirements.
  • a service simulator can be used to simulate a broadband PARLAY service integration test, and the analog service is a call service of A and B.
  • the interface between the OP and the service simulator needs to be concerned, that is, the interface that the XML generation tool needs to pay attention to, and the entire process may include the following processing steps:
  • Step 1 The EV_OP_NotifyNetCall_REQ interface indicates that a call is received from the bottom layer, and the capability open platform reports it to the simulator;
  • Step 2 The EV_OP_NotifyNetCall_RES interface indicates that the simulator responds to the capability open platform, indicating that the reported event has been known;
  • Step 3 The EV_OP_AddCallParty_REQ interface indicates that the service requests to initiate a call INVITE, and the service is completed by using an XML script of the service simulator;
  • Step 4 The EV_OP_AddCallParty_RES interface indicates that the capability open platform has responded after receiving the service request to initiate a call, and the reply service simulator has received the above message and has started processing.
  • Step 5 The EV_OP_NotifyCallEvent_REQ interface indicates that the broadband INVITE call sent by the service simulator has received the 180 response of the broadband, and then the capability open platform reports it to the service simulator.
  • Step 6 The EV_OP_NotifyCallEvent_REQ interface indicates that the broadband INVITE call sent by the service simulator has received the broadband 200 response, and then the capability open platform reports to the service simulator.
  • Step 7 The EV_OP_NotifyCallEvent_REQ interface indicates that the bottom layer has sent the BYE message of the end session, and the capability open platform reports it to the service simulator.
  • the above steps 5 to 7 are all reported by the same interface, but the reported content is different according to the network type, and the signaling used is different.
  • Step 8 The EV_OP_ReleaseCall_REQ interface indicates that after the session is terminated, the service simulator will send an end session request, so that both sides of the call can be disconnected.
  • PARLAY represents a broadband network, which may also be a network of Global System for Mobile Communications (GSM)/Code Division Multiple Access (CDMA) narrowband networks.
  • GSM Global System for Mobile Communications
  • CDMA Code Division Multiple Access
  • the service testing apparatus may include: a generating module 10 configured to generate a service control script, wherein the service control script is programmed in a preset scripting language; and the testing module 20 is configured to load the service control The script simulates the business corresponding to the business control script, wherein the load service is used for integration testing.
  • the platform personnel can test according to their own modification points, without relying on the actual business environment, and can realize automated testing, open in the intelligent network. Version regression testing on the platform, instead of paying attention to specific business types, to replace expensive test equipment and environment, saving test costs, achieving a simple method to meet the requirements of fusion testing in a variety of business tests, and improving test efficiency .
  • the preset scripting language may be an extensible markup language XML.
  • the generating module 10 may include: a processing unit 100 configured to perform an operation of adding or deleting an open capability interface according to a service to be simulated; and a generating unit 102 configured to operate on an open or delete open capability interface The corresponding parameters are configured, and a service control script is generated in the preset storage area.
  • the test module 20 may include: a registration unit 200 configured to register a service corresponding to the service control script in a case where it is determined that the current processing operation state is currently in progress; the simulation unit 202 is configured to By performing registration on the service corresponding to the service control script, the service simulation is performed according to the preset business process, where the preset business process includes a plurality of preset task actions in the process from the task loading state to the shutdown state.
  • a registration unit 200 configured to register a service corresponding to the service control script in a case where it is determined that the current processing operation state is currently in progress
  • the simulation unit 202 is configured to By performing registration on the service corresponding to the service control script, the service simulation is performed according to the preset business process, where the preset business process includes a plurality of preset task actions in the process from the task loading state to the shutdown state.
  • the test module 20 may further include: a determining unit 204 configured to perform a tracking test on the execution process of the service simulation to determine whether an abnormality occurs in the testing process; and the alarm unit 206 is configured to output the When yes, an alert is issued.
  • a determining unit 204 configured to perform a tracking test on the execution process of the service simulation to determine whether an abnormality occurs in the testing process
  • the alarm unit 206 is configured to output the When yes, an alert is issued.
  • the service simulation device of the intelligent network capability open platform may include two parts: an XML script generation tool (corresponding to the above generation module) and a service simulator (corresponding to the above test module).
  • the XML script generation tool is used to generate business scripts, simulate the receiving and/or sending of business messages through XML scripts, and then load XML scripts through the business simulator to implement business function integration testing.
  • FIG. 6 is a schematic structural diagram of a service simulator of an intelligent network capability open platform according to a preferred embodiment of the present invention.
  • the service simulator can be divided into the following four parts: an XML script reading module, an instruction execution module, a state flow control module, and a log tracking module. The specific functions to be implemented by these four functional modules will be further described below.
  • the XML script reading module is responsible for obtaining the loaded XML script information, and storing the obtained XML script information into the memory in a node manner. Moreover, in addition to obtaining the XML script information, the mapping relationship between the service registration event and the extended parameter mapping relationship can also be read.
  • the instruction execution module is responsible for designing the instructions that can be directly operated under various LINUX systems, reading the configuration table by executing the instructions, and then sending the service registration message to the platform, executing the business process, stopping the business, printing, and the like.
  • the state flow control module is responsible for controlling the received commands, from the task loading state to the startup state to the shutdown state, and the like.
  • the state flow control module determines whether the current state is in the process of execution, and if not, discards it; secondly, determines whether the first action in the task is a receiving type, if Yes, the data area is applied, and the first task action in the task is started, otherwise it is discarded; then the subsequent operations are executed cyclically, and if the current number of action steps exceeds the maximum number of steps of the read script, the resources are released. Otherwise it will exit normally.
  • the above-mentioned task type is a receiving type, which is only a preferred example of the present invention, and does not constitute an undue limitation to the present invention, and may of course be a transmitting type task.
  • the log tracking module is responsible for monitoring whether the service simulator works according to a normal process. If there is an error, an alarm prompt is generated.
  • the intelligent network Platform developers no longer have to be constrained by the business developers to develop the business, nor do they have to pay attention to the specific network on which the service is carried and the signaling differences between different networks. Instead, they only need to pay attention to the control of the business process and use the simulator to simulate the business process. In this way, the platform developers can debug their own code, test the openness of the platform, greatly reduce the coordination time of business personnel, and improve the efficiency of business development and platform development.
  • the simulator can also be used for automated testing, and version regression testing on the intelligent network open platform without paying attention to specific business types, thereby saving a lot of regression testing time, reducing testing costs and improving testing efficiency.
  • the application of the intelligent network capability open platform is enhanced without the need for business developers to cooperate with debugging.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • a service testing method and apparatus have the following beneficial effects: an intelligent network platform developer does not have to be subject to a service developed by a service developer, nor does it have to pay attention to which specific network the service is carried on and Signaling differences between different networks, but only need to pay attention to the control of business processes, use the simulator to simulate business processes, so that platform developers can debug their own code, test the openness of the platform, and greatly reduce the business. The coordination of personnel to coordinate time, while improving the efficiency of business development and platform development.
  • the simulator can also be used for automated testing, and version regression testing on the intelligent network open platform without paying attention to specific business types, thereby saving a lot of regression testing time, reducing testing costs and improving testing efficiency.
  • the application of the intelligent network capability open platform is enhanced without the need for business developers to cooperate with debugging.

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)

Abstract

本发明公开了一种业务测试方法及装置,在上述方法中,生成业务控制脚本,其中,业务控制脚本采用预设脚本语言进行编制;加载业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试。根据本发明提供的技术方案,节约了大量的回归测试时间,降低了测试成本,提高了测试效率,在无需业务开发人员配合调试的情况下提升了智能网能力开放平台的应用。

Description

业务测试方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种业务测试方法及装置。
背景技术
目前,智能网平台在parlayX协议的基础上提炼出一套能够适配各种现有协议版本的智能网通用协议接口,并将其作为一种能力对外开放。外部业务可以通过该通用协议接口忽视具体承载网络的信令差异,直接进行业务流程的开发,并且为运行商进行二次开发提供了良好的平台。
但是,在上述智能网通用协议接口取得广泛应用的同时,也存在如下缺陷:每个业务都需要与智能网能力开放平台进行调测,而平台侧人力是有限的,集成测试较为费时费力,各个部门之间协调也比较困难,效率低下。目前,还没有研发出对于这种多网络融合业务平台进行测试的测试系统。当然,对于不同的业务,可以搭建不同网络环境来进行测试。但是,其缺陷也是显而易见的:搭建不同的网络环境需要涉及不同的核心网设备,价格昂贵,无形中会加大研发成本。
发明内容
本发明实施例提供了一种业务测试方法及装置,以至少解决相关技术中所提供的业务测试方式较为繁琐且成本较高的问题。
根据本发明的一个方面,提供了一种业务测试方法。
根据本发明实施例的业务测试方法包括:生成业务控制脚本,其中,业务控制脚本采用预设脚本语言进行编制;加载业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试。
优选地,生成业务控制脚本包括:根据待模拟的业务执行增加或删除开放能力接口操作;对与增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成业务控制脚本。
优选地,通过加载业务控制脚本模拟与该业务控制脚本对应的业务包括:在确定当前处于正常处理运行状态的情况下,对与业务控制脚本对应的业务进行注册;通过 对与业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
优选地,进行集成测试包括:对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;如果是,则发出告警提示。
优选地,预设脚本语言为可扩展标记语言(XML)。
根据本发明的另一方面,提供了一种业务测试装置。
根据本发明实施例的业务测试装置包括:生成模块,设置为生成业务控制脚本,其中,所述业务控制脚本采用预设脚本语言进行编制;测试模块,设置为加载所述业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试。
优选地,生成模块包括:处理单元,设置为根据待模拟的业务执行增加或删除开放能力接口操作;生成单元,设置为对与增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成业务控制脚本。
优选地,测试模块包括:注册单元,设置为在确定当前处于正常处理运行状态的情况下,对与业务控制脚本对应的业务进行注册;模拟单元,设置为通过对与业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
优选地,测试模块还包括:判断单元,设置为对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;告警单元,设置为在判断单元输出为是时,发出告警提示。
优选地,预设脚本语言为可扩展标记语言(XML)。
通过本发明实施例,采用生成业务控制脚本,其中,业务控制脚本采用预设脚本语言进行编制;加载业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试,解决了相关技术中所提供的业务测试方式较为繁琐且成本较高的问题,进而可以模拟各种业务,这样在不需要协调人力的基础上,平台人员即可根据自身的改动点进行测试,而不需要依赖于实际的业务环境,并且可以实现自动化测试,在智能网开放平台上进行版本回归测试,而无需关注具体的业务类型,以此来替代昂贵的测试设备和环境,节约测试成本,实现了采用简单方法满足多种业务测试中融合测试的要求,提高了测试效率。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的业务测试方法的流程图;
图2是根据本发明优选实施例的XML脚本生成工具执行过程的流程图;
图3是根据本发明优选实施例的智能网能力开放平台的业务模拟器执行过程的流程图;
图4是根据本发明实施例的业务测试装置的结构框图;
图5是根据本发明优选实施例的业务测试装置的结构框图;
图6是根据本发明优选实施例的智能网能力开放平台的业务模拟器的结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
图1是根据本发明实施例的业务测试方法的流程图。如图1所示,该方法可以包括以下处理步骤:
步骤S102:生成业务控制脚本,其中,业务控制脚本采用预设脚本语言进行编制;
步骤S104:加载业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试。
多网络融合是目前中国电信业发展的主流趋势,电信网内的网络融合也是该主流趋势中的重要组成部分,为此,将多种不同网络的业务融合在一个平台上运行为平台的集成测试造成了麻烦。采用如图1所示的方法,通过智能网能力开放平台的业务模拟器,在不需要协调业务人力的基础上简化测试流程,可以单独对平台的部分进行测试,大大提升了平台开发的灵活性,同时也能够减弱平台对于业务测试的依赖,从而使智能网能力开放平台能够更快、更好地为多种业务同时服务。此外,利用该模拟器 还可以进行自动化测试,在智能网开放平台上进行版本回归测试,而无需关注具体的业务类型,从而节约的大量的回归测试时间和设备,降低研发和测试成本,提高测试效率。
在优选实施过程中,上述预设脚本语言可以为可扩展标记语言XML。
优选地,在步骤S102中,生成业务控制脚本可以包括以下操作:
步骤S1:根据待模拟的业务执行增加或删除开放能力接口操作;
步骤S2:对与增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成业务控制脚本。
图2是根据本发明优选实施例的XML脚本生成工具执行过程的流程图。如图2所示,该流程可以包括以下处理步骤:
步骤S202:启动脚本生成工具。
步骤S204:判断是新增一个开放能力接口还是删除一个开放能力接口;如果需要新增一个开放能力接口,则转到步骤S206;如果需要删除一个开放能力接口,则转到步骤S212;
步骤S206:增加一个开放能力接口操作,操作开放能力接口编辑,对于其中的变量进行编辑。变量可以有初始值,其中,整型直接填写数值。
步骤S208:新增同级开放能力接口节点,在选中特定接口后,右键新增一个同类型的节点;新增后,节点名称自动以数组形式表示;如果新增多个同级节点,必须从最后一个节点开始增加。继续执行步骤S212;
步骤S210:如果不是需要的接口,也可以删除一个开放能力接口操作。
步骤S212:填写其余相关配置,其中,可以包括但不限于:Caps、实例存在最大时间。
步骤S214:生成XML脚本。脚本生成在可执行程序所在的目录,名称固定为cser_simulator_task.xml。生成脚本后将脚本上传至指定的服务器。
优选地,在步骤S104中,通过加载业务控制脚本模拟与该业务控制脚本对应的业务可以包括以下步骤:
步骤S3:在确定当前处于正常处理运行状态的情况下,对与业务控制脚本对应的业务进行注册;
步骤S4:通过对与业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
优选地,在步骤S104中,进行集成测试可以包括以下操作:
步骤S5:对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;
步骤S6:如果是,则发出告警提示。
图3是根据本发明优选实施例的智能网能力开放平台的业务模拟器执行过程的流程图。如图3所示,该流程可以包括以下处理步骤:
步骤S302:加载相关脚本,通过60001指令模拟器读取配置表。
步骤S304:业务模拟器开始运行,通过60002指令,模拟器发出业务注册消息,模拟器根据任务表中的流程来运行,并且启动最大通话时长定时器,防止呼叫时间超过预设时长。启动报告定时器,每3秒写一次相关信息。启动心跳检测定时器,防止断链。执行配置表中的全部动作,产生呼叫。
步骤S306:业务模拟器停止产生呼叫,通过60003关闭呼叫产生定时器,不再产生新的呼叫,设置1秒停止循环监控定时器。
步骤S308:业务模拟器停止全部呼叫,通过60004关闭呼叫产生定时器,关闭报告定时器,关闭停止监控定时器,清空数据区。
步骤S310:业务模拟器相关的处理流程打印,通过60005打印所有配置表步骤中的任务类型、事件号、超时时间、目前PNO。
步骤S312:日志功能通过60006(60007)开启(关闭)日志,跟踪打印呼叫流程执行情况,根据日志打印可以判断本次测试是否符合要求。
作为本发明的一个优选实施例,可以采用业务模拟器模拟宽带PARLAY业务集成测试,模拟业务为A和B的通话业务。在该优选实施例中,仅需要关注OP与业务模拟器之间的接口,即使用XML生成工具需要关注的接口,整个过程可以包括以下处理步骤:
步骤一:EV_OP_NotifyNetCall_REQ接口表示从底层接收到一个呼叫,能力开放平台将其上报至模拟器;
步骤二:EV_OP_NotifyNetCall_RES接口表示模拟器对能力开放平台的应答,表示已经获知该上报事件;
步骤三:EV_OP_AddCallParty_REQ接口表示业务要求发起一个呼叫INVITE,该业务即是使用业务模拟器的XML脚本编写完成的;
步骤四:EV_OP_AddCallParty_RES接口表示能力开放平台接收到业务要求发起一个呼叫之后,已经响应,同时回复业务模拟器已经接收到上述消息并且已经开始处理。
步骤五:EV_OP_NotifyCallEvent_REQ接口表示对于业务模拟器发送的宽带INVITE呼叫已经接收到宽带的180应答,然后,能力开放平台将其上报至业务模拟器;
步骤六:EV_OP_NotifyCallEvent_REQ接口表示对于业务模拟器发送的宽带INVITE呼叫已经接收到宽带的200应答,然后,能力开放平台上报给业务模拟器;
这样A和B就可以通话了。
步骤七:EV_OP_NotifyCallEvent_REQ接口表示底层已经发送结束会话的BYE消息,能力开放平台将其上报至业务模拟器;
在该优选实施例中,上述步骤五至步骤七均使用同一个接口上报,但是上报的内容根据网络类型不同,其所采用的信令也有所不同。
步骤八:EV_OP_ReleaseCall_REQ接口表示在结束会话之后,业务模拟器将会发送一个结束会话请求,这样便可以将通话的双方都拆线了。
需要说明的是,本发明所提供的优选实施例不局限于上述介绍的业务类型,PARLAY代表宽带网络,其也可以是全球移动通信系统(GSM)/码分多址(CDMA)窄带网络的网元,上述仅以A和B的通话为例,而并不关注网络层,只要在模拟器上加载不同的接口组成的业务,均可以模拟不同网络下的业务来进行集成测试。
图4是根据本发明实施例的业务测试装置的结构框图。如图4所示,该业务测试装置可以包括:生成模块10,设置为生成业务控制脚本,其中,所述业务控制脚本采用预设脚本语言进行编制;测试模块20,设置为加载所述业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载业务用于进行集成测试。
采用如图4所示的装置,在不需要协调人力的基础上,平台人员即可根据自身的改动点进行测试,而不需要依赖于实际的业务环境,并且可以实现自动化测试,在智能网开放平台上进行版本回归测试,而无需关注具体的业务类型,以此来替代昂贵的测试设备和环境,节约测试成本,实现了采用简单方法满足多种业务测试中融合测试的要求,提高了测试效率。
在优选实施过程中,上述预设脚本语言可以为可扩展标记语言XML。
优选地,如图5所示,生成模块10可以包括:处理单元100,设置为根据待模拟的业务执行增加或删除开放能力接口操作;生成单元102,设置为对与增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成业务控制脚本。
优选地,如图5所示,测试模块20可以包括:注册单元200,设置为在确定当前处于正常处理运行状态的情况下,对与业务控制脚本对应的业务进行注册;模拟单元202,设置为通过对与业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
优选地,如图5所示,测试模块20还可以包括:判断单元204,设置为对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;告警单元206,设置为在判断单元输出为是时,发出告警提示。
在优选实施例中,本发明实施例所提供的智能网能力开放平台的业务模拟装置可以包含两个部分:XML脚本生成工具(相当于上述生成模块)及业务模拟器(相当于上述测试模块)。XML脚本生成工具用于生成业务脚本,通过XML脚本方式实现对业务消息的接收和/或发送进行模拟,然后再通过业务模拟器加载XML脚本来实现业务功能集成测试。
图6是根据本发明优选实施例的智能网能力开放平台的业务模拟器的结构示意图。如图6所示,业务模拟器可以分为以下四个部分:XML脚本读取模块、指令执行模块、状态流程控制模块以及日志跟踪模块。下面将对这四个功能模块所要实现的具体功能做进一步地描述。
(1)XML脚本读取模块,负责获取加载的XML脚本信息,并且将获取到的XML脚本信息按照节点方式存储至内存中。并且,除了获取XML脚本信息之外,还可以读取业务注册事件的映射关系和扩展参数的映射关系。
(2)指令执行模块,负责设计各种LINUX系统下可以直接操作的指令,通过执行指令来读取配置表,然后再向平台发送业务注册消息,执行业务流程,停止业务,打印等等。
(3)状态流程控制模块,负责对接收到的指令进行控制,从任务加载状态到启动状态再到关闭状态等等。
假设已经接收到一个网络侧设备发送的新呼叫,状态流程控制模块判断当前状态是否正处于执行过程中,如果否,则将其丢弃;其次判断任务中的第一个动作是否为接收型,如果是,则申请数据区,开始执行任务中的第一个任务动作,否则将其丢弃;然后循环执行后续操作,如果当前的动作步数已经超过了读取脚本的最大步数,则释放资源,否则正常退出。
需要说明的是,上述任务类型为接收型仅为本发明的一个优选示例,其并不构成对本发明的不当限制,当然还可以是发送型任务。
(4)日志跟踪模块,负责监控业务模拟器是否按照正常的流程进行工作,如果存在错误,会产生告警提示。
从以上的描述中,可以看出,上述实施例实现了如下技术效果(需要说明的是这些效果是某些优选实施例可以达到的效果):采用本发明实施例所提供的技术方案,智能网平台开发人员不必再受制于业务开发人员开发的业务,也不必去关注业务承载在哪个具体网络上以及不同网络间的信令差异,而只需要关注业务流程的控制,使用模拟器模拟业务流程,这样,平台开发人员自己即可调测自身编写的代码,测试平台的开放能力程度,大大减少了业务人员的联调配合时间,同时提升业务开发和平台开发效率。此外,利用该模拟器还可以进行自动化测试,在智能网开放平台上进行版本回归测试,而无需关注具体的业务类型,从而节约了大量的回归测试时间,降低了测试成本,提高了测试效率,在无需业务开发人员配合调试的情况下提升了智能网能力开放平台的应用。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种业务测试方法及装置具有以下有益效果:智能网平台开发人员不必再受制于业务开发人员开发的业务,也不必去关注业务承载在哪个具体网络上以及不同网络间的信令差异,而只需要关注业务流程的控制,使用模拟器模拟业务流程,这样,平台开发人员自己即可调测自身编写的代码,测试平台的开放能力程度,大大减少了业务人员的联调配合时间,同时提升业务开发和平台开发效率。此外,利用该模拟器还可以进行自动化测试,在智能网开放平台上进行版本回归测试,而无需关注具体的业务类型,从而节约了大量的回归测试时间,降低了测试成本,提高了测试效率,在无需业务开发人员配合调试的情况下提升了智能网能力开放平台的应用。

Claims (10)

  1. 一种业务测试方法,包括:
    生成业务控制脚本,其中,所述业务控制脚本采用预设脚本语言进行编制;
    加载所述业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载所述业务用于进行集成测试。
  2. 根据权利要求1所述的方法,其中,生成所述业务控制脚本包括:
    根据待模拟的业务执行增加或删除开放能力接口操作;
    对与所述增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成所述业务控制脚本。
  3. 根据权利要求2所述的方法,其中,加载所述业务控制脚本模拟与该业务控制脚本对应的业务包括:
    在确定当前处于正常处理运行状态的情况下,对与所述业务控制脚本对应的业务进行注册;
    通过对与所述业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,所述预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
  4. 根据权利要求3所述的方法,其中,进行集成测试包括:
    对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;
    如果是,则发出告警提示。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述预设脚本语言为可扩展标记语言XML。
  6. 一种业务测试装置,包括:
    生成模块,设置为生成业务控制脚本,其中,所述业务控制脚本采用预设脚本语言进行编制;
    测试模块,设置为加载所述业务控制脚本模拟与该业务控制脚本对应的业务,其中,加载所述业务用于进行集成测试。
  7. 根据权利要求6所述的装置,其中,所述生成模块包括:
    处理单元,设置为根据待模拟的业务执行增加或删除开放能力接口操作;
    生成单元,设置为对与所述增加或删除开放能力接口操作对应的参数进行配置,并在预设存储区域生成所述业务控制脚本。
  8. 根据权利要求7所述的装置,其中,所述测试模块包括:
    注册单元,设置为在确定当前处于正常处理运行状态的情况下,对与所述业务控制脚本对应的业务进行注册;
    模拟单元,设置为通过对与所述业务控制脚本对应的业务完成注册,按照预设的业务流程进行业务模拟,其中,所述预设的业务流程包括从任务加载状态到关闭状态过程中的多个预先设定的任务动作。
  9. 根据权利要求8所述的装置,其中,所述测试模块还包括:
    判断单元,设置为对业务模拟的执行过程进行跟踪测试,判断测试过程是否发生异常;
    告警单元,设置为在所述判断单元输出为是时,发出告警提示。
  10. 根据权利要求6至9中任一项所述的装置,其中,所述预设脚本语言为可扩展标记语言XML。
PCT/CN2015/078806 2014-11-25 2015-05-12 业务测试方法及装置 WO2016082476A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410686794.1A CN105701000B (zh) 2014-11-25 2014-11-25 业务测试方法及装置
CN201410686794.1 2014-11-25

Publications (1)

Publication Number Publication Date
WO2016082476A1 true WO2016082476A1 (zh) 2016-06-02

Family

ID=56073492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078806 WO2016082476A1 (zh) 2014-11-25 2015-05-12 业务测试方法及装置

Country Status (2)

Country Link
CN (1) CN105701000B (zh)
WO (1) WO2016082476A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861782A (zh) * 2017-10-18 2018-03-30 福建中金在线信息科技有限公司 输入框输入控制的实现方法、装置及电子设备
CN108763081A (zh) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 一种数据库测试方法及其装置、计算机可读存储介质
CN112651698A (zh) * 2020-09-01 2021-04-13 广西辰亚信息技术有限公司 一种法务流程自动化智能系统
CN112905486A (zh) * 2021-03-26 2021-06-04 建信金融科技有限责任公司 一种服务集成测试方法、装置和系统
CN113485902A (zh) * 2021-07-08 2021-10-08 中国建设银行股份有限公司 测试业务平台的方法、装置、设备和计算机可读介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073499B (zh) * 2016-11-10 2020-09-29 腾讯科技(深圳)有限公司 应用程序的测试方法及装置
CN108804305A (zh) * 2017-05-05 2018-11-13 北京嘀嘀无限科技发展有限公司 一种自动化测试的方法及装置
CN108255667B (zh) * 2017-12-27 2021-07-06 创新先进技术有限公司 一种业务监测方法、装置以及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299862A (zh) * 2008-06-11 2008-11-05 中国电信股份有限公司 一种电信业务生成环境系统
CN102693183A (zh) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 一种实现软件自动化测试的方法及系统
CN103198009A (zh) * 2012-01-04 2013-07-10 中国移动通信集团公司 一种通用测试方法、系统及相应装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054533A1 (en) * 2011-08-24 2013-02-28 Microsoft Corporation Verifying a data recovery component using a managed interface
CN103164328B (zh) * 2011-12-12 2016-06-22 中国移动通信集团陕西有限公司 一种业务功能的回归测试方法、装置及系统
CN103473148B (zh) * 2012-06-08 2017-10-10 中兴通讯股份有限公司 一种恢复测试环境方法及装置
CN103218295B (zh) * 2013-04-17 2016-02-24 广东电网公司电力科学研究院 Esb消息处理能力的测试方法和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299862A (zh) * 2008-06-11 2008-11-05 中国电信股份有限公司 一种电信业务生成环境系统
CN103198009A (zh) * 2012-01-04 2013-07-10 中国移动通信集团公司 一种通用测试方法、系统及相应装置
CN102693183A (zh) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 一种实现软件自动化测试的方法及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861782A (zh) * 2017-10-18 2018-03-30 福建中金在线信息科技有限公司 输入框输入控制的实现方法、装置及电子设备
CN108763081A (zh) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 一种数据库测试方法及其装置、计算机可读存储介质
CN112651698A (zh) * 2020-09-01 2021-04-13 广西辰亚信息技术有限公司 一种法务流程自动化智能系统
CN112905486A (zh) * 2021-03-26 2021-06-04 建信金融科技有限责任公司 一种服务集成测试方法、装置和系统
CN113485902A (zh) * 2021-07-08 2021-10-08 中国建设银行股份有限公司 测试业务平台的方法、装置、设备和计算机可读介质
CN113485902B (zh) * 2021-07-08 2024-05-28 中国建设银行股份有限公司 测试业务平台的方法、装置、设备和计算机可读介质

Also Published As

Publication number Publication date
CN105701000B (zh) 2019-05-07
CN105701000A (zh) 2016-06-22

Similar Documents

Publication Publication Date Title
WO2016082476A1 (zh) 业务测试方法及装置
CN108400908B (zh) 变电站监控信息自动验收方法
CN107241315B (zh) 银行网关接口的接入方法、装置及计算机可读存储介质
CN108322348B (zh) 变电站监控信息自动验收信号触发运行子系统及方法
US10169203B2 (en) Test simulation for software defined networking environments
CN111341445B (zh) 微服务调用链的健康检测方法和健康检测系统
CN104579822A (zh) 基于Http协议的移动应用自动化性能测试系统及方法
CN106911648B (zh) 一种环境隔离方法及设备
CN103678354A (zh) 基于云计算平台的本地关系型数据库节点调度方法和装置
CN110309051A (zh) 管理测试用例的方法、系统、设备及存储介质
WO2018212928A1 (en) System and method for mapping a connectivity state of a network
CN112035344A (zh) 多场景测试方法、装置、设备和计算机可读存储介质
CN113687858A (zh) 配置文件的检查方法、装置、电子设备及存储介质
CN114422386B (zh) 一种微服务网关的监测方法及装置
CN109218407A (zh) 基于日志监控技术的代码管控方法及终端设备
CN107122307B (zh) 一种物联网执行系统
KR20130075252A (ko) 서비스 코레오그래피 적합성 시험장치 및 그 방법
TW201929491A (zh) 寬頻迴路障礙查測系統
CN113364820A (zh) 物联网业务系统的设备管控方法与装置
WO2015117458A1 (zh) 故障信息收集方法、装置及系统
GB2583903A (en) Testing virtualised network functions
CN115495381A (zh) 交互场景的测试方法、系统、处理器及电子设备
CN111431739B (zh) 面向QualNet的仿真通信网络的动态故障设置方法
CN111221687B (zh) 一种云存储测试系统和方法
WO2017197829A1 (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: 15863229

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: 15863229

Country of ref document: EP

Kind code of ref document: A1