990 QCOMPARE( mouseClickObject("dialog"), true ); |
990 QCOMPARE( mouseClickObject("dialog"), true ); |
991 QTest::qWait(WaitTimeForUi); |
991 QTest::qWait(WaitTimeForUi); |
992 QCOMPARE( mouseClickNext(), true ); |
992 QCOMPARE( mouseClickNext(), true ); |
993 |
993 |
994 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true ); |
994 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true ); |
|
995 QStringList buttons; |
|
996 buttons << hbTrId("txt_occ_list_infrastructure_hidden") |
|
997 << hbTrId("txt_occ_list_adhoc_1"); |
|
998 QCOMPARE( verifyRadioButtons("list"), buttons ); |
|
999 |
995 QTest::qWait(WaitTimeForUi); |
1000 QTest::qWait(WaitTimeForUi); |
996 QCOMPARE( selectRadioButton( "list", 1 ), true ); |
1001 QCOMPARE( selectRadioButton( "list", 1 ), true ); |
997 QTest::qWait(WaitTimeForUi); |
1002 QTest::qWait(WaitTimeForUi); |
998 QCOMPARE( mouseClickNext(), true ); |
1003 QCOMPARE( mouseClickNext(), true ); |
999 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageProcessSettings, "huuhaa3421"), true ); |
1004 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageProcessSettings, "huuhaa3421"), true ); |
1100 QCOMPARE( mouseClickObject("dialog"), true ); |
1105 QCOMPARE( mouseClickObject("dialog"), true ); |
1101 QTest::qWait(WaitTimeForUi); |
1106 QTest::qWait(WaitTimeForUi); |
1102 QCOMPARE( mouseClickNext(), true ); |
1107 QCOMPARE( mouseClickNext(), true ); |
1103 |
1108 |
1104 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true ); |
1109 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true ); |
|
1110 QStringList buttons; |
|
1111 buttons << hbTrId("txt_occ_dblist_val_infrastructure_public") |
|
1112 << hbTrId("txt_occ_list_infrastructure_hidden") |
|
1113 << hbTrId("txt_occ_list_adhoc_1"); |
|
1114 QCOMPARE( verifyRadioButtons("list"), buttons ); |
1105 QTest::qWait(WaitTimeForUi); |
1115 QTest::qWait(WaitTimeForUi); |
1106 QCOMPARE( selectRadioButton( "list", 0 ), true ); |
1116 QCOMPARE( selectRadioButton( "list", 0 ), true ); |
1107 QTest::qWait(WaitTimeForUi); |
1117 QTest::qWait(WaitTimeForUi); |
1108 QCOMPARE( mouseClickNext(), true ); |
1118 QCOMPARE( mouseClickNext(), true ); |
1109 |
1119 |
1166 QCOMPARE( mouseClickNext(), true ); |
1176 QCOMPARE( mouseClickNext(), true ); |
1167 |
1177 |
1168 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageKeyQuery, "huuhaa3421"), true ); |
1178 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageKeyQuery, "huuhaa3421"), true ); |
1169 #endif |
1179 #endif |
1170 } |
1180 } |
|
1181 |
|
1182 /*! |
|
1183 * |
|
1184 */ |
|
1185 void TestWlanWizardManual::tc_multiple_ssids_with_same_name_wps_and_nonwps() |
|
1186 { |
|
1187 #ifdef tc_multiple_ssids_with_same_name_wps_and_nonwps_enabled |
|
1188 mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWpa, false, false, 100); |
|
1189 |
|
1190 // Add all five kinds of security modes. |
|
1191 mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWep, true, true, 300); |
|
1192 |
|
1193 mWlanQtUtilsContext->setScanWlanDirectResult("huuhaa", mApList->List()); |
|
1194 mWlanQtUtilsContext->setCreateWlanIapResult(100); |
|
1195 mWlanQtUtilsContext->setSignalIctResult(100, WlanQtUtils::IctPassed); |
|
1196 mWlanQtUtilsContext->setSignalWlanNetworkOpened(100); |
|
1197 mWlanQtUtilsContext->setConnectionSuccessed(true); |
|
1198 |
|
1199 mView->showWizard(); |
|
1200 |
|
1201 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageSsid), true ); |
|
1202 |
|
1203 QCOMPARE( mouseClickObject("lineEditKey"), true ); |
|
1204 QTest::qWait(WaitTimeForUi); |
|
1205 QCOMPARE( insertTextToObject("lineEditKey", "huuhaa"), true ); |
|
1206 QTest::qWait(WaitTimeForUi); |
|
1207 QCOMPARE( mouseClickObject("dialog"), true ); |
|
1208 QTest::qWait(WaitTimeForUi); |
|
1209 QCOMPARE( mouseClickNext(), true ); |
|
1210 |
|
1211 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageScanning, "huuhaa"), true ); |
|
1212 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageNetworkMode), true ); |
|
1213 QStringList buttons; |
|
1214 buttons << hbTrId("txt_occ_list_infrastructure_hidden") |
|
1215 << hbTrId("txt_occ_list_wifi_protected_setup"); |
|
1216 QCOMPARE( verifyRadioButtons("list"), buttons ); |
|
1217 QCOMPARE( selectRadioButton( "list", 1 ), true ); |
|
1218 QTest::qWait(WaitTimeForUi); |
|
1219 QCOMPARE( mouseClickNext(), true ); |
|
1220 |
|
1221 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageWpsStart), true ); |
|
1222 #endif |
|
1223 } |
|
1224 |
|
1225 /*! |
|
1226 * |
|
1227 */ |
|
1228 void TestWlanWizardManual::tc_multiple_ssids_with_same_name_two_wps_aps() |
|
1229 { |
|
1230 #ifdef tc_multiple_ssids_with_same_name_two_wps_aps_enabled |
|
1231 mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWpa, false, true, 100); |
|
1232 |
|
1233 // Add all five kinds of security modes. |
|
1234 mApList->Add("huuhaa", CMManagerShim::Infra, CMManagerShim::WlanSecModeWep, true, true, 300); |
|
1235 |
|
1236 mWlanQtUtilsContext->setScanWlanDirectResult("huuhaa", mApList->List()); |
|
1237 mWlanQtUtilsContext->setCreateWlanIapResult(100); |
|
1238 mWlanQtUtilsContext->setSignalIctResult(100, WlanQtUtils::IctPassed); |
|
1239 mWlanQtUtilsContext->setSignalWlanNetworkOpened(100); |
|
1240 mWlanQtUtilsContext->setConnectionSuccessed(true); |
|
1241 |
|
1242 mView->showWizard(); |
|
1243 |
|
1244 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageSsid), true ); |
|
1245 |
|
1246 QCOMPARE( mouseClickObject("lineEditKey"), true ); |
|
1247 QTest::qWait(WaitTimeForUi); |
|
1248 QCOMPARE( insertTextToObject("lineEditKey", "huuhaa"), true ); |
|
1249 QTest::qWait(WaitTimeForUi); |
|
1250 QCOMPARE( mouseClickObject("dialog"), true ); |
|
1251 QTest::qWait(WaitTimeForUi); |
|
1252 QCOMPARE( mouseClickNext(), true ); |
|
1253 |
|
1254 QCOMPARE( verifyCurrentPageWithInfo(WlanWizardPageInternal::PageScanning, "huuhaa"), true ); |
|
1255 QCOMPARE( verifyCurrentPage(WlanWizardPageInternal::PageWpsStart), true ); |
|
1256 #endif |
|
1257 } |