การศึกษาเทคนิคการสร้างกรณีทดสอบอัตโนมัติโดยใช้แผนภาพกิจกรรม

Main Article Content

วลัยภรณ์ ศรเกลี้ยง
ดร.ฐิมาพร เพชรแก้ว

บทคัดย่อ

- การสร้างกรณีทดสอบจากแผนภาพกิจกรรมมีหลายวิธีและมีความยากในการตัดสินใจเลือกใช้ให้เหมาะสมกับลักษณะของโปรแกรมที่แตกต่างกัน ผู้วิจัยจึงทำการศึกษาเปรียบเทียบการสร้างกรณีทดสอบอัตโนมัติจากแผนภาพกิจกรรมดังนี้ วิธี Round-Robin วิธี Condition-Classification Tree วิธี Activity Tree วิธี Intermediate Testable Model วิธี Activity Dependency Table and Activity Dependency Graph วิธี Test Path Reduction วิธี Activity Convert Grammar และวิธี Activity Flow Graph ผลการศึกษามีดังนี้ (1) การครอบคลุมเส้นทางทั้งหมดที่เป็นไปได้ พบว่าวิธีการส่วนใหญ่ผ่านเกณฑ์ข้อนี้ แต่วิธี Round-Robin จะสร้างกรณีทดสอบได้เกินกว่าเส้นทางทั้งหมดที่เป็นไปได้เป็นจำนวนมาก (2) การครอบคลุมเส้นทางพื้นฐาน พบว่าทุกวิธีสามารถสร้างเส้นทางการทดสอบได้ครอบคลุมเส้นทางพื้นฐานและ (3) จากแผนภาพกิจกรรมจำลองความซับซ้อนที่ผู้วิจัยสร้างขึ้นเมื่อวิเคราะห์ความคลาดเคลื่อนของจำนวนกรณีทดสอบที่สร้างได้เทียบกับเส้นทางที่เป็นไปได้ทั้งหมด พบว่าวิธี Activity Convert Grammar สร้างเส้นทางทดสอบมากเกินความจำเป็นโดยมีค่าความคลาดเคลื่อน 44.23% วิธี Test Path Reduction สร้างเส้นทางทดสอบได้น้อยกว่าที่จำเป็นต้องใช้โดยมีค่าความคลาดเคลื่อน -65.38% และวิธี Activity Flow Graph สร้างเส้นทางทดสอบได้ใกล้เคียงที่สุดมีค่าความคลาดเคลื่อนต่ำที่สุด คือ 1.92%

Article Details

รูปแบบการอ้างอิง
[1]
ศรเกลี้ยง ว. และ เพชรแก้ว ด., “การศึกษาเทคนิคการสร้างกรณีทดสอบอัตโนมัติโดยใช้แผนภาพกิจกรรม”, JIST, ปี 6, ฉบับที่ 2, น. 17–27, ธ.ค. 2016.
ประเภทบทความ
บทความวิจัย Soft Computing:

เอกสารอ้างอิง

1. F, Xin, S. Jian, L., LinLan and L. QiJun. “Test Case Generation from UML Subactivity and Activity Diagram”, International Symposium on Electronic Commerce and Security, IEEE Computer Society, Vol. 2, Oct. 2009. pp. 244-248

2. S. Kansomkeat, P. Thiket and J. Offutt, “Generating test cases from UML activity diagrams using the Condition-Classification Tree Method”, In Proceedings of 2nd International Conference on Software Technology and Engineering (ICSTE), Vol. 1, October. 2010. pp. 62-66

3. R. K. Swain, V. Panthi, D. P. Mohapatra, P. K. Behera, “Prioritizing test scenarios from UML communication and activity diagrams”, Innovations in Systems and Software Engineering, Vol. 10, Issue 3, September 2014, pp. 165–180

4. A. Nayak and D. Samanta, “Synthesis of Test Scenarios using UML Activity Diagrams”, Software and Systems Modeling (SoSyM). Vol.10 Issue.1, February. 2011. pp. 63-89

5. C. Chouhan, V. Shrivastava, P.S. Sodhi, “Test Case Generation based on Activity Diagram for Mobile Application”, International Journal of Computer Applications, Vol. 57, No. 23, November. 2012.

6. P. N. Boghdady, N. L. Badr, M. Hashem and M. F. Tolba, “An Enhanced Test Case Generation Technique Based on Activity Diagrams”, In Proceedings of the Seventh International Conference on Computer Engineering and Systems (ICCES). November-December 2011. pp. 289-294

7. K. Pechtanun and S. Kansomkeat, “Generation Test Cases from UML Activity Diagram Based on AC Grammar”, International Conference on Computer and Information Science (ICCIS), Vol. 2, September 2012. pp. 895-899

8. R. K. Swain, V. Panthi, P. K. Behera, “Generation of Test Case using Activity Diagram”, International Journal of Computer Science and Informatics, Vol. 3, Issue. 2, November 2013. pp. 1-10

9. P. N. Boghdady, N. L. Badr, M. Hashem and M. F.Tolba, “A Proposed Test Case Generation Technique Based on Activity Diagrams”, International Journal of Engineering & Technology IJET/IJENS, Vol. 11, No. 03, June 2011. pp. 37-57

10. P. N. Boghdady, N. L. Badr, M. Hashem and M. F.Tolba, “An Enhanced Technique for Generating Hybrid Coverage Test Cases Using Activity Diagrams”, The 8th International Conference on INFOrmatics and Systems (INFO2012), May. 2012. pp. 20-28