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