From: chen Date: Fri, 13 Dec 2024 22:45:19 +0000 (+0800) Subject: [tv][bluetooth] DF241203-03073 update 2 tcs add timeout X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aec5aa5af9a322779530fb4251d67f8ff9453ca2;p=test%2Ftct%2Fweb%2Fapi.git [tv][bluetooth] DF241203-03073 update 2 tcs add timeout Change-Id: I2a4629ada8bbedca417c572583f0c9ffce0596f8 Signed-off-by: chen --- diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_createBonding_bondingDevice.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_createBonding_bondingDevice.html index 8e006684c..a9ffb3ce3 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_createBonding_bondingDevice.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_createBonding_bondingDevice.html @@ -102,6 +102,7 @@ t.step(function () { stopDiscoverySuccess1 = t.step_func(function () { console.log("stopDiscoverySuccess1"); }); + stopDiscoverySuccess = t.step_func(function () { adapter.discoverDevices(discoverDevicesSuccessCallback, discoverDevicesError); }); diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html index fcad5677c..288cc2ff1 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html @@ -33,17 +33,16 @@ Authors: //==== TEST: BluetoothAdapter_discoverDevices_with_errorCallback //==== LABEL Check with non-optional arguments discoverDevices(valid_successCallback, errorCallback) //==== PRIORITY P2 -//==== ONLOAD_DELAY 180 +//==== ONLOAD_DELAY 300 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:discoverDevices M //==== 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 MOA MAST -setup({timeout: 180000}); -var t = async_test(document.title, {timeout: 180000}), adapter, discoverDevicesErrorCB, stopDiscoverySuccess, +setup({timeout: 300000}); +var t = async_test(document.title, {timeout: 300000}), adapter, discoverDevicesErrorCB, stopDiscoverySuccess, discoverDevicesSuccessCB; t.step(function () { if (BT_SUPPORT) { // network.bluetooth support - discoverDevicesSuccessCB = { onstarted: t.step_func(function () { }), diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html index 4dca76c95..960fa6886 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html +++ b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html @@ -34,13 +34,13 @@ Authors: //==== TEST: BluetoothAdapter_getKnownDevices //==== LABEL Check with optional arguments getKnownDevices(valid_successCallback) //==== PRIORITY P2 -//==== ONLOAD_DELAY 180 +//==== ONLOAD_DELAY 300 //==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothAdapter:getKnownDevices M //==== 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 MMINA MAST MR -setup({timeout: 180000}); -var t = async_test(document.title, {timeout: 180000}), adapter, testDeviceSuccessCB, discoverSuccess, discoverError, +setup({timeout: 300000}); +var t = async_test(document.title, {timeout: 300000}), adapter, testDeviceSuccessCB, discoverSuccess, discoverError, stopDiscoverySuccess, retValue = null; t.step(function () { if (BT_SUPPORT) { // network.bluetooth support @@ -48,7 +48,6 @@ t.step(function () { check_bluetooth_device_array(devices); check_bluetooth_device(devices[0]); assert_equals(retValue, undefined, "Method getKnownDevices returns wrong value."); - t.done(); }); diff --git a/common/tct-bluetooth-tizen-tests/tests.full.xml b/common/tct-bluetooth-tizen-tests/tests.full.xml index e56b32ab2..4830e3bb9 100755 --- a/common/tct-bluetooth-tizen-tests/tests.full.xml +++ b/common/tct-bluetooth-tizen-tests/tests.full.xml @@ -743,7 +743,7 @@ - + The bluetooth of the remote/test device MUST be turned on and discoverable from other devices. /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html @@ -4566,7 +4566,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from - + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html diff --git a/common/tct-bluetooth-tizen-tests/tests.xml b/common/tct-bluetooth-tizen-tests/tests.xml index 6c433d2fe..8a89b04a0 100755 --- a/common/tct-bluetooth-tizen-tests/tests.xml +++ b/common/tct-bluetooth-tizen-tests/tests.xml @@ -4025,7 +4025,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_successCallback_invalid_cb.html - + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_discoverDevices_with_errorCallback.html @@ -4093,7 +4093,7 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getDevice_with_success_TypeMismatch_and_error_null.html - + /opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_getKnownDevices.html