±¾ ¿Æ ±Ï Òµ Éè ¼Æ
Ìâ Ä¿£º³ÌÐò½á¹¹Óë²âÊÔÓÃÀý¸öÊýµÄ¹ØÏµ
³ÌÐò½á¹¹Óë²âÊÔÓÃÀý¸öÊýµÄ¹ØÏµ
ÕªÒª£º²âÊÔÓÃÀýµÄ²úÉúÊÇÈí¼þ²âÊÔ¹ý³ÌÖеÄÖØÒª»·½Ú£¬²âÊÔÓÃÀýµÄÊýÁ¿Ö±½Ó¹ØÏµµ½²âÊԵŤ×÷Á¿¡£²âÊÔÓÃÀýµÄÊýÁ¿Ñ¡ÔñÊǽøÐвâÊÔµÄÒ»¸öÄÑÌ⣬²âÊÔÓÃÀý¸öÊýºÏÊÊÓë·ñÖ±½Ó¹ØÏµµ½²úÆ·ÖÊÁ¿¡£Ëæ»ú²âÊÔ¿ÉÒÔ±ÜÃâ³öÏÖ²âÊÔÆ«¼û£¬Ëæ»ú²âÊÔÓÃÀý¸öÊýµÄÉè¼Æ¶ÔÈí¼þ²âÊÔÖÁ¹ØÖØÒª¡£±¾ÎÄÕë¶Ô¾¿¾¹¶àÉÙËæ»ú²âÊÔÓÃÀý²ÅÊdzä·ÖµÄÕâÒ»ÎÊÌâ½øÐÐ̽ÌÖ£¬ÔÚÑо¿ºÍ·ÖÎö¹úÄÚÍâ´óÁ¿ÓйØÎÄÏ××ÊÁϵĻù´¡ÉÏ£¬Éè¼Æ³ÌÐò²å×®£¬Ñо¿²»Í¬³ÌÐò½á¹¹ÔÚ»ù·¾¶²âÊÔÖжԲâÊÔÓÃÀý¸öÊýµÄÓ°Ïì¡£½«ÊµÑéµÃµ½µÄÊý¾ÝÄâºÏµÃ³ö¹«Ê½£¬×îºóÓÃÅж¨Èý½ÇÐεijÌÐò½øÐÐÑéÖ¤¡£ ¹Ø¼ü´Ê£º³ÌÐò½á¹¹£»»ù·¾£»Ëæ»ú²âÊÔ£»Êý¾ÝÄâºÏ
The relationship between program structure and the
number of test case
Abstract: The generation of test cases is the important link in the process of software testing , testing is directly related to the number of test cases. The number of test cases selection is a problem for the test, the test case number right or not directly related to the quality of the product. Random testing can avoid bias, random number of test case design is very important to software testing. Based on how many random test cases are fully discusses this problem, in the research and analysis, on the basis of a lot of relevant literature at home and abroad, the design program pile, the different program structure in the base path tests the impact on the number of test cases. The data obtained by the experiment data fitting formula, validated with determination of the triangle program finally. Key word: Program Structure£»Base Path £»Random Testing; Data Fitting
Ŀ¼
³ÌÐò½á¹¹Óë²âÊÔÓÃÀý¸öÊýµÄ¹ØÏµ ............................. 1 Ò»¡¢Ð÷ÂÛ ................................................ 1
1.1ÂÛÎÄÑо¿±³¾°ºÍÒâÒå ........................................... 1 1.2Èí¼þ²âÊÔµÄÄ¿µÄ ............................................... 1 1.3ÂÛÎÄÑо¿ÄÚÈÝ ................................................. 1
¶þ¡¢Èí¼þ²âÊÔ¼¼Êõ ........................................ 2
2.1Èí¼þ²âÊÔ¸ÅÊö ................................................. 2 2.2Èí¼þ²âÊÔ¼¼ÊõµÄ·ÖÀà ........................................... 2 2.3Èí¼þ²âÊԵĽ׶λ®·Ö ........................................... 2 2.4 Èí¼þ²âÊÔ´æÔÚµÄÎÊÌâ ........................................... 3 2.5²âÊÔÓÃÀýµÄÑ¡Ôñ ............................................... 3 2.6²âÊÔÓÃÀý×Ô¶¯»¯Éú³É¼¼Êõ ....................................... 4 2.7½á¹¹ÐÔ²âÊÔ ................................................... 4 2.7.1·¾¶²âÊÔ ................................................... 4 2.7.1.1»ù·¾¶²âÊÔ ............................................... 5 2.8Ëæ»ú²âÊÔ ..................................................... 5
Èý¡¢³ÌÐò½á¹¹ ............................................ 6
3.1·½·¨¼òÊö ..................................................... 6 3.2ϵͳ½á¹¹Í¼ ................................................... 6 3.3³ÌÐò½á¹¹Í¼ ................................................... 7
ËÄ¡¢³ÌÐò½á¹¹Óë²âÊÔÓÃÀý¸öÊýµÄÑо¿ ........................ 10
4.1³ÌÐò¿ØÖÆÁ÷ͼ ................................................ 10 4.2³ÌÐòËã·¨µÄʵÏÖ .............................................. 14 4.3³ÌÐò²å×® .................................................... 19
Ïà¹ØÍÆ¼ö£º