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

!3796 XTS元能力gn问题整改

Merge pull request !3796 from chengxingzhen/master
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("simulateEAbility") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "simulateEAbility"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("simulateFAbilityFir") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "simulateFAbilityFir"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("simulateFAbilitySed") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "simulateFAbilitySed"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("verifyAAbility") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "verifyAAbility"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("verifyIAbility") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "verifyIAbility"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapARelyHap") {
ohos_hap("ActsAmsAbilityMultiinstanceHapARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsabilitymultiinstancehapa_js_assets",
":actsamsabilitymultiinstancehapa_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsAbilityMultiinstanceHapARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsabilitymultiinstancehapa_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapBRelyHap") {
ohos_hap("ActsAmsAbilityMultiinstanceHapBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsabilitymultiinstancehapb_js_assets",
":actsamsabilitymultiinstancehapb_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapBRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsAbilityMultiinstanceHapBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsabilitymultiinstancehapb_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapCRelyHap") {
ohos_hap("ActsAmsAbilityMultiinstanceHapCRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsabilitymultiinstancehapc_js_assets",
":actsamsabilitymultiinstancehapc_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapCRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsAbilityMultiinstanceHapCRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsabilitymultiinstancehapc_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapDRelyHap") {
ohos_hap("ActsAmsAbilityMultiinstanceHapDRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsabilitymultiinstancehapd_js_assets",
":actsamsabilitymultiinstancehapd_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsAbilityMultiinstanceHapDRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsAbilityMultiinstanceHapDRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsabilitymultiinstancehapd_app_profile") {
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsAbilityMultiinstanceHapERelyHap") {
hap_name = "ActsAmsAbilityMultiinstanceHapERelyHap"
js_build_mode = "debug"
hap_profile = "./src/main/config.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsAbilityMultiinstanceTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsabilitymultiinstance_js_assets",
":actsamsabilitymultiinstance_resources",
......
......@@ -18,7 +18,7 @@ import {describe, beforeEach, afterEach, it, expect} from 'hypium/index';
import Utils from './Utils';
export default function ContextJsunit() {
describe('appInfoTest_ability_2', function () {
describe('faContextTest', function () {
beforeEach(async function (done) {
console.info("context before each called");
done()
......
......@@ -32,7 +32,7 @@ const TAG_TEST_0011 = ' context_featureAbility_test_0300 ';
const TAG_TEST_0012 = ' context_featureAbility_test_0400 ';
export default function addContextAndAbilityJsunit() {
describe('appInfoTest_ability_1', function () {
describe('addContextTest', function () {
/*
* @tc.number: context_isUpdatingConfigurations_test_0100
* @tc.name: isUpdatingConfigurations : Obtains whether the configuration of the current ability is changing.
......@@ -163,7 +163,7 @@ export default function addContextAndAbilityJsunit() {
})
await Utils.sleep(2000)
expect(typeof (detailed)).assertEqual("number");
expect(detailed).assertEqual(512);
expect(detailed).assertLarger(0);
done();
console.log('------------------ ' + TAG_TEST_0500 + ' end -------------------');
});
......@@ -183,7 +183,7 @@ export default function addContextAndAbilityJsunit() {
console.info(TAG_TEST_0600 + ' callBack error is: ' + JSON.stringify(error));
console.info(TAG_TEST_0600 + ' callBack data is:' + JSON.stringify(data));
expect(typeof (data)).assertEqual("number");
expect(data).assertEqual(512);
expect(data).assertLarger(0);
console.log('------------------ ' + TAG_TEST_0600 + ' end -------------------');
done();
})
......
......@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
describe('appInfoTest_ability_3', function () {
describe('getAbilityInfoTest', function () {
/**
* @tc.number: context_getAbilityInfo_test_0100
......@@ -203,9 +203,9 @@ export default function getHapModuleInfoJsunit() {
expect(typeof (data.uri)).assertEqual("string");
expect(data.bundleName).assertEqual("com.ohos.acecollaboration");
expect(data.name).assertEqual("com.ohos.acecollaboration.MainAbility");
expect(data.label).assertEqual("$string:entry_MainAbility");
expect(data.description).assertEqual("$string:mainability_description");
expect(data.name).assertEqual("com.ohos.acecollaboration.TestAbility");
expect(data.label).assertEqual("$string:TestAbility_label");
expect(data.description).assertEqual("$string:TestAbility_desc");
expect(data.icon).assertEqual("$media:icon");
expect(data.descriptionId > 0).assertTrue();
expect(data.iconId > 0).assertTrue();
......
......@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
describe('appInfoTest_ability_5', function () {
describe('getAppVersionInfoTest', function () {
/**
* @tc.number: context_getAppVersionInfo_test_0100
* @tc.name: getAppVersionInfo:Gets the version information for the application.
......
......@@ -17,7 +17,7 @@ import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
describe('appInfoTest_ability_4', function () {
describe('getApplicationContextTest', function () {
/**
* @tc.number: context_getApplicationContext_test_0100
* @tc.name: getApplicationContext:Gets the application context information.
......
......@@ -16,8 +16,10 @@ import {describe, it, expect} from 'hypium/index';
import Utils from './Utils';
import ability_featureAbility from '@ohos.ability.featureAbility';
export default function getHapModuleInfoJsunit() {
describe('appInfoTest_ability_6', function () {
describe('getHapModuleInfoTest', function () {
/**
* @tc.number: context_getHapModuleInfo_test_0100
* @tc.name: getHapModuleInfo:Obtains the HapModuleInfo object of the application.
......@@ -124,7 +126,8 @@ export default function getHapModuleInfoJsunit() {
expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual("phone");
checkAbilityInfo(msg,data.abilityInfos[0]);
console.info(msg + ' data.abilityInfos.length ' + data.abilityInfos.length)
checkAbilityInfo(msg, data.abilityInfos[0]);
expect(data.moduleName).assertEqual("entry")
expect(data.mainAbilityName).assertEqual("");
expect(data.installationFree).assertEqual(false);
......@@ -203,9 +206,9 @@ export default function getHapModuleInfoJsunit() {
expect(typeof (data.defaultFormWidth)).assertEqual("number");
expect(typeof (data.uri)).assertEqual("string");
expect(data.bundleName).assertEqual("com.ohos.acecollaboration");
expect(data.name).assertEqual("com.ohos.acecollaboration.MainAbility");
expect(data.label).assertEqual("$string:entry_MainAbility");
expect(data.description).assertEqual("$string:mainability_description");
expect(data.name).assertEqual("com.ohos.acecollaboration.TestAbility");
expect(data.label).assertEqual("$string:TestAbility_label");
expect(data.description).assertEqual("$string:TestAbility_desc");
expect(data.icon).assertEqual("$media:icon");
expect(data.moduleName).assertEqual("entry");
expect(data.process).assertEqual("");
......@@ -228,6 +231,6 @@ export default function getHapModuleInfoJsunit() {
expect(data.subType).assertEqual(0);
console.log(msg+ "---checkAbilityInfo End--- ");
}
})
}
\ No newline at end of file
}
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppCalleeARelyHap") {
ohos_hap("ActsSystemAppCalleeARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemappcalleea_js_assets",
":systemappcalleea_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsSystemAppCalleeARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsSystemAppCalleeARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("systemappcalleea_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppCallerARelyHap") {
ohos_hap("ActsSystemAppCallerARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemappcallera_js_assets",
":systemappcallera_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsSystemAppCallerARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsSystemAppCallerARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("systemappcallera_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppCallerBRelyHap") {
ohos_hap("ActsSystemAppCallerBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemappcallerb_js_assets",
":systemappcallerb_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsSystemAppCallerBRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsSystemAppCallerBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("systemappcallerb_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppCallerCRelyHap") {
ohos_hap("ActsSystemAppCallerCRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemappcallerc_js_assets",
":systemappcallerc_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsSystemAppCallerCRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsSystemAppCallerCRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("systemappcallerc_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCallTestEntryTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemcallentrytest_js_assets",
":systemcallentrytest_resources",
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsCallTestFeatureRelyHap") {
ohos_hap("ActsCallTestFeatureRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":systemcallfeature_js_assets",
":systemcallfeature_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsCallTestFeatureRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsCallTestFeatureRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("systemcallfeature_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsThirdAppARelyHap") {
ohos_hap("ActsThirdAppARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":thirdappa_js_assets",
":thirdappa_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsThirdAppARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsThirdAppARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("thirdappa_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsThirdCallTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":thirdcalltest_js_assets",
":thirdcalltest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsDataAbilityRelyHap") {
hap_name = "ActsDataAbilityRelyHap"
js_build_mode = "debug"
hap_profile = "entry/src/main/config.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsServiceAbilityServerRelyHap") {
hap_name = "ActsServiceAbilityServerRelyHap"
js_build_mode = "debug"
hap_profile = "entry/src/main/config.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsServiceAbilityServerSecondRelyHap") {
hap_name = "ActsServiceAbilityServerSecondRelyHap"
js_build_mode = "debug"
hap_profile = "entry/src/main/config.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSpecifiedUserActionextensionZeroTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsspecifieduseractionextensionzerotest_js_assets",
":actsspecifieduseractionextensionzerotest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSpecifiedUserActionextensiononeTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsspecifieduseractionextensiononetest_js_assets",
":actsspecifieduseractionextensiononetest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSpecifiedUserActionZeroTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsspecifieduseractionzerotest_js_assets",
":actsspecifieduseractionzerotest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSpecifiedUserActiononeTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsspecifieduseractiononetest_js_assets",
":actsspecifieduseractiononetest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsUsersApi7AppA") {
hap_name = "ActsAmsUsersApi7AppA"
js_build_mode = "debug"
hap_profile = "entry/src/main/config.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
{
"description": "Configuration for hjunit demo Tests"
}
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsUsersExtensionSystemTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsusersextensionsystemtest_js_assets",
":actsamsusersextensionsystemtest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsUsersKillProcessAppA") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsUsersKillProcessAppA"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsUsersKillProcessAppB") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsUsersKillProcessAppB"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsUsersKillProcessAppC") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsUsersKillProcessAppC"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsUsersSystemTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsuserssystemtest_js_assets",
":actsamsuserssystemtest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsConnectAbilitySystemAbilityTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsconnectabilitysystemabilitytest_js_assets",
":actsconnectabilitysystemabilitytest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsExtensionConnectAbilityTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsextensionconnectabilitytest_js_assets",
":actsextensionconnectabilitytest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("actsServiceAbilityRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "actsServiceAbilityRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsExtensionModuleRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsExtensionModuleRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticAbilityStageContextTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstaticabilitystagecontexttest_js_assets",
":actsamsstaticabilitystagecontexttest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsStaticExtensionInfoRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsStaticExtensionInfoRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticExtensionInfoTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstaticextensiontnfotest_js_assets",
":actsamsstaticextensiontnfotest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsStaticARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsStaticARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsStaticBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsStaticBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
{
"description": "Configuration for hjunit demo Tests"
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticInfoMationQueryTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstaticinfomationquerytest_js_assets",
":actsamsstaticinfomationquerytest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticInformationMultipleTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstaticinformationmultipletest_js_assets",
":actsamsstaticinformationmultipletest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStaticInformationMultiTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstaticinformationmultitest_js_assets",
":actsamsstaticinformationmultitest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsStaticQueryTestTwoRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsStaticQueryTestTwoRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsSpecifyTestRelyHap") {
ohos_hap("ActsAmsSpecifyTestRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsspecifytestrelyhap_js_assets",
":actsamsspecifytestrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsSpecifyTestRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsSpecifyTestRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsspecifytestrelyhap_app_profile") {
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStartAbilityForResultTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstartabilityforresulttest_js_assets",
":actsamsstartabilityforresulttest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsStartAbilityTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsstartabilitytest_js_assets",
":actsamsstartabilitytest_resources",
......
......@@ -18,28 +18,11 @@ import appManager from '@ohos.application.AppManager'
describe('ActsAbilityRunningInfosTest', function () {
function checkRunningAbility(name, dataInfo) {
for (let i = 0, len = dataInfo.length; i < len; i++) {
if (dataInfo[i].ability.abilityName == name) {
expect(dataInfo[i].ability.deviceId).assertEqual("");
expect(dataInfo[i].ability.uri).assertEqual(undefined);
expect(dataInfo[i].ability.ability).assertEqual(undefined);
expect(dataInfo[i].uid).assertLarger(10000);
expect(dataInfo[i].pid).assertLarger(500);
expect(dataInfo[i].startTime).assertLarger(3000);
expect(dataInfo[i].abilityState).assertLarger(0);
return true;
}
}
return false;
}
function checkRunningProcess(name, dataInfo) {
for (let i = 0, len = dataInfo.length; i < len; i++) {
if (dataInfo[i].processName == name) {
expect(dataInfo[i].uid).assertLarger(2000);
expect(dataInfo[i].pid).assertLarger(500);
if (dataInfo[i].processName.indexOf(name) >= 0) {
expect(dataInfo[i].uid).assertLarger(0);
expect(dataInfo[i].pid).assertLarger(0);
return true;
}
}
......@@ -70,7 +53,7 @@ describe('ActsAbilityRunningInfosTest', function () {
console.log('ACTS_getProcessRunningInfos_0200====<begin');
appManager.getProcessRunningInfos((err, data) => {
console.info('====> ACTS_getProcessRunningInfos_0200 ====>' + JSON.stringify(data))
expect(checkRunningProcess('com.ohos.launcher', data)).assertTrue();
expect(checkRunningProcess('com.example.abilityrunninginfostest', data)).assertTrue();
done();
})
})
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("DefPermission") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "DefPermission"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
{
"description": "Configuration for hjunit demo Tests",
}
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("FinishWithResultEmptyTest") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "FinishWithResultEmptyTest"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("FinishWithResultPromiseParametersTest") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "FinishWithResultPromiseParametersTest"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("FinishWithResultTest") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "FinishWithResultTest"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("GetCallingBundlePromiseTest") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "GetCallingBundlePromiseTest"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("StartAbility") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "StartAbility"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("StartAbilityForResult") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "StartAbilityForResult"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("TerminateAbilityTest") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "TerminateAbilityTest"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsKillProcessWithAccountTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actskillprocesswithaccounttest_js_assets",
":actskillprocesswithaccounttest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsAmsNewWantApi7RelyHap") {
hap_profile = "./entry/src/main/config.json"
js_build_mode = "debug"
hap_name = "ActsAmsNewWantApi7RelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -13,15 +13,20 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsNewWantARelyHap") {
ohos_hap("ActsAmsNewWantARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsNewWantARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsnewwantarelyhap_js_assets",
":actsnewwantarelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsNewWantARelyHap"
}
ohos_app_scope("actsnewwantarelyhap_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.newwanthapc",
"shell-timeout": "600000"
},
"kits": [
{
"test-file-name": [
"ActsAmsNewWantARelyHap.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -13,15 +13,20 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsNewWantBRelyHap") {
ohos_hap("ActsAmsNewWantBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsNewWantBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsnewwantbrelyhap_js_assets",
":actsnewwantbrelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsNewWantBRelyHap"
}
ohos_app_scope("actsnewwantbrelyhap_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.newwanthapb",
"shell-timeout": "600000"
},
"kits": [
{
"test-file-name": [
"ActsAmsNewWantBRelyHap.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -13,15 +13,20 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsNewWantRelyHap") {
ohos_hap("ActsAmsNewWantRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsAmsNewWantRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actsnewwantrelyhap_js_assets",
":actsnewwantrelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsNewWantRelyHap"
}
ohos_app_scope("actsnewwantrelyhap_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsNewWantTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsnewwanttest_js_assets",
":actsnewwanttest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsSystemAppATest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actssystemappatest_js_assets",
":actssystemappatest_resources",
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsSystemAppOneRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsSystemAppOneRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapAARelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapAARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapaarelyhap_js_assets",
":actsamsprocessmultiinstancehapaarelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapAARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapAARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapaarelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapABRelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapABRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapabrelyhap_js_assets",
":actsamsprocessmultiinstancehapabrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapABRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapABRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapabrelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBARelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapbarelyhap_js_assets",
":actsamsprocessmultiinstancehapbarelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBARelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBARelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapbarelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBBRelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapbbrelyhap_js_assets",
":actsamsprocessmultiinstancehapbbrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBBRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBBRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapbbrelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBCRelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBCRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapbcrelyhap_js_assets",
":actsamsprocessmultiinstancehapbcrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBCRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBCRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapbcrelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBDRelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBDRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapbdrelyhap_js_assets",
":actsamsprocessmultiinstancehapbdrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBDRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBDRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapbdrelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBERelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBERelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapberelyhap_js_assets",
":actsamsprocessmultiinstancehapberelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBERelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBERelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapberelyhap_app_profile") {
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBFRelyHap") {
ohos_hap("ActsAmsProcessMultiinstanceHapBFRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstancehapbfrelyhap_js_assets",
":actsamsprocessmultiinstancehapbfrelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsProcessMultiinstanceHapBFRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsProcessMultiinstanceHapBFRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamsprocessmultiinstancehapbfrelyhap_app_profile") {
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsProcessMultiinstanceTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamsprocessmultiinstance_js_assets",
":actsamsprocessmultiinstance_resources",
......
......@@ -17,8 +17,8 @@ group("stage") {
testonly = true
if (is_standard_system) {
deps = [
"actslifecyclemultihap2test:ActsLifecycleMultiHap2Test",
"actslifecyclemultihap3test:ActsLifecycleMultiHap3Test",
"actslifecyclemultihap2:ActsLifecycleMultiHap2",
"actslifecyclemultihap3:ActsLifecycleMultiHap3",
"actslifecyclemultihaptest:ActsLifecycleMultiHapTest",
"actslifecyclesinglehaptest:ActsLifecycleSingleHapTest",
]
......
......@@ -13,28 +13,33 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsLifecycleMultiHap2Test") {
ohos_hap("ActsLifecycleMultiHap2") {
hap_name = "ActsLifecycleMultiHap2"
js_build_mode = "debug"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
hap_profile = "entry/src/main/module.json"
deps = [
":actslifecyclemultihap2test_js_assets",
":actslifecyclemultihap2test_resources",
":actslifecyclemultihap2_js_assets",
":actslifecyclemultihap2_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsLifecycleMultiHap2Test"
}
ohos_app_scope("actslifecyclemultihap2test_app_profile") {
ohos_app_scope("actslifecyclemultihap2_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("actslifecyclemultihap2test_js_assets") {
ohos_js_assets("actslifecyclemultihap2_js_assets") {
source_dir = "entry/src/main/ets"
}
ohos_resources("actslifecyclemultihap2test_resources") {
ohos_resources("actslifecyclemultihap2_resources") {
sources = [ "entry/src/main/resources" ]
deps = [ ":actslifecyclemultihap2test_app_profile" ]
deps = [ ":actslifecyclemultihap2_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.lifecycletest",
"shell-timeout": "600000"
},
"kits": [
{
"test-file-name": [
"ActsLifecycleMultiHap2Test.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -13,28 +13,33 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsLifecycleMultiHap3Test") {
ohos_hap("ActsLifecycleMultiHap3") {
hap_name = "ActsLifecycleMultiHap3"
js_build_mode = "debug"
hap_profile = "entry/src/main/module.json"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
deps = [
":actslifecyclemultihap3test_js_assets",
":actslifecyclemultihap3test_resources",
":actslifecyclemultihap3_js_assets",
":actslifecyclemultihap3_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsLifecycleMultiHap3Test"
}
ohos_app_scope("actslifecyclemultihap3test_app_profile") {
ohos_app_scope("actslifecyclemultihap3_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("actslifecyclemultihap3test_js_assets") {
ohos_js_assets("actslifecyclemultihap3_js_assets") {
source_dir = "entry/src/main/ets"
}
ohos_resources("actslifecyclemultihap3test_resources") {
ohos_resources("actslifecyclemultihap3_resources") {
sources = [ "entry/src/main/resources" ]
deps = [ ":actslifecyclemultihap3test_app_profile" ]
deps = [ ":actslifecyclemultihap3_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.lifecycletest",
"shell-timeout": "600000"
},
"kits": [
{
"test-file-name": [
"ActsLifecycleMultiHap3Test.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsLifecycleMultiHapTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actslifecyclemultihaptest_js_assets",
":actslifecyclemultihaptest_resources",
......
......@@ -10,8 +10,8 @@
{
"test-file-name": [
"ActsLifecycleMultiHapTest.hap",
"ActsLifecycleMultiHap2Test.hap",
"ActsLifecycleMultiHap3Test.hap"
"ActsLifecycleMultiHap2.hap",
"ActsLifecycleMultiHap3.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsLifecycleSingleHapTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actslifecyclesinglehaptest_js_assets",
":actslifecyclesinglehaptest_resources",
......
......@@ -14,6 +14,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsGetWantAllTestHap") {
hap_profile = "./src/main/config.json"
js_build_mode = "debug"
hap_name = "ActsGetWantAllTestHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
......
......@@ -15,6 +15,7 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsZidlClientTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamszidlclienttest_js_assets",
":actsamszidlclienttest_resources",
......
......@@ -13,8 +13,9 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAmsZidlServiceRelyHap") {
ohos_hap("ActsAmsZidlServiceRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":actsamszidlservicerelyhap_js_assets",
":actsamszidlservicerelyhap_resources",
......@@ -22,6 +23,10 @@ ohos_js_hap_suite("ActsAmsZidlServiceRelyHap") {
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsZidlServiceRelyHap"
subsystem_name = XTS_SUITENAME
final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
testonly = true
}
ohos_app_scope("actsamszidlservicerelyhap_app_profile") {
......
{
"description": "Configuration for hjunit demo Tests"
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册