提交 86a0895d 编写于 作者: G gaoxi

解决测试套执行un

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 178aa719
......@@ -44,67 +44,6 @@ export default function callJsunit(){
describe('callTest', function(){
console.log("==========> call Test start ==========>");
/**
* @tc.number Telephony_Call_Call_MakeCall_0100
* @tc.name Make a call.
* @tc.desc Function test
*/
it("Telephony_Call_Call_MakeCall_0100",0,async function(done){
let caseName:string = "Telephony_Call_Call_MakeCall_0100";
console.log(`==========> ${caseName} Test start ==========>`);
try{
let telNumber = "";
call.makeCall(telNumber,(error) => {
if(error){
console.log(`${caseName} fail,case success,error:${toString(error)}`);
expect(true).assertTrue();
done();
return;
}
expect().assertFail();
console.log(`${caseName} success,case fail`);
done();
});
}catch(err){
console.log(`${caseName} fail,case success,error:${toString(err)}`);
expect(true).assertTrue();
done();
return;
}
console.log(`==========> ${caseName} Test end ==========>`);
done();
});
/**
* @tc.number Telephony_Call_Call_MakeCall_0200
* @tc.name Makes a call.
* @tc.desc Function test
*/
it("Telephony_Call_Call_MakeCall_0200",0,async function(done){
let caseName:string = "Telephony_Call_Call_MakeCall_0200";
console.log(`==========> ${caseName} Test start ==========>`);
let telNumber = "";
try{
call.makeCall(telNumber).then(()=>{
console.log(`${caseName} success,case fail`);
done();
}).catch(error =>{
console.log(`${caseName} fail,case success,error:${toString(error)}`);
expect(true).assertTrue();
done();
return;
});
}catch(err){
console.log(`${caseName} fail,case success,error:${toString(err)}`);
expect(true).assertTrue();
done();
return;
}
console.log(`==========> ${caseName} Test end ==========>`);
done();
});
/**
* @tc.number Telephony_Call_HasVoiceCapability_HasVoiceCapability
* @tc.name Checks whether a device supports voice calls.
......@@ -497,6 +436,65 @@ export default function callJsunit(){
done();
});
/**
* @tc.number Telephony_Call_Call_MakeCall_0100
* @tc.name Make a call.
* @tc.desc Function test
*/
it("Telephony_Call_Call_MakeCall_0100",0,async function(done){
let caseName:string = "Telephony_Call_Call_MakeCall_0100";
console.log(`==========> ${caseName} Test start ==========>`);
try{
let telNumber = "";
call.makeCall(telNumber,(error) => {
if(error){
console.log(`${caseName} fail,case success,error:${toString(error)}`);
expect(true).assertTrue();
done();
return;
}
expect().assertFail();
console.log(`${caseName} success,case fail`);
done();
});
}catch(err){
console.log(`${caseName} fail,case success,error:${toString(err)}`);
expect(true).assertTrue();
done();
return;
}
console.log(`==========> ${caseName} Test end ==========>`);
done();
});
/**
* @tc.number Telephony_Call_Call_MakeCall_0200
* @tc.name Makes a call.
* @tc.desc Function test
*/
it("Telephony_Call_Call_MakeCall_0200",0,async function(done){
let caseName:string = "Telephony_Call_Call_MakeCall_0200";
console.log(`==========> ${caseName} Test start ==========>`);
let telNumber = "";
try{
call.makeCall(telNumber).then(()=>{
console.log(`${caseName} success,case fail`);
done();
}).catch(error =>{
console.log(`${caseName} fail,case success,error:${toString(error)}`);
expect(true).assertTrue();
done();
return;
});
}catch(err){
console.log(`${caseName} fail,case success,error:${toString(err)}`);
expect(true).assertTrue();
done();
return;
}
console.log(`==========> ${caseName} Test end ==========>`);
done();
});
});
}
......
......@@ -24,9 +24,9 @@ import dataJsunit from './DataJsunit.test.ets';
export default function testsuite() {
//other
dataJsunit();
callJsunit();
smsUiJsunit();
convertOptionsJsunit();
radioJsunit();
radioSecondJsunit();
callJsunit();
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册