usbuis/usbuinotif/tsrc/usbuinotifapitest/conf/ui_usbuinotifapitest.cfg
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:38:00 +0300
changeset 38 218231f2b3b3
parent 25 8c311f9acc5e
child 56 f45583a69686
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

 // USB UI Notif tests -  total 33 tc

[Define]
//Message box OK button coordinates
OK_X 180
OK_Y 397

//Message box pause before OK
OK_PAUSE 1500

//Message box pause before dismiss (enter key)
DISMISS_PAUSE 1500

//Device notification dialog touch coordinates
DEVICENOTIF_X 141
DEVICENOTIF_Y 47

//Device notification dialog pause before touch
DEVICENOTIF_PAUSE 1000
[Enddefine]


// Cable connected notifier tests

[Test]
title USB Cable Connected (Cable Connected Notifier Test)
create USBUiNotifApiTest tester
tester CableConnectedNotifierTest PCSUITEMTP
tester FinishCableConnectedQuery CANCEL
delete tester
[Endtest]

[Test]
title USB Cable Connected cancel (Cable Connected Notifier Test)
create USBUiNotifApiTest tester
tester CableConnectedNotifierTest PCSUITEMTP
pause 500
tester CancelCableConnectedNotifier
tester FinishCableConnectedQuery CANCEL
delete tester
[Endtest]

[Test]
title USB Cable Connected touch (Cable Connected Notifier Test)
create USBUiNotifApiTest tester
tester CableConnectedNotifierTest PCSUITEMTP
pause DEVICENOTIF_PAUSE
sendpointerevent global EButton1 DEVICENOTIF_X DEVICENOTIF_Y
tester FinishCableConnectedQuery ACCEPT
delete tester
[Endtest]


// Queries

[Test]
title USB Query Storage Media Failure OK (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBStorageMediaFailure
pause OK_PAUSE
sendpointerevent global EButton1 OK_X OK_Y
tester FinishQuery ACCEPT
delete tester
[Endtest] 

[Test] 
title USB Query Storage Media Failure dismiss (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBStorageMediaFailure
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test] 
title USB Query Not Enough RAM dismiss (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBNotEnoughRam
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test] 
title USB Query Disk Full dismiss (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBDiskFull
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title USB Query cancel (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBStorageMediaFailure
tester CancelQueryNotifier
tester FinishQuery CANCEL
delete tester
[Endtest] 

//Test launching query without cancelling the previous.
[Test]
title USB Query no cancel (USB Queries Notifier Test)
create USBUiNotifApiTest tester
tester UsbQueriesNotifierTest EUSBStorageMediaFailure
pause DISMISS_PAUSE
presskey global EKeyEnter
tester WaitForRequest
tester UsbQueriesNotifierTest EUSBStorageMediaFailure
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest]


// OTG Errors

[Test]
title OTG Error too much power (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgTooMuchPower
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error too much power req (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgTooMuchPowerRequired
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error unsupported device (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgUnsupportedDevice
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error Hub not supported device (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgHubUnsupported
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error error in connection (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgErrorInConnection
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Attach timed out (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgErrorAttachTimedOut
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error no memory (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgErrorNoMemory
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title OTG Error OK (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgUnsupportedDevice
pause OK_PAUSE
sendpointerevent global EButton1 OK_X OK_Y
tester FinishQuery ACCEPT
delete tester
[Endtest] 

[Test]
title OTG Error cancel (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgUnsupportedDevice
tester CancelOtgErrorNotifier
tester FinishQuery CANCEL
delete tester
[Endtest] 

//Test launching OTG error without cancelling the previous.
[Test]
title OTG Error no cancel (Otg Error Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGErrorNotifierTests EUsbOtgUnsupportedDevice
pause DISMISS_PAUSE
presskey global EKeyEnter
tester WaitForRequest
tester UsbOTGErrorNotifierTests EUsbOtgErrorInConnection
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 


// OTG Warnings

[Test]
title OTG Partially supported device (Otg Warning Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
//let the dialog time out
tester FinishQuery CANCEL
delete tester
[Endtest]

[Test]
title OTG Partially supported device OK (Otg Warning Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
pause OK_PAUSE
sendpointerevent global EButton1 OK_X OK_Y
tester FinishQuery ACCEPT
delete tester
[Endtest]

[Test]
title OTG Partially supported device dismiss(Otg Warning Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest]

[Test]
title OTG Partially supported device cancel(Otg Warning Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
pause DISMISS_PAUSE
tester CancelOtgWarningNotifier
tester FinishQuery CANCEL
delete tester
[Endtest]

[Test]
title OTG Partially supported device no cancel(Otg Warning Notifier Test)
create USBUiNotifApiTest tester
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
pause DISMISS_PAUSE
presskey global EKeyEnter
tester WaitForRequest
tester UsbOTGWarningNotifierTests EUsbOtgPartiallySupportedDevice
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest]


// MSMM Errors

[Test]
title MSMM error OK (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMGeneralError
pause OK_PAUSE
sendpointerevent global EButton1 OK_X OK_Y
tester FinishQuery ACCEPT
delete tester
[Endtest] 

[Test]
title MSMM error dismiss (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMGeneralError
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title MSMM error cancel (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMGeneralError
tester CancelMsmmNotifier
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title MSMM error Unknown file system (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMUnknownFileSystem
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest] 

[Test]
title MSMM error Out of memory (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMOutOfMemory
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest]

//Test launching MSMM error without cancelling the previous.
[Test]
title MSMM error no cancel (MSMM error Notifier Test)
create USBUiNotifApiTest tester
tester UsbMSMMNotifierTests EUsbMSMMUnknownFileSystem
pause DISMISS_PAUSE
presskey global EKeyEnter
tester WaitForRequest
tester UsbMSMMNotifierTests EUsbMSMMOutOfMemory
pause DISMISS_PAUSE
presskey global EKeyEnter
tester FinishQuery CANCEL
delete tester
[Endtest]


//MEikSrvNotifierBase2 API

[Test]
title Load and Unload notifiers
create USBUiNotifApiTest tester
tester LoadNotifiers
pause 500
//the destructors of the notifier classes will be called
tester UnLoadNotifiers
delete tester
[Endtest] 

[Test]
title Synchronous Start
create USBUiNotifApiTest tester
tester SynchStart EUsbOtgPartiallySupportedDevice
delete tester
[Endtest] 

[Test]
title Update
create USBUiNotifApiTest tester
tester Update
delete tester
[Endtest]