提交 f90bee14 编写于 作者: F fjr

XTS1

Signed-off-by: Nfjr <fujiarui6@huawei.com>
上级 ed623d08
...@@ -217,177 +217,6 @@ describe('ActsAnsSubTestXts', function () { ...@@ -217,177 +217,6 @@ describe('ActsAnsSubTestXts', function () {
console.debug("==>disconnectCallbacko code==>"); console.debug("==>disconnectCallbacko code==>");
} }
/*
* @tc.number: ActsSubscriber_test_xts_0100
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0100', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0100==begin==>");
await notify.subscribe(subInfoa, subscribeCallbacka);
setTimeout((async function(){
await notify.unsubscribe(subInfoa, unSubscribeCallbacka);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0100==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0200
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0200', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0200==begin==>");
var subInfo ={
onConnect:connectCallbackb,
onDisconnect:disconnectCallbackb,
}
await notify.subscribe(subInfo,subscribeCallbackb);
await notify.subscribe(subInfo,subscribeCallbackc);
setTimeout((async function(){
await notify.unsubscribe(subInfo, unSubscribeCallbackb);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0200==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0300
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0300', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0300==begin==>");
var subInfo ={
onConnect:connectCallbackc,
onDisconnect:disconnectCallbackc,
}
var subInfo2 ={
onConnect:connectCallbackd,
onDisconnect:disconnectCallbackd,
}
await notify.subscribe(subInfo,subscribeCallbackd);
await notify.subscribe(subInfo2,subscribeCallbacke);
setTimeout((async function(){
await notify.unsubscribe(subInfo, unSubscribeCallbackc);
await notify.unsubscribe(subInfo2, unSubscribeCallbackd);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0300==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0400
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0400', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0400==begin==>");
var subInfo ={
onConnect:connectCallbackf,
onDisconnect:disconnectCallbackf,
}
var subInfo2 ={
onConnect:connectCallbackg,
onDisconnect:disconnectCallbackg,
}
await notify.subscribe(subInfo,subscribeCallbackg);
await notify.subscribe(subInfo,subscribeCallbackh);
await notify.subscribe(subInfo2,subscribeCallbacki);
setTimeout((async function(){
await notify.unsubscribe(subInfo, unSubscribeCallbackf);
await notify.unsubscribe(subInfo2, unSubscribeCallbackg);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0400==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0500
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0500', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0500==begin==>");
await notify.subscribe(subInfob, {bundleNames:["com.example.actsanspublishtest"]},subscribeCallbackl);
setTimeout((async function(){
await notify.unsubscribe(subInfob, unSubscribeCallbacki);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0500==end3==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0600
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0600', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0600==begin==>");
await notify.subscribe(subInfoc, {bundleNames:["com.example.actsanspublishtest"]}).then(async()=> {
console.log("ActsSubscriber_test_xts_0600=======promise")
setTimeout((async function(){
await notify.unsubscribe(subInfoc, unSubscribeCallbackj)
}),1000);
});
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0600==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0700
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0700', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0700==begin==>");
await notify.subscribe(subInfod,
{bundleNames:["com.example.actsanspublishtest","com.example.actsanspublishtest"]},subscribeCallbackn);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0700==end==>");
await notify.unsubscribe(subInfod, unSubscribeCallbackl);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0700==end==>");
done();
}),timeout);
})
/*
* @tc.number: ActsSubscriber_test_xts_0800
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_0800', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_0800==begin==>");
await notify.subscribe(subInfoe,
{bundleNames:["com.example.actsanspublishtest","com.example.actsanspublishtest"]}).then(async()=> {
console.log("ActsSubscriber_test_xts_0800=======promise")
setTimeout((async function(){
await notify.unsubscribe(subInfoe, unSubscribeCallbackm)
}),1000);
});
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_0800==end==>");
done();
}),timeout);
})
/* /*
* @tc.number: ActsSubscriber_test_xts_0900 * @tc.number: ActsSubscriber_test_xts_0900
* @tc.name: subscribe() * @tc.name: subscribe()
...@@ -451,27 +280,6 @@ describe('ActsAnsSubTestXts', function () { ...@@ -451,27 +280,6 @@ describe('ActsAnsSubTestXts', function () {
}),timeout); }),timeout);
}) })
/*
* @tc.number: ActsSubscriber_test_xts_1300
* @tc.name: subscribe()
* @tc.desc: verify the function of subscribe
*/
it('ActsSubscriber_test_xts_1300', 0, async function (done) {
console.debug("==ActsSubscriber_test_xts_1300==begin==>");
var subInfo ={
onConnect:connectCallbackl,
onDisconnect:disconnectCallbackn,
}
await notify.subscribe(subInfo,{bundleNames:["wrongBudleName"]},subscribeCallbacko);
setTimeout((async function(){
await notify.unsubscribe(subInfo, unSubscribeCallbackn);
}),1000);
setTimeout((async function(){
console.debug("==ActsSubscriber_test_xts_1300==end==>");
done();
}),timeout);
})
/* /*
* @tc.number: ActsSubscriber_test_xts_1400 * @tc.number: ActsSubscriber_test_xts_1400
* @tc.name: subscribe() * @tc.name: subscribe()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册