--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerSearchRequestCallback_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerSearchRequestCallback_notexist
+//==== LABEL Check if interface MediaControllerSearchRequestCallback exists, it should not.
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerSearchRequestCallback:MediaControllerSearchRequestCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+ check_no_interface_object("MediaControllerSearchRequestCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerSearchRequestCallback_onrequest</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerSearchRequestCallback_onrequest
+//==== LABEL Check MediaControllerSearchRequestCallback onrequest method
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerSearchRequestCallback:onrequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CBOA CBT
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, query, searchRequestListener;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC", "GENRE", "rock") ];
+ replyCallback = t.step_func(function (reply){
+ });
+
+ searchRequestListener = t.step_func(function (clientName, request){
+ assert_type(clientName, "string", "clientName isn't a string");
+ assert_type(request, "object", "request isn't an object");
+ assert_equals(clientName, "apimediact.WebAPITizenMediaKeyTests", "returns wrong clientName");
+ assert_equals(request[0].contentType, "MUSIC", "returns wrong request");
+ t.done();
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ mcServerInfo.sendSearchRequest(query, replyCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerSearchRequestReplyCallback_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerSearchRequestReplyCallback_notexist
+//==== LABEL Check if interface MediaControllerSearchRequestReplyCallback exists, it should not.
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerSearchRequestReplyCallback:MediaControllerSearchRequestReplyCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+ check_no_interface_object("MediaControllerSearchRequestReplyCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerSearchRequestReplyCallback_onreply</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerSearchRequestReplyCallback_onreply
+//==== LABEL Check MediaControllerSearchRequestReplyCallback onreply method
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerSearchRequestReplyCallback:onreply M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CBOA CBT
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, query, searchRequestListener;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC") ];
+ replyCallback = t.step_func(function (reply){
+ assert_type(reply, "object", "reply isn't an object");
+ assert_equals(reply.code, 5, "returns wrong status");
+ assert_equals(reply.data.toString(), "{\"key\":\"value\"}", "returns wrong data");
+ t.done();
+ });
+
+ searchRequestListener = t.step_func(function (clientName, request){
+ return new tizen.mediacontroller.RequestReply(new tizen.Bundle({"key": "value"}), 5);
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ mcServerInfo.sendSearchRequest(query, replyCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendRepeatState_state_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendRepeatState_state_TypeMismatch
+//==== LABEL Check argument state conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendRepeatState M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo, state,
+ exceptionName, i, conversionTable;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+
+ conversionTable = getTypeConversionExceptions("enum", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ state = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendRepeatState(state);
+ }, exceptionName + " should be thrown - given incorrect state");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest
+//==== LABEL Check if sendSearchRequest() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MMINA
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, query, searchRequestListener, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC") ];
+ replyCallback = t.step_func(function (){
+ assert_equals(retValue, undefined, "sendSearchRequest returns wrong value");
+ t.done();
+ });
+
+ searchRequestListener = t.step_func(function (clientName, request){
+ return new tizen.mediacontroller.RequestReply(new tizen.Bundle({"key": "value"}), 5);
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ retValue = mcServerInfo.sendSearchRequest(query, replyCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch
+//==== LABEL Check argument errorCallback conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo, incorrectCallback,
+ replyCallback, exceptionName, i, conversionTable;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+
+ replyCallback = t.step_func(function () {
+ assert_unreached("sendSearchRequest() reply callback invoked");
+ });
+
+ conversionTable = getTypeConversionExceptions("functionObject", true);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ incorrectCallback = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendSearchRequest("REPEAT_OFF", replyCallback, incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb
+//==== LABEL Check if sendSearchRequest throws exception when errorCallback is invalid
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", mcServer, mcClient,
+ mcServerInfo, replyCallback, incorrectCallback;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+
+ incorrectCallback = {
+ onerror: t.step_func(function () {
+ assert_unreached("sendSearchRequest() invalid error callback invoked.");
+ })
+ };
+
+ replyCallback = t.step_func(function () {
+ assert_unreached("sendSearchRequest() reply callback invoked.");
+ });
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendSearchRequest([ new tizen.mediacontroller.SearchFilter("MUSIC") ], replyCallback, incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect error callback");
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_exist
+//==== LABEL Check if method sendSearchRequest of MediaControllerServerInfo exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer, mcClient, mcServerInfo;
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+ check_method_exists(mcServerInfo, "sendSearchRequest");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_replyCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_replyCallback_TypeMismatch
+//==== LABEL Check argument replyCallback conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+var mcServer, mcClient, mcServerInfo, incorrectCallback, exceptionName, i, conversionTable;
+
+test(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ incorrectCallback = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendSearchRequest([ new tizen.mediacontroller.SearchFilter("MUSIC") ], incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect reply callback - " + incorrectCallback);
+ }
+
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_replyCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_replyCallback_invalid_cb
+//==== LABEL Check if sendSearchRequest throws exception when replyCallback is invalid
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", mcServer, mcClient,
+ mcServerInfo, incorrectCallback;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+ incorrectCallback = {
+ onsuccess: t.step_func(function () {
+ assert_unreached("sendSearchRequest() reply callback invoked.");
+ })
+ };
+
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendSearchRequest([ new tizen.mediacontroller.SearchFilter("MUSIC") ], incorrectCallback);
+ }, exceptionName + " should be thrown - given incorrect reply callback");
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch
+//==== LABEL Check argument request conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo, request,
+ exceptionName, i, conversionTable, replyCallback;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+
+ conversionTable = getTypeConversionExceptions("object", false);
+ replyCallback = t.step_func(function () {
+ assert_unreached("sendSearchRequest() reply callback invoked");
+ });
+ for (i = 0; i < conversionTable.length; i++) {
+ request = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServerInfo.sendSearchRequest(request, replyCallback);
+ }, exceptionName + " should be thrown - given incorrect request");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_request_invalid</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_request_invalid
+//==== LABEL Check if sendSearchRequest throws invalid error when request objects greater then 20
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+//==== ONLOAD_DELAY 90
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo, request, i, replyCallback;
+
+t.step(function () {
+ mcServer = tizen.mediacontroller.createServer();
+ mcClient = tizen.mediacontroller.getClient();
+ mcServer.updatePlaybackState("PLAY");
+ mcServerInfo = mcClient.getLatestServerInfo();
+
+ request = [];
+ for (i = 0; i < 22; i++) {
+ request.push(new tizen.mediacontroller.SearchFilter("MUSIC"));
+ }
+ replyCallback = t.step_func(function () {
+ assert_unreached("sendSearchRequest() reply callback invoked");
+ });
+ assert_throws(INVALID_VALUES_EXCEPTION,
+ function () {
+ mcServerInfo.sendSearchRequest(request, replyCallback);
+ }, "invalid value exception should be thrown");
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_sendSearchRequest_with_errorCallback</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_sendSearchRequest_with_errorCallback
+//==== LABEL Check if sendSearchRequest() works properly with errorCallback
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:sendSearchRequest M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MOA
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, errorCallback, query, searchRequestListener, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC", "GENRE", "rock") ];
+ replyCallback = t.step_func(function (reply){
+ assert_equals(retValue, undefined, "sendSearchRequest returns wrong value");
+ t.done();
+ });
+ errorCallback = t.step_func(function (error) {
+ assert_unreached("errorCallback is invoked");
+ });
+ searchRequestListener = t.step_func(function (clientName, request){
+ return new tizen.mediacontroller.RequestReply(new tizen.Bundle({"key": "value"}), 5);
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ retValue = mcServerInfo.sendSearchRequest(query, replyCallback, errorCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_setSearchRequestListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_setSearchRequestListener
+//==== LABEL Check if setSearchRequestListener() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:setSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, query, searchRequestListener, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC", "GENRE", "rock") ];
+ replyCallback = t.step_func(function (){
+ });
+
+ searchRequestListener = t.step_func(function (clientName, request){
+ assert_equals(retValue, undefined, "setSearchRequestListener returns wrong value");
+ t.done();
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ retValue = mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ mcServerInfo.sendSearchRequest(query, replyCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_setSearchRequestListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_setSearchRequestListener_exist
+//==== LABEL Check if method setSearchRequestListener of MediaControllerServer exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:setSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer = tizen.mediacontroller.createServer();
+
+ check_method_exists(mcServer, "setSearchRequestListener");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_setSearchRequestListener_listener_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_setSearchRequestListener_listener_TypeMismatch
+//==== LABEL Check argument setSearchRequestListener conversions exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:setSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+ var mcServer, exceptionName, i, conversionTable, listener;
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+ mcServer = tizen.mediacontroller.createServer();
+
+ for (i = 0; i < conversionTable.length; i++) {
+ listener = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServer.setSearchRequestListener(listener);
+ }, exceptionName + " should be thrown - given incorrect listener.");
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_setSearchRequestListener_listener_invalid</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_setSearchRequestListener_listener_invalid
+//==== LABEL Check if setSearchRequestListener throws exception when callback is inavlid listener
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:setSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTL
+
+test(function () {
+ var mcServer, listener, incorrectListener, exceptionName, i;
+ mcServer = tizen.mediacontroller.createServer();
+ incorrectListener = getListenerConversionExceptions(["onrequest"]);
+
+ for (i = 0; i < incorrectListener.length; i++) {
+ listener = incorrectListener[i][0];
+ exceptionName = incorrectListener[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ mcServer.setSearchRequestListener(listener);
+ }, exceptionName + " should be thrown - given incorrect listener.");
+ }
+
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_setSearchRequestListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_setSearchRequestListener_misarg
+//==== LABEL Check if setSearchRequestListener method called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:setSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ var mcServer;
+
+ mcServer = tizen.mediacontroller.createServer();
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ mcServer.setSearchRequestListener();
+ }, "Invoked without non-optional arguments.");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_unsetSearchRequestListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_unsetSearchRequestListener
+//==== LABEL Check if unsetSearchRequestListener() works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:unsetSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), mcServer, mcClient, mcServerInfo,
+ replyCallback, query, searchRequestListener, retValue = null;
+
+t.step(function () {
+ add_result_callback(function(){
+ mcServer.unsetSearchRequestListener();
+ });
+
+ query = [ new tizen.mediacontroller.SearchFilter("MUSIC", "GENRE", "rock") ];
+ replyCallback = t.step_func(function (){
+ });
+
+ searchRequestListener = t.step_func(function (clientName, request){
+ retValue = mcServer.unsetSearchRequestListener();
+ assert_equals(retValue, undefined, "unsetSearchRequestListener returns wrong value");
+ t.done();
+ });
+
+ mcServer = tizen.mediacontroller.createServer();
+ mcServer.setSearchRequestListener(searchRequestListener);
+ mcServer.updatePlaybackState("PLAY");
+ mcClient = tizen.mediacontroller.getClient();
+ mcServerInfo = mcClient.getLatestServerInfo();
+ mcServerInfo.sendSearchRequest(query, replyCallback);
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_unsetSearchRequestListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_unsetSearchRequestListener_exist
+//==== LABEL Check if method unsetSearchRequestListener of MediaControllerServer exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:unsetSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ var mcServer = tizen.mediacontroller.createServer();
+
+ check_method_exists(mcServer, "unsetSearchRequestListener");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_unsetSearchRequestListener_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_unsetSearchRequestListener_extra_argument
+//==== LABEL Check using unsetSearchRequestListener method with extra argument
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:unsetSearchRequestListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+ var mcServer = tizen.mediacontroller.createServer();
+
+ checkExtraArgument(mcServer, "unsetSearchRequestListener");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>RequestReply_constructor</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: RequestReply_constructor
+//==== LABEL Check if RequestReply constructor is correct
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:RequestReply:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRM CONSTRA
+test(function () {
+ var bundle, reply;
+ bundle = new tizen.Bundle({"releasedAfter": "1993"});
+ reply = new tizen.mediacontroller.RequestReply(bundle, 5);
+ assert_true(reply instanceof tizen.mediacontroller.RequestReply, "object was not created properly");
+ assert_equals(reply.data.toString(), bundle.toString(), "data should be set");
+ assert_equals(reply.code, 5, "status should be set");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>RequestReply_constructor_min</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: RequestReply_constructor_min
+//==== LABEL Check if RequestReply constructor is correct without all optional arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:RequestReply:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRM CONSTRA
+test(function () {
+ var reply;
+ reply = new tizen.mediacontroller.RequestReply(new tizen.Bundle());
+ assert_true(reply instanceof tizen.mediacontroller.RequestReply, "object was not created properly");
+ assert_equals(reply.data.toString(), "{}", "data should be set");
+ assert_equals(reply.code, 0, "code should be set");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>RequestReply_exist</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: RequestReply_exist
+//==== LABEL Check if RequestReply exist
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:RequestReply:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRF
+test(function () {
+ assert_true("RequestReply" in tizen.mediacontroller, "RequestReply does not exist");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_category_TypeMismatch</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>p
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_category_TypeMismatch
+//==== LABEL Check argument category conversions exception
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+test(function () {
+ var conversionTable, contentType, exceptionName;
+ conversionTable = getTypeConversionExceptions("enum", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ category = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ new tizen.mediacontroller.SearchFilter("MUSIC", category);
+ }, exceptionName + " should be thrown");
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_category_invalid</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>p
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_category_invalid
+//==== LABEL Check SearchFilter throws exception with invalid category value
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+test(function () {
+ assert_throws(INVALID_VALUES_EXCEPTION,
+ function () {
+ new tizen.mediacontroller.SearchFilter("MUSIC", "TITLE");
+ }, "InvalidValuesError should be thrown");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_constructor</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_constructor
+//==== LABEL Check if SearchFilter constructor is correct
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRM CONSTRA
+test(function () {
+ var query, bundle;
+ bundle = new tizen.Bundle({"releasedAfter": "1993"});
+ query = new tizen.mediacontroller.SearchFilter("MUSIC", "GENRE", "pop", bundle);
+ assert_true(query instanceof tizen.mediacontroller.SearchFilter, "object was not created properly");
+ assert_equals(query.contentType, "MUSIC", "contentType should be set");
+ assert_equals(query.category, "GENRE", "category should be set");
+ assert_equals(query.keyword, "pop", "keyword should be set");
+ assert_equals(query.extraData.toString(), bundle.toString(), "extraData should be set");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_constructor_min</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_constructor_min
+//==== LABEL Check if SearchFilter constructor is correct without all optional arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRM CONSTRA
+test(function () {
+ var query;
+ query = new tizen.mediacontroller.SearchFilter("MUSIC");
+ assert_true(query instanceof tizen.mediacontroller.SearchFilter, "object was not created properly");
+ assert_equals(query.contentType, "MUSIC", "contentType should be set");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_contentType_TypeMismatch</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>p
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_contentType_TypeMismatch
+//==== LABEL Check argument contentType conversions exception
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+test(function () {
+ var conversionTable, contentType, exceptionName;
+ conversionTable = getTypeConversionExceptions("enum", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ contentType = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ new tizen.mediacontroller.SearchFilter(contentType);
+ }, exceptionName + " should be thrown");
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_exist</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_exist
+//==== LABEL Check if SearchFilter exist
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter:constructor C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA CONSTRF
+test(function () {
+ assert_true("SearchFilter" in tizen.mediacontroller, "SearchFilter does not exist");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2019 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+
+<html>
+<head>
+<title>SearchFilter_keyword_invalid</title>
+<meta charset="utf-8">
+<script type="text/javascript" src="support/unitcommon.js"></script>
+</head>p
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: SearchFilter_keyword_invalid
+//==== LABEL Check SearchFilter throws exception with invalid keyword value
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:SearchFilter C
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+test(function () {
+ assert_throws(INVALID_VALUES_EXCEPTION,
+ function () {
+ new tizen.mediacontroller.SearchFilter("MUSIC", "TITLE", null);
+ }, "InvalidValuesError should be thrown");
+}, document.title);
+
+</script>
+</body>
+</html>
</spec>
</specs>
</testcase>
+ <testcase purpose="Check argument state conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendRepeatState_state_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendRepeatState_state_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendRepeatState" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
<testcase purpose="Check argument successCallback conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendRepeatState_successCallback_TypeMismatch">
<description>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendRepeatState_successCallback_TypeMismatch.html</test_script_entry>
</spec>
</specs>
</testcase>
+ <testcase purpose="Check if SearchFilter exist" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="SearchFilter_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if SearchFilter constructor is correct" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="SearchFilter_constructor">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_constructor.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if SearchFilter constructor is correct without all optional arguments" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="SearchFilter_constructor_min">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_constructor_min.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if RequestReply exist" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="RequestReply_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="RequestReply" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if RequestReply constructor is correct" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="RequestReply_constructor">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_constructor.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="RequestReply" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if RequestReply constructor is correct without all optional arguments" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="RequestReply_constructor_min">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_constructor_min.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="RequestReply" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check argument contentType conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="SearchFilter_contentType_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_contentType_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check argument category conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="SearchFilter_category_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_category_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check SearchFilter throws exception with invalid category value" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="SearchFilter_category_invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_category_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check SearchFilter throws exception with invalid keyword value" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="SearchFilter_keyword_invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_keyword_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="constructor" element_name="SearchFilter" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if sendSearchRequest() works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServerInfo_sendSearchRequest">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check argument errorCallback conversions exception" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if sendSearchRequest throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendRepeatState" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if method sendSearchRequest of MediaControllerServerInfo exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerServerInfo_sendSearchRequest_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check argument request conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if sendSearchRequest throws invalid error when request objects greater then 20" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_request_invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_request_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check argument replayCallback conversions exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_replyCallback_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_replyCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if sendSearchRequest throws exception when replayCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServerInfo_sendSearchRequest_replyCallback_invalid_cb">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_replayCallback_invalid_cb.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if sendSearchRequest method works properly with errorCallback argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServerInfo_sendSearchRequest_with_errorCallback">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_with_errorCallback.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServerInfo" element_type="method" element_name="sendSearchRequest" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if MediaControllerServer setSearchRequestListener method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_setSearchRequestListener">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="setSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if setSearchRequestListener exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerServer_setSearchRequestListener_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="setSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setSearchRequestListener throws exception when listener is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServer_setSearchRequestListener_listener_TypeMismatch">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="setSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setSearchRequestListener throws exception when listener is invalid" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServer_setSearchRequestListener_listener_invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_listener_invalid.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="setSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if setSearchRequestListener method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P2" id="MediaControllerServer_setSearchRequestListener_misarg">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="setSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if MediaControllerServer unsetSearchRequestListener method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_unsetSearchRequestListener">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="unsetSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="check if unsetSearchRequestListener exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerServer_unsetSearchRequestListener_exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener_exist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="unsetSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check using unsetSearchRequestListener method with extra argument" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_unsetSearchRequestListener_extra_argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener_extra_argument.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerServer" element_type="method" element_name="unsetSearchRequestListener" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface MediaControllerSearchRequestReplyCallback exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P3" id="MediaControllerSearchRequestReplyCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestReplyCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerSearchRequestReplyCallback" element_type="method" element_name="MediaControllerSearchRequestReplyCallback" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check MediaControllerSearchRequestReplyCallback onreply method" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerSearchRequestReplyCallback_onreply">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestReplyCallback_onreply.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerSearchRequestReplyCallback" element_type="method" element_name="MediaControllerSearchRequestReplyCallback" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if interface MediaControllerSearchRequestCallback exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P3" id="MediaControllerSearchRequestCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestCallback_notexist.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerSearchRequestCallback" element_type="method" element_name="MediaControllerSearchRequestCallback" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check MediaControllerSearchRequestCallback onrequest method" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerSearchRequestCallback_onrequest">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestCallback_onrequest.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="MediaControllerSearchRequestCallback" element_type="method" element_name="MediaControllerSearchRequestCallback" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+ <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendRepeatState_exist.html</test_script_entry>
</description>
</testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendRepeatState_state_TypeMismatch" priority="P2" purpose="Check argument state conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendRepeatState_state_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
<testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendRepeatState_successCallback_TypeMismatch" priority="P2" purpose="Check argument successCallback conversions exception">
<description>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendRepeatState_successCallback_TypeMismatch.html</test_script_entry>
<test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html</test_script_entry>
</description>
</testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_exist" priority="P1" purpose="Check if SearchFilter exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_constructor" priority="P1" purpose="Check if SearchFilter constructor is correct">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_constructor.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_constructor_min" priority="P1" purpose="Check if SearchFilter constructor is correct without all optional arguments">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_constructor_min.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="RequestReply_exist" priority="P1" purpose="Check if RequestReply exist">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="RequestReply_constructor" priority="P1" purpose="Check if RequestReply constructor is correct">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_constructor.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="RequestReply_constructor_min" priority="P1" purpose="Check if RequestReply constructor is correct without all optional arguments">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/RequestReply_constructor_min.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_contentType_TypeMismatch" priority="P2" purpose="Check argument contentType conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_contentType_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_category_TypeMismatch" priority="P2" purpose="Check argument category conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_category_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_category_invalid" priority="P2" purpose="Check SearchFilter throws exception with invalid category value">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_category_invalid.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="SearchFilter_keyword_invalid" priority="P2" purpose="Check SearchFilter throws exception with invalid keyword value">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/SearchFilter_keyword_invalid.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest" priority="P1" purpose="Check if sendSearchRequest() works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch" onload_delay="90" priority="P2" purpose="Check argument sendSearchRequest conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_errorCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb" onload_delay="90" priority="P2" purpose="Check if sendSearchRequest throws exception when errorCallback is invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_errorCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_exist" priority="P0" purpose="Check if method sendSearchRequest of MediaControllerServerInfo exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch" priority="P2" purpose="Check argument request conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_request_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_request_invalid" priority="P2" purpose="Check if sendSearchRequest throws invalid error when request objects greater then 20">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_request_invalid.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_successCallback_TypeMismatch" priority="P2" purpose="Check argument replyCallback conversions exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_replyCallback_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_replyCallback_invalid_cb" onload_delay="90" priority="P2" purpose="Check if sendSearchRequest throws exception when replyCallback is invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_replyCallback_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_sendSearchRequest_with_errorCallback" onload_delay="90" priority="P1" purpose="Check if sendSearchRequest method works properly with errorCallback argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_sendSearchRequest_with_errorCallback.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_setSearchRequestListener" priority="P1" purpose="Check if MediaControllerServer setSearchRequestListener method works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_setSearchRequestListener_exist" priority="P0" purpose="check if setSearchRequestListener exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_setSearchRequestListener_listener_TypeMismatch" priority="P2" purpose="Check if setSearchRequestListener throws exception when listener is incorrect">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_setSearchRequestListener_listener_invalid" priority="P2" purpose="Check if setSearchRequestListener throws exception when listener is invalid">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_listener_invalid.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_setSearchRequestListener_misarg" priority="P2" purpose="Check if setSearchRequestListener method called with missing non-optional argument throws an exception">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_setSearchRequestListener_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_unsetSearchRequestListener" priority="P1" purpose="Check if MediaControllerServer unsetSearchRequestListener method works properly">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_unsetSearchRequestListener_exist" priority="P0" purpose="check if unsetSearchRequestListener exists">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_unsetSearchRequestListener_extra_argument" priority="P1" purpose="Check using unsetSearchRequestListener method with extra argument">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_unsetSearchRequestListener_extra_argument.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerSearchRequestReplyCallback_notexist" priority="P3" purpose="Check if interface MediaControllerSearchRequestReplyCallback exists, it should not">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestReplyCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerSearchRequestReplyCallback_onreply" priority="P1" purpose="Check MediaControllerSearchRequestReplyCallback onreply method">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestReplyCallback_onreply.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerSearchRequestCallback_notexist" priority="P3" purpose="Check if interface MediaControllerSearchRequestCallback exists, it should not">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerSearchRequestCallback_onrequest" priority="P1" purpose="Check MediaControllerSearchRequestCallback onrequest method">
+ <description>
+ <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerSearchRequestCallback_onrequest.html</test_script_entry>
+ </description>
+ </testcase>
</set>
</suite>
</test_definition>