WO2009062419A1 - Système et procédé de test - Google Patents

Système et procédé de test Download PDF

Info

Publication number
WO2009062419A1
WO2009062419A1 PCT/CN2008/072148 CN2008072148W WO2009062419A1 WO 2009062419 A1 WO2009062419 A1 WO 2009062419A1 CN 2008072148 W CN2008072148 W CN 2008072148W WO 2009062419 A1 WO2009062419 A1 WO 2009062419A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
text command
command
script
parsing
Prior art date
Application number
PCT/CN2008/072148
Other languages
English (en)
Chinese (zh)
Inventor
Zhimin Chen
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009062419A1 publication Critical patent/WO2009062419A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of testing, and in particular to a testing method and system. Background technique
  • Manual testing means that the tester uses the mouse or keyboard to input the device, operate and manage through the human-machine interface, configure according to the tester's test intention, start the test, view the test run status or intermediate results, modify the configuration, and continue to view the test run. Status or intermediate results... until the test is completed.
  • the tester can adjust the test parameters in real time according to various situations, and even adjust the test strategy, showing great flexibility and controllability.
  • the disadvantages of this test method are that the speed is slow, and when there are many steps, the repeatability is poor, and configuration errors are likely to occur.
  • test instruments/meters typically provide extended commands based on a scripting language (such as TCL, Per l, etc.) that testers can use to manipulate test instruments/meters in scripts. .
  • This test method has the characteristics of fast execution speed and good repeatability. The shortcoming is that it lacks flexibility and can only be tested according to the preset scheme.
  • the human-computer interaction interface involved in the current test methods is the graphical tester interface.
  • the testers mainly use the mouse and the keyboard input to complete the manual test.
  • an extension command or application programming interface, API
  • a specific scripting language such as TCL language
  • scripting language A single scripting language.
  • the variety of scripting languages is varied, but test instruments/meters Can only provide an extended command set for a particular scripting language, which limits the tester's ability to use only this scripting language;
  • Embodiments of the present invention provide a testing method and system for implementing unified testing of manual testing and automated testing, and in different automated programming tests, scripts can be selected in different scripting languages.
  • An embodiment of the present invention provides a testing method, including:
  • the corresponding test program is called to execute the text command, and the execution result is returned.
  • the embodiment of the invention further provides a testing system, including:
  • a communication module configured to receive a text command, and return an execution result of the text command
  • a parsing module configured to parse the text command
  • An execution module is configured to invoke the corresponding test program to execute the text command according to the result of the parsing.
  • the embodiment of the invention further provides a computer readable storage medium, the computer readable storage medium comprising computer program code, when the computer program code is executed by a computer, the computer program code can make The computer performs the steps of any of the test methods.
  • FIG. 1 is a schematic flow chart of an embodiment of a testing method of the present invention
  • FIG. 2 is a schematic structural view of an embodiment of a test system of the present invention. detailed description
  • FIG. 1 is a schematic flow chart of an embodiment of a testing method of the present invention. This embodiment includes the following steps:
  • Step 101 The test instrument/meter analyzes the received text command
  • the above text commands can be directly input by the tester during the manual test, or can be sent by the tester through the running script during the automated test.
  • a combination of the above manual test and automated test can be implemented through a unified Command Line Interface (CLI), that is, a text command for testing is obtained through a command line interface.
  • CLI Command Line Interface
  • the command line interface can obtain the above text command in two ways, one way is to directly obtain the above text command input by the tester for the command line interface; the other way is to obtain the above text command sent by the running script by the command line interface, that is, the test
  • the person first edits the script in a text editor, embeds the above text command into the script, and when the script is run, outputs the embedded text command to the command line interface.
  • Step 102 According to the result of the parsing, the test instrument/meter calls the corresponding test program to execute the text command, and returns the execution result.
  • the above tester's test of the network device that is, the receipt of the text command is realized through a network communication connection, and the network communication port can be established by using a network port to establish a network communication connection with the test program through a remote login (te lcommunica t ion network protocol, Te lnet). You can also use the test instrument / meter or the serial port of the computer to establish a network communication connection with the test program via HyperTerminal (or similar software).
  • the test instrument/meter receives a consistent text command.
  • the network device under test that is, routers, switches, etc.
  • the traff ic s tar t" is completed, and the above text command can be directly input by the tester directly in the terminal emulation software, or the tester can select the script program and execute the script and send it by the running script. 4.
  • the syntax for sending a message to an established network communication connection is "put s 'some content s'", then the script used to control the test instrument/meter to start traffic transmission in the script can be "put s"' traff ics tar t'"; and another
  • the syntax of the script language to send a message to an established network communication connection is "send 'some content s'”, then the script used to control the test instrument/meter to start traffic transmission in the script can be "send ' traff ic s tar t' ,,.
  • the embodiment provides a command line operation interface to the tester through the network communication connection, receives a text command sent by a script input or run by the tester, parses the text command, and then calls a routine corresponding to the text command (test program) Executing the above text command to perform a test operation or a configuration operation, and then feeding back the corresponding operation result to the tester in the form of text information through the above connection.
  • the embodiment of the test method of the present invention calls the corresponding test program to execute the text command to perform the corresponding test, and unifies the two methods of manual test and automatic test, which can simultaneously satisfy the test.
  • the need for manual testing and automated testing reduces the cost of testing for testers. It is only necessary to learn a set of commands, and in any automated test, you can choose any scripting language to write scripts, thus reducing the R&D test system. The cost and shortened the development cycle.
  • command line interface because of the unified command line interface, developers of test instruments/meters only need to provide a way of operation, which greatly reduces the development workload and increases the response speed to the new requirements of testers.
  • the development of the command line interface is less than the development of the graphical user interface (GUI), and the command line interface is smaller than the graphical user interface that provides the same operational effects, in the same technical conditions.
  • the command line interface can be more stable, efficient, and efficient.
  • the test system of this embodiment is an apparatus for implementing the above-described test method of the present invention, and this embodiment includes a communication module 10, a parsing module 20, and an execution module 30 which are sequentially connected.
  • the communication module 10 is configured to receive a text command, and return an execution result of the text command;
  • the parsing module 20 is configured to parse the text command;
  • the executing module 30 is configured to invoke a corresponding test program according to the parsed result.
  • the text command is configured to receive a text command, and return an execution result of the text command;
  • the parsing module 20 is configured to parse the text command; and the executing module 30 is configured to invoke a corresponding test program according to the parsed result.
  • the text command is configured to invoke a corresponding test program according to the parsed result.
  • the execution module 30 includes: a storage unit 31 for storing a test program; an interface unit 32 for connecting to a test port of the device under test; and an execution unit 33 for obtaining, according to the result of the parsing, the communication module 10 in the embodiment
  • the text command can be directly input by the tester during the manual test, or it can be run by the tester during the automated test.
  • the script was sent.
  • the embodiment can implement the combination of the manual test and the automated test by using a unified command line interface, that is, obtaining a text command for testing by using a command line interface.
  • the command line interface can obtain the above text command in two ways, one way is to directly obtain the above text command input by the tester for the command line interface; the other way is to obtain the above text command sent by the running script by the command line interface, that is, the test
  • the person first edits the script in a text editor, embeds the above text command into the script, and when the script is run, outputs the embedded text command to the command line interface.
  • the execution module 30 calls the test program through a network communication connection, and can use a network port to establish a network communication connection with the test program through a remote login method; or can use a test instrument/meter or a serial port of the computer to pass
  • the HyperTerminal (or similar software) establishes a network communication connection with the test program.
  • the analysis module of the test system of the present invention parses the text command received by the communication module, and the execution module invokes the corresponding test program to execute the text command according to the result of the parsing to perform the corresponding test, and unified the manual test and the automatic test. Ways.
  • the tester can simultaneously meet the requirements of the manual test and the automated test, and can reduce the test cost of the tester, that is, only need to learn a single command, and can select any different script programming language in the automatic test. Scripts, which reduce the cost of developing test systems and shorten the development cycle.
  • the embodiment of the present invention calls the corresponding test program to execute the text command to perform the corresponding test, and unifies the two methods of manual test and automatic test, and can select different in the automatic test.
  • the scripting language writes scripts, which reduces the cost of developing a test system.
  • the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

