提交 870c925f 编写于 作者: C chengxingzhen

fix wantAgent testcase

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 2b1d75dd
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1000000",
"test-timeout": "500000",
"package": "com.example.abilitymultiinstance",
"shell-timeout": "300000"
},
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1000000",
"test-timeout": "300000",
"package": "com.example.systemcalltest",
"shell-timeout": "60000"
},
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1000000",
"test-timeout": "100000",
"package": "com.example.thirdcalltest",
"shell-timeout": "60000"
},
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsUsersKillProcessAppA") {
ohos_hap("ActsAmsUsersKillProcessAppA") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsUsersKillProcessAppA"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsuserskillprocessappa_js_assets",
":actsamsuserskillprocessappa_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsUsersKillProcessAppA"
}
ohos_app_scope("actsamsuserskillprocessappa_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsUsersKillProcessAppB") {
ohos_hap("ActsAmsUsersKillProcessAppB") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsUsersKillProcessAppB"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsuserskillprocessappb_js_assets",
":actsamsuserskillprocessappb_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsUsersKillProcessAppB"
}
ohos_app_scope("actsamsuserskillprocessappb_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsUsersKillProcessAppC") {
ohos_hap("ActsAmsUsersKillProcessAppC") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsUsersKillProcessAppC"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsuserskillprocessappc_js_assets",
":actsamsuserskillprocessappc_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsUsersKillProcessAppC"
}
ohos_app_scope("actsamsuserskillprocessappc_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("actsServiceAbilityRelyHap") {
ohos_hap("actsServiceAbilityRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "actsServiceAbilityRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsserviceabilityrelytest_js_assets",
":actsserviceabilityrelytest_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "actsServiceAbilityRelyHap"
}
ohos_app_scope("actsserviceabilityrelytest_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsExtensionModuleRelyHap") {
ohos_hap("ActsAmsExtensionModuleRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsExtensionModuleRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsextensionmodulerelyhap_js_assets",
":actsamsextensionmodulerelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsExtensionModuleRelyHap"
}
ohos_app_scope("actsamsextensionmodulerelyhap_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticExtensionInfoRelyHap") {
ohos_hap("ActsAmsStaticExtensionInfoRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsStaticExtensionInfoRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsstaticextensioninforelyhap_js_assets",
":actsamsstaticextensioninforelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsStaticExtensionInfoRelyHap"
}
ohos_app_scope("actsamsstaticextensioninforelyhap_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticARelyHap") {
ohos_hap("ActsAmsStaticARelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsStaticARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsstaticarelyhap_js_assets",
":actsamsstaticarelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsStaticARelyHap"
}
ohos_app_scope("actsamsstaticarelyhap_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticBRelyHap") {
ohos_hap("ActsAmsStaticBRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsStaticBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsstaticbrelyhap_js_assets",
":actsamsstaticbrelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsStaticBRelyHap"
}
ohos_app_scope("actsamsstaticbrelyhap_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticQueryTestTwoRelyHap") {
ohos_hap("ActsAmsStaticQueryTestTwoRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsAmsStaticQueryTestTwoRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsamsstaticquerytesttworelyhap_js_assets",
":actsamsstaticquerytesttworelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsStaticQueryTestTwoRelyHap"
}
ohos_app_scope("actsamsstaticquerytesttworelyhap_app_profile") {
......
......@@ -74,8 +74,6 @@ export default function abilityTest(abilityContext) {
describe('ActsGetDisplayIdStartAbilityTest', function () {
afterEach(async (done) => {
let installer = await bundle.getBundleInstaller();
var count = 0;
var testMissionId;
testMissionId = await getMissionId();
......
......@@ -21,6 +21,7 @@ import wantAgent from '@ohos.wantAgent';
import particleAbility from '@ohos.ability.particleAbility'
import backgroundTaskManager from '@ohos.backgroundTaskManager'
const CREATELOCALDIR = "/data/storage/el2/base/haps/entry";
const START_ABILITY_TIMEOUT = 4000;
const TERMINATE_ABILITY_TIMEOUT = 1000;
const TIMEOUT = 1000;
......@@ -1815,12 +1816,6 @@ describe('ActsFeatureAbilityTest', function () {
);
})
// checkGetOrCreateLocalDir
function checkGetOrCreateLocalDir(info) {
console.log("checkGetOrCreateLocalDir root dir : " + info);
expect(typeof (info)).assertEqual("string");
}
// @tc.number: ACTS_GetOrCreateLocalDir_0100
// @tc.name: GetProcessName : Obtains the name of the current process.
// @tc.desc: Check the return value of the interface (by promise)
......@@ -1829,7 +1824,7 @@ describe('ActsFeatureAbilityTest', function () {
var promise = context.getOrCreateLocalDir();
expect(typeof (promise)).assertEqual("object");
var info = await context.getOrCreateLocalDir();
checkGetOrCreateLocalDir(info);
expect(info).assertEqual(CREATELOCALDIR);
done();
setTimeout(function () {
console.info('====> ACTS_GetOrCreateLocalDir_0100 =====>')
......@@ -1843,7 +1838,7 @@ describe('ActsFeatureAbilityTest', function () {
var context = featureAbility.getContext();
var result = context.getOrCreateLocalDir(
(err, data) => {
checkGetOrCreateLocalDir(data);
expect(data).assertEqual(CREATELOCALDIR);
done()
}
);
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsKillProcessWithAccountRelyHap") {
ohos_hap("ActsKillProcessWithAccountRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsKillProcessWithAccountRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actskillprocesswithaccountrelyhap_js_assets",
":actskillprocesswithaccountrelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsKillProcessWithAccountRelyHap"
}
ohos_app_scope("actskillprocesswithaccountrelyhap_app_profile") {
......
......@@ -13,15 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppOneRelyHap") {
ohos_hap("ActsSystemAppOneRelyHap") {
hap_profile = "entry/src/main/module.json"
hap_name = "ActsSystemAppOneRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":acts_systemappone_rely_test_js_assets",
":acts_systemappone_rely_test_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsSystemAppOneRelyHap"
}
ohos_app_scope("acts_systemappone_rely_test_app_profile") {
......
......@@ -2,7 +2,7 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1000000",
"test-timeout": "300000",
"package": "com.example.zidlclienttest",
"shell-timeout": "300000"
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册