// [Test]
[Category("P1")]
- [Description("Test Visibility property of BtAdapter")]
- [Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.Visibility A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRO")]
- [Property("AUTHOR", "Shikha, shikha.ta@samsung.com")]
- [Precondition(1, "Turn on the bluetooth")]
- [Step(1, "Tap the Run button")]
- [Step(2, "Go to Bluetooth in Settings and change Visibility timeout value")]
- [Step(3, "Check if the log shows proper current visibility mode according to the value which is set in the settings")]
- [Postcondition(1, "Go to Bluetooth in Settings and set Visibility timeout to Always on")]
- public static async Task Visibility_READ_ONLY()
- {
- try
- {
- //PRECONDITION
- BluetoothAdapter.VisibilityModeChanged += VisibilityModeChangedEvent;
-
- BluetoothHelper.LaunchVisiblityAppControl("10");
-
- await ManualTest.WaitForConfirm();
-
- //POSTCONDITION
- BluetoothAdapter.VisibilityModeChanged -= VisibilityModeChangedEvent;
- }
- catch (NotSupportedException)
- {
- if (isBluetoothSupported == false)
- {
- BluetoothHelper.DisplayLabel("Visibility_READ_ONLY");
- await ManualTest.WaitForConfirm();
- }
- }
- catch (TypeInitializationException e)
- {
- if (isBluetoothSupported == false && e.InnerException.GetType() == typeof(NotSupportedException))
- {
- BluetoothHelper.DisplayLabel("Visibility_READ_ONLY");
- await ManualTest.WaitForConfirm();
- }
- }
- catch (Exception ex)
- {
- Assert.True(false, "Exception occurs. Msg : " + ex.ToString());
- }
- }
-
-// [Test]
- [Category("P1")]
[Description("Test RemainingTimeAsVisible property of BtAdapter")]
[Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.RemainingTimeAsVisible A")]
[Property("SPEC_URL", "-")]
[Test]
[Category("P1")]
[Description("Reads VisibilityMode value of BtAdapter")]
- [Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.VisibilityMode A")]
+ [Property("SPEC", "Tizen.Network.Bluetooth.BluetoothAdapter.Visibility A")]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "PRO")]
[Property("AUTHOR", "Sandeep H, h.sandeep@samsung.com")]
[Precondition(1, "Turn on the bluetooth")]
[Step(1, "Tap the Run button")]
[Postcondition(1, "NA")]
- public static void VisibilityMode_READ_ONLY()
+ public static void Visibility_READ_ONLY()
{
try
{