An HTML5 Game Framework Supporting Automatic Game Testing

碩士 === 國立臺北科技大學 === 資訊工程系研究所 === 103 === Computer and mobile games have become an important part of our daily life. Popular games such as Angry Bird and League of Legends have millions of players. A defect in such a game can lead to serious commercial loss. Consequently, game testing is a very impor...

Full description

Bibliographic Details
Main Authors: Chia-Sheng Hsu, 徐嘉陞
Other Authors: 陳偉凱
Language:zh-TW
Online Access:http://ndltd.ncl.edu.tw/handle/5v6wm8
Description
Summary:碩士 === 國立臺北科技大學 === 資訊工程系研究所 === 103 === Computer and mobile games have become an important part of our daily life. Popular games such as Angry Bird and League of Legends have millions of players. A defect in such a game can lead to serious commercial loss. Consequently, game testing is a very important task and also takes a large share of game development cost. However, testing a game automatically is somewhat more difficult than testing a GUI application. So far, game testing relies mainly on human testers, who test games by personally playing them, and is thus very time consuming. Since games are usually built on top of game frameworks, this thesis proposes the idea of enhancing a game framework with a testing module. The enhancement allows the tester to create a test script either by directly writing the script or by recording and converting a player’s actions into the script. We designed a testing module on top of Tai-Hu Huang’s HTML5 game framework. An experiment is performed to compare the cost of three different methods: writing a test script directly, recording a test script from a player’s actions, and testing the game directly by a human tester. The experiment results showed that when a game level required repeated testing, automatic testing (either writing or recording test script) can reduce human cost. Among these three testing methods, recording scripts was the most favored method.