Font Size: a A A

Design And Implementation Of An Online Game Automated Testing Tool

Posted on:2014-05-23Degree:MasterType:Thesis
Country:ChinaCandidate:M X ChenFull Text:PDF
GTID:2298330452961029Subject:Software engineering
Abstract/Summary:PDF Full Text Request
The game server stress testing and performance testing throughout the testingphase is very important, especially in the later development phase. Such testingneeds to simulate a large number of users and large amounts of data. Apparently thiscannot be finished manually. Meanwhile, as the stablity of project tends to beperfect, extensive regression testing is particularly important. If this is operatedmannually, whenever the version iterates and prepare to be updated, the game testershave to test it thouroughly. This will cost a large amount of human effort in theserepetitive operations.In addition, because of the particularity of online games, most of the gametesting are still using traditional manual testing methods. This approach can finddefects quickly. However, as online games own more richer feature and largeramount of users, users have more request on the quality of the games. Besides, thisapproach will inevitably miss a lot of unforeseen problems,and cause the testfailures because of operators’ faults.To solve above problems, this paper presents an automated testing tools. Thetools can simulate players’ behaviors in scripts, and take all factors intoconsideration to test the performance professionally and systematically. In thisarticle, we combine the existing data-driven test automation framework andkeyword-driven test automation framework advantages, using hybrid modelframework to build the online games automated testing tools. Networkcommunication model using IOCP can effectively improve the parallelity. As foruser interaction, we use Lua script second-time development method and keyword-driven model, which separates interaction between the event with the server and theexternal data with the logic of separation. All events are implemented inside the tool,and we only provide the interface functions to Lua scripts, so that the tester does notneed to modify tool code, and only modify Lua scripts to complete all test. For thetest cases, which modifiy data frequently, we only need to modify the Lua scriptdirectly, which can update the data. We design and develop a multi-template-basedautomated testing tool following these methods.By module testing and integrated system testing, we successfully solved theproblem of high concurrency, portability usablities and other difficulties in thisapplication. As a member of game development tools, it begin to take effect in theproject and reduce the workload of manual testing greatly. For basic testing, wehave completed most of the script development, and has applied it to the project..
Keywords/Search Tags:Automated Testing, Hybrid-driven Model, Online Games, Input/OutputCompletion Port, Lua Script
PDF Full Text Request
Related items