[Connection][Non-ACR][Check if it is a WiFiProfile] 09/215709/1
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 14 Oct 2019 19:54:57 +0000 (04:54 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 14 Oct 2019 19:55:17 +0000 (04:55 +0900)
In previous code, the first profile in profile list was assumed to be a
WiFiProfile when WiFi connection is done.
But now it is not ensured, therefore checking login is required.

Change-Id: I1dc89ea806dd290191cb98976ac777c0df32e48f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tct-suite-vs/Tizen.Connection.Tests/testcase/TSWiFiProfile.cs

index 8b5ecde4d8733dd37c74c4a5b3249df527d6869b..6de5e3628c4fd95867dfc0cbc3d81749a307afc2 100755 (executable)
@@ -58,8 +58,11 @@ namespace Tizen.Network.Connection.Tests
             var list = await ConnectionProfileManager.GetProfileListAsync(ProfileListType.Registered);
             foreach (var item in list)
             {
-                _connectionProfile = item;
-                break;
+                if (item.Name == _wiFiNetwork.Essid)
+                {
+                    _connectionProfile = item;
+                    break;
+                }
             }
             _wiFiProfile = (WiFiProfile)_connectionProfile;
         }