Realistic Context Generation For Mobile App Testing and ... - TU Berlin

10 downloads 175 Views 1MB Size Report
on the local workstation as well as those running in the cloud ..... that provides support for event driven network prog
Realistic Context Generation For Mobile App Testing and Performance Evaluation Manoj R. Rege⇤ , Vlado Handziski† , and Adam Wolisz‡

Technische Universität Berlin Email: ⇤ [email protected], † [email protected], ‡ [email protected] individual context modalities might have to be collected in a correlated manner and from heterogeneous sources. They can be recorded using mobile devices, leveraged from trace , t r a c e v e c t o r = [ ’ name ’ , ’ r s s i ’ , ’ a v e r a g e R s s i D b ’ , ’ downloadSpeed ’ , ’ uploadSpeed ’ , ’ pingTime ’ ] ) t f l o c = TraceFile ( ) dbcam = D a t a b a s e ( q u e r y p a r a m e t e r l i s t = [ ’ s i z e ’ , ’ l o c a t i o n ’ , ’ h e a d i n g ’ , ’ p i t c h ’ , ’ key ’ ] , keymapping = d i c t ( s i z e = " 600 x400 " , l o c a t i o n = " l a t i t u d e , l o n g i t u d e " , h e a d i n g = " 1 5 1 . 7 8 " , p i t c h = " 0.76 " ) , d a t a s o u r c e t y p e = " d a t a b a s e " , d a t a s o u r c e f o r m a t = " b i n a r y " , u r l = ’ h t t p s : / / maps . g o o g l e a p i s . com / maps / a p i / s t r e e t v i e w ’ , q u e r y p a r a m e t e r s = d i c t ( s i z e = " 640 x480 " , l o c a t i o n = " 4 6 . 4 1 4 3 8 2 , 1 0 . 0 1 3 9 8 8 " , h e a d i n g = " 1 5 1 . 7 8 " , p i t c h = " 0.76 " ) , e x t e n s i o n = ’ j p g ’ , f e t c h t y p e = "HTTPS" ) cammod= P h y s i c a l C o n t e x t M o d a l i t y ( name= ’ c a m e r a ’ , s a m p l i n g r a t e = 0 . 0 1 , f e e d r a t e = 0 . 0 1 , d a t a s o u r c e =dbcam , t r a c e v e c t o r = [ ’ image ’ , ’ o r i g i n a l ’ , ’ e n c o d e d ’ , ’ camera_type ’ ] , t r a c e p r o c e s s i n g =" StreetViewModify " ) # C r e a t e C o n t e x t Model sim . a d d M o d a l i t y ( [ cammod , locmod , nwmod ] ) sim . c r e a t e C o n t e x t D e p e n d e n c y G r a p h ( locmod . name , netmod . name , cammod . name e0 = ( locmod . name , netmod . name ) , e1 = ( locmod . name , camod . name ) ) #Add e m u l a t o r emulator = Emulator ( ’ Android ’ ,{ ’ addr ’ : ’ 1 2 7 . 0 . 0 . 1 : 5 5 5 4 ’ }) sim . a d d E m u l a t o r ( e m u l a t o r ) # Start simulation sim . runTime ( 6 0 0 ) engine . s t a r t ( )

Listing 2: CamTour