Knowledge

Test case

Source 📝

102:, hypothetical stories are used to help the tester think through a complex problem or system. These scenarios are usually not written down in any detail. They can be as simple as a diagram for a testing environment or they could be a description written in prose. The ideal scenario test is a story that is motivating, credible, complex, and easy to evaluate. They are usually different from test cases in that test cases are single steps while scenarios cover a number of steps of the key. 1142: 1132: 211:
Under special circumstances, there could be a need to run the test, produce results, and then a team of experts would evaluate if the results can be considered as a pass. This happens often on new products' performance number determination. The first test is taken as the base line for subsequent test
70:
In order to fully test that all the requirements of an application are met, there must be at least two test cases for each requirement: one positive test and one negative test. If a requirement has sub-requirements, each sub-requirement must have at least two test cases. Keeping track of the link
94:
For applications or systems without formal requirements, test cases can be written based on the accepted normal operation of programs of a similar class. In some schools of testing, test cases are not written at all but the activities and results are reported after the tests have been run.
207:
Besides a description of the functionality to be tested, and the preparation required to ensure that the test can be conducted, the most time-consuming part in the test case is creating the tests and modifying them when the system changes.
57:
can be built to produce the desired coverage of the software being tested. Formally defined test cases allow the same tests to be run repeatedly against successive versions of the software, allowing for effective and consistent
189:
In a database system, you may also be able to see past test results and who generated the results and the system configuration used to generate those results. These past results would usually be stored in a separate table.
110:
A test case usually contains a single step or a sequence of steps to test the correct behaviour/functionality and features of an application. An expected result or expected outcome is usually given.
53:
objective, such as to exercise a particular program path or to verify compliance with a specific requirement. Test cases underlie testing that is methodical rather than haphazard. A
222:
or clients of the system to ensure the developed system meets the requirements specified or the contract. User acceptance tests are differentiated by the inclusion of
78:
A formal written test case is characterized by a known input and by an expected output, which is worked out before the test is executed. The known input should test a
618: 49:
is a specification of the inputs, execution conditions, testing procedure, and expected results that define a single test to be executed to achieve a particular
75:. Written test cases should include a description of the functionality to be tested, and the preparation required to ensure that the test can be conducted. 1001: 930: 546: 405: 271: 824: 727: 611: 804: 671: 656: 571: 517: 492: 445: 344: 1135: 960: 887: 877: 722: 651: 1011: 1145: 940: 882: 604: 309: 950: 809: 676: 872: 867: 681: 1067: 915: 910: 862: 839: 819: 235: 35: 1166: 1072: 1062: 975: 774: 757: 666: 925: 769: 980: 737: 732: 186:
These steps can be stored in a word processor document, spreadsheet, database or other common repository.
799: 752: 537:
Managing the Testing Process: Practical Tools and Techniques for Managing Hardware and Software Testing
1097: 935: 794: 784: 696: 641: 627: 42: 1117: 1102: 970: 834: 742: 686: 72: 484: 1107: 747: 451: 59: 397: 1021: 779: 567: 542: 513: 488: 441: 425: 401: 340: 336: 267: 1092: 1036: 814: 706: 701: 433: 385: 259: 99: 50: 1112: 965: 945: 829: 691: 215: 31: 477: 1016: 920: 661: 393: 329: 1160: 996: 764: 535: 430:
2014 International Conference on Computational Science and Computational Intelligence
386: 218:, which use a variation of a written test case, are commonly performed by a group of 83: 455: 1031: 1026: 955: 180:
Larger test cases may also contain prerequisite states or steps, and descriptions.
79: 590: 360: 263: 226:
or positive test cases to the almost complete exclusion of negative test cases.
30:
This article is about the term in software engineering. For the legal term, see
1041: 1006: 223: 193: 54: 149:- Conditions that must exist or preparation required before test execution. 437: 789: 288: 219: 138:- The expected outcome and how to determine whether it has been realized. 17: 596: 183:
A written test case should also contain a place for the actual result.
646: 846: 27:
Specification of a software test, its objective and its procedure
1057: 71:
between the requirement and the test is frequently done using a
600: 166:- whether this test case is automated or not and, if so, how. 426:"Equilibrium of Decision-Making Process in Financial Market" 388:
Agile Testing: A Practical Guide for Testers and Agile Teams
258:. Iso/Iec/IEEE 24765:2010(E). 2010-12-01. pp. 1–418. 564:
UAT Defined: A Guide to Practical User Acceptance Testing
483:(2nd ed.). Boston: Thomson Computer Press. p.  310:"Writing Test Rules to Verify Stakeholder Requirements" 1085: 1050: 989: 903: 896: 855: 715: 634: 534: 476: 328: 475:Kaner, Cem; Falk, Jack; Nguyen, Hung Q. (1993). 508:Hambling, Brian; van Goethem, Pauline (2013). 256:Systems and software engineering -- Vocabulary 612: 510:User Acceptance Testing: A Step-by-step Guide 113:Additional information that may be included: 8: 900: 619: 605: 597: 512:. BCS Learning & Development Limited. 566:. Pearson Education. pp. Chapter 2. 810:Software development process/methodology 120:- A unique identifier for the test case. 247: 384:Crispin, Lisa; Gregory, Janet (2009). 82:and the expected output should test a 419: 417: 361:"An Introduction to Scenario Testing" 7: 1131: 825:Software verification and validation 728:Component-based software engineering 25: 805:Software configuration management 672:Search-based software engineering 657:Experimental software engineering 1141: 1140: 1130: 106:Typical written test case format 652:Empirical software engineering 591:Software Test Case Engineering 327:Beizer, Boris (May 22, 1995). 1: 132:- The exact steps to perform. 677:Site reliability engineering 264:10.1109/IEEESTD.2010.5733835 212:and product release cycles. 682:Social software engineering 335:. New York: Wiley. p.  289:"What Is a Good Test Case?" 1183: 820:Software quality assurance 533:Black, Rex (August 2009). 236:Classification Tree Method 126:- The test case objective. 36:Test case (disambiguation) 29: 1126: 479:Testing Computer Software 976:Model-driven engineering 775:Functional specification 758:Software incompatibility 667:Requirements engineering 770:Enterprise architecture 562:Cimperman, Rob (2006). 287:Kaner, Cem (May 2003). 981:Round-trip engineering 738:Backward compatibility 733:Software compatibility 541:. Hoboken, NJ: Wiley. 34:. For other uses, see 800:Software architecture 753:Forward compatibility 438:10.1109/CSCI.2014.104 160:- name of the tester. 55:battery of test cases 1098:Computer engineering 795:Software archaeology 785:Programming paradigm 697:Software maintenance 642:Computer programming 628:Software engineering 432:. pp. 113–121. 43:software engineering 1118:Systems engineering 1103:Information science 883:Service orientation 835:Structured analysis 743:Compatibility layer 687:Software deployment 196:often also contain 124:Description/summary 90:Informal test cases 73:traceability matrix 1108:Project management 873:Object orientation 840:Essential analysis 748:Compatibility mode 424:Liu, Juan (2014). 60:regression testing 1154: 1153: 1081: 1080: 1022:Information model 926:Incremental model 780:Modeling language 548:978-0-470-40415-7 407:978-81-317-3068-3 331:Black Box Testing 273:978-0-7381-6205-8 66:Formal test cases 16:(Redirected from 1174: 1167:Software testing 1144: 1143: 1134: 1133: 1093:Computer science 901: 815:Software quality 707:Systems analysis 702:Software testing 621: 614: 607: 598: 578: 577: 559: 553: 552: 540: 530: 524: 523: 505: 499: 498: 482: 472: 466: 465: 463: 462: 421: 412: 411: 391: 381: 375: 374: 372: 371: 365: 357: 351: 350: 334: 324: 318: 317: 306: 300: 299: 293: 284: 278: 277: 252: 216:Acceptance tests 100:scenario testing 51:software testing 21: 1182: 1181: 1177: 1176: 1175: 1173: 1172: 1171: 1157: 1156: 1155: 1150: 1122: 1113:Risk management 1077: 1046: 985: 966:Waterfall model 936:Prototype model 931:Iterative model 892: 868:Aspect-oriented 851: 830:Software system 711: 692:Software design 630: 625: 593:By Ajay Bhagwat 587: 582: 581: 574: 561: 560: 556: 549: 532: 531: 527: 520: 507: 506: 502: 495: 474: 473: 469: 460: 458: 448: 423: 422: 415: 408: 383: 382: 378: 369: 367: 363: 359: 358: 354: 347: 326: 325: 321: 308: 307: 303: 291: 286: 285: 281: 274: 254: 253: 249: 244: 232: 136:Expected result 108: 92: 68: 39: 32:Test case (law) 28: 23: 22: 15: 12: 11: 5: 1180: 1178: 1170: 1169: 1159: 1158: 1152: 1151: 1149: 1148: 1138: 1127: 1124: 1123: 1121: 1120: 1115: 1110: 1105: 1100: 1095: 1089: 1087: 1086:Related fields 1083: 1082: 1079: 1078: 1076: 1075: 1070: 1065: 1060: 1054: 1052: 1048: 1047: 1045: 1044: 1039: 1034: 1029: 1024: 1019: 1017:Function model 1014: 1009: 1004: 999: 993: 991: 987: 986: 984: 983: 978: 973: 968: 963: 958: 953: 948: 943: 938: 933: 928: 923: 921:Executable UML 918: 913: 907: 905: 898: 894: 893: 891: 890: 885: 880: 875: 870: 865: 859: 857: 853: 852: 850: 849: 844: 843: 842: 832: 827: 822: 817: 812: 807: 802: 797: 792: 787: 782: 777: 772: 767: 762: 761: 760: 755: 750: 745: 740: 730: 725: 719: 717: 713: 712: 710: 709: 704: 699: 694: 689: 684: 679: 674: 669: 664: 662:Formal methods 659: 654: 649: 644: 638: 636: 632: 631: 626: 624: 623: 616: 609: 601: 595: 594: 586: 585:External links 583: 580: 579: 572: 554: 547: 525: 518: 500: 493: 467: 446: 413: 406: 394:Addison-Wesley 376: 352: 345: 319: 301: 279: 272: 246: 245: 243: 240: 239: 238: 231: 228: 205: 204: 201: 178: 177: 172: 167: 161: 155: 150: 147:Pre-requisites 144: 139: 133: 127: 121: 107: 104: 91: 88: 67: 64: 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1179: 1168: 1165: 1164: 1162: 1147: 1139: 1137: 1129: 1128: 1125: 1119: 1116: 1114: 1111: 1109: 1106: 1104: 1101: 1099: 1096: 1094: 1091: 1090: 1088: 1084: 1074: 1071: 1069: 1066: 1064: 1061: 1059: 1056: 1055: 1053: 1049: 1043: 1040: 1038: 1037:Systems model 1035: 1033: 1030: 1028: 1025: 1023: 1020: 1018: 1015: 1013: 1010: 1008: 1005: 1003: 1000: 998: 995: 994: 992: 988: 982: 979: 977: 974: 972: 969: 967: 964: 962: 959: 957: 954: 952: 949: 947: 944: 942: 939: 937: 934: 932: 929: 927: 924: 922: 919: 917: 914: 912: 909: 908: 906: 904:Developmental 902: 899: 895: 889: 886: 884: 881: 879: 876: 874: 871: 869: 866: 864: 861: 860: 858: 854: 848: 845: 841: 838: 837: 836: 833: 831: 828: 826: 823: 821: 818: 816: 813: 811: 808: 806: 803: 801: 798: 796: 793: 791: 788: 786: 783: 781: 778: 776: 773: 771: 768: 766: 765:Data modeling 763: 759: 756: 754: 751: 749: 746: 744: 741: 739: 736: 735: 734: 731: 729: 726: 724: 721: 720: 718: 714: 708: 705: 703: 700: 698: 695: 693: 690: 688: 685: 683: 680: 678: 675: 673: 670: 668: 665: 663: 660: 658: 655: 653: 650: 648: 645: 643: 640: 639: 637: 633: 629: 622: 617: 615: 610: 608: 603: 602: 599: 592: 589: 588: 584: 575: 573:9780132702621 569: 565: 558: 555: 550: 544: 539: 538: 529: 526: 521: 519:9781780171678 515: 511: 504: 501: 496: 494:1-85032-847-1 490: 486: 481: 480: 471: 468: 457: 453: 449: 447:9781605951676 443: 439: 435: 431: 427: 420: 418: 414: 409: 403: 399: 395: 390: 389: 380: 377: 362: 356: 353: 348: 346:9780471120940 342: 338: 333: 332: 323: 320: 315: 311: 305: 302: 297: 290: 283: 280: 275: 269: 265: 261: 257: 251: 248: 241: 237: 234: 233: 229: 227: 225: 221: 217: 213: 209: 203:Configuration 202: 199: 198: 197: 195: 191: 187: 184: 181: 176: 173: 171: 168: 165: 162: 159: 156: 154: 153:Test category 151: 148: 145: 143: 142:Actual result 140: 137: 134: 131: 128: 125: 122: 119: 116: 115: 114: 111: 105: 103: 101: 96: 89: 87: 85: 84:postcondition 81: 76: 74: 65: 63: 61: 56: 52: 48: 44: 37: 33: 19: 1032:Object model 1027:Metamodeling 956:Spiral model 856:Orientations 563: 557: 536: 528: 509: 503: 478: 470: 459:. Retrieved 429: 387: 379: 368:. Retrieved 355: 330: 322: 313: 304: 295: 282: 255: 250: 214: 210: 206: 200:Test summary 192: 188: 185: 182: 179: 174: 169: 163: 157: 152: 146: 141: 135: 129: 123: 118:Test case ID 117: 112: 109: 97: 93: 80:precondition 77: 69: 46: 40: 723:Abstraction 396:. pp.  366:. Cem Kaner 314:StickyMinds 194:Test suites 1042:View model 1007:Data model 461:2019-10-22 370:2009-05-07 242:References 224:happy path 164:Automation 130:Test steps 1051:Languages 296:STAR East 220:end-users 170:Pass/fail 47:test case 1161:Category 1146:Category 1012:ER model 878:Ontology 790:Software 716:Concepts 456:15204091 230:See also 18:Testcase 1136:Commons 961:V-model 175:Remarks 897:Models 647:DevOps 635:Fields 570:  545:  516:  491:  454:  444:  404:  343:  270:  158:Author 1073:SysML 997:SPICE 990:Other 951:Scrum 911:Agile 863:Agile 847:CI/CD 485:123–4 452:S2CID 364:(PDF) 292:(PDF) 1058:IDEF 1002:CMMI 888:SDLC 568:ISBN 543:ISBN 514:ISBN 489:ISBN 442:ISBN 402:ISBN 400:–5. 341:ISBN 298:: 2. 268:ISBN 45:, a 1068:USL 1063:UML 941:RAD 916:EUP 434:doi 398:192 260:doi 98:In 41:In 1163:: 971:XP 946:UP 487:. 450:. 440:. 428:. 416:^ 392:. 339:. 312:. 294:. 266:. 86:. 62:. 620:e 613:t 606:v 576:. 551:. 522:. 497:. 464:. 436:: 410:. 373:. 349:. 337:3 316:. 276:. 262:: 38:. 20:)

Index

Testcase
Test case (law)
Test case (disambiguation)
software engineering
software testing
battery of test cases
regression testing
traceability matrix
precondition
postcondition
scenario testing
Test suites
Acceptance tests
end-users
happy path
Classification Tree Method
doi
10.1109/IEEESTD.2010.5733835
ISBN
978-0-7381-6205-8
"What Is a Good Test Case?"
"Writing Test Rules to Verify Stakeholder Requirements"
Black Box Testing
3
ISBN
9780471120940
"An Introduction to Scenario Testing"
Agile Testing: A Practical Guide for Testers and Agile Teams
Addison-Wesley
192

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.