WO2016107145A1 - Procédé de mise en œuvre de test de boîte blanche et terminal de commande de test - Google Patents

Procédé de mise en œuvre de test de boîte blanche et terminal de commande de test Download PDF

Info

Publication number
WO2016107145A1
WO2016107145A1 PCT/CN2015/084507 CN2015084507W WO2016107145A1 WO 2016107145 A1 WO2016107145 A1 WO 2016107145A1 CN 2015084507 W CN2015084507 W CN 2015084507W WO 2016107145 A1 WO2016107145 A1 WO 2016107145A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
code
unit
control terminal
test control
Prior art date
Application number
PCT/CN2015/084507
Other languages
English (en)
Chinese (zh)
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 WO2016107145A1 publication Critical patent/WO2016107145A1/fr

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

  • This article covers test techniques, especially one that implements white box testing and test consoles.
  • the white box test system includes a test control end and a test end.
  • the test control terminal is mainly used to receive the test command group and forward it to the tested terminal, and receive the analysis result from the tested terminal and analyze it.
  • a test command group consisting of one or more test commands is used to describe the test case, that is, a test environment for describing a test demand point; and the analysis result at least includes information indicating whether the test is successful.
  • a large number of test demand points constitute the test requirements, that is, the test objectives of the white box test.
  • the measured end includes a test unit, an operating unit, and a measured unit that needs to be tested.
  • the test unit is configured to convert the received test command group from the test control end into test code;
  • the running unit is configured to compile the test code into executable information, test the tested unit according to the executable information, and return the test result to the test.
  • Control terminal Taking the test control terminal as an example, in the art, the test control end before compilation is called the code of the test control end, and the compiled test control end is called the test control end, which is referred to as the test control end.
  • the test console is written in a programming language that supports just-in-time compilation (for example, a scripting language), while the tested end uses a software development language that makes it easier to implement the unit under test, such as a programming language that is easy to implement complex functions (for example, an object-oriented language). write.
  • a programming language that is easy to implement complex functions for example, an object-oriented language.
  • the code of the test unit in the tested end is modified according to the newly added test case, and the code of the tested end is modified and compiled to obtain a runable test end. Due to the long compile time of the tested end, this reduces the test efficiency and even delays the product. The release resulted in significant economic losses.
  • the embodiment of the invention provides a method for implementing white box testing and a test control end, which can reduce the compile time and thereby improve the testing efficiency.
  • An embodiment of the present invention provides a method for implementing white box testing, including:
  • the testing comprises:
  • the test control end converts the received test command group into a test code and sends it to the tested terminal;
  • the tested terminal compiles the received test code into executable information, tests the tested unit in the tested terminal according to the executable information, and returns the test result to the test control terminal;
  • the test control end analyzes the returned test results to obtain an analysis result.
  • the compiling of the runable test console is compiled as a just-in-time.
  • test control terminal is implemented by using a programming language that supports real-time compilation.
  • the programming language supporting instant compilation is a scripting language.
  • the embodiment of the invention further provides a test control end for implementing a white box test, comprising a receiving unit and a testing unit, wherein
  • the receiving unit is configured to receive a test command group
  • the test unit is configured to convert the test command group from the receiving unit into a test code and send it to the tested terminal.
  • the testing unit is further configured to receive, by the tested terminal, the test unit in the tested terminal according to the test code to obtain a test result, and analyze the returned test result to obtain an analysis result.
  • test control terminal is implemented by using a programming language that supports real-time compilation.
  • the programming language supporting instant compilation is a scripting language.
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • the technical solution of the embodiment of the present invention includes: when the new test case needs to be supported, modifying the code of the test unit set in the test control end according to the newly added test case, and compiling the code of the test control end to obtain a runable test control end; Enter the test command group to the test console for testing.
  • the technical solution of the embodiment of the present invention by setting the test unit in the test control end, realizes the code for modifying and compiling the test control end when the new test case needs to be supported, thereby avoiding modifying and compiling the code of the tested end, thereby effectively reducing the compilation. Time, which improves test efficiency.
  • FIG. 1 is a flowchart of a method for implementing white box testing according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a test control end for implementing a white box test according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for implementing white box testing according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • Step 101 When a new test case needs to be supported, the code of the test unit set in the test control end is modified according to the newly added test case;
  • the emphasis here is on modifying the code of the test unit in the test console without having to modify the code of the terminal under test.
  • Step 102 Compile the code of the test control terminal to obtain a test control terminal that can be run;
  • the code that tests the console is written in a scripting language that supports just-in-time compilation.
  • the code of the test console is written in the Python language, and the code of the compile test console in this step includes: compiling the code of the test console in real time.
  • the code for the test console can also be written in the Ruby language.
  • this step is performed by using a compiling tool corresponding to the programming language of the test console.
  • Step 103 Input a test command group to the test control terminal for testing.
  • the test command group can be included in a file, which is usually called a test script.
  • the test command group can also be composed of one or more test commands that are input in human-computer interaction.
  • the test control terminal is started by saving the location information of the test script as a parameter, thereby implementing the step of inputting the test command group to the test control terminal.
  • the input test command group is received in a human-computer interaction manner, thereby implementing the input test command group to the test control terminal.
  • the method further includes:
  • the test control terminal converts the received test command group into a test code and sends it to the tested terminal; the tested terminal compiles the received test code into executable information, and tests the tested unit in the tested terminal according to the executable information. And return the test result to the test control end; the test control end analyzes the returned test result to obtain the analysis result.
  • the executable information is typically a binary bit stream executable by a computing device, such as a computer.
  • test command group corresponds to the test code one by one. Since the test command group is used to describe the test case, the test code is also used to describe the test case.
  • the test control terminal adopts the Python language, and the measured terminal is written in the Java language as an example.
  • the test command is information that can be recognized by the Python language
  • the test code is information that can be recognized by the Java language.
  • the receiving the test command group in the above step includes: receiving the test script And extract the test command group.
  • the test control end includes a receiving unit 201 and a testing unit 202, where
  • the receiving unit 201 is configured to receive a test command group
  • the test unit 202 is configured to convert the test command group from the receiving unit into a test code and send it to the tested terminal.
  • test unit 202 on the test control side, implements the code that needs to support the new test case, modifies and compiles the test control end, avoids modifying and compiling the code of the tested end, effectively reducing the compile time, thereby improving the test. effectiveness.
  • the test console is programmed with a programming language that supports just-in-time compilation, such as a scripting language.
  • the testing unit 202 is further configured to receive the test result of the tested unit in the tested end according to the test code returned by the tested terminal, and analyze the returned test result to obtain the analysis result.
  • test control end and the measured end can be set on the same computing device, such as a server, or on different computing devices.
  • the technical solution provided by the embodiment of the present invention by setting the test unit in the test control end, realizes the code for modifying and compiling the test control end when the need for supporting the new test case is needed, thereby avoiding modifying and compiling the code of the tested end, effectively reducing Test time, which improves test efficiency.

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

