WO2014180396A1 - Procédé et dispositif de traitement de taux de couverture de code - Google Patents

Procédé et dispositif de traitement de taux de couverture de code Download PDF

Info

Publication number
WO2014180396A1
WO2014180396A1 PCT/CN2014/078560 CN2014078560W WO2014180396A1 WO 2014180396 A1 WO2014180396 A1 WO 2014180396A1 CN 2014078560 W CN2014078560 W CN 2014078560W WO 2014180396 A1 WO2014180396 A1 WO 2014180396A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
code coverage
software
unit
testing
Prior art date
Application number
PCT/CN2014/078560
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 WO2014180396A1 publication Critical patent/WO2014180396A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis

Definitions

  • FIG. 7 is a structural block diagram of a code coverage automatic test system according to a preferred embodiment of the present invention.
  • a flowchart of a code coverage automated test method in accordance with an embodiment of the present invention FIG. 9 is a flow diagram of a unit automated test module 76 test in accordance with a preferred embodiment of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION FIG. 1 is a flowchart of a code coverage processing method according to an embodiment of the present invention. As shown in FIG.
  • Step S102 software The unit scans.
  • the software unit can be a test object for code coverage. Usually, it refers to the software code of one functional module; Step S104, testing the code coverage of the scanned one or more software units; Step S106, generating code coverage test results of one or more software units .
  • the software unit is scanned, and the scanned one or more software units are tested.
  • the software unit is manually determined, and the test parameters are set by artificially. The unit is tested, resulting in a lot of human intervention, complicated process, and low test efficiency.
  • the above scanning is used to automatically test the scanned software unit, and the code coverage is completely tested.
  • Test cases, test tools, and test environments corresponding to test cases and test tools are tested; in test environments, test tools and test cases are used to test the code coverage of one or more software units that are scanned. It should be noted that the above processes are completed by automatic triggering, automatic selection, and pre-setting of automation. Among them, no human intervention is required, not only for one software unit test, but also for multiple software at the same time. Unit testing. In order to more clearly understand the test details involved in testing the software unit's code coverage, one or more of the test coverage may be generated after testing the code coverage of the scanned one or more software units. The code coverage of the software units is the result of one or more software unit tests at the time of testing.
  • the code coverage test result file generated by the unit automation test module 76 may include the code file name of the test, the total number of lines of code, and the number of lines of code tested.
  • 8 is a flowchart of a code coverage automatic test method according to an embodiment of the present invention. As shown in FIG.
  • Step S814 the next unit is scanned by the task scanning module 72; in step S816, all unit scans are completed.
  • FIG. 9 is a flowchart of a unit automation test module 76 according to a preferred embodiment of the present invention. As shown in FIG. 9, the process includes the following steps: Step S902, the unit test module 76 uploads the specified test unit through the FTP protocol. Go to the specified result server; Step S904, the unit automation test module 76 remotely launches the test platform through the TELNET protocol; Step S906, the unit auto-test module 76 starts the wake-up procedure, and sends the wake-up test message to the unit test tool; Step S908, unit The test tool receives the wake-up test message and starts the test.

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

La présente invention concerne un procédé et un dispositif pour le traitement de taux de couverture de code, ledit procédé comprenant les étapes suivantes : balayer une unité ou des unités logicielles; tester le taux de couverture de code de la ou des unités logicielles balayées; générer des résultats de tests de taux de couverture de code pour la ou les unités logicielles. La présente invention résout les problèmes rencontrés dans les techniques actuelles de test de taux de couverture de code impliquant de multiples interventions humaines, une complexité procédurale, et une inefficacité de test, tout en permettant l'automatisation complète de tels tests, ce qui permet de réduire la complexité procédurale et d'améliorer l'efficacité des tests.
PCT/CN2014/078560 2013-12-06 2014-05-27 Procédé et dispositif de traitement de taux de couverture de code WO2014180396A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310656105.8A CN104699596A (zh) 2013-12-06 2013-12-06 代码覆盖率处理方法及装置
CN201310656105.8 2013-12-06

Publications (1)

Publication Number Publication Date
WO2014180396A1 true WO2014180396A1 (fr) 2014-11-13

Family

ID=51866776

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078560 WO2014180396A1 (fr) 2013-12-06 2014-05-27 Procédé et dispositif de traitement de taux de couverture de code

Country Status (2)