La présente invention concerne un procédé de test, qui passe par les étapes suivantes : - analyse de l'ordre textuel reçu, - appel du programme de test correspondant pour exécuter l'ordre textuel en fonction du résultat de l'analyse et renvoi du résultat de l'exécution. Un système de test comprend : un module de communication destiné à recevoir un ordre textuel et à en renvoyer le résultat d'exécution ; un module d'analyse permettant d'analyser l'ordre textuel ; ainsi qu'un module d'exécution pour appeler le programme de test correspondant pour exécuter l'ordre textuel en fonction du résultat de l'analyse.
PCT/CN2008/072148 2007-11-14 2008-08-26 Système et procédé de test WO2009062419A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710187211.0 2007-11-14
CN2007101872110A CN101150463B (zh) 2007-11-14 2007-11-14 测试方法和系统

Publications (1)

Publication Number Publication Date
WO2009062419A1 true WO2009062419A1 (fr) 2009-05-22

Family

ID=39250815

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072148 WO2009062419A1 (fr) 2007-11-14 2008-08-26 Système et procédé de test

Country Status (2)

Country Link
CN (1) CN101150463B (fr)
WO (1) WO2009062419A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188028A (zh) * 2018-09-03 2019-08-30 西安奥卡云数据科技有限公司 一种计算机系统的测试方法
CN110765012A (zh) * 2019-10-15 2020-02-07 北京信安世纪科技股份有限公司 一种自动化测试脚本生成及解析执行方法

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150463B (zh) * 2007-11-14 2010-08-25 华为技术有限公司 测试方法和系统
CN102111484A (zh) * 2009-12-29 2011-06-29 比亚迪股份有限公司 一种移动终端、执行扩展命令的方法及功能扩展模块
CN103544100B (zh) * 2012-07-12 2018-02-16 腾讯科技(深圳)有限公司 便携数据处理设备应用程序的测试方法、系统和客户端
CN104239015B (zh) * 2013-06-18 2018-09-28 上海斐讯数据通信技术有限公司 脚本语言的扩展方法
CN103684581B (zh) * 2013-12-20 2019-07-05 上海斐讯数据通信技术有限公司 一种光网络单元vlan功能的自动化测试方法
CN104734920A (zh) * 2015-03-27 2015-06-24 盛科网络(苏州)有限公司 对openflow交换机进行稳定性测试的方法及装置
CN106452937A (zh) * 2015-08-17 2017-02-22 中兴通讯股份有限公司 路由器自动化测试方法和测试装置
CN105071998A (zh) * 2015-09-11 2015-11-18 百度在线网络技术(北京)有限公司 基于流量控制的测试系统及方法
CN105117343A (zh) * 2015-09-18 2015-12-02 厦门美图移动科技有限公司 一种基于文本执行自动化测试的方法及装置
CN106227670A (zh) * 2016-08-05 2016-12-14 成都广达新网科技股份有限公司 一种epon设备命令自动检测方法
CN106789260B (zh) * 2016-12-26 2020-11-20 中国银联股份有限公司 用于对网络设备进行高可用演练的系统及方法
CN107608857A (zh) * 2017-09-25 2018-01-19 郑州云海信息技术有限公司 一种san存储健康状态检查方法、装置及可读存储介质
CN109756385A (zh) * 2017-11-07 2019-05-14 中兴通讯股份有限公司 一种测试方法、装置、计算机设备及可读存储介质
CN108494628B (zh) * 2018-03-29 2021-08-27 苏州盛科通信股份有限公司 辅助交换机验证符合ieee802.3标准规范的自动化测试工具
CN109029645A (zh) * 2018-08-15 2018-12-18 金卡智能集团股份有限公司 一种燃气表功能测试方法及装置
CN110377507B (zh) * 2019-06-28 2022-07-08 苏州浪潮智能科技有限公司 一种基于脚本传递参数命令的方法及系统
CN110166328B (zh) * 2019-07-05 2021-07-16 南方电网科学研究院有限责任公司 一种需求响应设备的测试装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862508A (zh) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 一种个人数字助理手机功能的自动测试系统及其方法
CN101056228A (zh) * 2007-06-22 2007-10-17 中兴通讯股份有限公司 数据设备告警的测试方法及系统
CN101150463A (zh) * 2007-11-14 2008-03-26 华为技术有限公司 测试方法和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6047389A (en) * 1997-09-30 2000-04-04 Alcatel Usa Sourcing, L.P. Testing of a software application residing on a hardware component
US6405149B1 (en) * 1999-06-23 2002-06-11 Louis K. Tsai System and method for testing a telecommunication system
CN100349134C (zh) * 2005-03-28 2007-11-14 华为技术有限公司 一种驱动软件的测试方法及测试系统
CN1968308A (zh) * 2006-04-13 2007-05-23 华为技术有限公司 一种仿真测试设备及方法
CN101212362B (zh) * 2006-12-26 2010-05-19 中兴通讯股份有限公司 一种融合多类型测试工具的自动化测试装置及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862508A (zh) * 2005-05-13 2006-11-15 中兴通讯股份有限公司 一种个人数字助理手机功能的自动测试系统及其方法
CN101056228A (zh) * 2007-06-22 2007-10-17 中兴通讯股份有限公司 数据设备告警的测试方法及系统
CN101150463A (zh) * 2007-11-14 2008-03-26 华为技术有限公司 测试方法和系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188028A (zh) * 2018-09-03 2019-08-30 西安奥卡云数据科技有限公司 一种计算机系统的测试方法
CN110188028B (zh) * 2018-09-03 2023-09-12 西安奥卡云数据科技有限公司 一种计算机系统的测试方法
CN110765012A (zh) * 2019-10-15 2020-02-07 北京信安世纪科技股份有限公司 一种自动化测试脚本生成及解析执行方法

