You need to sign in or sign up before continuing.
未验证 提交 f49b750c 编写于 作者: O openharmony_ci 提交者: Gitee

!4433 【XTS】【事件通知子系统】ActsAnsActiveTest测试套修改

Merge pull request !4433 from 付家睿/OpenHarmony-3.1-Release
......@@ -160,29 +160,16 @@ describe('ActsAnsActiveTest', function () {
console.log("Ans_GetActive_0300 getCallback data============>"+JSON.stringify(data));
var i;
for (i = 0; i < data.length; i++) {
if (i == 0){
expect(data[i].content.normal.title).assertEqual("test_title_1");
expect(data[i].content.normal.title != undefined).assertTrue();
console.log("==========Ans_GetActive_0300 getCallback title=========>"+data[i].content.normal.title)
expect(data[i].content.normal.text).assertEqual("test_text_1");
expect(data[i].content.normal.text != undefined).assertTrue();
console.log("==========Ans_GetActive_0300 getCallback text============>"+data[i].content.normal.text)
expect(data[i].content.normal.additionalText).assertEqual("test_additionalText_1");
expect(data[i].content.normal.additionalText != undefined).assertTrue();
console.log("======Ans_GetActive_0300 getCallback text=======>"+data[i].content.normal.additionalText)
expect(data[i].id).assertEqual(1);
expect(data[i].id != undefined).assertTrue();
console.log("============Ans_GetActive_0300 getCallback id============>"+data[i].id)
expect(data[i].label).assertEqual("0300_1");
expect(data[i].label != undefined).assertTrue();
console.log("============Ans_GetActive_0300 getCallback label=====>"+data[i].label)
}else if(i == 1){
expect(data[i].content.normal.title).assertEqual("test_title_2");
console.log("==========Ans_GetActive_0300 getCallback title=========>"+data[i].content.normal.title)
expect(data[i].content.normal.text).assertEqual("test_text_2");
console.log("==========Ans_GetActive_0300 getCallback text============>"+data[i].content.normal.text)
expect(data[i].content.normal.additionalText).assertEqual("test_additionalText_2");
console.log("======Ans_GetActive_0300 getCallback text=======>"+data[i].content.normal.additionalText)
expect(data[i].id).assertEqual(2);
console.log("============Ans_GetActive_0300 getCallback id============>"+data[i].id)
expect(data[i].label).assertEqual("0300_2");
console.log("============Ans_GetActive_0300 getCallback label=====>"+data[i].label)
}
}
}
......@@ -270,36 +257,24 @@ describe('ActsAnsActiveTest', function () {
expect(promiseData.length).assertEqual(2);
var i;
for (i = 0; i < promiseData.length; i++) {
if (i == 0){
expect(promiseData[i].content.normal.title).assertEqual("test_title_1");
console.log("====Ans_GetActive_0400 getCallback title=====>"+promiseData[i].content.normal.title)
expect(promiseData[i].content.normal.text).assertEqual("test_text_1");
console.log("===Ans_GetActive_0400 getCallback text========>"+promiseData[i].content.normal.text)
expect(promiseData[i].content.normal.additionalText).assertEqual("test_additionalText_1");
console.log("Ans_GetActive_0400 getCallback text=====>"+promiseData[i].content.normal.additionalText)
expect(promiseData[i].id).assertEqual(1);
console.log("============Ans_GetActive_0400 getCallback id============>"+promiseData[i].id)
expect(promiseData[i].label).assertEqual("0400_1");
console.log("============Ans_GetActive_0400 getCallback label=====>"+promiseData[i].label)
}else if(i == 1){
expect(promiseData[i].content.normal.title).assertEqual("test_title_2");
console.log("===Ans_GetActive_0400 getCallback title=========>"+promiseData[i].content.normal.title)
expect(promiseData[i].content.normal.text).assertEqual("test_text_2");
console.log("====Ans_GetActive_0400 getCallback text============>"+promiseData[i].content.normal.text)
expect(promiseData[i].content.normal.additionalText).assertEqual("test_additionalText_2");
console.log("Ans_GetActive_0400 getCallback text=====>"+promiseData[i].content.normal.additionalText)
expect(promiseData[i].id).assertEqual(2);
console.log("============Ans_GetActive_0400 getCallback id============>"+promiseData[i].id)
expect(promiseData[i].label).assertEqual("0400_2");
console.log("============Ans_GetActive_0400 getCallback label=====>"+promiseData[i].label)
}
}
console.debug("===============Ans_GetActive_0400 getActiveNotifications end==================>");
setTimeout(async function(){
console.debug("===============Ans_GetActive_0400 done==================>");
done();
}, time);
})
expect(promiseData[i].content.normal != undefined).assertTrue();
console.log("====Ans_GetActive_0400 getCallback title=====>"+promiseData[i].content.normal.title)
expect(promiseData[i].content.normal.text != undefined).assertTrue();
console.log("===Ans_GetActive_0400 getCallback text========>"+promiseData[i].content.normal.text)
expect(promiseData[i].content.normal.additionalText != undefined).assertTrue();
console.log("Ans_GetActive_0400 getCallback text=====>"+promiseData[i].content.normal.additionalText)
expect(promiseData[i].id != undefined).assertTrue();
console.log("============Ans_GetActive_0400 getCallback id============>"+promiseData[i].id)
expect(promiseData[i].label != undefined).assertTrue();
console.log("============Ans_GetActive_0400 getCallback label=====>"+promiseData[i].label)
}
console.debug("===============Ans_GetActive_0400 getActiveNotifications end==================>");
setTimeout(async function(){
console.debug("===============Ans_GetActive_0400 done==================>");
done();
}, time);
})
/*
* @tc.number: Ans_GetActive_0500
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册