Automated Concolic Testing of Smartphone Apps.ppt
《Automated Concolic Testing of Smartphone Apps.ppt》由会员分享,可在线阅读,更多相关《Automated Concolic Testing of Smartphone Apps.ppt(47页珍藏版)》请在麦多课文档分享上搜索。
1、Automated Concolic Testing of Smartphone Apps,Saswat Anand Stanford Univ.,Mayur Naik Georgia Tech.,Hongseok Yang Univ. of Oxford,Mary Jean Harrold Georgia Tech.,Motivation,Motivation,Problems with Smartphone Apps,Automatically generate test inputs for bounded exhaustive testing of smartphone apps,Pr
2、oblem,Test Inputs for Apps,Whole-program testing Test input is a sequence of events e1, e2, en Types of events: a tap on the screen, change in geo-location, arrival of a SMS message, etc.,Bounded Exhaustive Testing of Apps,S, the set of all event sequences* s.t. each sequence takes a unique path,*of
3、 bounded-length,Set of covered branches,Goal: cover these,Generate individual events Generate sequences of events,Two subproblems,Generating Individual Events,An event is associated with data X & Y coordinates of a tap event geo-location of a change-in-geo-location event content of an incoming SMS e
4、vent etc. Data determine which program path is taken,Challenge: Generate the “right” data for events,Example: Music Player App,Play,Pause,Stop,Eject,Rewind,Skip,Example: Music Player App,public void onClick(View target) if (target = play)startService(new Intent(ACTION_PLAY); else if (target = pause)
5、startService(new Intent(ACTION_PAUSE);else if (target = skip)startService(new Intent(ACTION_SKIP);else if (target = rewind)startService(new Intent(ACTION_REWIND);else if (target = stop)startService(new Intent(ACTION_STOP);else if (target = eject)showUrlDialog(); ,tap(136, 351),Example: Music Player
6、App,public void onClick(View target) if (target = play)startService(new Intent(ACTION_PLAY); else if (target = pause)startService(new Intent(ACTION_PAUSE);else if (target = skip)startService(new Intent(ACTION_SKIP);else if (target = rewind)startService(new Intent(ACTION_REWIND);else if (target = sto
7、p)startService(new Intent(ACTION_STOP);else if (target = eject)showUrlDialog(); ,tap(248, 351),Example: Music Player App,public void onClick(View target) if (target = play)startService(new Intent(ACTION_PLAY); else if (target = pause)startService(new Intent(ACTION_PAUSE);else if (target = skip)start
8、Service(new Intent(ACTION_SKIP);else if (target = rewind)startService(new Intent(ACTION_REWIND);else if (target = stop)startService(new Intent(ACTION_STOP);else if (target = eject)showUrlDialog(); ,tap(360, 351),Example: Music Player App,public void onClick(View target) if (target = play)startServic
9、e(new Intent(ACTION_PLAY); else if (target = pause)startService(new Intent(ACTION_PAUSE);else if (target = skip)startService(new Intent(ACTION_SKIP);else if (target = rewind)startService(new Intent(ACTION_REWIND);else if (target = stop)startService(new Intent(ACTION_STOP);else if (target = eject)sho
10、wUrlDialog(); ,tap(24, 351),Example: Music Player App,public void onClick(View target) if (target = play)startService(new Intent(ACTION_PLAY); else if (target = pause)startService(new Intent(ACTION_PAUSE);else if (target = skip)startService(new Intent(ACTION_SKIP);else if (target = rewind)startServi
11、ce(new Intent(ACTION_REWIND);else if (target = stop)startService(new Intent(ACTION_STOP);else if (target = eject)showUrlDialog(); ,tap(136, 493),Example: Music Player App,public void onClick(View target) if (target = play)startService(new Intent(ACTION_PLAY); else if (target = pause)startService(new
12、 Intent(ACTION_PAUSE);else if (target = skip)startService(new Intent(ACTION_SKIP);else if (target = rewind)startService(new Intent(ACTION_REWIND);else if (target = stop)startService(new Intent(ACTION_STOP);else if (target = eject)showUrlDialog(); ,tap(305, 544),Existing alternatives Random Testing C
13、annot perform systematic/exhaustive testing Platform-specific tools (e.g., hierarchy viewer in Android) Limited to GUI Events Cannot handle third-party GUI widgets,Generating Individual Events,Generating Individual Events,Our solution Use concolic execution to generate data associated with events,F,
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AUTOMATEDCONCOLICTESTINGOFSMARTPHONEAPPSPPT
