未验证 提交 a25b36ec 编写于 作者: O openharmony_ci 提交者: Gitee

!8414 【Account】【3.2Release】Case execution duration optimization and Interface Changes

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