未验证 提交 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 =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册