Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e1b70d01
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e1b70d01
编写于
7月 13, 2023
作者:
H
hu0475
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完成telephony子系统Connection模块的跨平台测试套 完成telephony子系统WebSocket模块的跨平台测试套
Signed-off-by:
N
hu0475
<
huyanqiang5@huawei.com
>
上级
3c0a9009
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
2 addition
and
320 deletion
+2
-320
telephony/BUILD.gn
telephony/BUILD.gn
+0
-6
telephony/crossplatform/BUILD.gn
telephony/crossplatform/BUILD.gn
+0
-5
telephony/crossplatform/telephonyConnectionetstest/AppScope/app.json
...rossplatform/telephonyConnectionetstest/AppScope/app.json
+0
-7
telephony/crossplatform/telephonyConnectionetstest/BUILD.gn
telephony/crossplatform/telephonyConnectionetstest/BUILD.gn
+1
-23
telephony/crossplatform/telephonyConnectionetstest/src/main/ets/TestAbility/TestAbility.ets
...onnectionetstest/src/main/ets/TestAbility/TestAbility.ets
+0
-3
telephony/crossplatform/telephonyConnectionetstest/src/main/ets/TestAbility/pages/Index.ets
...onnectionetstest/src/main/ets/TestAbility/pages/Index.ets
+0
-3
telephony/crossplatform/telephonyWebSocketetstest/AppScope/app.json
...crossplatform/telephonyWebSocketetstest/AppScope/app.json
+0
-7
telephony/crossplatform/telephonyWebSocketetstest/BUILD.gn
telephony/crossplatform/telephonyWebSocketetstest/BUILD.gn
+1
-23
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/TestAbility/TestAbility.ets
...WebSocketetstest/src/main/ets/TestAbility/TestAbility.ets
+0
-3
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/TestAbility/pages/Index.ets
...WebSocketetstest/src/main/ets/TestAbility/pages/Index.ets
+0
-3
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/test/WebSocket.test.ets
...honyWebSocketetstest/src/main/ets/test/WebSocket.test.ets
+0
-237
未找到文件。
telephony/BUILD.gn
浏览文件 @
e1b70d01
...
...
@@ -14,13 +14,7 @@
group("telephony") {
testonly = true
deps = [
<<<<<<< HEAD
"telephonyjstest:telephonyjstest",
"crossplatform:crossplatform",
]
=======
"crossplatform:crossplatform",
"telephonyjstest:telephonyjstest",
]
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
}
telephony/crossplatform/BUILD.gn
浏览文件 @
e1b70d01
...
...
@@ -16,13 +16,8 @@ group("crossplatform") {
testonly = true
if (is_standard_system) {
deps = [
<<<<<<< HEAD
"telephonyConnectionetstest:ActsCrossPlatformConnectionTest",
"telephonyWebSocketetstest:ActsCrossPlatformWebSocketTest",
=======
"telephonyConnectionetstest:Connection_ets_test",
"telephonyWebSocketetstest:WebSocket_ets_test",
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
]
}
}
telephony/crossplatform/telephonyConnectionetstest/AppScope/app.json
浏览文件 @
e1b70d01
...
...
@@ -6,17 +6,10 @@
"versionName"
:
"1.0.0"
,
"icon"
:
"$media:app_icon"
,
"label"
:
"$string:app_name"
,
<<<<<<<
HEAD
"minAPIVersion"
:
10
,
"targetAPIVersion"
:
10
,
"car"
:
{
"apiCompatibleVersion"
:
10
,
=======
"minAPIVersion"
:
9
,
"targetAPIVersion"
:
9
,
"car"
:
{
"apiCompatibleVersion"
:
9
,
>>>>>>>
c
661
a
9
d
77
ed
4
eae
4068
dadf
859
aa
14
d
46767
d
4
a
4
"singleUser"
:
false
}
}
...
...
telephony/crossplatform/telephonyConnectionetstest/BUILD.gn
浏览文件 @
e1b70d01
<<<<<<< HEAD
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -14,11 +13,6 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCrossPlatformConnectionTest") {
=======
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("Connection_ets_test") {
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
hap_profile = "src/main/module.json"
deps = [
":windowStage_js_assets",
...
...
@@ -26,24 +20,16 @@ ohos_js_hap_suite("Connection_ets_test") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
<<<<<<< HEAD
# hap_name: HAP的名字,可选,默认为目标名
hap_name = "ActsCrossPlatformConnectionTest"
=======
# hap_name: HAP的名字,可选,默认为目标名
hap_name = "Connection_ets_test"
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
hap_name = "ActsCrossPlatformConnectionTest"
subsystem_name = "communication"
part_name = "netstack"
}
ohos_app_scope("windowStage_app_profile") {
# app_profile: HAP的AppScope中的app.json,只在Stage模型下使用
app_profile = "AppScope/app.json"
<<<<<<< HEAD
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
# sources: 资源文件路径
sources = [ "AppScope/resources" ]
}
...
...
@@ -54,13 +40,6 @@ ohos_js_assets("windowStage_js_assets") {
ohos_resources("windowStage_resources") {
# sources: 资源文件路径
sources = [ "src/main/resources" ]
<<<<<<< HEAD
# deps: 当前目标的依赖
deps = [ ":windowStage_app_profile" ]
# hap_profile: HAP的config.json,Stage模型对应module.json
hap_profile = "src/main/module.json"
}
=======
# deps: 当前目标的依赖
deps = [ ":windowStage_app_profile" ]
...
...
@@ -68,4 +47,3 @@ ohos_resources("windowStage_resources") {
# hap_profile: HAP的config.json,Stage模型对应module.json
hap_profile = "src/main/module.json"
}
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
telephony/crossplatform/telephonyConnectionetstest/src/main/ets/TestAbility/TestAbility.ets
浏览文件 @
e1b70d01
<<<<<<< HEAD
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -13,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
import UIAbility from '@ohos.app.ability.UIAbility';
import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
import hilog from '@ohos.hilog';
...
...
telephony/crossplatform/telephonyConnectionetstest/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
e1b70d01
<<<<<<< HEAD
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -13,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
import hilog from '@ohos.hilog';
@Entry
...
...
telephony/crossplatform/telephonyWebSocketetstest/AppScope/app.json
浏览文件 @
e1b70d01
...
...
@@ -6,17 +6,10 @@
"versionName"
:
"1.0.0"
,
"icon"
:
"$media:app_icon"
,
"label"
:
"$string:app_name"
,
<<<<<<<
HEAD
"minAPIVersion"
:
10
,
"targetAPIVersion"
:
10
,
"car"
:
{
"apiCompatibleVersion"
:
10
,
=======
"minAPIVersion"
:
9
,
"targetAPIVersion"
:
9
,
"car"
:
{
"apiCompatibleVersion"
:
9
,
>>>>>>>
c
661
a
9
d
77
ed
4
eae
4068
dadf
859
aa
14
d
46767
d
4
a
4
"singleUser"
:
false
}
}
...
...
telephony/crossplatform/telephonyWebSocketetstest/BUILD.gn
浏览文件 @
e1b70d01
<<<<<<< HEAD
# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -14,11 +13,6 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCrossPlatformWebSocketTest") {
=======
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("WebSocket_ets_test") {
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
hap_profile = "src/main/module.json"
deps = [
":windowStage_js_assets",
...
...
@@ -26,24 +20,16 @@ ohos_js_hap_suite("WebSocket_ets_test") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
<<<<<<< HEAD
# hap_name: HAP的名字,可选,默认为目标名
hap_name = "ActsCrossPlatformWebSocketTest"
=======
# hap_name: HAP的名字,可选,默认为目标名
hap_name = "WebSocket_ets_test"
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
hap_name = "ActsCrossPlatformWebSocketTest"
subsystem_name = "communication"
part_name = "netstack"
}
ohos_app_scope("windowStage_app_profile") {
# app_profile: HAP的AppScope中的app.json,只在Stage模型下使用
app_profile = "AppScope/app.json"
<<<<<<< HEAD
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
# sources: 资源文件路径
sources = [ "AppScope/resources" ]
}
...
...
@@ -54,13 +40,6 @@ ohos_js_assets("windowStage_js_assets") {
ohos_resources("windowStage_resources") {
# sources: 资源文件路径
sources = [ "src/main/resources" ]
<<<<<<< HEAD
# deps: 当前目标的依赖
deps = [ ":windowStage_app_profile" ]
# hap_profile: HAP的config.json,Stage模型对应module.json
hap_profile = "src/main/module.json"
}
=======
# deps: 当前目标的依赖
deps = [ ":windowStage_app_profile" ]
...
...
@@ -68,4 +47,3 @@ ohos_resources("windowStage_resources") {
# hap_profile: HAP的config.json,Stage模型对应module.json
hap_profile = "src/main/module.json"
}
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/TestAbility/TestAbility.ets
浏览文件 @
e1b70d01
<<<<<<< HEAD
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -13,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
import UIAbility from '@ohos.app.ability.UIAbility';
import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
import hilog from '@ohos.hilog';
...
...
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
e1b70d01
<<<<<<< HEAD
/**
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -13,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
import hilog from '@ohos.hilog';
@Entry
...
...
telephony/crossplatform/telephonyWebSocketetstest/src/main/ets/test/WebSocket.test.ets
浏览文件 @
e1b70d01
...
...
@@ -12,10 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
<<<<<<< HEAD
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
import webSocket from '@ohos.net.webSocket'
...
...
@@ -99,24 +95,14 @@ export default function webSocketTest() {
*/
it('testConnect001', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
mWebSocket.connect(null, (error, value) => {
if (!error) {
console.log(`case success11:` + value);
=======
mWebSocket.connect(serverIpAddress, (error, value) => {
if (!error) {
console.log(`case success11:` + value); //自动化脚本调用所有的跨平台的接口!!!
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
expect(value).assertTrue();
done();
} else {
console.log(`error, case failed,errCode:` + error.code);
<<<<<<< HEAD
expect(error.code).assertEqual(401);
=======
expect().assertFail();
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
done();
}
});
...
...
@@ -139,22 +125,14 @@ export default function webSocketTest() {
}
}
console.info('webSocket: start11');
<<<<<<< HEAD
mWebSocket.connect("ws://19211.16811.1.100:8081/string", webSocketRequestOptions, (error, value) => {
=======
mWebSocket.connect(serverIpAddress, webSocketRequestOptions, (error, value) => {
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
if (!error) {
console.log(`case success11:` + value);
expect(value).assertTrue();
done();
} else {
console.log(`error, case failed,errCode:` + error.code);
<<<<<<< HEAD
expect(error.code).assertEqual(-1);
=======
expect().assertFail();
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
done();
}
});
...
...
@@ -170,7 +148,6 @@ export default function webSocketTest() {
*/
it('testConnect003', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
mWebSocket.connect("", (error, value) => {
if (!error) {
console.log(`case success11:` + value);
...
...
@@ -181,41 +158,6 @@ export default function webSocketTest() {
expect(error.code).assertEqual(-1);
done();
}
=======
let webSocketRequestOptions: webSocket.WebSocketRequestOptions = {
header: "test header"
}
console.info('webSocket: start11');
mWebSocket.connect(serverIpAddress, webSocketRequestOptions).then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
});
});
/*
* @tc.number: TEST_CONNECT_004
* @tc.name : testConnect004
* @tc.desc : Initiates a WebSocket request to establish a WebSocket connection to a given URL.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it('testConnect004', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
mWebSocket.connect(serverIpAddress).then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
});
});
...
...
@@ -229,7 +171,6 @@ export default function webSocketTest() {
*/
it('testSend001', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
mWebSocket.send("test data", (error, value) => {
if (!error) {
console.log(`case success,data:` + value);
...
...
@@ -240,20 +181,6 @@ export default function webSocketTest() {
expect(error.code).assertEqual(2302999);
done();
}
=======
mWebSocket.connect(serverIpAddress, (error, data) => {
mWebSocket.send("test data", (error, value) => {
if (!error) {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
} else {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
}
});
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
});
});
...
...
@@ -267,7 +194,6 @@ export default function webSocketTest() {
*/
it('testSend002', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
let promise = mWebSocket.send("test data");
promise.then(value => {
console.log(`case success,data:` + value);
...
...
@@ -277,19 +203,6 @@ export default function webSocketTest() {
console.log(`error, case failed,errCode:` + error.code);
expect(error.code).assertEqual(2302999);
done();
=======
mWebSocket.connect(serverIpAddress, (error, data) => {
let promise = mWebSocket.send("test data");
promise.then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
});
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
});
});
...
...
@@ -303,44 +216,12 @@ export default function webSocketTest() {
*/
it('testSend003', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
=======
var str = "Hello";
for (var i = 0; i < 200; i++) {
str += "Hello";
}
mWebSocket.connect(serverIpAddress, (error, data) => {
let promise = mWebSocket.send(str);
promise.then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
});
});
});
/*
* @tc.number: TEST_SEND_004
* @tc.name : testSend004
* @tc.desc : Sends data through a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it('testSend004', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
var str = "Hello, server!(arrayBuffer promise mode)";
var buf = new ArrayBuffer(str.length);
var message = new Uint8Array(buf);
for (var i = 0, strLen = str.length; i < strLen; i++) {
message[i] = str.charCodeAt(i);
}
<<<<<<< HEAD
let promise = mWebSocket.send(message.buffer);
promise.then(value => {
console.log(`case success,data:` + value);
...
...
@@ -350,19 +231,6 @@ export default function webSocketTest() {
console.log(`error, case failed,errCode:` + error.code);
expect(error.code).assertEqual(2302999);
done();
=======
mWebSocket.connect(serverIpAddress, (error, data) => {
let promise = mWebSocket.send(message.buffer);
promise.then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
});
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
});
});
...
...
@@ -376,90 +244,6 @@ export default function webSocketTest() {
*/
it('testClose001', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
<<<<<<< HEAD
=======
mWebSocket.connect(serverIpAddress, (error, data) => {
mWebSocket.close((error, value) => {
if (!error) {
console.log(`case success:` + value);
expect(value).assertTrue();
done();
} else {
console.log(`error, case failed,errCode:` + error.code);
expect(error.code).assertEqual(2302999);
done(); //补上on、off的接口,触发10次,每次都能监听到!!!
}
});
});
});
/*
* @tc.number: TEST_CLOSE_002
* @tc.name : testClose002
* @tc.desc : Closes a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it('testClose002', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
let webSocketCloseOptions: webSocket.WebSocketCloseOptions = {
code: 1,
reason: "test reason"
}
mWebSocket.connect(serverIpAddress, (error, data) => {
mWebSocket.close(webSocketCloseOptions, (error, value) => {
if (!error) {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
} else {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
}
});
});
});
/*
* @tc.number: TEST_CLOSE_003
* @tc.name : testClose003
* @tc.desc : Closes a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it('testClose003', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
let webSocketCloseOptions: webSocket.WebSocketCloseOptions = {
code: 1,
reason: "test reason"
}
mWebSocket.connect(serverIpAddress, (error, data) => {
mWebSocket.close(webSocketCloseOptions).then(value => {
console.log(`case success,data:` + value);
expect(value).assertTrue();
done();
}).catch((error) => {
console.log(`error, case failed,errCode:` + error.code);
expect().assertFail();
done();
});
});
});
/*
* @tc.number: TEST_CLOSE_004
* @tc.name : testClose004
* @tc.desc : Closes a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
it('testClose004', 0, async function (done) {
let mWebSocket = webSocket.createWebSocket();
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
mWebSocket.close((error, value) => {
if (!error) {
console.log(`case success:` + value);
...
...
@@ -474,23 +258,14 @@ export default function webSocketTest() {
});
/*
<<<<<<< HEAD
* @tc.number: TEST_CLOSE_002
* @tc.name : testClose002
=======
* @tc.number: TEST_CLOSE_005
* @tc.name : testClose005
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
* @tc.desc : Closes a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
<<<<<<< HEAD
it('testClose002', 0, async function (done) {
=======
it('testClose005', 0, async function (done) {
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
let mWebSocket = webSocket.createWebSocket();
let webSocketCloseOptions: webSocket.WebSocketCloseOptions = {
code: 1,
...
...
@@ -510,23 +285,14 @@ export default function webSocketTest() {
});
/*
<<<<<<< HEAD
* @tc.number: TEST_CLOSE_003
* @tc.name : testClose003
=======
* @tc.number: TEST_CLOSE_006
* @tc.name : testClose006
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
* @tc.desc : Closes a WebSocket connection.
* @tc.size : MediumTest
* @tc.type : Method
* @tc.level : Level 2
*/
<<<<<<< HEAD
it('testClose003', 0, async function (done) {
=======
it('testClose006', 0, async function (done) {
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
let mWebSocket = webSocket.createWebSocket();
let webSocketCloseOptions: webSocket.WebSocketCloseOptions = {
code: 1,
...
...
@@ -543,7 +309,6 @@ export default function webSocketTest() {
});
});
<<<<<<< HEAD
/*
* @tc.number: TEST_ON_OPEN_001
* @tc.name : testOn_Open001
...
...
@@ -681,8 +446,6 @@ export default function webSocketTest() {
expect(true).assertTrue();
});
=======
>>>>>>> c661a9d77ed4eae4068dadf859aa14d46767d4a4
})
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录