Introducing a Test Suite Similarity Metric for Event Sequence-Based Test Cases

Written by Penelope A. Brooks and Atif M. Memon Presented by Il-Chul Yoon

Motivation



2 < 2>


ƒ GUI is as much as 60% of overall code ƒ GUIs are one type of Event-Driven Systems (EDS) ƒ State-based ƒ Large number of event combinations

3

T ti Testing Radio R di Button B tt GUI ƒ Consider context ƒ Square: ƒ Circle:

4

Existing g Metrics ƒ Test Suite Reduction

5

Previous Work in Similarity y ƒ In Natural Language Processing ƒ Determining g document similarity y [Aslam [ and Frost]]

ƒ In Software Engineering ƒ Detecting test case redundancy [Li et al.] ƒ Detecting code changes [Antonio et al., Karniket al.]

6

Contributions ƒ The first context-based similarity metric for sequenceq based test cases ƒ Application of the metric to reduced test suites ƒ Empirical E i i l study t d d demonstrating t ti effectiveness ff ti

7

Measuring Test Suite Similarity ƒ Parameterized metric CONTeSSi(n) (CONtext Test Suite Similarity) ƒ CONTeSSi is a method of counting how many times each event appears in the test suite ƒ The parameter, n, allows the metric to consider event sequences rather than single events ƒ Value of CONTeSSi is between 0 and 1

8

Computing Similarity ƒ Count frequency of each event

9

Computing Similarity (2) ƒ Count frequency of event pairs (n (n=1) 1)

10

Computing Similarity (3) ƒ Count frequency of event triples (n (n=2) 2)

11

Computing CONTeSSi

where A and B are the vectors corresponding to the two test suites, A · B is the dot product of the two vectors, i.e., , where j is the number of terms in the vector, and

12

Computing Similarity (4) ƒ Compute CONTeSSi(n)

13

Empirical Study Goal: Evaluate a metric that measures the similarity of two test suites and to determine the quality of this metric

14

Research Questions ƒ RQ1:Is CONTeSSi(n) a better indicator of similarity for larger g values of n? ƒ Metrics: CONTeSSi(n) value for n = 0..5

ƒ RQ2:Does CONTeSSi(n) agree with existing metrics in determining the similarity between suites, specifically relating to fault detection effectiveness? ƒ Metrics: Line coverage, Method coverage, Pair coverage

15

Subject Applications ƒ CrosswordSage C dS 035 0.3.5 ƒ Creates and solves professional-looking crossword puzzles ƒ All-time All time activity: 76.87% 76 87%

ƒ FreeMind 0.8.0 ƒ Popular p mind-mapping pp g application pp ƒ All-time activity: 99.96%

ƒ GanttProject 2.0.1 ƒP Project j t scheduling h d li application li ti ƒ All-time activity: 99.85%

ƒ JMSN 0.9.9b2 ƒ Clone of MSN messenger ƒ All-time activity: 93.81%

16

Test Suites ƒ Original suite ƒ Model Model-generated generated test cases (Torig i ) ƒ 58k for FreeMind ƒ Reduced suites ƒ Line coverage (Tline) ƒ Method coverage (Tmethod) ƒ Event pair coverage (Tpair)

Procedure

17

Fault Matrices Parameterized Test Case Generator

Test Case Executor

T_orig

Coverage Matrices

TS3 TS2 TS1

Method-Reduced

TS3 TS2 TS1

TS3 TS2 TS1

Line-Reduced

Event Pair-Reduced

Compute CONTeSSi(n)

18

Results RQ1: CONTeSSi Metric

Results – RQ1: Code Coverage

19

20

RQ1 Faults -- CrosswordSage g

21

RQ1 Faults -- FreeMind

22

RQ1 Faults -- GanttProject j

23

RQ1 Faults -- JMSN

24

Comparing p g Test Suites

ƒ where T is the suite being compared to the original suite ƒ m is i one off th the existing i ti metrics t i on which hi h suites it are compared, d such as line, branch or event pair coverage, ƒ em(suite) is a function returning the set of elements for metric m covered by suite, and ƒ N is a function returning the number in the set given

25

Results – RQ2: Computing f(Torig, T, m)

26

Conclusions ƒCONTeSSi(n) is the first context-based similarity metric ƒCONTeSSi(n) is a better indicator of similarity between suites than existing, code-based metrics

27

Future Research ƒExtend empirical study to include more subject applications ƒFurther investigate the relationship b t between ttestt case length l th and d choosing h i a value of n

28

Questions?

Introducing a Test Suite Similarity Metric for Event ...

test suite. ▫ The parameter, n, allows the metric to consider event sequences ... Test Case. Executor. Matrices. Coverage. Matrices. TS3. TS2. TS1. TS3. TS2. TS1.

363KB Sizes 0 Downloads 204 Views

