[Test]
[Category("P1")]
+ [Description("Test:Checks whether the profile is hidden.")]
+ [Property("SPEC", "Tizen.Network.Connection.CellularProfile.IsRoaming A")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "PRO")]
+ [Property("AUTHOR", "Cheoleun Moon, chleun.moon@samsung.com")]
+ public void IsRoaming_GET()
+ {
+ CellularProfile _cellularProfile = null;
+ try
+ {
+ Log.Info(Globals.LogTag, "IsRoaming_GET start");
+ if (ConnectionManager.CellularState == CellularState.OutOfService)
+ {
+ Assert.IsTrue(true, "Out of service");
+ return;
+ }
+ Log.Info(Globals.LogTag, "Try to GetDefaultCellularProfile");
+ var connection = ConnectionProfileManager.GetDefaultCellularProfile(CellularServiceType.Internet);
+ Assert.IsNotNull(connection, "Fail to get a ConnectionProfile");
+ Log.Info(Globals.LogTag, "Get default cellular profile");
+ _cellularProfile = (CellularProfile)connection;
+ Assert.IsFalse(_cellularProfile.IsRoaming, "IsRoaming is true");
+ Log.Info(Globals.LogTag, "IsRoaming_GET done");
+ }
+ catch (NotSupportedException)
+ {
+ Assert.IsTrue(isTelephonySupported == false, "Invalid NotSupportedException");
+ }
+ catch (Exception ex)
+ {
+ Assert.IsTrue(false, "Exception occurs. Msg : " + ex.ToString());
+ }
+ finally
+ {
+ if (_cellularProfile != null)
+ {
+ _cellularProfile.Dispose();
+ }
+ }
+ }
+
+ [Test]
+ [Category("P1")]
[Description("Test: Gets cellular Authentification Information.")]
[Property("SPEC", "Tizen.Network.Connection.CellularProfile.CellularAuthInfo A")]
[Property("SPEC_URL", "-")]