提交 5639361c 编写于 作者: Z zhaimengchao

【Account】【Master】Case execution duration optimization and Interface Changes

Signed-off-by: Nzhaimengchao <zhaimengchao@huawei.com>
上级 b2277c74
......@@ -45,8 +45,8 @@ export default function ActsAccountAppAccess() {
});
beforeEach(async (done)=>{
console.debug("====>afterEach start====");
var appAccountManager = account.getAccountManager();
var accounts = await appAccountManager.getAllAccountByOwner(owner)
var appAccountManager = account.createAppAccountManager();
var accounts = await appAccountManager.getAccountsByOwner(owner)
for (var i=0;i<accounts.length;i++){
var localName = accounts[i].name
if(localName == 'zhangsan'){
......@@ -733,8 +733,8 @@ export default function ActsAccountAppAccess() {
onRequestRedirected:null,
onRequestContinued: function(){
console.debug("====>ActsAccountCreateAccountImplicitly_0100 onRequestContinued")
}
});
}
});
});
/*
......@@ -759,8 +759,8 @@ export default function ActsAccountAppAccess() {
onRequestRedirected:null,
onRequestContinued: function(){
console.debug("====>ActsAccountCreateAccountImplicitly_0200 onRequestContinued")
}
});
}
});
});
})
}
\ No newline at end of file
......@@ -24,7 +24,7 @@ export default function ActsAccountAuthenticator() {
describe('ActsAccountAuthenticator', function () {
beforeAll(async function (done) {
console.debug("====>accountauthenticatorbeforeAll start====");
await featureAbility.startAbility(
await featureAbility.startAbilityForResult(
{
want:
{
......@@ -44,8 +44,8 @@ export default function ActsAccountAuthenticator() {
});
beforeEach(async function (done) {
console.debug("====>afterEach start====");
var appAccountManager = account.getAccountManager();
var accounts = await appAccountManager.getAllAccountByOwner(owner)
var appAccountManager = account.createAppAccountManager();
var accounts = await appAccountManager.getAccountsByOwner(owner)
for (var i=0;i<accounts.length;i++){
var localName = accounts[i].name
if(localName == 'zhangsan'){
......@@ -76,7 +76,7 @@ export default function ActsAccountAuthenticator() {
expect(err).assertEqual(null);
console.debug("====>ActsAccountCheckAccountLabels_0100 end====");
done();
})
})
});
});
});
......@@ -134,11 +134,9 @@ export default function ActsAccountAuthenticator() {
console.debug("====>ActsAccountCheckAccountLabels_0300 end====");
done();
})
});
});
});
});
/*
* @tc.number : ActsAccountCheckAccountLabels_0400
......@@ -665,7 +663,6 @@ export default function ActsAccountAuthenticator() {
});
});
/*
* @tc.number : ActsAccountSelectAccountByOptions_0100
* @tc.name : Verify Credential callback form
......@@ -692,14 +689,13 @@ export default function ActsAccountAuthenticator() {
appAccountManager.deleteAccount(name)
console.debug('====>ActsAccountSelectAccountByOptions_0300 deleteAccount_success')
done();
}
}
catch{
console.debug('====>ActsAccountSelectAccountByOptions_0300 deleteAccount_err')
expect().assertFail()
done();
}
});
});
}
});
});
})
}
\ No newline at end of file
}
......@@ -5,7 +5,8 @@
"test-timeout": "300000",
"bundle-name": "com.example.actsosaccountthirdpartytest",
"package-name": "com.example.actsosaccountthirdpartytest",
"shell-timeout": "60000"
"shell-timeout": "60000",
"testcase-timeout": "100000"
},
"kits": [
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册