diff --git a/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js index b408a51cb9072e27416c3068740116f11beba364..a35a7cd286b6c1e5d2d4e930884aa22adde54890 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbackfifthscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -115,9 +115,6 @@ export default function ActsAmsCallBackFifthScene() { * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_6600', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_6600 getProcessRunningInfos error.code \ @@ -141,5 +138,37 @@ export default function ActsAmsCallBackFifthScene() { } ); }) + + /* + * @tc.number : Acts_Ams_test_6700 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by CallBack) + */ + it('Acts_Ams_test_6700', 0, async function (done) { + appManager.getProcessRunningInformation( + (error, info) => { + console.info('Acts_Ams_test_6700 getProcessRunningInformation error.code \ + ' + error.code + ', data length [' + info.length + ']'); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (let i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_6700 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + } + ); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js index 8ac9a7a9f65ac72a58604fe236639f1b8193cd19..748877217560592fb5bb32eedb9a3937d77b4e33 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbackfirstscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -59,9 +59,6 @@ export default function ActsAmsCallBackFirstScene() { * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_0200', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_0200 getProcessRunningInfos error.code \ @@ -84,5 +81,36 @@ export default function ActsAmsCallBackFirstScene() { done(); }); }) + + /* + * @tc.number : Acts_Ams_test_0300 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by CallBack) + */ + it('Acts_Ams_test_0300', 0, async function (done) { + appManager.getProcessRunningInformation( + (error, info) => { + console.info('Acts_Ams_test_0300 getProcessRunningInformation error.code \ + ' + error.code + ', data length [' + info.length + ']'); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (var i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_0200 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js index 22a09251cebfc17fae051958a3118f34822ba058..5e71586a799730bb64528b6d1def624ca8636485 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbackfourthscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -110,9 +110,6 @@ export default function ActsAmsCallBackFourthScene() { * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_5000', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_5000 getProcessRunningInfos error.code \ @@ -135,5 +132,36 @@ export default function ActsAmsCallBackFourthScene() { done(); }); }) + + /* + * @tc.number : Acts_Ams_test_5100 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by CallBack) + */ + it('Acts_Ams_test_5100', 0, async function (done) { + appManager.getProcessRunningInformation( + (error, info) => { + console.info('Acts_Ams_test_5100 getProcessRunningInformation error.code \ + ' + error.code + ', data length [' + info.length + ']'); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (let i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_5100 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js index 7504917e82cc3f8dd5200eff673f5a78eb31cd71..6080fed293892ae69748f515f217c1b61e9fea95 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbacksecondscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -76,9 +76,6 @@ export default function ActsAmsCallBackSecondScene() { * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_1800', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_1800 getProcessRunningInfos error.code \ @@ -101,5 +98,36 @@ export default function ActsAmsCallBackSecondScene() { done(); }); }) + + /* + * @tc.number : Acts_Ams_test_1900 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by CallBack) + */ + it('Acts_Ams_test_1900', 0, async function (done) { + appManager.getProcessRunningInformation( + (error, info) => { + console.info('Acts_Ams_test_1900 getProcessRunningInformation error.code \ + ' + error.code + ', data length [' + info.length + ']'); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (let i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_1900 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js index 73e38f1d867e0ff2b460c4a132af2dee32a57dc5..4b642e9ef4da6fc68f45291b8e583d6dc246a9b4 100644 --- a/ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamscallbackthirdscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -70,9 +70,6 @@ export default function ActsAmsCallBackThirdScene() { * @tc.desc : Get All Running Processes Info(by CallBack) */ it('Acts_Ams_test_3400', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); appManager.getProcessRunningInfos( (error, info) => { console.info('Acts_Ams_test_3400 getProcessRunningInfos error.code \ @@ -95,5 +92,36 @@ export default function ActsAmsCallBackThirdScene() { done(); }); }) + + /* + * @tc.number : Acts_Ams_test_3500 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by CallBack) + */ + it('Acts_Ams_test_3500', 0, async function (done) { + appManager.getProcessRunningInformation( + (error, info) => { + console.info('Acts_Ams_test_3500 getProcessRunningInformation error.code \ + ' + error.code + ', data length [' + info.length + ']'); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (let i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_3500 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js index 626f1768767648cb7b9839a0fff01f0d4f8f3e9d..a7c742da9e01284faf958a25d6c7368e9b8756b1 100644 --- a/ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamstestfifthscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -130,9 +130,6 @@ export default function ActsAmsTestFifthScene() { * @tc.desc : Get All Running Processes Info(by Promise) */ it('Acts_Ams_test_0100', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); let info = await appManager.getProcessRunningInfos(); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -151,5 +148,32 @@ export default function ActsAmsTestFifthScene() { } done(); }) + + /* + * @tc.number : Acts_Ams_test_0200 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by Promise) + */ + it('Acts_Ams_test_0200', 0, async function (done) { + let info = await appManager.getProcessRunningInformation(); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (let i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_0200 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js index f9c23f87d6cf4aab8780b7854a350774b4be271f..2b105766e4898cff986987abc760a17b43b1422b 100644 --- a/ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamstestfirstscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -64,9 +64,6 @@ export default function ActsAmsTestFirstScene() { * @tc.desc : Get All Running Processes Info(by Promise) */ it('Acts_Ams_test_0100', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); var info = await appManager.getProcessRunningInfos(); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -85,5 +82,32 @@ export default function ActsAmsTestFirstScene() { } done(); }) + + /* + * @tc.number : Acts_Ams_test_0200 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by Promise) + */ + it('Acts_Ams_test_0200', 0, async function (done) { + var info = await appManager.getProcessRunningInformation(); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (var i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_0200 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js index 653b348c19f209179cad082234e39c0094c0727b..9417fe93f1b1430d4440ba8a03269b4eb2bfa759 100644 --- a/ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamstestfourthscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -131,7 +131,7 @@ export default function ActsAmsTestFourthScene() { */ it('Acts_Ams_test_1700', 0, async function (done) { console.info("sleep begin"); - sleep(5000); + sleep(2000); console.info("sleep end"); var info = await appManager.getProcessRunningInfos(); expect(Array.isArray(info)).assertEqual(true); @@ -151,5 +151,35 @@ export default function ActsAmsTestFourthScene() { } done(); }) + + /* + * @tc.number : Acts_Ams_test_1800 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by Promise) + */ + it('Acts_Ams_test_1800', 0, async function (done) { + console.info("sleep begin"); + sleep(2000); + console.info("sleep end"); + var info = await appManager.getProcessRunningInformation(); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (var i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_1800 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js index cd3271250dde0a01c282a971c56e0e2f3dc55ace..5ff92b663c942f72845a1e3bad60da82ba4678ac 100644 --- a/ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamstestsecondscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -86,9 +86,6 @@ export default function ActsAmsTestSecondScene() { * @tc.desc : Get All Running Processes Info(by Promise) */ it('Acts_Ams_test_1700', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); var info = await appManager.getProcessRunningInfos(); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -107,5 +104,32 @@ export default function ActsAmsTestSecondScene() { } done(); }) + + /* + * @tc.number : Acts_Ams_test_1800 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by Promise) + */ + it('Acts_Ams_test_1800', 0, async function (done) { + var info = await appManager.getProcessRunningInformation(); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (var i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_1800 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js b/ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js index b3182e82432c9fa9087f977cafd115b7e77253f2..43010250798084c322da8b728638a6ceeca0c69b 100644 --- a/ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js +++ b/ability/ability_runtime/abilitymanager/actsamstestthirdscene/src/main/js/test/MangerAbilityJsunit.test.js @@ -87,9 +87,6 @@ export default function ActsAmsTestThirdScene() { * @tc.desc : Get All Running Processes Info(by Promise) */ it('Acts_Ams_test_3300', 0, async function (done) { - console.info("sleep begin"); - sleep(5000); - console.info("sleep end"); var info = await appManager.getProcessRunningInfos(); console.info('Acts_Ams_test_3300 getProcessRunningInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); @@ -109,5 +106,34 @@ export default function ActsAmsTestThirdScene() { } done(); }) + + /* + * @tc.number : Acts_Ams_test_3400 + * @tc.name : getProcessRunningInformation : Get All Running Processes Information + * @tc.desc : Get All Running Processes Information(by Promise) + */ + it('Acts_Ams_test_3400', 0, async function (done) { + var info = await appManager.getProcessRunningInformation(); + console.info('Acts_Ams_test_3400 getProcessRunningInformation JSON String: \ + ' + JSON.stringify(info)); + expect(Array.isArray(info)).assertEqual(true); + expect(info.length).assertLarger(0); + for (var i = 0; i < info.length; i++) { + console.info('Acts_Ams_test_3400 getProcessRunningInformation[' + i + "]: \ + " + JSON.stringify(info[i])); + expect(typeof (info[i].pid)).assertEqual("number"); + expect(info[i].pid).assertLarger(0); + + expect(typeof (info[i].processName)).assertEqual("string"); + expect(info[i].processName.length).assertLarger(0); + expect(Array.isArray(info[i].bundleNames)).assertEqual(true); + expect(info[i].bundleNames.length).assertLarger(0); + + expect(typeof (info[i].uid)).assertEqual("number"); + expect(info[i].uid).assertLarger(0); + } + done(); + }) + }) } \ No newline at end of file diff --git a/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js b/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js index 9da2ccb03bbd3f765062a6ad35bce1ef5a90e09a..6ca1695ca1005054c9d9b4fd6358961ec229caea 100644 --- a/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js +++ b/ability/ability_runtime/amsgetabilityprocessinfo/actsgetabilityprocessinfotest/src/main/js/test/ActsProcessManageJsTest.test.js @@ -58,5 +58,35 @@ describe('ActsAbilityRunningInfosTest', function () { done(); }) }) + + /* + * @tc.number: ACTS_getProcessRunningInformation_0300 + * @tc.name: Application running ability information query + * @tc.desc: Verify applications are started to query getProcessRunningInformation ability information + * (by promise) + */ + it('ACTS_getProcessRunningInformation_0300', 0, async function (done) { + console.log('ACTS_getProcessRunningInformation_0300==== ACTS_getProcessRunningInformation_0300 ====>' + JSON.stringify(data)) + expect(checkRunningProcess('com.example.abilityrunninginfostest', data)).assertTrue(); + done(); + }) + + /* + * @tc.number: ACTS_getProcessRunningInformation_0400 + * @tc.name: Application running ability information query + * @tc.desc: Verify applications are started to query getProcessRunningInformation ability information + * (by callback) + */ + it('ACTS_getProcessRunningInformation_0400', 0, async function (done) { + console.log('ACTS_getProcessRunningInformation_0400==== { + console.info('====> ACTS_getProcessRunningInformation_0400 ====>' + JSON.stringify(data)) + expect(checkRunningProcess('com.example.abilityrunninginfostest', data)).assertTrue(); + done(); + }) + }) + }) }