提交 a0db46a3 编写于 作者: L lihao

update fail case

Signed-off-by: Nlihao <lihao334@huawei.com>
上级 a0b24884
...@@ -261,38 +261,6 @@ describe('CallManageImsCall', function () { ...@@ -261,38 +261,6 @@ describe('CallManageImsCall', function () {
}); });
/**
* @tc.number Telephony_CallManager_controlCamera_Async_0200
* @tc.name Dial a call and after answering the call,run function controlCamera by
* args cameraId CARMER_ID_NOT_EXIT by callback,
* the callback function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_controlCamera_Async_0200', 0, function (done) {
let caseName = 'Telephony_CallManager_controlCamera_Async_0200';
scenceInCalling({
caseName:caseName,
phoneNumber:AUTO_ACCEPT_NUMBER2,
checkState:CALL_STATUS_DIALING
}).then(data => {
callId = data.callId;
let cameraId = CARMER_ID_NOT_EXIT;
call.controlCamera(cameraId, (error) => {
if (error) {
console.log(`${caseName} error,case success,error:${toString(error)}`);
hangupCall2(caseName, done, callId);
return;
}
console.log(`${caseName} case failed`);
expect().assertFail();
hangupCall2(caseName, done, callId);
});
}).catch(error => {
console.log(`${caseName} scenceInCalling error ,case failed,error:${toString(error)}`);
done();
});
});
/** /**
* @tc.number Telephony_CallManager_controlCamera_Promise_0200 * @tc.number Telephony_CallManager_controlCamera_Promise_0200
* @tc.name Dial a call and after answering the call,run function controlCamera by args cameraId * @tc.name Dial a call and after answering the call,run function controlCamera by args cameraId
...@@ -915,5 +883,36 @@ describe('CallManageImsCall', function () { ...@@ -915,5 +883,36 @@ describe('CallManageImsCall', function () {
done(); done();
} }
}); });
/**
* @tc.number Telephony_CallManager_controlCamera_Async_0200
* @tc.name Dial a call and after answering the call,run function controlCamera by
* args cameraId CARMER_ID_NOT_EXIT by callback,
* the callback function return error
* @tc.desc Function test
*/
it('Telephony_CallManager_controlCamera_Async_0200', 0, function (done) {
let caseName = 'Telephony_CallManager_controlCamera_Async_0200';
scenceInCalling({
caseName:caseName,
phoneNumber:AUTO_ACCEPT_NUMBER2,
checkState:CALL_STATUS_DIALING
}).then(data => {
callId = data.callId;
let cameraId = CARMER_ID_NOT_EXIT;
call.controlCamera(cameraId, (error) => {
if (error) {
console.log(`${caseName} error,case success,error:${toString(error)}`);
hangupCall2(caseName, done, callId);
return;
}
console.log(`${caseName} case failed`);
expect().assertFail();
hangupCall2(caseName, done, callId);
});
}).catch(error => {
console.log(`${caseName} scenceInCalling error ,case failed,error:${toString(error)}`);
done();
});
});
}); });
} }
\ No newline at end of file
...@@ -65,42 +65,6 @@ ...@@ -65,42 +65,6 @@
} }
], ],
"reqPermissions": [ "reqPermissions": [
{
"name": "ohos.permission.LOCATION",
"reason": "need use ohos.permission.LOCATION"
},
{
"name":"ohos.permission.SET_TELEPHONY_STATE",
"reason":"need use ohos.permission.SET_TELEPHONY_STATE"
},
{
"name":"ohos.permission.GET_TELEPHONY_STATE",
"reason":"need use ohos.permission.GET_TELEPHONY_STATE"
},
{
"name":"ohos.permission.PLACE_CALL",
"reason":"need use ohos.permission.PLACE_CALL"
},
{
"name":"ohos.permission.READ_CONTACTS",
"reason":"need use ohos.permission.READ_CONTACTS"
},
{
"name":"ohos.permission.WRITE_CONTACTS",
"reason":"need use ohos.permission.WRITE_CONTACTS"
},
{
"name":"ohos.permission.SEND_MESSAGES",
"reason":"need use ohos.permission.SEND_MESSAGES"
},
{
"name":"ohos.permission.RECEIVE_SMS",
"reason":"need use ohos.permission.RECEIVE_SMS"
},
{
"name":"ohos.permission.READ_CALL_LOG",
"reason":"need use ohos.permission.READ_CALL_LOG"
},
{ {
"name":"ohos.permission.GET_NETWORK_INFO", "name":"ohos.permission.GET_NETWORK_INFO",
"reason":"need use ohos.permission.GET_NETWORK_INFO" "reason":"need use ohos.permission.GET_NETWORK_INFO"
......
...@@ -65,42 +65,6 @@ ...@@ -65,42 +65,6 @@
} }
], ],
"reqPermissions": [ "reqPermissions": [
{
"name": "ohos.permission.LOCATION",
"reason": "need use ohos.permission.LOCATION"
},
{
"name":"ohos.permission.SET_TELEPHONY_STATE",
"reason":"need use ohos.permission.SET_TELEPHONY_STATE"
},
{
"name":"ohos.permission.GET_TELEPHONY_STATE",
"reason":"need use ohos.permission.GET_TELEPHONY_STATE"
},
{
"name":"ohos.permission.PLACE_CALL",
"reason":"need use ohos.permission.PLACE_CALL"
},
{
"name":"ohos.permission.READ_CONTACTS",
"reason":"need use ohos.permission.READ_CONTACTS"
},
{
"name":"ohos.permission.WRITE_CONTACTS",
"reason":"need use ohos.permission.WRITE_CONTACTS"
},
{
"name":"ohos.permission.SEND_MESSAGES",
"reason":"need use ohos.permission.SEND_MESSAGES"
},
{
"name":"ohos.permission.RECEIVE_SMS",
"reason":"need use ohos.permission.RECEIVE_SMS"
},
{
"name":"ohos.permission.READ_CALL_LOG",
"reason":"need use ohos.permission.READ_CALL_LOG"
},
{ {
"name":"ohos.permission.GET_NETWORK_INFO", "name":"ohos.permission.GET_NETWORK_INFO",
"reason":"need use ohos.permission.GET_NETWORK_INFO" "reason":"need use ohos.permission.GET_NETWORK_INFO"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册