国产欧美精品一区二区,中文字幕专区在线亚洲,国产精品美女网站在线观看,艾秋果冻传媒2021精品,在线免费一区二区,久久久久久青草大香综合精品,日韩美aaa特级毛片,欧美成人精品午夜免费影视

Java自動(dòng)化基本路徑測試研究
DOI:
CSTR:
作者:
作者單位:

后勤科學(xué)與技術(shù)研究所,后勤科學(xué)與技術(shù)研究所,后勤科學(xué)與技術(shù)研究所,后勤科學(xué)與技術(shù)研究所,后勤科學(xué)與技術(shù)研究所

作者簡(jiǎn)介:

通訊作者:

中圖分類(lèi)號:

基金項目:


Research on Automated Basis Path Testing of Java
Author:
Affiliation:

Institute of Logistic Science and Technology,Institute of Logistic Science and Technology,Institute of Logistic Science and Technology,Institute of Logistic Science and Technology,Institute of Logistic Science and Technology

Fund Project:

  • 摘要
  • |
  • 圖/表
  • |
  • 訪(fǎng)問(wèn)統計
  • |
  • 參考文獻
  • |
  • 相似文獻
  • |
  • 引證文獻
  • |
  • 資源附件
  • |
  • 文章評論
    摘要:

    針對Java單元測試自動(dòng)化程度和測試效率較低的問(wèn)題,對基于Java程序的基本路徑測試方法進(jìn)行研究,提出了基于Java代碼的基本路徑生成方法和程序插樁方法,給出了插樁節點(diǎn)和控制流圖節點(diǎn)的定義。首先,通過(guò)對Java源代碼進(jìn)行分析,構建程序的控制流圖,進(jìn)而對控制流圖進(jìn)行遍歷生成基本路徑集合;然后,對被測程序進(jìn)行插樁,以獲取程序的執行路徑,插樁過(guò)程中保持節點(diǎn)和基本路徑中的節點(diǎn)一致,使得插樁后的被測程序執行時(shí)得到的路徑能夠和基本路徑集合進(jìn)行自動(dòng)化比對;最后,通過(guò)以測試數據為輸入執行被測程序,對執行路徑和基本路徑進(jìn)行比較,判斷測試數據集對基本路徑的覆蓋度。通過(guò)實(shí)驗,驗證了所提出方法的有效性。

    Abstract:

    The level of Java unit testing automation is low, and so is the testing efficiency. The basis path testing method based on Java program is studied. The basic path generation method based on Java source code and program instrumentation method is provided. The definition of instrumentation node and control flow graph node is given. Firstly, the control flow graph of program under test is built based on the analysis of Java source code, and then the control flow graph is traversed to generate the basis path set. Secondly, the program under test is instrumented to obtain the program execution path. The instrumentation node is consistent with the node of basis path, so the path obtained during execution can be compared with the basic path set automatically. Lastly, run the program under test with the test data as input, and compare the execution path with basis path to compute the basis path coverage of test data set. The effectiveness of the proposed method is verified by experiments.

    參考文獻
    相似文獻
    引證文獻
引用本文

馮俊池,趙穎,連堯,尹黨輝,安豐亮. Java自動(dòng)化基本路徑測試研究計算機測量與控制[J].,2018,26(4):70-73.

復制
分享
文章指標
  • 點(diǎn)擊次數:
  • 下載次數:
  • HTML閱讀次數:
  • 引用次數:
歷史
  • 收稿日期:2017-10-18
  • 最后修改日期:2017-11-09
  • 錄用日期:2017-11-10
  • 在線(xiàn)發(fā)布日期: 2018-04-23
  • 出版日期:
文章二維碼
沁阳市| 临夏县| 冀州市| 三穗县| 额济纳旗| 宜宾市| 浦城县| 富顺县| 简阳市| 峨边| 织金县| 沂南县| 克山县| 临夏县| 溧阳市| 高陵县| 安远县| 白朗县| 卢湾区| 通化市| 霍邱县| 武宁县| 北宁市| 肥东县| 秀山| 山阳县| 会昌县| 拜城县| 金湖县| 新乡市| 郁南县| 洛南县| 介休市| 拜泉县| 澳门| 牟定县| 五常市| 古交市| 广饶县| 马龙县| 布尔津县|