Recommend Documents

Logic Puzzles: A New Test-Suite for Compositional ...
The quality of this matching would be im- proved if it also relied on knowledge of structural semantics. This knowledge would be used to help capture and represent more precisely the meaning and information that are actually conveyed by the texts and

Scalable all-pairs similarity search in metric ... - Research at Google
Aug 14, 2013 - call each Wi = 〈Ii, Oi〉 a workset of D. Ii, Oi are the inner set and outer set of Wi ..... Figure 4 illustrates the inefficiency by showing a 4-way partitioned dataset ...... In WSDM Conference, pages 203–212, 2013. [2] D. A. Arb

Schedule and sta a Hangouts Meet event - G Suite
With G Suite, you can easily schedule a video-conference meeting in Google Calendar and invite anyone, even if they don't have a Google account. Create a Hangouts Meet event from your mobile device the same way. When you create a meeting in Calendar

ParTes. Test Suite for Parsing Evaluation - Semantic Scholar
Resumen: En este artıculo se presenta ParTes, el primer test suite en espa˜nol y catalán para la evaluación cualitativa de analizadores sintácticos automáticos. Este recurso es una jerarquıa de los fenómenos representativos acerca de la estru

Test Case Prioritization and Test Suite Optimization ...
Abstract: Software Testing is an important activity in Software Development Life Cycle. (SDLC). Software testing is a process of executing a program or application with the intent of finding the bugs. Testing is expensive and prone to mistakes and ov

A Review Study of NIST Statistical Test Suite
Development of an indigenous Computer Package .... A concept of degrees of freedom is introduced in these tests in the form of blocks or classes. For such ...

Design and Implementation of a Combinatorial Test Suite Strategy ...
Design and Implementation of a Combinatorial Test Su ... rategy Using Adaptive Cuckoo Search Algorithm_ p.pdf. Design and Implementation of a ...

COLLADA Conformance Test Suite and ... - Khronos Group
best solution for developers with regard to COLLADA. The WG agreed ... COLLADA Conformance Test Suite (CTS) should support OpenCOLLADA plugins for. MAX and ... MAYA plugins based on Feeling software FCOLLADA API. The core ...

Test Suite Compiler (TSC)
Mar 27, 2016 - redirects stdout to a string buffer. After. sizeOfBuffer bytes printed, the test is aborted with a FATAL failure. int _printFault(const char* limit,.

COLLADA Conformance Test Suite and ... - Khronos Group
Other company and product names may be trademarks of the respective ... MAYA plugins based on Feeling software FCOLLADA API. .... Budget: $15K (US) ... framework, and of any test development you have previously performed in this.

A Recipe for Concept Similarity
knowledge. It seems to be a simple fact that Kristin and I disagree over when .... vocal critic of notions of concept similarity, it seems only fair to give his theory an.

A novel method for measuring semantic similarity for XML schema ...
Enterprises integration has recently gained great attentions, as never before. The paper deals with an essential activity enabling seam- less enterprises integration, that is, a similarity-based schema matching. To this end, we present a supervised a

Box for G Suite
popular business applications like Adobe Acrobat, Salesforce, IBM, Slack and more. “Box and G Suite together allow us to leverage Docs for working files, like.

Learning a Distance Metric for Object Identification ...
http://citeseer.ist.psu.edu/mostcited.html ... Using D × D matrix A = {ai,j}, we ... ai,j(x m i − xn i. )(x m j − xn j. ) ⎞. ⎠. 1. 2 . The necessary and sufficient condition for ...

A Note on Convex Relaxations for Non-Metric ...
13 Aug 2012 - i,j ı{rij. 2 + sij ≤ θij} − ∑ i,j ı{pi − pj − rij = 0} −. ∑ i,j ı{sij − qi = 0}... . (3). We will derive the primal of this expression using the following variant of Fenchel duality, min x f(Ax) = max y:AT y=0. −fâ

A No-reference Perceptual Quality Metric for ... - Research at Google
free energy of this inference process, i.e., the discrepancy between .... such that their encoding bit rates are all higher than 100 ..... approach in the DCT domain.

A vector similarity measure for linguistic approximation: Interval type-2 ...
interval type-2 fuzzy sets (IT2 FSs), the CWW engine's output can also be an IT2 FS, eA, which .... similarity, inclusion, proximity, and the degree of matching.''.

GEODE A similarity model for representing soil spatial ...
soil surveys are a major source of soil spatial information. There are ...... paid to sample the small draws when the 64 sites were distributed over the study area.

Skeleton Test Suite: Testing Results Software Version ... - GitHub
Dec 1, 2012 - DROID 6.1 was used alongside Signature File v65. As of 25 October 2012, ... fmt/436: Digital Negative Format (DNG) 1.0. Gave explicit .... forward adding manually created skeleton-files for each new DROID signature created.