From: chen Date: Wed, 24 Apr 2024 10:24:53 +0000 (+0800) Subject: [tv][bluetooth]fix manual testing fail for 9.0 VD release X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89f7862ededebcd4d7de4ebb6baf52dcecbc255a;p=test%2Ftct%2Fweb%2Fapi.git [tv][bluetooth]fix manual testing fail for 9.0 VD release Change-Id: I398b21d580bed52dcefc44905daca36e9b48b44f Signed-off-by: chen --- diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_registerRFCOMMServiceByUUID_onconnect_successful.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_registerRFCOMMServiceByUUID_onconnect_successful.html index fecac5e42..b7a713472 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_registerRFCOMMServiceByUUID_onconnect_successful.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_registerRFCOMMServiceByUUID_onconnect_successful.html @@ -57,7 +57,7 @@ Authors: //==== EXPECT onconnect is called. //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:registerRFCOMMServiceByUUID M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html -//==== PRE tct-bt-helper MUST be launched on the remote device. +//==== PRE tct-bt-helper MUST be launched on the remote device, devices need to be unpaired/unbonded before the test, as already bonded devices cannot pass this test. //==== TEST_CRITERIA MOA MAST setup({timeout:180000, explicit_done:true}); var adapter = null, t = async_test(document.title, {timeout: 180000}), diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared.html index dbe3c2feb..3e5a9607f 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared.html @@ -22,11 +22,13 @@ Authors: --> + BluetoothDiscoverDevicesSuccessCallback_ondevicedisappeared +
@@ -41,13 +43,13 @@ Authors: //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html //==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices. //==== TEST_CRITERIA CBT CBOA -setup({timeout: 180000}); -var adapter = null, t = async_test(document.title, {timeout: 180000}), +setup({ timeout: 180000 }); +var adapter = null, t = async_test(document.title, { timeout: 180000 }), stopDiscoverySuccess, discoverDevicesErrorCB, discoverDevicesSuccessOneCB, discoverDevicesSuccessTwoCB, flag = false; t.step(function () { if (BT_SUPPORT) { // network.bluetooth support - discoverDevicesErrorCB = t.step_func(function (e) { + discoverDevicesErrorCB = t.step_func(function (e) { assert_unreached("discoverDevicesErrorCB exception:" + e.message); }); @@ -80,8 +82,18 @@ t.step(function () { }), onfinished: t.step_func(function (devices) { if (devices.length > 0) { + found = false; + for (var i = 0; i < devices.length; i++) { + if (devices[i].address === REMOTE_DEVICE_ADDRESS) { + found = true; + break; + } + } + if (found === false) { + assert_unreached("Device not found:" + REMOTE_DEVICE_ADDRESS); + } + alert("Please disable bluetooth on the other device, then close this alert"); adapter.discoverDevices(discoverDevicesSuccessTwoCB, discoverDevicesErrorCB); - alert("Please disable bluetooth on other device"); } else { setTimeout(stopDiscoverySuccess, 1000); } @@ -102,4 +114,5 @@ t.step(function () { - + + \ No newline at end of file diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html index bf45bc6a5..ec423cc11 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothServiceHandler_onconnect_attribute.html @@ -50,7 +50,7 @@ Authors: //==== EXPECT onconnect is called. //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothServiceHandler:onconnect A //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html -//==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices. tct-bt-helper MUST be launched on the remote device and turn on. +//==== PRE The bluetooth of the remote/test device MUST be turned on and discoverable from other devices, tct-bt-helper MUST be launched on the remote device and turn on, devices need to be unpaired/unbonded before the test as already bonded devices cannot pass this test. //==== TEST_CRITERIA ASG AE AT ADV setup({timeout:180000, explicit_done:true}); var t = async_test(document.title, {timeout: 180000}), adapter, onError, testMessage, registerSuccessCallback, diff --git a/common/tct-bluetooth-tizen-tests/tests.full.xml b/common/tct-bluetooth-tizen-tests/tests.full.xml index 41263829a..f99e5b39b 100755 --- a/common/tct-bluetooth-tizen-tests/tests.full.xml +++ b/common/tct-bluetooth-tizen-tests/tests.full.xml @@ -9136,7 +9136,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from - tct-bt-helper MUST be launched on the remote device. + tct-bt-helper MUST be launched on the remote device, devices need to be unpaired/unbonded before the test, as already bonded devices cannot pass this test. Push [Search] button on the remote device after description is appeared. @@ -11306,7 +11306,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from - tct-bt-helper MUST be launched on the remote device. + tct-bt-helper MUST be launched on the remote device, devices need to be unpaired/unbonded before the test as already bonded devices cannot pass this test. Push [Search] button on the remote device after pop-up is launched. diff --git a/common/tct-bluetooth-tizen-tests/tests.xml b/common/tct-bluetooth-tizen-tests/tests.xml index c5912051a..6175c0d4f 100755 --- a/common/tct-bluetooth-tizen-tests/tests.xml +++ b/common/tct-bluetooth-tizen-tests/tests.xml @@ -4196,7 +4196,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from - tct-bt-helper MUST be launched on the remote device. + tct-bt-helper MUST be launched on the remote device, devices need to be unpaired/unbonded before the test, as already bonded devices cannot pass this test. Push [Search] button on the remote device after description is appeared. @@ -5100,7 +5100,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from - tct-bt-helper MUST be launched on the remote device. + tct-bt-helper MUST be launched on the remote device, devices need to be unpaired/unbonded before the test as already bonded devices cannot pass this test. Push [Search] button on the remote device after pop-up is launched.