Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5ee83f75
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看板
提交
5ee83f75
编写于
11月 23, 2020
作者:
M
mlinlmcc
提交者:
Gitee
11月 23, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复wifi服务xts用例由于AP和STA状态差异导致的概率失败问题
上级
ca7d3637
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
40 addition
and
10 deletion
+40
-10
communication_lite/wifiservice_hal/src/wifiservice_func_test.c
...nication_lite/wifiservice_hal/src/wifiservice_func_test.c
+40
-10
未找到文件。
communication_lite/wifiservice_hal/src/wifiservice_func_test.c
浏览文件 @
5ee83f75
...
@@ -292,8 +292,11 @@ static BOOL WifiServiceFuncTestSuiteTearDown(void)
...
@@ -292,8 +292,11 @@ static BOOL WifiServiceFuncTestSuiteTearDown(void)
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0100
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0100
* @tc.name : Test enable and disable wifi interface
* @tc.name : Test enable and disable wifi interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testEnableDisableWifi
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testEnableDisableWifi
,
LEVEL
2
)
{
{
int
stat
=
IsWifiActive
();
int
stat
=
IsWifiActive
();
TEST_ASSERT_EQUAL_INT
(
stat
,
WIFI_STATE_NOT_AVALIABLE
);
TEST_ASSERT_EQUAL_INT
(
stat
,
WIFI_STATE_NOT_AVALIABLE
);
...
@@ -323,8 +326,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testEnableDisableWifi, Function | Mediu
...
@@ -323,8 +326,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testEnableDisableWifi, Function | Mediu
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0200
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0200
* @tc.name : Test scan and get scan info interface
* @tc.name : Test scan and get scan info interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testScan
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testScan
,
LEVEL
2
)
{
{
unsigned
int
size
=
WIFI_SCAN_HOTSPOT_LIMIT
;
unsigned
int
size
=
WIFI_SCAN_HOTSPOT_LIMIT
;
WifiErrorCode
error
=
EnableWifi
();
WifiErrorCode
error
=
EnableWifi
();
...
@@ -360,8 +366,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testScan, Function | MediumTest | Level
...
@@ -360,8 +366,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testScan, Function | MediumTest | Level
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0300
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0300
* @tc.name : Test connect and disconnect interface
* @tc.name : Test connect and disconnect interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testConnectDisConnect
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testConnectDisConnect
,
LEVEL
2
)
{
{
int
netId
=
0
;
int
netId
=
0
;
WifiDeviceConfig
config
=
{
0
};
WifiDeviceConfig
config
=
{
0
};
...
@@ -388,8 +397,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testConnectDisConnect, Function | Mediu
...
@@ -388,8 +397,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testConnectDisConnect, Function | Mediu
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0400
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0400
* @tc.name : Test handle device config interface
* @tc.name : Test handle device config interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testHandleDeviceConfig
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testHandleDeviceConfig
,
LEVEL
2
)
{
{
int
netId
=
0
;
int
netId
=
0
;
const
char
*
ssid1
=
"XtsTestWifi1"
;
const
char
*
ssid1
=
"XtsTestWifi1"
;
...
@@ -452,8 +464,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleDeviceConfig, Function | Medi
...
@@ -452,8 +464,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleDeviceConfig, Function | Medi
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0500
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0500
* @tc.name : Test handle AP config interface
* @tc.name : Test handle AP config interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testHandleHotspotConfig
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testHandleHotspotConfig
,
LEVEL
2
)
{
{
const
char
*
ssid
=
"XtsTestAp"
;
const
char
*
ssid
=
"XtsTestAp"
;
const
char
*
info
=
"12345678"
;
const
char
*
info
=
"12345678"
;
...
@@ -495,8 +510,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleHotspotConfig, Function | Med
...
@@ -495,8 +510,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testHandleHotspotConfig, Function | Med
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0600
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0600
* @tc.name : Test enable and disable AP interface
* @tc.name : Test enable and disable AP interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testEnableDisableHotSpot
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testEnableDisableHotSpot
,
LEVEL
2
)
{
{
const
char
*
ssid
=
"XtsTestAp"
;
const
char
*
ssid
=
"XtsTestAp"
;
const
char
*
info
=
"12345678"
;
const
char
*
info
=
"12345678"
;
...
@@ -545,8 +563,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testEnableDisableHotSpot, Function | Me
...
@@ -545,8 +563,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testEnableDisableHotSpot, Function | Me
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0700
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0700
* @tc.name : Test get signal Level interface
* @tc.name : Test get signal Level interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testGetSignalLevel
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testGetSignalLevel
,
LEVEL
2
)
{
{
int
level
;
int
level
;
int
rssiNoLevel
=
-
90
;
int
rssiNoLevel
=
-
90
;
...
@@ -585,8 +606,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testGetSignalLevel, Function | MediumTe
...
@@ -585,8 +606,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testGetSignalLevel, Function | MediumTe
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0800
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0800
* @tc.name : test adavance scan interface
* @tc.name : test adavance scan interface
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanType
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanType
,
LEVEL
2
)
{
{
WifiErrorCode
error
=
EnableWifi
();
WifiErrorCode
error
=
EnableWifi
();
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
...
@@ -639,8 +663,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testAdvanceScanType, Function | MediumT
...
@@ -639,8 +663,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testAdvanceScanType, Function | MediumT
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0900
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_0900
* @tc.name : test adavance scan interface with invalid parameter
* @tc.name : test adavance scan interface with invalid parameter
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanInvalidParam01
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanInvalidParam01
,
LEVEL
2
)
{
{
WifiErrorCode
error
=
EnableWifi
();
WifiErrorCode
error
=
EnableWifi
();
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
...
@@ -667,8 +694,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testAdvanceScanInvalidParam01, Function
...
@@ -667,8 +694,11 @@ LITE_TEST_CASE(WifiServiceFuncTestSuite, testAdvanceScanInvalidParam01, Function
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_1000
* @tc.number : SUB_COMMUNICATION_WIFISERVICE_SDK_1000
* @tc.name : test adavance scan interface with different invalid scantype
* @tc.name : test adavance scan interface with different invalid scantype
* @tc.desc : [C- SOFTWARE -0200]
* @tc.desc : [C- SOFTWARE -0200]
* @tc.size : MEDIUM
* @tc.type : FUNC
* @tc.level : Level 2
*/
*/
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanInvalidParam02
,
Function
|
MediumTest
|
Level
2
)
LITE_TEST_CASE
(
WifiServiceFuncTestSuite
,
testAdvanceScanInvalidParam02
,
LEVEL
2
)
{
{
WifiErrorCode
error
=
EnableWifi
();
WifiErrorCode
error
=
EnableWifi
();
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
TEST_ASSERT_EQUAL_INT
(
error
,
WIFI_SUCCESS
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录