L'invention concerne un procédé de mise en œuvre de test de boîte blanche et un terminal de commande de test. Le procédé comprend les étapes consistant à : lorsqu'un cas de test nouvellement ajouté doit être pris en charge, modifier, selon le cas de test nouvellement ajouté, un code d'une unité de test disposée dans un terminal de commande de test, et compiler le code du terminal de commande de test pour que le terminal de commande de test puisse être exécuté; et entrer un groupe d'instructions de test pour le terminal de commande de test pour mettre en œuvre un test.
PCT/CN2015/084507 2014-12-31 2015-07-20 Procédé de mise en œuvre de test de boîte blanche et terminal de commande de test WO2016107145A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410854039.XA CN105808421A (zh) 2014-12-31 2014-12-31 一种实现白盒测试的方法和测试控制端
CN201410854039.X 2014-12-31

Publications (1)

Publication Number Publication Date
WO2016107145A1 true WO2016107145A1 (fr) 2016-07-07

Family

ID=56284104

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084507 WO2016107145A1 (fr) 2014-12-31 2015-07-20 Procédé de mise en œuvre de test de boîte blanche et terminal de commande de test

Country Status (2)

Country Link
CN (1) CN105808421A (fr)
WO (1) WO2016107145A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114288666A (zh) * 2021-12-29 2022-04-08 完美世界(北京)软件科技发展有限公司 游戏元素检测方法、装置、设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471249A (zh) * 2002-07-23 2004-01-28 华为技术有限公司 一种使用脚本补丁的白盒测试系统及其测试方法
CN101196817A (zh) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 测试用例生成方法及系统
CN101212759A (zh) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 一种手机软件集成测试方法
CN101401075A (zh) * 2006-11-17 2009-04-01 深圳市领测科技有限公司 程序调测系统中的映射方法和程序调测系统
US20130308457A1 (en) * 2012-04-28 2013-11-21 International Business Machines Corporation System detection method and apparatus and flow control method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1318976C (zh) * 2004-06-16 2007-05-30 华为技术有限公司 软件测试方法及其系统
CN100363906C (zh) * 2006-02-28 2008-01-23 华为技术有限公司 一种软件单元的测试方法
CN100511135C (zh) * 2007-08-14 2009-07-08 中兴通讯股份有限公司 一种单元测试系统和方法
US9727436B2 (en) * 2008-01-02 2017-08-08 International Business Machines Corporation Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471249A (zh) * 2002-07-23 2004-01-28 华为技术有限公司 一种使用脚本补丁的白盒测试系统及其测试方法
CN101401075A (zh) * 2006-11-17 2009-04-01 深圳市领测科技有限公司 程序调测系统中的映射方法和程序调测系统
CN101212759A (zh) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 一种手机软件集成测试方法
CN101196817A (zh) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 测试用例生成方法及系统
US20130308457A1 (en) * 2012-04-28 2013-11-21 International Business Machines Corporation System detection method and apparatus and flow control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114288666A (zh) * 2021-12-29 2022-04-08 完美世界(北京)软件科技发展有限公司 游戏元素检测方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN105808421A (zh) 2016-07-27

