equal
deleted
inserted
replaced
399 { |
399 { |
400 subScrollToBottom(); |
400 subScrollToBottom(); |
401 } |
401 } |
402 |
402 |
403 /** |
403 /** |
404 * Tests "prompt" password checkbox. |
|
405 */ |
|
406 void TestCpPacketDataApPlugin::tcChangePromptPassword() |
|
407 { |
|
408 // Ensure prompt for password is unchecked |
|
409 bool prompt = subGetBool(CMManagerShim::PacketDataIFPromptForAuth); |
|
410 if (prompt) { |
|
411 // Disable prompt for password |
|
412 HbAutoTest::mouseClick(mMainWindow, mPasswordPromptWidget); |
|
413 } |
|
414 |
|
415 // Enable prompt for password and verify |
|
416 HbAutoTest::mouseClick(mMainWindow, mPasswordPromptWidget); |
|
417 subVerifyBool( |
|
418 CMManagerShim::PacketDataIFPromptForAuth, |
|
419 true); |
|
420 |
|
421 // Verify that password lineedit is disabled, following steps will |
|
422 // fail if editing is allowed |
|
423 HbAutoTest::mouseClick(mMainWindow, mPasswordWidget); |
|
424 QTest::qWait(waitTime); |
|
425 |
|
426 // Disable prompt for password and verify |
|
427 HbAutoTest::mouseClick(mMainWindow, mPasswordPromptWidget); |
|
428 subVerifyBool( |
|
429 CMManagerShim::PacketDataIFPromptForAuth, |
|
430 false); |
|
431 } |
|
432 |
|
433 /** |
|
434 * Tests changing of password. |
404 * Tests changing of password. |
435 */ |
405 */ |
436 void TestCpPacketDataApPlugin::tcChangePassword() |
406 void TestCpPacketDataApPlugin::tcChangePassword() |
437 { |
407 { |
438 QFETCH(QString, string); |
408 QFETCH(QString, string); |
1206 mTestView->mForm, |
1176 mTestView->mForm, |
1207 iterator.index(1, apGroupIndex)); |
1177 iterator.index(1, apGroupIndex)); |
1208 mUserNameWidget = subGetWidgetByIndex( |
1178 mUserNameWidget = subGetWidgetByIndex( |
1209 mTestView->mForm, |
1179 mTestView->mForm, |
1210 iterator.index(2, apGroupIndex)); |
1180 iterator.index(2, apGroupIndex)); |
1211 mPasswordPromptWidget = subGetWidgetByIndex( |
|
1212 mTestView->mForm, |
|
1213 iterator.index(3, apGroupIndex)); |
|
1214 mPasswordWidget = subGetWidgetByIndex( |
1181 mPasswordWidget = subGetWidgetByIndex( |
1215 mTestView->mForm, |
1182 mTestView->mForm, |
1216 iterator.index(4, apGroupIndex)); |
1183 iterator.index(4, apGroupIndex)); |
1217 mAuthenticationWidget = subGetWidgetByIndex( |
1184 mAuthenticationWidget = subGetWidgetByIndex( |
1218 mTestView->mForm, |
1185 mTestView->mForm, |