Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
22fa9284
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看板
提交
22fa9284
编写于
9月 29, 2022
作者:
C
chengxingzhen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts失败用例适配
Signed-off-by:
N
chengxingzhen
<
chengxingzhen@huawei.com
>
上级
f13547d8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
17 deletion
+17
-17
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/GetFormsInfoFuzz.test.ets
...uzztest/entry/src/main/ets/test/GetFormsInfoFuzz.test.ets
+6
-6
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/ReleaseFormFuzz.test.ets
...fuzztest/entry/src/main/ets/test/ReleaseFormFuzz.test.ets
+4
-4
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/SetFormNextRefreshTimeFuzz.test.ets
...try/src/main/ets/test/SetFormNextRefreshTimeFuzz.test.ets
+2
-2
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets
...est_ets/formfuzztest/entry/src/main/ets/test/getParam.ets
+3
-3
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets
...formstresstest/entry/src/main/ets/test/FmsStress.test.ets
+1
-1
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets
...est/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets
+1
-1
未找到文件。
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/GetFormsInfoFuzz.test.ets
浏览文件 @
22fa9284
...
@@ -43,7 +43,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -43,7 +43,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
formHost.getFormsInfo(bundleName, (error, data) => {
formHost.getFormsInfo(bundleName, (error, data) => {
console.log(`FMS_fuzzTest_getinfobundle ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
console.log(`FMS_fuzzTest_getinfobundle ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(data).assertUndefined();
expect(data).assertUndefined();
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof bundleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
@@ -79,7 +79,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -79,7 +79,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`FMS_fuzzTest_getinfobundle ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`FMS_fuzzTest_getinfobundle ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof bundleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
@@ -108,7 +108,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -108,7 +108,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
formHost.getFormsInfo(bundleName, moduleName, (error, data) => {
formHost.getFormsInfo(bundleName, moduleName, (error, data) => {
console.log(`${callbackName} ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
console.log(`${callbackName} ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(data).assertUndefined();
expect(data).assertUndefined();
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof bundleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
@@ -146,7 +146,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -146,7 +146,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof bundleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
@@ -175,7 +175,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -175,7 +175,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
formHost.getFormsInfo(bundleName, moduleName, (error, data) => {
formHost.getFormsInfo(bundleName, moduleName, (error, data) => {
console.log(`${callbackName} ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
console.log(`${callbackName} ${tcNumber} getFormsInfo data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(data).assertUndefined();
expect(data).assertUndefined();
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof moduleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
@@ -212,7 +212,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
...
@@ -212,7 +212,7 @@ export const getFormsInfoFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
STRING` === dataTyp
e) {
if (`
string` === typeof moduleNam
e) {
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.code).assertEqual(ERR_GET_BUNDLE_FAILED_CODE);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
expect(error.message).assertEqual(ERR_GET_BUNDLE_FAILED);
} else {
} else {
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/ReleaseFormFuzz.test.ets
浏览文件 @
22fa9284
...
@@ -76,7 +76,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
...
@@ -76,7 +76,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
STRING` === dataType
) {
if (`
string` === typeof formId
) {
expect(error.code).assertEqual(ERR_ADD_INVALID_PARAM_CODE);
expect(error.code).assertEqual(ERR_ADD_INVALID_PARAM_CODE);
expect(error.message).assertEqual(ERR_ADD_INVALID_PARAM);
expect(error.message).assertEqual(ERR_ADD_INVALID_PARAM);
} else {
} else {
...
@@ -137,7 +137,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
...
@@ -137,7 +137,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
STRING` === dataType
) {
if (`
string` === typeof formId
) {
expect(error.code).assertEqual(ERR_ADD_INVALID_PARAM_CODE);
expect(error.code).assertEqual(ERR_ADD_INVALID_PARAM_CODE);
expect(error.message).assertEqual(ERR_ADD_INVALID_PARAM);
expect(error.message).assertEqual(ERR_ADD_INVALID_PARAM);
} else {
} else {
...
@@ -166,7 +166,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
...
@@ -166,7 +166,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
formHost.releaseForm(formId, isReleaseCache, (error, data) => {
formHost.releaseForm(formId, isReleaseCache, (error, data) => {
console.log(`${callbackName} ${tcNumber} releaseForm data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
console.log(`${callbackName} ${tcNumber} releaseForm data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(data).assertUndefined();
expect(data).assertUndefined();
if (`
BOOLEAN` === dataTyp
e) {
if (`
boolean` === typeof isReleaseCach
e) {
expect(error.code).assertEqual(ERR_NOT_EXIST_ID_CODE);
expect(error.code).assertEqual(ERR_NOT_EXIST_ID_CODE);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
} else {
} else {
...
@@ -203,7 +203,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
...
@@ -203,7 +203,7 @@ export const releaseFormFuzzTest = (describeName, filterParameter) => {
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
BOOLEAN` === dataTyp
e) {
if (`
boolean` === typeof isReleaseCach
e) {
expect(error.code).assertEqual(ERR_NOT_EXIST_ID_CODE);
expect(error.code).assertEqual(ERR_NOT_EXIST_ID_CODE);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
} else {
} else {
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/SetFormNextRefreshTimeFuzz.test.ets
浏览文件 @
22fa9284
...
@@ -104,7 +104,7 @@ export const setFormNextRefreshTimeFuzzTest = (describeName, filterParameter) =>
...
@@ -104,7 +104,7 @@ export const setFormNextRefreshTimeFuzzTest = (describeName, filterParameter) =>
formProvider.setFormNextRefreshTime(formId, nextTime, (error, data) => {
formProvider.setFormNextRefreshTime(formId, nextTime, (error, data) => {
console.log(`${callbackName} ${tcNumber} setFormNextRefreshTime data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
console.log(`${callbackName} ${tcNumber} setFormNextRefreshTime data: ${JSON.stringify(data)} error: ${JSON.stringify(error)}`);
expect(data).assertUndefined();
expect(data).assertUndefined();
if (`
NUMBER` === dataTyp
e) {
if (`
number` === typeof nextTim
e) {
if (ERR_NOT_EXIST_ID_CODE === error.code) {
if (ERR_NOT_EXIST_ID_CODE === error.code) {
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
} else if (ERR_ADD_INVALID_PARAM_CODE === error.code) {
} else if (ERR_ADD_INVALID_PARAM_CODE === error.code) {
...
@@ -147,7 +147,7 @@ export const setFormNextRefreshTimeFuzzTest = (describeName, filterParameter) =>
...
@@ -147,7 +147,7 @@ export const setFormNextRefreshTimeFuzzTest = (describeName, filterParameter) =>
expect().assertFail();
expect().assertFail();
} catch (error) {
} catch (error) {
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
console.log(`${promiseName} ${tcNumber} exception caught: ${JSON.stringify(error)}`);
if (`
NUMBER` === dataTyp
e) {
if (`
number` === typeof nextTim
e) {
if (ERR_NOT_EXIST_ID_CODE === error.code) {
if (ERR_NOT_EXIST_ID_CODE === error.code) {
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
expect(error.message).assertEqual(ERR_NOT_EXIST_ID);
} else if (ERR_ADD_INVALID_PARAM_CODE === error.code) {
} else if (ERR_ADD_INVALID_PARAM_CODE === error.code) {
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formfuzztest/entry/src/main/ets/test/getParam.ets
浏览文件 @
22fa9284
...
@@ -149,9 +149,9 @@ const getFuzzData = (datatype: string) => {
...
@@ -149,9 +149,9 @@ const getFuzzData = (datatype: string) => {
switch (datatype) {
switch (datatype) {
case 'ARRAY':
case 'ARRAY':
let array1 = arrayTest();
let array1 = arrayTest();
let array2 = array1
.join("")
let array2 = array1
if (isNaN(Number(array
2
))) {
if (isNaN(Number(array
1.join("")
))) {
return array
1
;
return array
2
;
} else {
} else {
getFuzzData(DATA_TYPE_LIST[0]);
getFuzzData(DATA_TYPE_LIST[0]);
}
}
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formstresstest/entry/src/main/ets/test/FmsStress.test.ets
浏览文件 @
22fa9284
...
@@ -68,7 +68,6 @@ export default function test() {
...
@@ -68,7 +68,6 @@ export default function test() {
commonEvent.unsubscribe(onDeletedEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onDeletedEventSubscriber"));
commonEvent.unsubscribe(onDeletedEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onDeletedEventSubscriber"));
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber"));
commonEvent.unsubscribe(onAcquiredEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onAcquiredEventSubscriber"));
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber"));
commonEvent.unsubscribe(onSupplyEventSubscriber, () => unsubscribeCallback("afterEach unsubscribe onSupplyEventSubscriber"));
await sleep(1000);
await featureAbility.startAbility({
await featureAbility.startAbility({
want: {
want: {
bundleName: "com.ohos.st.formstresstest",
bundleName: "com.ohos.st.formstresstest",
...
@@ -79,6 +78,7 @@ export default function test() {
...
@@ -79,6 +78,7 @@ export default function test() {
}).catch((err) => {
}).catch((err) => {
console.log("FmsStressTest startAbility err: " + JSON.stringify(err));
console.log("FmsStressTest startAbility err: " + JSON.stringify(err));
})
})
await sleep(2000);
})
})
const subscribeDeletedEvent = (tcNumber, expectedDeletedFormAmount, done) => {
const subscribeDeletedEvent = (tcNumber, expectedDeletedFormAmount, done) => {
...
...
ability/ability_runtime/formmanager/fa/formsystemtest_ets/formupdatefreshtest/entry/src/main/ets/test/FmsUpdateRefreshForm.test.ets
浏览文件 @
22fa9284
...
@@ -65,7 +65,6 @@ export default function test() {
...
@@ -65,7 +65,6 @@ export default function test() {
commonEvent.unsubscribe(subscriberOnDeleted, () => unsubscribeCallback("afterEach unsubscribe subscriberOnDeleted"));
commonEvent.unsubscribe(subscriberOnDeleted, () => unsubscribeCallback("afterEach unsubscribe subscriberOnDeleted"));
commonEvent.unsubscribe(subscriberOnRefresh, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRefresh"));
commonEvent.unsubscribe(subscriberOnRefresh, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRefresh"));
commonEvent.unsubscribe(subscriberOnRequest, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRequest"));
commonEvent.unsubscribe(subscriberOnRequest, () => unsubscribeCallback("afterEach unsubscribe subscriberOnRequest"));
await sleep(1000);
await featureAbility.startAbility({
await featureAbility.startAbility({
want: {
want: {
bundleName: "com.ohos.st.formupdaterefreshtest",
bundleName: "com.ohos.st.formupdaterefreshtest",
...
@@ -76,6 +75,7 @@ export default function test() {
...
@@ -76,6 +75,7 @@ export default function test() {
}).catch((err) => {
}).catch((err) => {
console.log("FmsUpdateRefreshFormTest startAbility err: " + JSON.stringify(err));
console.log("FmsUpdateRefreshFormTest startAbility err: " + JSON.stringify(err));
})
})
await sleep(2000);
})
})
/**
/**
* @tc.number: FMS_updateForm_0100
* @tc.number: FMS_updateForm_0100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录