DSpace Repository

เครื่องมือสร้างกรณีทดสอบจากจาวาสคริปต์บนเงื่อนไขความครอบคลุมประโยคคำสั่ง

Show simple item record

dc.contributor.advisor ธาราทิพย์ สุวรรณศาสตร์ en_US
dc.contributor.author วิทยา เหลืองหิรัญ en_US
dc.contributor.other จุฬาลงกรณ์มหาวิทยาลัย. คณะวิศวกรรมศาสตร์ en_US
dc.date.accessioned 2016-12-01T08:04:53Z
dc.date.available 2016-12-01T08:04:53Z
dc.date.issued 2558 en_US
dc.identifier.uri http://cuir.car.chula.ac.th/handle/123456789/50320
dc.description วิทยานิพนธ์ (วท.ม.)--จุฬาลงกรณ์มหาวิทยาลัย, 2558 en_US
dc.description.abstract ในการพัฒนาเว็บแอปพลิเคชันให้ทันสมัย จาวาสคริปต์เป็นภาษาที่มีความสำคัญสูงสุดในการเขียนโปรแกรมสำหรับการพัฒนา และ เฟรมเวิร์คการทดสอบอัตโนมัติมักจะถูกใช้ในการทดสอบเว็บแอปพลิเคชันระดับหน่วย อย่างไรก็ตามผู้พัฒนาใช้เวลาอย่างมากในการสร้างชุดคำสั่งทดสอบด้วยมือ ดังนั้นเครื่องมือสร้างชุดคำสั่งทดสอบอัตโนมัติ สามารถสนับสนุนผู้พัฒนาสร้างชุดคำสั่งอย่างมีประสิทธิภาพ ถึงกระนั้น เครื่องมือสำหรับสร้างชุดคำสั่งทดสอบโดยสร้างค่านำเข้าแบบสุ่มไม่สามารถรับประกันได้ว่าทุกทางเดินของซอร์สโค้ดจะถูกดำเนินการและใช้เวลาอย่างมีนัยในการทดสอบเพื่อให้ได้ความครอบคลุมสูง งานวิจัยนี้นำเสนอเครื่องมือสำหรับการสร้างกรณีทดสอบจากฟังก์ชันจาวาสคริปต์ และ ดำเนินการกรณีทดสอบให้ครอบคลุมประโยคคำสั่ง เครื่องมือจะวิเคราะห์และแทรกโปรแกรมตรวจวัดความครอบคลุมในซอร์สโค้ดจาวาสคริปต์ เพื่อสร้างคอนโทรลโฟลว์กราฟและสร้างกรณีทดสอบ โดยสร้างข้อมูลที่เจาะจงบนทางเดิน และ เวกเตอร์นำเข้าจะทดสอบทางเดิน ประเมินความครอบคลุม ดำเนินการกรณีทดสอบ และรายงานผลการทดสอบ หลังจากผู้วิจัยได้ทดสอบเครื่องมือกับไฟล์จาวาสคริปต์ตัวอย่างจำนวน 5 ไฟล์ เครื่องมือสามารถสร้างกรณีทดสอบ ดำเนินการกรณีทดสอบ และเครื่องมือสามารถทดสอบทุกทางเดินของไฟล์จาวาสคริปต์ตัวอย่างได้ en_US
dc.description.abstractalternative 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. en_US
dc.language.iso th en_US
dc.publisher จุฬาลงกรณ์มหาวิทยาลัย en_US
dc.relation.uri http://doi.org/10.14457/CU.the.2015.1282
dc.rights จุฬาลงกรณ์มหาวิทยาลัย en_US
dc.subject โปรแกรมคอมพิวเตอร์ -- การทดสอบ
dc.subject ซอฟต์แวร์ -- การพัฒนา
dc.subject ดีบัก
dc.subject จาวาสคริปต์ (ภาษาคอมพิวเตอร์)
dc.subject Computer programs -- Testing
dc.subject Computer software -- Development
dc.subject Debugging in computer science
dc.subject JavaScript (Computer program language)
dc.title เครื่องมือสร้างกรณีทดสอบจากจาวาสคริปต์บนเงื่อนไขความครอบคลุมประโยคคำสั่ง en_US
dc.title.alternative A tool for generating test cases from javascript based on statement coverage criteria en_US
dc.type Thesis en_US
dc.degree.name วิทยาศาสตรมหาบัณฑิต en_US
dc.degree.level ปริญญาโท en_US
dc.degree.discipline วิศวกรรมซอฟต์แวร์ en_US
dc.degree.grantor จุฬาลงกรณ์มหาวิทยาลัย en_US
dc.email.advisor Taratip.S@Chula.ac.th,Taratip.S@chula.ac.th en_US
dc.identifier.DOI 10.14457/CU.the.2015.1282


Files in this item

This item appears in the following Collection(s)

Show simple item record