r3 - 28 Sep 2008 - 14:51:48 - PanitaMeananeatraYou are here: SETEC Wiki >  Knowledge Web  > SoftwareEngineeringCategory > SoftwareTesting > CH16_Glass-BoxTestCaseDesignTechniques


White - Box Testing


      เรียกอีกอย่างหนึ่งว่า Glass-Box, Structural Testing เป็นการ Test ภายในระบบ หรือ function โดยกำหนด Test Case ที่จะเข้าไปทดสอบในระบบ ผู้ที่จะทำการ Test จะต้องมีความรู้ความสามารถในการ เขียนโปรแกรมเป็นอย่างดี ที่จะระบุ Test Case เข้าไปใน ทุกๆ Line , Statement , Path ของโปรแกรม เปรีัยบเสมือนกับ วงจรไฟฟ้า ที่จะต้องวัด ค่าแรงดัน หรือ กระแส ทุกๆ โนด (Node) ที่อยู่ในวงจร

      White-Box Testing สามารถ Test ได้ในระดับ Unit , Integration และ System แต่โดยปกติ จะินิยมทดสอบในระดับ Unit โดยปกติ ในขณะที่กำลัง ทดสอบในระดับ Unit White-Box Testing สามารถ Test ข้ามจาก Unit หนึ่งไปยังอีก Unit หนึ่งได้ โดยที่ 2 Unit นี้ มีความเกี่ยวข้องกันในระดับ Integration หรือ สามารถ Test ข้าม จากระบบหนึ่ง ไปยังอีกระบบหนึ่งก็ได้

ข้อดีของ White Box Testing

1. เราสามารถปรับปรุงคุณภาพของ source code ให้ทำงานได้มีประสิทธิภาพมากขึ้นได้ จากการ Test ในแต่ละครั้ง เพราะเป็นการ Testing ในระบบภายใน

2. นอกจากเราจะดูข้อผิดพลาดจาก การใส่ input และดูที่ output แล้ว ยังสามารถหาข้อผิดพลาดภายใน การทำงานของระบบนั้นได้

ข้อเสีย White Box Testing

1. เสียค่าใช้จ่ายสูงในการ จ้าง Tester เพราะ ว่า การ Test แบบนี้ จำเป็นต้องมี Tester ที่มีความทักษะเกี่ยวกับ coding สูง

เทคนิคต่างๆของ White Box Testing

1. Statement Testing

2. Branch/Decision Testing

3. Condition Testing

4. Data Flow Testing

5. Linear Code Sequence and Jump(LCSAJ) Testing

6. Basis Path Testing

References

1. http://en.wikipedia.org/wiki/White_box_testing

2. http://www.buzzle.com/editorials/4-10-2005-68350.asp

3. Software Testing Techniques for Improving Software Quality , White Box Testing


Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by SETEC Wiki
Copyright ©2012 by National Electronics and Computer Technology Center, NECTEC.
Ideas, requests, problems regarding SETEC Wiki? Send feedback