From: chleun.moon Date: Mon, 28 May 2018 07:16:31 +0000 (+0900) Subject: [Network][Non-ACR] Change API to check IPv6 address X-Git-Tag: public_m1_final~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F180311%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [Network][Non-ACR] Change API to check IPv6 address Change-Id: Iffd1b42cf75890b95f3ffc627fdc407881c325c6 Signed-off-by: Cheoleun Moon --- diff --git a/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionManager.cs b/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionManager.cs index 21cf3a8d1..127583781 100755 --- a/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionManager.cs +++ b/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionManager.cs @@ -219,6 +219,7 @@ namespace Tizen.Network.Connection.Tests _wifiAP = WiFiManager.GetConnectedAP(); Assert.IsNotNull(_wifiAP, "No WiFi connection"); await _wifiAP.DisconnectAsync(); + await Task.Delay(3000); /** * TEST CODE **/ diff --git a/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionProfile.cs b/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionProfile.cs old mode 100755 new mode 100644 index 93045f101..08a07efb6 --- a/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionProfile.cs +++ b/tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionProfile.cs @@ -425,7 +425,20 @@ namespace Tizen.Network.Connection.Tests addInfor.IPConfigType = IPConfigType.Static; addInfor.IP = IPAddress.Parse(preIP); ConnectionProfileManager.UpdateProfile(_connectionProfile); - Assert.AreEqual(preIP, addInfor.IP.ToString(), "set Gateway is fail"); + await Task.Delay(3000); + + bool found = false; + var IPList = ConnectionManager.GetAllIPv6Addresses(ConnectionType.WiFi); + foreach(IPAddress item in IPList) + { + Log.Info(Globals.LogTag, "IPv6 Address: " + item.ToString()); + if (item.ToString().Equals(preIP)) + { + found = true; + break; + } + } + Assert.IsTrue(found, "Can't find IPv6 "); Assert.AreEqual(IPConfigType.Static.ToString(), addInfor.IPConfigType.ToString(), "set IpConfigType is fail"); await tearDown();