SlideServe
Menu
Préférences
© SlideServe · v2026

Testing Basics

ciara-rojas avatar
20 diapositives · 354 Views · Nov 05, 2014

Testing Basics. Detection probability. L5asg – detprob for subdomain tests. What is the probability of detection with one randomly chosen test case per path? What is the probability of detection with an equal number of randomly chosen test cases?. Control Flow Graph. Operational profile

Testing Basics - slide 1
01 / 20Testing Basics
1 / 17

Télécharger la présentation

Testing Basics
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Testing Basics Detection probability

  2. L5asg – detprob for subdomain tests • What is the probability of detection with one randomly chosen test case per path? • What is the probability of detection with an equal number of randomly chosen test cases?

  3. Control Flow Graph Operational profile 3,3,3 abcdegi equi 3,3,4 abcegi isos 3,3,5 abcegi isos 3,3,6 abcefgi not 3,4,3 abcegi isos 3,4,4 abcegi isos 3,4,5 acegi scal 3,4,6 acegi scal All inputs are equally likely

  4. What are the failure probability for each color (separately)? cin >> a >> b >> c ; type = “scalene”; if (a == b || a == c && b == c) type= “isosceles”; if (a == b || a == c) type = “equilateral”; if (a >= b+c || b >= a+c || c> a+b) type=“not a triangle”; if (a <= 0 || b <= 0 || c <= 0) type=“bad input”; cout<< type; BlueGreen Red

  5. TTYP – smaller subdomains • What might be better smaller subdomains? • Would MCC (multiple condition coverage) be better subdomains

  6. TTYP2 – C0 and C1 coverage • How do we deal with C0 and C1 coverage since they are not subdomain testing methodologies?

  7. Evaluating Testing Methods by Delivered Reliability Frankl, Hamlet, Littlewood, Strigini IEEE TOSE Aug98

  8. Testing • Debug • Operational

  9. Fault Detection Probability • Probability of a testing methodology finding a fault (if it existed)

  10. Partition vs Random

  11. Tests, Specifications, meets • Test or test case • single value of program input • functional program - one input produces an output • Specification - S • set of input-output pairs • Program meets specification • iff for all x in spec, actual output matches spec output

  12. Q: probability distribution • Q - probability distribution over input domain • Q:D -> [0,1] and S Q(t) = 1

  13. Q : Failure Probability • Q - failure probability for a randomly drawn point is S Q*d • Where d(t) = 1 if f and 0 if s • and f-phi(failure) and s-sigma(success) • How does this relate to our notation?

  14. Reliability • R(N) = (1- Q)N

  15. Assumptions of initial model

  16. Terms • q • d

  17. 3.2 SFR, w/o subdomains • d = StinF V(t) • P(Q=0) = 1-(1-d)T • P(Q=q) = (1-d)T • E(Q) = 0* P(Q=0) +q* P(Q=q) • = q(1-d)T

  18. Thurs, Sep 6 • Read next section of article