未验证 提交 9820d875 编写于 作者: O openharmony_ci 提交者: Gitee

!2245 元能力适配新任务栈xts测试用例修改

Merge pull request !2245 from mingxihua/master
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -40,6 +40,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "300000",
"package": "com.example.actsamstestfifthscene",
"shell-timeout": "600000"
},
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "300000",
"package": "com.example.actsamstestfirstscene",
"shell-timeout": "600000"
},
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "300000",
"package": "com.example.actsamstestfourthscene",
"shell-timeout": "60000"
},
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "300000",
"package": "com.example.actsamstestsecondscene",
"shell-timeout": "600000"
},
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"test-timeout": "300000",
"package": "com.example.actsamstestthirdscene",
"shell-timeout": "600000"
},
......
......@@ -39,6 +39,7 @@ export default {
const configService = core.getDefaultService('config')
configService.setConfig(this)
this.timeout = 10000
require('../../../test/List.test')
core.execute()
......
......@@ -3,7 +3,7 @@
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.ohos.launcher",
"package": "com.example.myapplication11",
"abilityName": "com.ohos.launcherSed11.MainAbility",
"shell-timeout": "600000"
},
......
{
"app": {
"bundleName": "com.ohos.launcher",
"bundleName": "com.example.myapplication11",
"vendor": "example",
"version": {
"code": 1000000,
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
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'
describe('ActsAmsCallBackSixth Scene', function () {
......@@ -51,7 +51,7 @@ describe('ActsAmsCallBackSixth Scene', function () {
* @tc.desc : Clear Missions(by CallBack)
*/
it('Acts_Ams_test_12200', 0, async function (done) {
abilityManager.clearMissions(
missionManager.clearAllMissions(
(error,info) => {
console.info('Acts_Ams_test_12200 clearMissions error.code ' + error.code + ',data [' + info + ']' );
expect(typeof(info)).assertEqual("number");
......@@ -59,4 +59,4 @@ describe('ActsAmsCallBackSixth Scene', function () {
});
done();
})
})
})
\ No newline at end of file
......@@ -3,7 +3,7 @@
"driver": {
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.ohos.launcher",
"package": "com.example.myapplication111",
"abilityName": "com.ohos.launcherSed111.MainAbility",
"shell-timeout": "600000"
},
......
{
"app": {
"bundleName": "com.ohos.launcher",
"bundleName": "com.example.myapplication111",
"vendor": "example",
"version": {
"code": 1000000,
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
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'
describe('ActsAmsCallBackSixth Scene', function () {
......@@ -51,10 +51,10 @@ describe('ActsAmsCallBackSixth Scene', function () {
* @tc.desc : Clear Missions(by Promise)
*/
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 + ']');
expect(typeof(info)).assertEqual("number");
expect(info).assertEqual(0);
done();
})
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册