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

fix wantAgent testcase

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