diff --git a/global/cust/custjs/Test.json b/global/cust/custjs/Test.json index 05512e3fd5689a026c97c7ba96b7e4c07d89c31c..992c1b18d0284a6ec1e42aeb41e0d1f2436aa990 100755 --- a/global/cust/custjs/Test.json +++ b/global/cust/custjs/Test.json @@ -17,12 +17,12 @@ { "type": "ShellKit", "run-command": [ - "mkdir -p /system/etc/custxml/", - "mkdir -p /sys-prod/etc/custxml/", - "touch /system/etc/custxml/system.xml", - "touch /system/etc/custxml/both.xml", - "touch /sys-prod/etc/custxml/both.xml", - "touch /sys-prod/etc/custxml/user.xml" + "mkdir -p /system/etc/custxmltest/", + "mkdir -p /sys-prod/etc/custxmltest/", + "touch /system/etc/custxmltest/system.xml", + "touch /system/etc/custxmltest/both.xml", + "touch /sys-prod/etc/custxmltest/both.xml", + "touch /sys-prod/etc/custxmltest/user.xml" ] } ] diff --git a/global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js b/global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js index 955e841e7948c446b2e0e7e82cfaf7856c11dc2d..e0a358aaaaeefdad6316d84adeac6a67547c5318 100755 --- a/global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js +++ b/global/cust/custjs/src/main/js/default/test/GetCfgFiles.test.js @@ -25,19 +25,19 @@ describe('GetCfgFilesTest', function () { * @tc.desc get getCfgFiles in callback mode */ it('getCfgFiles_test_003', 0, async function (done) { - cust.getCfgFiles('custxml/none.xml', (error, value) => { + cust.getCfgFiles('custxmltest/none.xml', (error, value) => { expect(value.length == 0).assertTrue(); console.log('CustTest getCfgFiles_test_003, none.xml:' + value); }); - cust.getCfgFiles('custxml/system.xml', (error, value) => { + cust.getCfgFiles('custxmltest/system.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_003, system.xml:' + value); }); - cust.getCfgFiles('custxml/both.xml', (error, value) => { + cust.getCfgFiles('custxmltest/both.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_003, both.xml:' + value); }); - cust.getCfgFiles('custxml/user.xml', (error, value) => { + cust.getCfgFiles('custxmltest/user.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_003, user.xml:' + value); }); @@ -50,19 +50,19 @@ describe('GetCfgFilesTest', function () { * @tc.desc get getCfgFiles in promise mode */ it('getCfgFiles_test_004', 0, async function (done) { - cust.getCfgFiles('custxml/none.xml').then(value => { + cust.getCfgFiles('custxmltest/none.xml').then(value => { expect(value.length == 0).assertTrue(); console.log('CustTest getCfgFiles_test_004, none.xml:' + value); }); - cust.getCfgFiles('custxml/system.xml').then(value => { + cust.getCfgFiles('custxmltest/system.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_004, system.xml:' + value); }); - cust.getCfgFiles('custxml/both.xml').then(value => { + cust.getCfgFiles('custxmltest/both.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_004, both.xml:' + value); }); - cust.getCfgFiles('custxml/user.xml').then(value => { + cust.getCfgFiles('custxmltest/user.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getCfgFiles_test_004, user.xml:' + value); }); diff --git a/global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js b/global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js index c560e9675f7a655b2da1ce9eb31c63a73d60106a..60bdfdafafe1dd6706b2ad9694cbf2780f8f5fb6 100755 --- a/global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js +++ b/global/cust/custjs/src/main/js/default/test/GetOneCfgFile.test.js @@ -25,19 +25,19 @@ describe('GetOneCfgFileTest', function () { * @tc.desc get getOneCfgFile in callback mode */ it('getOneCfgFile_test_001', 0, async function (done) { - cust.getOneCfgFile('custxml/none.xml', (error, value) => { + cust.getOneCfgFile('custxmltest/none.xml', (error, value) => { expect(value.length == 0).assertTrue(); console.log('CustTest getOneCfgFile_test_001, none.xml:' + value); }); - cust.getOneCfgFile('custxml/system.xml', (error, value) => { + cust.getOneCfgFile('custxmltest/system.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_001, system.xml:' + value); }); - cust.getOneCfgFile('custxml/both.xml', (error, value) => { + cust.getOneCfgFile('custxmltest/both.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_001, both.xml:' + value); }); - cust.getOneCfgFile('custxml/user.xml', (error, value) => { + cust.getOneCfgFile('custxmltest/user.xml', (error, value) => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_001, user.xml:' + value); }); @@ -50,19 +50,19 @@ describe('GetOneCfgFileTest', function () { * @tc.desc get getOneCfgFile in promise mode */ it('getOneCfgFile_test_002', 0, async function (done) { - cust.getOneCfgFile('custxml/none.xml').then(value => { + cust.getOneCfgFile('custxmltest/none.xml').then(value => { expect(value.length == 0).assertTrue(); console.log('CustTest getOneCfgFile_test_002, none.xml:' + value); }); - cust.getOneCfgFile('custxml/system.xml').then(value => { + cust.getOneCfgFile('custxmltest/system.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_002, system.xml:' + value); }); - cust.getOneCfgFile('custxml/both.xml').then(value => { + cust.getOneCfgFile('custxmltest/both.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_002, both.xml:' + value); }); - cust.getOneCfgFile('custxml/user.xml').then(value => { + cust.getOneCfgFile('custxmltest/user.xml').then(value => { expect(value.length != 0).assertTrue(); console.log('CustTest getOneCfgFile_test_002, user.xml:' + value); });