提交 1e6b738f 编写于 作者: C chengxingzhen

XTS失败用例适配

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 ff7e0ecc
...@@ -32,7 +32,6 @@ export default function abilityTest() { ...@@ -32,7 +32,6 @@ export default function abilityTest() {
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
globalThis.abilityDelegator.printSync(msg); globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0100 printSync end ====> " ) console.log("ACTS_AACommand_printSync_01_0100 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0100 end' var finishmsg = 'ACTS_AACommand_printSync_01_0100 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then((data)=>{ globalThis.abilityDelegator.finishTest(finishmsg, 1).then((data)=>{
console.log("ACTS_AACommand_printSync_01_0100 finishTest test end ========> callback " ) console.log("ACTS_AACommand_printSync_01_0100 finishTest test end ========> callback " )
...@@ -63,7 +62,6 @@ export default function abilityTest() { ...@@ -63,7 +62,6 @@ export default function abilityTest() {
'9aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae' '9aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaae'
globalThis.abilityDelegator.printSync(msg); globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0200 printSync end ====> " ) console.log("ACTS_AACommand_printSync_01_0200 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0200 end' var finishmsg = 'ACTS_AACommand_printSync_01_0200 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{ globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0200 print test end ========> callback " ) console.log("ACTS_AACommand_printSync_01_0200 print test end ========> callback " )
...@@ -93,7 +91,6 @@ export default function abilityTest() { ...@@ -93,7 +91,6 @@ export default function abilityTest() {
'fffffffffff' 'fffffffffff'
globalThis.abilityDelegator.printSync(msg); globalThis.abilityDelegator.printSync(msg);
console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " ) console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0300 end' var finishmsg = 'ACTS_AACommand_printSync_01_0300 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{ globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0300 print test end ========> callback " ) console.log("ACTS_AACommand_printSync_01_0300 print test end ========> callback " )
...@@ -111,7 +108,6 @@ export default function abilityTest() { ...@@ -111,7 +108,6 @@ export default function abilityTest() {
it('ACTS_AACommand_printSync_01_0400', 0, async function (done) { it('ACTS_AACommand_printSync_01_0400', 0, async function (done) {
globalThis.abilityDelegator.printSync(null); globalThis.abilityDelegator.printSync(null);
console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " ) console.log("ACTS_AACommand_printSync_01_0300 printSync end ====> " )
await sleep(1000)
var finishmsg = 'ACTS_AACommand_printSync_01_0400 end' var finishmsg = 'ACTS_AACommand_printSync_01_0400 end'
globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{ globalThis.abilityDelegator.finishTest(finishmsg, 1).then(()=>{
console.log("ACTS_AACommand_printSync_01_0400 print test end ========> callback " ) console.log("ACTS_AACommand_printSync_01_0400 print test end ========> callback " )
......
...@@ -352,17 +352,12 @@ export default function abilityTest() { ...@@ -352,17 +352,12 @@ export default function abilityTest() {
*/ */
it('ACTS_AACommand_finish_01_0800', 0, async function (done) { it('ACTS_AACommand_finish_01_0800', 0, async function (done) {
var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146' var msg = '测试日志!@#$%^&*()_+QWE{}|?><Fafq3146'
setTimeout(() => { globalThis.abilityDelegator.finishTest(msg, 'ABCD',()=>{
console.log('ACTS_AACommand_finish_01_0800 code:'+JSON.stringify(code))
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
var code = globalThis.abilityDelegator.finishTest(msg, 'ABCD',()=>{
console.log(" ACTS_AACommand_finish_01_0800 finishTest test end ========> callback " ) console.log(" ACTS_AACommand_finish_01_0800 finishTest test end ========> callback " )
expect().assertFail(); expect().assertFail();
}) })
await sleep(2000);
done();
}) })
/** /**
...@@ -388,15 +383,9 @@ export default function abilityTest() { ...@@ -388,15 +383,9 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1000', 0, async function (done) { it('ACTS_AACommand_finish_01_1000', 0, async function (done) {
var code = null globalThis.abilityDelegator.finishTest(null, 1)
setTimeout(() => { await sleep(2000);
console.log('ACTS_AACommand_finish_01_1000 code:'+JSON.stringify(code)) done()
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
code = globalThis.abilityDelegator.finishTest(null, 1)
}) })
/** /**
...@@ -406,15 +395,9 @@ export default function abilityTest() { ...@@ -406,15 +395,9 @@ export default function abilityTest() {
* @tc.desc: Verify that the process of the test framework can be stopped by calling this interface. * @tc.desc: Verify that the process of the test framework can be stopped by calling this interface.
*/ */
it('ACTS_AACommand_finish_01_1100', 0, async function (done) { it('ACTS_AACommand_finish_01_1100', 0, async function (done) {
var code=null globalThis.abilityDelegator.finishTest(undefined, 1)
setTimeout(() => { await sleep(2000);
console.log('ACTS_AACommand_finish_01_1100 code:'+JSON.stringify(code)) done()
if(code!=undefined){
expect().assertFail();
}
done();
}, 3000)
code = globalThis.abilityDelegator.finishTest(undefined, 1)
}) })
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册