diff --git a/account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js b/account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js index 6473a6ab10261638c045a0fe1198c6f41abc8043..9fffa6f7269298d0827ebb433ec1315818f6f0ae 100644 --- a/account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js +++ b/account/appaccount/actsaccountoperatetest/src/main/js/test/Authenticator.test.js @@ -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;iActsAccountCreateAccountImplicitly_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 diff --git a/account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js b/account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js index 4fd80ba18ba6e3a91acecb08a5a75464ec8ea05e..79fc957b271f36a910fc6913b9c39d686bff6207 100644 --- a/account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js +++ b/account/appaccount/actsaccounttest/src/main/js/test/Authenticator.test.js @@ -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;iActsAccountCheckAccountLabels_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 +} diff --git a/account/osaccount/actsosaccountthirdpartytest/Test.json b/account/osaccount/actsosaccountthirdpartytest/Test.json index 72697e7e100c9ea232a9945f82065d26c7bf3328..e5a21dfbc40c41b9868a7a221013b3ffe84a3b78 100644 --- a/account/osaccount/actsosaccountthirdpartytest/Test.json +++ b/account/osaccount/actsosaccountthirdpartytest/Test.json @@ -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": [ {