ExtraInfo.test.js 27.6 KB
Newer Older
J
jiyong_sd 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518
/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import account from '@ohos.account.appAccount'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'

const TIMEOUT = 5000;
const EACHTIMEOUT = 500;
export default function ActsAccountSetGetExtraInfo() {
    describe('ActsAccountSetGetExtraInfo', function () {
        function sleep(delay) {
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    resolve()
                }, delay)
            }).then(() => {
                console.info(`sleep #{time} over ...`)
            })
        }

        beforeAll(async function (done) {
            console.debug("====>beforeAll start====");
            await sleep(TIMEOUT);
            console.debug("====>beforeAll end====");
            done();
        })

        beforeEach(async function (done) {
            console.debug("====>beforeEach enter====");
            await sleep(EACHTIMEOUT);
            done();
        })

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0100
        * @tc.name      : getAccountExtraInfo callback form
        * @tc.desc      : Get additional information about an existing account
        */
        it('ActsAccountSetGetExtraInfo_0100', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0100 start====");
            var appAccountManager = account.createAppAccountManager();
            var extraInfoStr = "account_extrainfo_callback_first";
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_first", extraInfoStr, (err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_0100 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.getAccountExtraInfo("account_name_callback_first", (err, data)=>{
                    console.debug("====>getAccountExtraInfo 0100 err:" + JSON.stringify(err));
                    console.debug("====>getAccountExtraInfo 0100 data:" + JSON.stringify(data));
                    expect(err.code).assertEqual(0);
                    expect(data).assertEqual(extraInfoStr);
                    appAccountManager.deleteAccount("account_name_callback_first", (err)=>{
                        console.debug("====>delete Account 0100 err:" + JSON.stringify(err));
                        expect(err.code).assertEqual(0);
                        console.debug("====>ActsAccountSetGetExtraInfo_0100 end====");
                        done();
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0200
        * @tc.name      : getAccountExtraInfo promise form
        * @tc.desc      : Get additional information about an existing account
        */
        it('ActsAccountSetGetExtraInfo_0200', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0200 start====");
            var appAccountManager = account.createAppAccountManager();
            var extraInfoStr = "account_extrainfo_promise_first";
            console.debug("====>creat finish====");
            console.debug("====>add account ActsAccountSetGetExtraInfo_0200 start====");
            await appAccountManager.addAccount("account_name_promise_first", extraInfoStr);
            try{
                var data = await appAccountManager.getAccountExtraInfo("account_name_promise_first");
            }
            catch(err){
                console.error("====>getAccountExtraInfo 0200 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo 0200 data:" + JSON.stringify(data));
            expect(data).assertEqual(extraInfoStr);
            console.debug("====>delete account ActsAccountSetGetExtraInfo_0200 start====");
            await appAccountManager.deleteAccount("account_name_promise_first");
            console.debug("====>ActsAccountSetGetExtraInfo_0200 end====");
            done();
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0300
        * @tc.name      : getAccountExtraInfo callback form
        * @tc.desc      : Get additional information about a non-existent account
        */
        it('ActsAccountSetGetExtraInfo_0300', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0300 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            var notExistBundle = "account_name_callback_notexistbundle_second";
            appAccountManager.getAccountExtraInfo(notExistBundle, (err, data)=>{
                console.debug("====>getAccountExtraInfo 0300 err:" + JSON.stringify(err));
                expect(err.code != 0).assertEqual(true);
                console.debug("====>ActsAccountSetGetExtraInfo_0300 end====");
                done();
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0400
        * @tc.name      : getAccountExtraInfo promise form
        * @tc.desc      : Get additional information about a non-existent account
        */
        it('ActsAccountSetGetExtraInfo_0400', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0400 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            var notExistBundle = "account_name_promise_notexistbundle_second";
            try{
                await appAccountManager.getAccountExtraInfo(notExistBundle);
                console.error("====>getAccountExtraInfo 0400 fail====");
                expect().assertFail();
                done();
            }
            catch(err){
                console.debug("====>getAccountExtraInfo 0400 err:" + JSON.stringify(err));
                expect(err.code != 0).assertEqual(true);
                console.debug("====>ActsAccountSetGetExtraInfo_0400 end====");
                done();
            }
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0500
        * @tc.name      : getAccountExtraInfo callback form
        * @tc.desc      : Get additional information about deleted account
        */
        it('ActsAccountSetGetExtraInfo_0500', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0500 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_third", "account_extrainfo_callback_third", (err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_0500 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.deleteAccount("account_name_callback_third", (err)=>{
                    console.debug("====>delete Account 0500 err:" + JSON.stringify(err));
                    expect(err.code).assertEqual(0);
                    appAccountManager.getAccountExtraInfo("account_name_callback_third", (err, data)=>{
                        console.debug("====>getAccountExtraInfo 0500 err:" + JSON.stringify(err));
                        console.debug("====>getAccountExtraInfo 0500 data:" + JSON.stringify(data));
                        expect(err.code != 0).assertEqual(true);
                        console.debug("====>ActsAccountSetGetExtraInfo_0500 end====");
                        done();
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0600
        * @tc.name      : getAccountExtraInfo promise form
        * @tc.desc      : Get additional information about deleted account
        */
        it('ActsAccountSetGetExtraInfo_0600', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0600 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            console.debug("====>add account ActsAccountSetGetExtraInfo_0600 start====");
            await appAccountManager.addAccount("account_name_promise_third", "account_extrainfo_promise_third");
            console.debug("====>delete account ActsAccountSetGetExtraInfo_0600 start====");
            await appAccountManager.deleteAccount("account_name_promise_third");
            try{
                await appAccountManager.getAccountExtraInfo("account_name_promise_third");
                console.error("====>getAccountExtraInfo 0600 fail====");
                expect().assertFail();
                done();
            }
            catch(err){
                console.debug("====>getAccountExtraInfo 0600 err:" + JSON.stringify(err));
                expect(err.code != 0).assertEqual(true);
                console.debug("====>ActsAccountSetGetExtraInfo_0600 end====");
                done();
            }
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0700
        * @tc.name      : getAccountExtraInfo callback form
        * @tc.desc      : Get additional information that is not set
        */
        it('ActsAccountSetGetExtraInfo_0700', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0700 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_fourth", (err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_0700 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.getAccountExtraInfo("account_name_callback_fourth", (err, data)=>{
                    console.debug("====>getAccountExtraInfo 0700 err:" + JSON.stringify(err));
                    console.debug("====>getAccountExtraInfo 0700 data:" + JSON.stringify(data));
                    expect(err.code).assertEqual(0);
                    expect(data).assertEqual("");
                    appAccountManager.deleteAccount("account_name_callback_fourth", (err)=>{
                        console.debug("====>delete Account 0700 err:" + JSON.stringify(err));
                        expect(err.code).assertEqual(0);
                        console.debug("====>ActsAccountSetGetExtraInfo_0700 end====");
                        done();
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0800
        * @tc.name      : getAccountExtraInfo promise form
        * @tc.desc      : Get additional information that is not set
        */
        it('ActsAccountSetGetExtraInfo_0800', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0800 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            console.debug("====>add account ActsAccountSetGetExtraInfo_0800 start====");
            await appAccountManager.addAccount("account_name_promise_fourth");
            console.debug("====>getAccountExtraInfo ActsAccountSetGetExtraInfo_0800 start====");
            try{
                var data = await appAccountManager.getAccountExtraInfo("account_name_promise_fourth");
            }
            catch(err){
                console.error("====>getAccountExtraInfo 0800 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo 0800 data:" + JSON.stringify(data));
            expect(data).assertEqual("");
            console.debug("====>delete account ActsAccountSetGetExtraInfo_0800 start====");
            await appAccountManager.deleteAccount("account_name_promise_fourth");
            console.debug("====>ActsAccountSetGetExtraInfo_0800 end====");
            done();
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_0900
        * @tc.name      : setAccountExtraInfo callback form
        * @tc.desc      : Set account extension information that does not exist
        */
        it('ActsAccountSetGetExtraInfo_0900', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_0900 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            var notExtraAccount = "account_name_callback_fifth"
            appAccountManager.setAccountExtraInfo(notExtraAccount, "account_extrainfo_fifth", (err)=>{
                console.debug("====>setAccountExtraInfo 0900 err:" + JSON.stringify(err));
                expect(err.code != 0).assertEqual(true);
                console.debug("====>ActsAccountSetGetExtraInfo_0900 end====");
                done();
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1000
        * @tc.name      : setAccountExtraInfo promise form
        * @tc.desc      : Set account extension information that does not exist
        */
        it('ActsAccountSetGetExtraInfo_1000', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1000 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            var notExtraAccount = "account_name_promise_fifth"
            try{
                await appAccountManager.setAccountExtraInfo(notExtraAccount, "account_extrainfo_fifth");
                console.error("====>setAccountExtraInfo fail ActsAccountSetGetExtraInfo_1000");
                expect().assertFail();
                done();
            }
            catch(err){
                console.debug("====>setAccountExtraInfo 1000 err:" + JSON.stringify(err));
                expect(err.code != 0).assertEqual(true);
                console.debug("====>ActsAccountSetGetExtraInfo_1000 end====");
                done();
            }
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1100
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo callback form
        * @tc.desc      : Get additional information that has been set
        */
        it('ActsAccountSetGetExtraInfo_1100', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1100 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_sixth", "account_extrainfo_callback_sixth",(err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_1100 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.setAccountExtraInfo("account_name_callback_sixth", "account_extra_sixth_twice", (err)=>{
                    console.debug("====>setAccountExtraInfo 1100 err:" + JSON.stringify(err));
                    expect(err.code).assertEqual(0);
                    appAccountManager.getAccountExtraInfo("account_name_callback_sixth", (err, data)=>{
                        console.debug("====>getAccountExtraInfo 1100 err:" + JSON.stringify(err));
                        console.debug("====>getAccountExtraInfo 1100 data:" + JSON.stringify(data));
                        expect(err.code).assertEqual(0);
                        expect(data).assertEqual("account_extra_sixth_twice");
                        appAccountManager.deleteAccount("account_name_callback_sixth", (err)=>{
                            console.debug("====>delete Account 1100 err:" + JSON.stringify(err));
                            expect(err.code).assertEqual(0);
                            console.debug("====>ActsAccountSetGetExtraInfo_1100 end====");
                            done();
                        });
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1200
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo promise form
        * @tc.desc      : Get additional information that has been set
        */
        it('ActsAccountSetGetExtraInfo_1200', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1200 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            console.debug("====>add account ActsAccountSetGetExtraInfo_1200 start====");
            await appAccountManager.addAccount("account_name_promise_sixth", "account_extra_promise_sixth");
            console.debug("====>setAccountExtraInfo ActsAccountSetGetExtraInfo_1200 start====");
            await appAccountManager.setAccountExtraInfo("account_name_promise_sixth", "account_extra_sixth_twice");
            try{
                var data = await appAccountManager.getAccountExtraInfo("account_name_promise_sixth")
            }
            catch(err){
                console.error("====>getAccountExtraInfo 1200 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo 1200 data:" + JSON.stringify(data));
            expect(data).assertEqual("account_extra_sixth_twice");
            console.debug("====>delete account ActsAccountSetGetExtraInfo_1200 start====");
            await appAccountManager.deleteAccount("account_name_promise_sixth");
            console.debug("====>ActsAccountSetGetExtraInfo_1200 end====");
            done();
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1300
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo callback form
        * @tc.desc      : Get repeated setting of different additional information
        */
        it('ActsAccountSetGetExtraInfo_1300', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1300 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_seventh",(err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_1300 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.setAccountExtraInfo("account_name_callback_seventh", "callback_seventh", (err)=>{
                    console.debug("====>setAccountExtraInfo 1300 first time err:" + JSON.stringify(err));
                    expect(err.code).assertEqual(0);
                    appAccountManager.setAccountExtraInfo("account_name_callback_seventh", "call_seventh_twice", (err)=>{
                        console.debug("====>setAccountExtraInfo 1300 second time err:" + JSON.stringify(err));
                        expect(err.code).assertEqual(0);
                        appAccountManager.getAccountExtraInfo("account_name_callback_seventh", (err, data)=>{
                            console.debug("====>getAccountExtraInfo 1300 err:" + JSON.stringify(err));
                            console.debug("====>getAccountExtraInfo 1300 data:" + JSON.stringify(data));
                            expect(err.code).assertEqual(0);
                            expect(data).assertEqual("call_seventh_twice");
                            appAccountManager.deleteAccount("account_name_callback_seventh", (err)=>{
                                console.debug("====>delete Account 1300 err:" + JSON.stringify(err));
                            });
                            console.debug("====>ActsAccountSetGetExtraInfo_1300 end====");
                            done();
                        });
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1400
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo promise form
        * @tc.desc      : Get repeated setting of different additional information
        */
        it('ActsAccountSetGetExtraInfo_1400', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1400 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            console.debug("====>add account start ActsAccountSetGetExtraInfo_1400 start====");
            await appAccountManager.addAccount("extrapromise_seventh");
            console.debug("====>setAccountExtraInfo first time ActsAccountSetGetExtraInfo_1400====");
            await appAccountManager.setAccountExtraInfo("extrapromise_seventh", "extra_promise_seventh");
            try{
                var data = await appAccountManager.getAccountExtraInfo("extrapromise_seventh");
            }
            catch(err){
                console.error("====>getAccountExtraInfo first time 1400 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo 1400 first time data:" + JSON.stringify(data));
            expect(data).assertEqual("extra_promise_seventh");
            console.debug("====>setAccountExtraInfo second time ActsAccountSetGetExtraInfo_1400====");
            await appAccountManager.setAccountExtraInfo("extrapromise_seventh", "extra_promise_seventh_twice");
            try{
                var data = await appAccountManager.getAccountExtraInfo("extrapromise_seventh");
            }
            catch(err){
                console.error("====>getAccountExtraInfo 1400 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo 1400 data:" + JSON.stringify(data));
            expect(data).assertEqual("extra_promise_seventh_twice");
            console.debug("====>delete account ActsAccountSetGetExtraInfo_1400 start====");
            await appAccountManager.deleteAccount("extrapromise_seventh");
            console.debug("====>ActsAccountSetGetExtraInfo_1400 end====");
            done();
        });


        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1500
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo callback form
        * @tc.desc      : Get repeated setting of same additional information
        */
        it('ActsAccountSetGetExtraInfo_1500', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1500 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            appAccountManager.addAccount("account_name_callback_eighth",(err)=>{
                console.debug("====>add account ActsAccountSetGetExtraInfo_1500 err:" + JSON.stringify(err));
                expect(err.code).assertEqual(0);
                appAccountManager.setAccountExtraInfo("account_name_callback_eighth", "extra_callback_eighth", (err)=>{
                    console.debug("====>setAccountExtraInfo second time err:" + JSON.stringify(err));
                    expect(err.code).assertEqual(0);
                    appAccountManager.setAccountExtraInfo("account_name_callback_eighth", "extra_callback_eighth", (err)=>{
                        console.debug("====>setAccountExtraInfo 1500 first time err:" + JSON.stringify(err));
                        expect(err.code).assertEqual(0);
                        appAccountManager.getAccountExtraInfo("account_name_callback_eighth", (err, data)=>{
                            console.debug("====>getAccountExtraInfo 1500 err:" + JSON.stringify(err));
                            console.debug("====>getAccountExtraInfo 1500 data:" + JSON.stringify(data));
                            expect(err.code).assertEqual(0);
                            expect(data).assertEqual("extra_callback_eighth");
                            appAccountManager.deleteAccount("account_name_callback_eighth", (err)=>{
                                console.debug("====>delete Account 1500 err:" + JSON.stringify(err));
                            });
                            console.debug("====>ActsAccountSetGetExtraInfo_1500 end====");
                            done();
                        });
                    });
                });
            });
        });

        /*
        * @tc.number    : ActsAccountSetGetExtraInfo_1600
        * @tc.name      : setAccountExtraInfo getAccountExtraInfo promise form
        * @tc.desc      : Get repeated setting of same additional information
        */
        it('ActsAccountSetGetExtraInfo_1600', 0, async function (done) {
            console.debug("====>ActsAccountSetGetExtraInfo_1600 start====");
            var appAccountManager = account.createAppAccountManager();
            console.debug("====>creat finish====");
            console.debug("====>add account ActsAccountSetGetExtraInfo_1600====");
            await appAccountManager.addAccount("account_name_promise_eighth");
            console.debug("====>setAccountExtraInfo first time start ActsAccountSetGetExtraInfo_1600====");
            try{
                await appAccountManager.setAccountExtraInfo("account_name_promise_eighth", "extra_promise_eighth");
            }
            catch(err){
                console.error("====>setAccountExtraInfo first time err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            try{
                var dataFir = await appAccountManager.getAccountExtraInfo("account_name_promise_eighth");
            }
            catch(err){
                console.error("====>getAccountExtraInfo first time 1600 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo first time 1600 dataFir:" + JSON.stringify(dataFir));
            expect(dataFir).assertEqual("extra_promise_eighth");
            console.debug("====>setAccountExtraInfo second time start ActsAccountSetGetExtraInfo_1600====");
            try{
                await appAccountManager.setAccountExtraInfo("account_name_promise_eighth", "extra_promise_eighth");
            }
            catch(err){
                console.error("====>setAccountExtraInfo second time err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            try{
                var dataSec = await appAccountManager.getAccountExtraInfo("account_name_promise_eighth");
            }
            catch(err){
                console.error("====>getAccountExtraInfo second time 1600 err:" + JSON.stringify(err));
                expect().assertFail();
                done();
            }
            console.debug("====>getAccountExtraInfo second time 1600 dataSec:" + JSON.stringify(dataSec));
            expect(dataSec).assertEqual("extra_promise_eighth");
            console.debug("====>delete account ActsAccountSetGetExtraInfo_1600 start====");
            await appAccountManager.deleteAccount("account_name_promise_eighth");
            console.debug("====>ActsAccountSetGetExtraInfo_1600 end====");
            done();
        });
    })
}