logsui/tsrc/MATTItests/TC_MissedCalls.rb
changeset 0 4a5361db8937
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     1 require 'CommonFunctions.rb'
       
     2 
       
     3 class TC_MissedCalls < CommonFunctions
       
     4 	
       
     5 	## Initializes the Missed view. Log events are created and application is started.
       
     6 	## Calls are sorted by Missed option
       
     7 	def initializeMissedView(caseName)
       
     8 		initializeTest(caseName)
       
     9 		selectView("Recent", "Missed")
       
    10 	end
       
    11 	
       
    12 	## Initializes the Missed view. Log events are created and application is started by pressing Send ky
       
    13 	## Calls are sorted by Missed option	
       
    14 	def initializeMissedViewSendKey(caseName)
       
    15 		initializeTestSendKey(caseName)
       
    16 		selectView("Recent", "Missed")
       
    17 	end
       
    18 	
       
    19 	## Test that last missed CS call is shown in missed view
       
    20   def last_missed_CS_call_in_missed_view
       
    21   	result = last_call("case5", "358123461", DirMissedIcon_Const, VoiceIcon_Const)
       
    22   	return result
       
    23   end
       
    24   
       
    25   ## Test that last missed video call is shown in missed view
       
    26   def last_missed_video_call_in_missed_view
       
    27   	result = last_call("case6", "558123461", DirMissedIcon_Const, VideoIcon_Const)
       
    28   	return result
       
    29   end
       
    30 	
       
    31 	## Test initiating CS call to first event in missed calls view
       
    32 	def initiate_CS_call_to_first_event_in_missed_view
       
    33 		initializeMissedView("case8")
       
    34 		# call to function in CommonFunctions.rb
       
    35   	initiate_call("0", "088012345678911")
       
    36 	end
       
    37 	
       
    38 	## Test initiating CS call to last event in missed calls view
       
    39 	def initiate_CS_call_to_last_event_in_missed_view
       
    40 		initializeMissedView("case8")
       
    41 		# call to function in CommonFunctions.rb
       
    42   	initiate_call("1", "088012345678910")
       
    43 	end
       
    44 	
       
    45 	## Test initiating a quick CS callback in missed calls view
       
    46 	def initiate_CS_callback_in_missed_view
       
    47 		initializeMissedViewSendKey("case7")
       
    48 		# call to function in CommonFunctions.rb
       
    49   	initiate_call_with_send_key()
       
    50 	end
       
    51 	
       
    52 	## Test that contact name is displyed correctly in missed view
       
    53 	def matching_contact_name_missed_CS_call
       
    54 		initializeMissedView("case10")
       
    55 		verify_event(0, "Keke Rosberg", DirMissedIcon_Const, VoiceIcon_Const)
       
    56 		@appControl.closeApplication()
       
    57 		return 0
       
    58 	end
       
    59 
       
    60 end