Similar Documents

Publication Publication Date Title
JP6307140B2 (ja) セーフティクリティカルソフトウェア自動要求ベーステストケース生成のためのシステムおよび方法
WO2016177124A1 (fr) Procédé et dispositif de mise en œuvre d'un test d'intégration continu
US10613964B2 (en) Conditional debugging of server-side production code
US10042744B2 (en) Adopting an existing automation script to a new framework
WO2016004657A1 (fr) Dispositif de génération automatique de scénarios de test pour logiciel embarqué, et son procédé
US9477579B2 (en) Embedded software debug system with partial hardware acceleration
CN107577477B (zh) 一种基于dtb文件的多平台软件版本自适应方法及系统
US20100162217A1 (en) Debugging System Using Static Analysis
WO2016095570A1 (fr) Procédé et appareil de débogage pour système intégré, et support d'informations
CN104505126A (zh) 一种动态存储器测试系统及方法
US10241888B2 (en) Method to verify correctness of computer system software and hardware components and corresponding test environment
CN106155903A (zh) 用于系统设计验证的装置和方法
CN104102581A (zh) 一种实现单元测试的方法及装置
KR102141749B1 (ko) App 프로그램 실행 방법 및 장치
CN106919374B (zh) 一种脚本生成方法和装置
US9235391B2 (en) Optimization of software symbol tables
WO2016107145A1 (fr) Procédé de mise en œuvre de test de boîte blanche et terminal de commande de test
CN104063329A (zh) 64位立即数处理方法及装置
JP2014063415A (ja) テストケース自動生成装置及びテストケース自動生成プログラム
CN110209565A (zh) 一种元数据模型调试方法及其装置
CN104714806B (zh) 基于人机界面系统的脚本处理方法及装置
CN108132799B (zh) 过程间静态程序分析信息提取方法、装置及设备
CN113254027B (zh) 一种半导体设备控制程序转换方法、系统、设备和存储介质
CN108121658B (zh) 基于windows端测试工具测试linux端被测软件的方法
US20140013312A1 (en) Source level debugging apparatus and method for a reconfigurable processor

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

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

Country of ref document: EP

Kind code of ref document: A1