From 8f01b14d9e87c568207edf913052acb5eba09117 Mon Sep 17 00:00:00 2001 From: "Zheng Liu (George)" Date: Fri, 7 Jan 2011 13:36:04 +1000 Subject: added more messageing and sensors system tests from bluewheel project --- sys_messaging/sys_messaging.qtt | 233 +++++++++++++++++++++++++++++++++++++++- sys_sensors/sys_sensors.qtt | 96 +++++++++++++++-- 2 files changed, 320 insertions(+), 9 deletions(-) diff --git a/sys_messaging/sys_messaging.qtt b/sys_messaging/sys_messaging.qtt index 6b160b20e1..015a287a35 100644 --- a/sys_messaging/sys_messaging.qtt +++ b/sys_messaging/sys_messaging.qtt @@ -236,6 +236,25 @@ testcase = { } }, + keepInTouch_showMessages : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Keep In Touch: show messages + + 1. Synchronize a set of test messages sent on a range of dates from various contacts to the phone using Nokia Ovi Suite or an equal tool + 1. Launch *keepintouch* application using command line + 1. Select *Year* from *Contacted within the last* combo box + 1. Click on *Search* + 1. Verify that all contacts contacted in the last year are displayed + 1. Click on a contact name + 1. Verify the messages with the contact are shown + 1. Select one message + 1. Click on *Show* button and verify the message details are shown + 1. Go back and click on *Forward* button, verify the forward dialog is shown + ')); + } + }, + messagingEx_startQuit : function() { if (automatedTestEnvironment()){ }else{ @@ -365,7 +384,7 @@ testcase = { declarativeMessaging_ShowDetails : function() { if (automatedTestEnvironment()){ }else{ - prompt(twiki('---++++ Declarative Messaging + prompt(twiki('---++++ Declarative Messaging: Show Details 1. Start declarativeMessaging application 1. Verify that the sample messages are listed @@ -375,4 +394,216 @@ testcase = { } }, + bluewheelMessaging_startQuit : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Start and Quit + + 1. Start blue wheel test application + 1. Verify the application is loaded properly + 1. Select Messaging from the list + 1. Verify the messaging test application is launched + ')); + } + }, + + bluewheelMessaging_SMS_Compose : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: SMS Compose + + 1. Start messaging test application + 1. select SMS tab + 1. Type in destination phone number + 1. Type in some content + 1. Click on Compose + 1. Verify the native SMS client program is launched + 1. Save draft and return + ')); + } + }, + bluewheelMessaging_SMS_Store : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: SMS Store + + 1. Start messaging test application + 1. select SMS tab + 1. Type in destination phone number + 1. Type in some content + 1. Click on Store + 1. Verify the message has been stored in draft folder + ')); + } + }, + + bluewheelMessaging_SMS_Send : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: SMS Send + + 1. Start messaging test application + 1. select SMS tab + 1. Type in destination phone number + 1. Type in some content + 1. Click on Send + 1. Verify the message has been sent correctly + ')); + } + }, + + bluewheelMessaging_Email_Compose : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Email Compose + + 1. Create at least one email account on the phone + 1. Start messaging test application + 1. select Email tab + 1. Select account for From, if necessary, change Settings by clicking on Settings + 1. Type in destination email address, together with To, CC, BCC + 1. Type in subject and some content + 1. Insert some attachments + 1. Click on Compose + 1. Verify the native Email client program is launched + 1. Save draft and return + ')); + } + }, + + bluewheelMessaging_Email_Store : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Email Store + + 1. Create at least one email account on the phone + 1. Start messaging test application + 1. select Email tab + 1. Select account for From, if necessary, change Settings by clicking on Settings + 1. Type in destination email address, together with To, CC, BCC + 1. Type in subject and some content + 1. Insert some attachments + 1. Click on Store + 1. Verify the email is stored in the draft folder of selected account + ')); + } + }, + + bluewheelMessaging_Email_Send : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Email Send + + 1. Create at least one email account on the phone + 1. Start messaging test application + 1. select Email tab + 1. Select account for From, if necessary, change Settings by clicking on Settings + 1. Type in destination email address, together with To, CC, BCC + 1. Type in subject and some content + 1. Insert some attachments + 1. Click on Send + 1. Verify the email has been sent to the receivers, including to, cc, and bcc + ')); + } + }, + + bluewheelMessaging_MMS_Compose : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: MMS Compose + + 1. Start messaging test application + 1. select MMS tab + 1. Type in destination phone number + 1. Type in a subject and some content + 1. Insert some attachments + 1. Click on Compose + 1. Verify the native SMS client program is launched + 1. Save draft and return + ')); + } + }, + bluewheelMessaging_MMS_Store : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: MMS Store + + 1. Start messaging test application + 1. select MMS tab + 1. Type in destination phone number + 1. Type in a subject and some content + 1. Insert some attachments + 1. Click on Store + 1. Verify the message has been stored in draft folder + ')); + } + }, + + bluewheelMessaging_MMS_Send : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: MMS Send + + 1. Start messaging test application + 1. select MMS tab + 1. Type in destination phone number + 1. Type in a subject and some content + 1. Insert some attachments + 1. Click on Send + 1. Verify the message has been sent correctly + ')); + } + }, + + bluewheelMessaging_Search_Accounts_By_Name : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Search Accounts by Name + + 1. Start Messaging test application + 1. Select Search Accounts tab + 1. Type in an account name, eg. sms, which is not case sensitive + 1. Click on Search + 1. Verify the correct accounts are found and shown in dialog + ')); + } + }, + + bluewheelMessaging_Search_Accounts_By_Id : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Search Accounts by Id + + 1. Start Messaging test application + 1. Select Search Accounts tab + 1. Type in a full Id, case sensitive. You can find the Id strings by doing a search by name + 1. Click on Search + 1. Verify the correct accounts are found and shown in dialog + ')); + } + }, + + bluewheelMessaging_Search_Messages : function() { + if (automatedTestEnvironment()){ + }else{ + prompt(twiki('---++++ Blue Wheel Messaging: Search Messages + + 1. Start Messaging test application + 1. Select Search Messsages tab + 1. Select a search type + 1. Fill in according parameters + 1. Click on Make Query + 1. Verify correct messages are found and shown + 1. Select an message and click on Show + 1. Answer Yes to open it in native client + 1. Verify the message is properly shown + 1. return to search results + 1. Select an message and click on Show + 1. Answer No to open it within the test application + 1. Verify the message is properly shown + 1. Repeat the test for each search type with random query parameters + ')); + } + }, + } diff --git a/sys_sensors/sys_sensors.qtt b/sys_sensors/sys_sensors.qtt index ca2bdf03bf..1cb7bbefd9 100644 --- a/sys_sensors/sys_sensors.qtt +++ b/sys_sensors/sys_sensors.qtt @@ -67,10 +67,34 @@ Notes: ')); }, + Sym_Rotation : function() + { + prompt(twiki('*Verify Sym Rotation values* - Proximity_values: function() + | *Step* | *Verification* | + | Launch *Sensor Explorer* application | | + | Select Sym Rotation from the sensors list | | + | In *Sensor Properties* click *Start* | | + | Position device flat on its back with screen showing upwards | Verify that values for x, y and z gravitate around zero* | + | Rotate device on x axis toward user | Verify that x axis value increases from 0 all the way to 90 when held straight up | + | Keep rotating device past vertical position | Verify that x axis value decrees from 90 down towards to 0 when held upside down (screen towards ground) | + | Return device flat on its back with screen showing upwards | Verify that value for x has returned to zero** | + | Rotate device on y axis to right side | Verify that y axis value increases from 0 all the way to 90 when held straight up | + | Keep rotating device past vertical position | Verify that y axis value keeps increasing from 90 towards 180 | + | Rotate device on y axis until upside down - screen towards ground | Verify that y axis value gravitates around and switches between 180/-180 | + | Keep rotating device on y axis past inverted horizontal | Verify that y axis value rises from -180 towards 0 | + | In this test, z values will always be 0 | | + +Notes: + * * Small variations in value due to sensor sensitivity and large precision employed + * ** On some Maemo5 devices, due to camera housing, device is not flat when resting on hard surface, so small variation will be present + ')); + }, + + + Sym_Proximity_values: function() { - prompt(twiki('*Verify Proximity values* + prompt(twiki('*Verify Sym Proximity values* *Note: On Maemo5 devices, Proximity is a bool value @@ -84,9 +108,9 @@ Notes: }, - Sensor_Accelerometer: function() + Sym_Accelerometer: function() { - prompt(twiki('*Verify Sensor Accelerometer* + prompt(twiki('*Verify Sym Accelerometer* | *Step* | *Verification* | | Launch *Sensor Explorer* application | | @@ -99,9 +123,9 @@ Notes: }, - Ambient_Light: function() + Sym_Ambient_Light: function() { - prompt(twiki('*Verify Ambient Light Sensor* + prompt(twiki('*Verify Sym Ambient Light Sensor* | *Step* | *Verification* | @@ -136,7 +160,7 @@ Note: }, - Sensor_Orientation: function() + Small_Sensor_Orientation: function() { prompt(twiki('*Verify Sensor Orientation* @@ -156,7 +180,7 @@ Note: }, - Sensor_Acceleration : function() + Small_Sensor_Acceleration : function() { prompt(twiki('*Verify Sensor Acceleration* @@ -169,4 +193,60 @@ Note: ')); } + Sym_Tap : function() + { + prompt(twiki('*Verify Sym Tap Sensor* + + | *Step* | *Verification* | + | Launch *bluewheel* application | | + | select *Sensors* and click on *sensor explorer* || + | select *sym.tap* as sensor type || + | click on *start* button || + | select *reading properties* tab || + | double tap on the device | Verify the values displayed are changed | + ')); + } + + Sym_Orientation : function() + { + prompt(twiki('*Verify Sym Orientation Sensor* + + | *Step* | *Verification* | + | Launch *bluewheel* application | | + | select *Sensors* and click on *sensor explorer* || + | select *sym.orientation* as sensor type || + | click on *start* button || + | select *reading properties* tab || + | slowly rotate the device | Verify the values displayed are changed accordingly | + ')); + } + + Sym_MagnetoMeter : function() + { + prompt(twiki('*Verify Sym Magneto Meter* + + | *Step* | *Verification* | + | Launch *bluewheel* application | | + | select *Sensors* and click on *sensor explorer* || + | select *sym.magnetometer* as sensor type || + | click on *start* button || + | select *reading properties* tab || + | put the device closer to a iron or steel object | Verify the values displayed are changed accordingly | + ')); + } + + Sym_Compass : function() + { + prompt(twiki('*Verify Sym Compass Sensor* + + | *Step* | *Verification* | + | Launch *bluewheel* application | | + | select *Sensors* and click on *sensor explorer* || + | select *sym.compass* as sensor type || + | click on *start* button || + | select *reading properties* tab || + | slowly turn the device around | Verify the values displayed are changed accordingly | + ')); + } + } -- cgit v1.2.3