• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science

Previous Articles     Next Articles

A method for generating test cases and its application for Android smart TV    

CUI Kai,ZHOU Kuan-jiu,LIANG Hao-ran,PAN Jie   

  1. (School of Software Technology,Dalian University of Technology,Dalian 116620,China)
  • Received:2016-04-18 Revised:2016-06-15 Online:2016-08-25 Published:2016-08-25

Abstract:

Compared with the traditional TV, a smart TV has diverse functions such as Internet surfing, audio and video files playing, and applications downloading. So the software and hardware of the smart TV become very complicated and are relatively hard for users to operate. The reliability of such a large scale of consumer oriented products is the main problem that smart TV manufacturers are facing. We model the behaviors of the smart TV with AutoStar by hierarchical state transition matrix (STM), which are converted into an expanded regular expression (ERE) with memory property. The cyclic number of regular expression closures is set according to the cyclomatic complexity of the regular expression, and then the test cases are generated from the ERE. The test cases are converted to Python scripts automatically and sent to the Android smart TV through the ADB interface. Finally, a test platform for the Android smart TV is designed and applied in smart TV tests in domestic house-hold electrical appliance plant.

Key words: state transition matrix, cyclomatic complexity, regular expression