Please use this identifier to cite or link to this item: https://cuir.car.chula.ac.th/handle/123456789/50320
Title: เครื่องมือสร้างกรณีทดสอบจากจาวาสคริปต์บนเงื่อนไขความครอบคลุมประโยคคำสั่ง
Other Titles: A tool for generating test cases from javascript based on statement coverage criteria
Authors: วิทยา เหลืองหิรัญ
Advisors: ธาราทิพย์ สุวรรณศาสตร์
Other author: จุฬาลงกรณ์มหาวิทยาลัย. คณะวิศวกรรมศาสตร์
Advisor's Email: Taratip.S@Chula.ac.th,Taratip.S@chula.ac.th
Subjects: โปรแกรมคอมพิวเตอร์ -- การทดสอบ
ซอฟต์แวร์ -- การพัฒนา
ดีบัก
จาวาสคริปต์ (ภาษาคอมพิวเตอร์)
Computer programs -- Testing
Computer software -- Development
Debugging in computer science
JavaScript (Computer program language)
Issue Date: 2558
Publisher: จุฬาลงกรณ์มหาวิทยาลัย
Abstract: ในการพัฒนาเว็บแอปพลิเคชันให้ทันสมัย จาวาสคริปต์เป็นภาษาที่มีความสำคัญสูงสุดในการเขียนโปรแกรมสำหรับการพัฒนา และ เฟรมเวิร์คการทดสอบอัตโนมัติมักจะถูกใช้ในการทดสอบเว็บแอปพลิเคชันระดับหน่วย อย่างไรก็ตามผู้พัฒนาใช้เวลาอย่างมากในการสร้างชุดคำสั่งทดสอบด้วยมือ ดังนั้นเครื่องมือสร้างชุดคำสั่งทดสอบอัตโนมัติ สามารถสนับสนุนผู้พัฒนาสร้างชุดคำสั่งอย่างมีประสิทธิภาพ ถึงกระนั้น เครื่องมือสำหรับสร้างชุดคำสั่งทดสอบโดยสร้างค่านำเข้าแบบสุ่มไม่สามารถรับประกันได้ว่าทุกทางเดินของซอร์สโค้ดจะถูกดำเนินการและใช้เวลาอย่างมีนัยในการทดสอบเพื่อให้ได้ความครอบคลุมสูง งานวิจัยนี้นำเสนอเครื่องมือสำหรับการสร้างกรณีทดสอบจากฟังก์ชันจาวาสคริปต์ และ ดำเนินการกรณีทดสอบให้ครอบคลุมประโยคคำสั่ง เครื่องมือจะวิเคราะห์และแทรกโปรแกรมตรวจวัดความครอบคลุมในซอร์สโค้ดจาวาสคริปต์ เพื่อสร้างคอนโทรลโฟลว์กราฟและสร้างกรณีทดสอบ โดยสร้างข้อมูลที่เจาะจงบนทางเดิน และ เวกเตอร์นำเข้าจะทดสอบทางเดิน ประเมินความครอบคลุม ดำเนินการกรณีทดสอบ และรายงานผลการทดสอบ หลังจากผู้วิจัยได้ทดสอบเครื่องมือกับไฟล์จาวาสคริปต์ตัวอย่างจำนวน 5 ไฟล์ เครื่องมือสามารถสร้างกรณีทดสอบ ดำเนินการกรณีทดสอบ และเครื่องมือสามารถทดสอบทุกทางเดินของไฟล์จาวาสคริปต์ตัวอย่างได้
Other Abstract: In modern web application development, JavaScript is the most important programming language for web application implementation and test framework automation is usually applied in unit web application testing. However, developers spend a lot of time to create test script manually. Thus, creating automated test script tool can support creating of test script efficiently. Nonetheless, a tool for generating test script by randomly creating test input cannot guarantee that all paths of the code is executed and it takes significant of time on testing to reach a high code coverage. This paper proposes a tool for generating test cases from JavaScript function and executing test cases to cover all statements coverage criteria. The tool can analyze and instrument JavaScript code to generate a control flow graph and test cases by selecting data based on test paths and input vector to drive the paths, evaluate coverage, execute test cases, as well as display a test report. Finally, we test this tool with five JavaScript example files. The tool can generate test cases, execute the test cases, and it can test all paths in the JavaScript example files.
Description: วิทยานิพนธ์ (วท.ม.)--จุฬาลงกรณ์มหาวิทยาลัย, 2558
Degree Name: วิทยาศาสตรมหาบัณฑิต
Degree Level: ปริญญาโท
Degree Discipline: วิศวกรรมซอฟต์แวร์
URI: http://cuir.car.chula.ac.th/handle/123456789/50320
URI: http://doi.org/10.14457/CU.the.2015.1282
metadata.dc.identifier.DOI: 10.14457/CU.the.2015.1282
Type: Thesis
Appears in Collections:Eng - Theses

Files in This Item:
File Description SizeFormat 
5670378721.pdf5.41 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.