logsui/tsrc/MATTItests/TC_RecentCalls.rb
changeset 0 4a5361db8937
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     1 require 'CommonFunctions.rb'
       
     2 
       
     3 class TC_RecentCalls < CommonFunctions
       
     4 	
       
     5 	## Initializes the Recent view. Log events are created and application is started
       
     6 	def initializeRecentView(caseName)
       
     7 		initializeTest(caseName)
       
     8 		@log.debug('Verifying that the view name is "Recent calls"')
       
     9 	  @recentCallsView.HbLabel(:text=>'Recent calls')
       
    10 	  #@appControl.startCallService()
       
    11 	end
       
    12 
       
    13   ## Test initiating CS call to first dialled event in recent calls view
       
    14   def initiate_CS_call_to_first_dialled_event_in_recent_view
       
    15   	# call to function in CommonFunctions.rb
       
    16   	initializeRecentView("case8")
       
    17   	initiate_call("4", "+3580123456789")
       
    18   end
       
    19   
       
    20   ## Test initiating CS call to first missed event in recent calls view
       
    21   def initiate_CS_call_to_first_missed_event_in_recent_view
       
    22   	# call to function in CommonFunctions.rb
       
    23   	initializeRecentView("case8")
       
    24   	initiate_call("0", "088012345678911")
       
    25   end
       
    26   
       
    27   ## Test initiating CS call to first received event in recent calls view
       
    28   def initiate_CS_call_to_first_received_event_in_recent_view
       
    29   	# call to function in CommonFunctions.rb
       
    30   	initializeRecentView("case8")
       
    31   	initiate_call("2", "880123456789")
       
    32   end
       
    33   
       
    34   ## Test initiating a quick video callback by pressing Send key in recent calls view
       
    35   def initiate_CS_callback_in_recent_view
       
    36 		initializeRecentView("case9")
       
    37 		# call to function in CommonFunctions.rb
       
    38   	initiate_call_with_send_key()
       
    39 	end
       
    40 	 
       
    41   
       
    42 end