Also Published As

Publication number Publication date
CN101150463A (zh) 2008-03-26
CN101150463B (zh) 2010-08-25

Similar Documents

Publication Publication Date Title
WO2009062419A1 (fr) Système et procédé de test
CN107704392B (zh) 一种测试用例的处理方法及服务器
CN103812726B (zh) 一种数据通信设备的自动化测试方法及装置
US5600579A (en) Hardware simulation and design verification system and method
CN110083541B (zh) 游戏测试方法、装置、计算机存储介质和电子设备
CN104375938B (zh) 安卓应用程序的动态行为监测方法及系统
CN104834595A (zh) 一种可视化自动测试方法及系统
CN110013672B (zh) 用于机器运行的游戏的自动化测试的方法、设备、装置以及计算机可读存储介质
US9372770B2 (en) Hardware platform validation
CN201392526Y (zh) 用于移动应用程序的机上测试系统
CN101137170A (zh) 一种嵌入设备的软件自动测试工具及方法
CN113572726B (zh) 一种多模态网络控制-数据平面一致性校验方法及装置
CN109977012B (zh) 系统的联调测试方法、装置、设备及计算机可读存储介质
CN108628739A (zh) 一种对Lua脚本进行调试的方法、客户端、服务器及调试器
US20220237111A1 (en) Distributed immutable data object testing
CN108595331A (zh) 异步接口的测试方法、介质、装置和计算设备
CN113672502A (zh) 程序多系统测试方法及其相应的装置、设备、介质
KR100883392B1 (ko) 다양한 시리얼 버스 타입의 시뮬레이션, 에뮬레이션 및테스트를 위한 범용 방법
KR100585577B1 (ko) 테스트 시나리오 파일 자동 작성에 의거한 무선통신단말기테스트 방법
JP5022382B2 (ja) シェル・セッション
CN100369422C (zh) 一种媒体服务器的综合测试仪及综合测试方法
Hartmann et al. UML-based test generation and execution
CN103064789A (zh) 一种软件控制的自动化测试方法
CN113760235B (zh) 一种ble开发调试系统及方法
CN115130406B (zh) 基于uvm的fc协议验证平台装置及方法

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

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

Country of ref document: EP

Kind code of ref document: A1