提交 87d61a87 编写于 作者: M mingxihua

IssueNo:#I4WR0H: 元能力适配新任务栈xts测试用例修改

Description: 元能力适配新任务栈xts测试用例修改
Sig:SIG_ApplicationFramework
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nmingxihua <mingxihua@huawei.com>
上级 9a55d6d2
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "300000",
"package": "com.example.actsamstestfifthscene", "package": "com.example.actsamstestfifthscene",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "300000",
"package": "com.example.actsamstestfirstscene", "package": "com.example.actsamstestfirstscene",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "300000",
"package": "com.example.actsamstestfourthscene", "package": "com.example.actsamstestfourthscene",
"shell-timeout": "60000" "shell-timeout": "60000"
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "300000",
"package": "com.example.actsamstestsecondscene", "package": "com.example.actsamstestsecondscene",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests",
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "300000",
"package": "com.example.actsamstestthirdscene", "package": "com.example.actsamstestthirdscene",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.ohos.launcher", "package": "com.example.myapplication11",
"abilityName": "com.ohos.launcherSed11.MainAbility", "abilityName": "com.ohos.launcherSed11.MainAbility",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
{ {
"app": { "app": {
"bundleName": "com.ohos.launcher", "bundleName": "com.example.myapplication11",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1000000, "code": 1000000,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import abilityManager from '@ohos.app.abilityManager' import missionManager from '@ohos.application.missionManager'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('ActsAmsCallBackSixth Scene', function () { describe('ActsAmsCallBackSixth Scene', function () {
...@@ -51,7 +51,7 @@ describe('ActsAmsCallBackSixth Scene', function () { ...@@ -51,7 +51,7 @@ describe('ActsAmsCallBackSixth Scene', function () {
* @tc.desc : Clear Missions(by CallBack) * @tc.desc : Clear Missions(by CallBack)
*/ */
it('Acts_Ams_test_12200', 0, async function (done) { it('Acts_Ams_test_12200', 0, async function (done) {
abilityManager.clearMissions( missionManager.clearAllMissions(
(error,info) => { (error,info) => {
console.info('Acts_Ams_test_12200 clearMissions error.code ' + error.code + ',data [' + info + ']' ); console.info('Acts_Ams_test_12200 clearMissions error.code ' + error.code + ',data [' + info + ']' );
expect(typeof(info)).assertEqual("number"); expect(typeof(info)).assertEqual("number");
...@@ -59,4 +59,4 @@ describe('ActsAmsCallBackSixth Scene', function () { ...@@ -59,4 +59,4 @@ describe('ActsAmsCallBackSixth Scene', function () {
}); });
done(); done();
}) })
}) })
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "JSUnitTest", "type": "JSUnitTest",
"test-timeout": "120000", "test-timeout": "120000",
"package": "com.ohos.launcher", "package": "com.example.myapplication111",
"abilityName": "com.ohos.launcherSed111.MainAbility", "abilityName": "com.ohos.launcherSed111.MainAbility",
"shell-timeout": "600000" "shell-timeout": "600000"
}, },
......
{ {
"app": { "app": {
"bundleName": "com.ohos.launcher", "bundleName": "com.example.myapplication111",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1000000, "code": 1000000,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import abilityManager from '@ohos.app.abilityManager' import missionManager from '@ohos.application.missionManager'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('ActsAmsCallBackSixth Scene', function () { describe('ActsAmsCallBackSixth Scene', function () {
...@@ -51,10 +51,10 @@ describe('ActsAmsCallBackSixth Scene', function () { ...@@ -51,10 +51,10 @@ describe('ActsAmsCallBackSixth Scene', function () {
* @tc.desc : Clear Missions(by Promise) * @tc.desc : Clear Missions(by Promise)
*/ */
it('Acts_Ams_test_12100', 0, async function (done) { it('Acts_Ams_test_12100', 0, async function (done) {
var info = await abilityManager.clearMissions(); var info = await missionManager.clearAllMissions();
console.info('Acts_Ams_test_12100 clearMissions data [' + info + ']'); console.info('Acts_Ams_test_12100 clearMissions data [' + info + ']');
expect(typeof(info)).assertEqual("number"); expect(typeof(info)).assertEqual("number");
expect(info).assertEqual(0); expect(info).assertEqual(0);
done(); done();
}) })
}) })
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册