• 
    

    
    

      99热精品在线国产_美女午夜性视频免费_国产精品国产高清国产av_av欧美777_自拍偷自拍亚洲精品老妇_亚洲熟女精品中文字幕_www日本黄色视频网_国产精品野战在线观看 ?

      Improved metrics for evaluating fault detection efficiency of test suite

      2014-09-06 10:49:44WangZiyuanChenLinWangPengZhangXueling
      關(guān)鍵詞:測(cè)試用例軟件測(cè)試度量

      Wang Ziyuan Chen Lin Wang Peng Zhang Xueling

      (1 School of Computer, Nanjing University of Posts and Telecommunications, Nanjing 210006, China)(2 State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210093, China)(3School of Computer Science and Engineering, Southeast University, Nanjing 210096, China)

      ?

      Improved metrics for evaluating fault detection efficiency of test suite

      Wang Ziyuan1,2Chen Lin2Wang Peng3Zhang Xueling1

      (1School of Computer, Nanjing University of Posts and Telecommunications, Nanjing 210006, China)(2State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing 210093, China)(3School of Computer Science and Engineering, Southeast University, Nanjing 210096, China)

      By analyzing the average percent of faults detected (APFD) metric and its variant versions, which are widely utilized as metrics to evaluate the fault detection efficiency of the test suite, this paper points out some limitations of the APFD series metrics. These limitations include APFD series metrics having inaccurate physical explanations and being unable to precisely describe the process of fault detection. To avoid the limitations of existing metrics, this paper proposes two improved metrics for evaluating fault detection efficiency of a test suite, including relative-APFD and relative-APFDC. The proposed metrics refer to both the speed of fault detection and the constraint of the testing source. The case study shows that the two proposed metrics can provide much more precise descriptions of the fault detection process and the fault detection efficiency of the test suite.

      software testing; test case prioritization; fault detection efficiency; metric

      The test case prioritization technique schedules test cases in an initial test suite in order, forming a prioritized test suite that increases its efficiency. Giving an existing initial test suiteTinit, the test case prioritization technique aims to discover the best prioritized test suiteσ∈Psuch that

      (?σ)(σ′∈P)(σ=σ′)[f(σ)>f(σ′)]

      wherePis the set of all the possible permutations ofTinit, andfis an objective function[1].

      An objective function called the average percent of faults detected (APFD) is usually utilized as the metric to evaluate the faults detection efficiency of the prioritized test suiteσ∈P[1]. There are also some variants of the APFD metric, including NAPFD[2], APFDC[3]etc. In this paper, we jointly call these metrics the APFD series.

      For these problems, we propose an improved metric relative-APFD, which is related to a given testing resource constraint that determines how many test cases can be run, to replace the existing APFD and NAPFD. Furthermore, we also discuss the scenarios where test costs and fault severities are taken into consideration, and propose relative-APFDCto replace existing APFDC. The case study shows that all the proposed metrics can provide much more precise illustrations of the fault detection efficiency of a prioritized test suite.

      1 APFD Series Metrics

      Letσ,Φ, and TF(φ,σ) be the prioritized test suite under evaluation, the set of faults contained in the software, and the index of the first test case inσthat exposes faultφ∈Φ, respectively, and then the APFD ofσis defined as[1]

      wherepis the rate of faults detected byσ, i.e.,

      In recent years, people have proposed other metrics by extending APFD for special applications, including metrics for parallel processes[8], and metrics for evaluating the ratio of achieved efficiency[9]etc.

      2 Limitations of APFD Series Metrics

      2.1 Constraint on the sizes of test suites

      We take test cases and faults in Tab.1 as examples to show some incorrect results when using APFD series metrics in scenarios, where the sizes of prioritized test suites are varied.

      Tab.1 Faults detected by test cases

      1) For the situation where all faults are detected, we construct two prioritized test suitesσ1: T3-T5-T2-T4-T1andσ2: T3-T5-T6. Note that bothσ1andσ2can detect all faults. Then we obtain the APFD values (see Fig.1).

      APFD(σ1) =APFDC(σ1)=0.6

      APFD(σ2)APFDC(σ2)=0.5

      However, it is incorrect to say thatσ1is more efficient thanσ2. After run 1 (or 2) test case(s), bothσ1andσ2detect 3 (or 5) faults; after run 3 test cases,σ2detects all the 8 faults whileσ1detects only 5. This means thatσ2detects faults more rapidly thanσ1.

      2) For the situation where there are non-detected faults, we construct two prioritized test suitesσ3: T3-T2-T5andσ4: T3-T5. Note thatσ3andσ4detect the same faults. Then, we obtain NAPFD values.

      NAPFD(σ3)=0.354 2

      NAPFD(σ4)=0.343 6

      It is also incorrect to say thatσ3is more efficient thanσ4. After running 1 test case, bothσ3andσ4detect 3 faults; after running 2 test cases,σ4detects 5 faults whileσ3detects only 3. It means thatσ4detects faults more rapidly thanσ3.

      (a)

      (b)

      This limitation, which has been often overlooked previously, sometimes may lead to incorrect and confused experimental results in the applications of APFD series metrics[2,5].

      2.2 Process of fault detection

      Another limitation is that the APFD series metrics cannot precisely illustrate the process of fault detection in the real world. They assume that during the running of one test case, the number of the newly detected faults (for APFD and NAPFD) or the total severities of the newly detected faults (for APFDC) grow linearly with consumed time. Factually, however, if a test case is still running, it cannot detect any faults since we cannot check whether it has passed or failed.

      3 Improved Metrics

      3.1 Relative-APFD

      Formally, letσ,Φ, TF(φ,σ) be the prioritized test suite under evaluation, the set of faults contained in the software and the position of the first test case inσthat exposes faultφ, respectively. We specifically set TF(φ,σ)=0 for non-detected faults. For a given testing resource constraintm, the relative-APFD ofσis defined as

      where

      In addition,p(m) is the ratio of the number of faults detected by the firstmtest cases inσto the number of faults inΦ; i.e.,

      3.2 Relative-APFDC

      By considering the test costs, the given testing resource constraint should be scaled by a positive real numbermC. Then we can propose the metric relative-APFDCby extending relative-APFD.

      where

      andp(mC) is the ratio of the total severities of faults detected byσwithin the testing resource constraint to the total severities of all the faults inΦ; i.e.,

      4 Case Study

      Considering the prioritized test suitesσ1: T3-T5-T2-T4-T1andσ2: T3-T5-T6, their relative=APFD values for the testing resource constraintm=1, 2, 3, 4, and 5 are shown in Fig.2 as the area under the step functions:

      ? RAPFD(σ1, 1)=RAPFD(σ2, 1)=0;

      ? RAPFD(σ1, 2)=RAPFD(σ2, 2)=3/16;

      ? RAPFD(σ1, 3)=RAPFD(σ2, 3)=1/3;

      ? RAPFD(σ1, 4)=13/32 < RAPFD(σ2, 4)=1/2;

      ? RAPFD(σ1, 5)=1/2 < RAPFD(σ2, 5)=3/5.

      (a)

      (b)

      The overall results show that, if the testing resource constraint is less than or equal to 3 (3 or less test cases run),σ1andσ2have the same efficiency; and if the constraint is greater than 3 (more than 3 test cases run),σ2is more efficient thanσ1.

      Considering the other two prioritized test suitesσ3: T3-T2-T5andσ4: T3-T5, their relative-APFD values for testing the resource constraintm=1, 2, 3 are as follows:

      ? RAPFD(σ3, 1)=RAPFD(σ4, 1)=0;

      ? RAPFD(σ3, 2)=RAPFD(σ4, 2)=3/10;

      ? RAPFD(σ3, 3)=6/15 < RAPFD(σ4, 3)=8/15.

      The overall results show that, if the testing resource constraint is less than or equal to 2 (2 or less test cases run),σ3andσ4have the same efficiency; if the constraint is greater than 2 (more than 2 test cases run),σ4is more efficient thanσ3.

      The above two cases show that, relative-APFD avoids incorrect results obtained by existing APFD and NAPFD. The relative-APFDChas the same advantage, which is omitted here.

      5 Conclusion

      We make a brief review of widely used existing APFD series metrics including APFD, NAPFD and APFDC, and discuss their limitations. To avoid these, two improved metrics relative-APFD and relative-APFDCare proposed in this paper. These proposed metrics can illustrate the process of faults detection more precisely and practically, and provide more correct results to evaluate and compare the efficiency of prioritized test suites. In the future works, some metrics for a parallel testing process are required, since the cloud computing techniques have been widely applied to software testing.

      [1]Rothermel G, Untch R H, Chu C Y, et al. Prioritizing test cases for regression testing [J].IEEETransactionsonSoftwareEngineering, 2001, 27(10): 929-948.

      [2]Qu X, Cohen M B, Woolf K M. Combinatorial interaction regression testing: a study of test case generation and prioritization [C]//ProceedingsofIEEEInternationalConferenceonSoftwareMaintenance. Paris, France, 2007: 255-264.

      [3]Elbaum S, Malishevsky A G, Rothermel G. Incorporating varying test costs and fault severities into test case prioritization [C]//ProceedingsoftheInternationalConferenceonSoftwareEngineering. Toronto, Canada, 2001: 329-338.

      [4]Chen X, Gu Q, Zhang X, et al. Building prioritized pairwise interaction test suites with ant colony [C]//Proceedingsofthe9thInternationalConferenceonQualitySoftware. Jeju, Korea, 2009: 347-352.

      [5]Walcott K R, Soffa M L, Kapfhammer G M, et al. Time-aware test suite prioritization [C]//Proceedingsof23rdInternationalSymposiumonSoftwareTestingandAnalysis. Portland, Maine, USA, 2006:1-11.

      [6]Harrold M J, Gupta R, Soffa M L. A methodology for controlling the size of a test suite [J].ACMTransactionsonSoftwareEngineeringandMethodology, 1993, 2(3): 270-285.

      [7]Weiβleder S. Towards impact analysis of test goal prioritization on the efficient execution of automatically generated test suites based on state machines [C]//Proceedingsofthe11thInternationalConferenceOnQualitySoftware. Madrid, Spain, 2011: 150-155.

      [8]Qu B, Xu B, Nie C, et al. A new metrics for test case prioritization in parallel scenario [J].JournalofSoutheastUniversity:NaturalScienceEdition, 2009, 39(6): 1104-1108. (in Chinese)

      [9]Zhang X, Qu B. An improved metric for test case prioritization [C]//ProceedingsofWebInformationSystemsandApplicationsConference. Chongqing, China, 2011:125-130.

      改進(jìn)的測(cè)試用例錯(cuò)誤檢測(cè)效率度量方法

      王子元1,2陳 林2汪 鵬3仉雪玲1

      (1南京郵電大學(xué)計(jì)算機(jī)學(xué)院, 南京 210006)(2南京大學(xué)軟件新技術(shù)國(guó)家重點(diǎn)實(shí)驗(yàn)室, 南京 210093)(3東南大學(xué)計(jì)算機(jī)科學(xué)與工程學(xué)院, 南京 210096)

      分析了在測(cè)試用例優(yōu)先級(jí)問題中被廣泛用于度量測(cè)試用例集錯(cuò)誤檢測(cè)效率的APFD度量標(biāo)準(zhǔn)及其變種,指出APFD系列度量標(biāo)準(zhǔn)存在物理意義模糊、對(duì)錯(cuò)誤檢測(cè)過程描述不清晰等缺陷.針對(duì)這些缺陷對(duì)已有度量標(biāo)準(zhǔn)進(jìn)行改進(jìn),提出2種新的測(cè)試用例集錯(cuò)誤檢測(cè)效率度量方法relative-APFD和relative-APFDC.新的度量方法在評(píng)價(jià)測(cè)試用例集效率時(shí),綜合考慮了錯(cuò)誤檢測(cè)速度和測(cè)試資源約束問題.實(shí)例分析表明,新方法可以更為清晰地描述測(cè)試用例集錯(cuò)誤檢測(cè)過程,并更為準(zhǔn)確地反映不同測(cè)試用例集的錯(cuò)誤檢測(cè)效率.

      軟件測(cè)試; 測(cè)試用例優(yōu)先級(jí); 錯(cuò)誤檢測(cè)效率; 度量方法

      TP311

      s:The National Natural Science Foundation of China (No.61300054), the Natural Science Foundation of Jiangsu Province (No.BK2011190, BK20130879), the Natural Science Foundation of Higher Education Institutions of Jiangsu Province (No.13KJB520018), the Science Foundation of Nanjing University of Posts & Telecommunications (No.NY212023).

      :Wang Ziyuan, Chen Lin, Wang Peng, et al. Improved metrics for evaluating fault detection efficiency of test suite[J].Journal of Southeast University (English Edition),2014,30(3):285-288.

      10.3969/j.issn.1003-7985.2014.03.005

      10.3969/j.issn.1003-7985.2014.03.005

      Received 2013-12-28.

      Biography:Wang Ziyuan (1982—), male, graduate, associate professor, wangziyuan@njupt.edu.cn.

      猜你喜歡
      測(cè)試用例軟件測(cè)試度量
      有趣的度量
      模糊度量空間的強(qiáng)嵌入
      基于SmartUnit的安全通信系統(tǒng)單元測(cè)試用例自動(dòng)生成
      基于OBE的軟件測(cè)試課程教學(xué)改革探索
      迷向表示分為6個(gè)不可約直和的旗流形上不變愛因斯坦度量
      EXCEL和VBA實(shí)現(xiàn)軟件測(cè)試記錄管理
      電子制作(2018年16期)2018-09-26 03:27:18
      基于混合遺傳算法的回歸測(cè)試用例集最小化研究
      關(guān)于軟件測(cè)試技術(shù)應(yīng)用與發(fā)展趨勢(shì)研究
      軟件測(cè)試工程化模型及應(yīng)用研究
      地質(zhì)異常的奇異性度量與隱伏源致礦異常識(shí)別
      通渭县| 玉林市| 哈尔滨市| 丹凤县| 甘孜| 偏关县| 芜湖市| 内江市| 屏南县| 义马市| 封开县| 新晃| 历史| 拜城县| 寻乌县| 福鼎市| 龙陵县| 收藏| 习水县| 遂溪县| 东源县| 孝感市| 宁国市| 鹿泉市| 呈贡县| 隆安县| 屏南县| 边坝县| 平舆县| 徐州市| 尼勒克县| 望谟县| 确山县| 乌海市| 璧山县| 石狮市| 江山市| 靖远县| 济宁市| 元朗区| 鱼台县|