Country Link
CN (1) CN104699596A (fr)
WO (1) WO2014180396A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294182A (zh) * 2016-08-24 2017-01-04 腾讯科技(深圳)有限公司 一种确定众测反馈有效性的方法、测试设备及系统
CN106294129A (zh) * 2016-07-27 2017-01-04 北京小米移动软件有限公司 代码覆盖率测试方法及装置
CN109460357A (zh) * 2018-10-19 2019-03-12 北京新能源汽车股份有限公司 一种代码覆盖率的测试方法、装置和设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104333A (zh) * 2019-12-20 2020-05-05 广州品唯软件有限公司 覆盖率测试方法、测试装置及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744092A (zh) * 2004-09-04 2006-03-08 华为技术有限公司 一种自动调度逻辑仿真与代码覆盖率分析的方法与系统
CN1983209A (zh) * 2005-12-14 2007-06-20 中兴通讯股份有限公司 一种软件单元测试自动化系统及其方法
CN101706751A (zh) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 软件业务功能覆盖率的统计方法及系统
CN103365771A (zh) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 一种代码覆盖率的获得方法和设备
CN103425573A (zh) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 代码测试信息收集方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060236156A1 (en) * 2005-04-15 2006-10-19 Microsoft Corporation Methods and apparatus for handling code coverage data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744092A (zh) * 2004-09-04 2006-03-08 华为技术有限公司 一种自动调度逻辑仿真与代码覆盖率分析的方法与系统
CN1983209A (zh) * 2005-12-14 2007-06-20 中兴通讯股份有限公司 一种软件单元测试自动化系统及其方法
CN101706751A (zh) * 2009-11-23 2010-05-12 中兴通讯股份有限公司 软件业务功能覆盖率的统计方法及系统
CN103365771A (zh) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 一种代码覆盖率的获得方法和设备
CN103425573A (zh) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 代码测试信息收集方法及系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294129A (zh) * 2016-07-27 2017-01-04 北京小米移动软件有限公司 代码覆盖率测试方法及装置
CN106294182A (zh) * 2016-08-24 2017-01-04 腾讯科技(深圳)有限公司 一种确定众测反馈有效性的方法、测试设备及系统
CN106294182B (zh) * 2016-08-24 2021-02-09 腾讯科技(深圳)有限公司 一种确定众测反馈有效性的方法、测试设备及系统
CN109460357A (zh) * 2018-10-19 2019-03-12 北京新能源汽车股份有限公司 一种代码覆盖率的测试方法、装置和设备

Also Published As

Publication number Publication date
CN104699596A (zh) 2015-06-10

Similar Documents

Publication Publication Date Title
CN111159049B (zh) 接口自动化测试方法及系统
CN105389191B (zh) 一种基于局域网的软件升级方法、装置和系统
CN105550051B (zh) 业务请求的异步处理方法及装置
JP2019501551A5 (ja) ケーブル試験デバイスの動作に関するメッセージを管理するためのクラウドベースのシステム及び方法及びコンピューティングデバイス
CN105302722B (zh) Cts自动测试方法及装置
WO2015192608A1 (fr) Procédé de mise à jour d'une application dans un système android, terminal et support de stockage
WO2014180396A1 (fr) Procédé et dispositif de traitement de taux de couverture de code
CN107491321A (zh) 一种用于实现软件自动更新的处理方法及装置
JP2015192349A (ja) 試験装置及び試験方法
CN106533803B (zh) 基于tr069协议的cpe配置方法及装置
CN105100214A (zh) 一种信息同步方法、装置及系统
CN105117344B (zh) 一种基于pb的接口集成测试方法和系统
US9699674B2 (en) Technique for testing wireless network load produced by mobile app-carrying devices
CN115422048A (zh) 链路稳定性测试方法、装置、计算机设备和存储介质
AU2020305669A1 (en) Special effect synchronization method, device, and storage medium
CN106059794A (zh) 一种监控方法和监控装置
WO2015181921A1 (fr) Dispositif d'affichage programmable et logiciel de rendu
CN110445658A (zh) 一种报文处理方法及系统
JP5584017B2 (ja) シーケンス試験装置及びシーケンス試験方法
CN112765038B (zh) 一种分布式集群软件的测试方法、装置、设备及存储介质
CN109960659B (zh) 用于检测应用程序的方法和装置
JP5461646B2 (ja) 遠隔接続過程モニタリング方法及び遠隔接続モニタリングシステム
CN112433938A (zh) 移动端应用测试的方法和装置
CN110347409A (zh) 自动控制方法、客户端和服务器
WO2017197829A1 (fr) Procédé et appareil de gestion d'informations d'essai, et système et dispositif d'exécution de jeu d'essai

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

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

Country of ref document: EP

Kind code of ref document: A1