提交 6d07e4df 编写于 作者: M Mupceet

modify test app bundleName

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 178aa719
{ {
"app": { "app": {
"bundleName": "com.example.myapplication", "bundleName": "com.example.accessibilityxts",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "600000", "test-timeout": "600000",
"bundle-name": "com.example.myapplication", "bundle-name": "com.example.accessibilityxts",
"module-name": "phone", "module-name": "phone",
"shell-timeout": "600000", "shell-timeout": "600000",
"testcase-timeout": 70000 "testcase-timeout": 70000
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"teardown-command":[ "teardown-command":[
"bm uninstall -n com.example.myapplication", "bm uninstall -n com.example.accessibilityxts",
"bm uninstall -n com.example.acetest" "bm uninstall -n com.example.acetest"
] ]
} }
......
...@@ -643,7 +643,7 @@ export class ElementTest { ...@@ -643,7 +643,7 @@ export class ElementTest {
console.info('ElementTest executeAttributeValuePromiseTriggerAction ' + caseName + ' start'); console.info('ElementTest executeAttributeValuePromiseTriggerAction ' + caseName + ' start');
let event = new accessibility.EventInfo({}); let event = new accessibility.EventInfo({});
event.type = 'click'; event.type = 'click';
event.bundleName = 'com.example.myapplication'; event.bundleName = 'com.example.accessibilityxts';
event.triggerAction = 'click'; event.triggerAction = 'click';
await accessibility.sendEvent(event); await accessibility.sendEvent(event);
console.info('ElementTest executeAttributeValuePromiseTriggerAction ' + caseName + ' sendEvent finish'); console.info('ElementTest executeAttributeValuePromiseTriggerAction ' + caseName + ' sendEvent finish');
...@@ -914,7 +914,7 @@ export class ElementTest { ...@@ -914,7 +914,7 @@ export class ElementTest {
console.info('ElementTest executeAttributeValueCallbackTriggerAction ' + caseName + ' start'); console.info('ElementTest executeAttributeValueCallbackTriggerAction ' + caseName + ' start');
let event = new accessibility.EventInfo({}); let event = new accessibility.EventInfo({});
event.type = 'click'; event.type = 'click';
event.bundleName = 'com.example.myapplication'; event.bundleName = 'com.example.accessibilityxts';
event.triggerAction = 'click'; event.triggerAction = 'click';
await accessibility.sendEvent(event); await accessibility.sendEvent(event);
console.info('ElementTest executeAttributeValueCallbackTriggerAction ' + caseName + ' sendEvent finish'); console.info('ElementTest executeAttributeValueCallbackTriggerAction ' + caseName + ' sendEvent finish');
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.myapplication.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.example.accessibilityxts.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"abilities": [{ "abilities": [{
"name": "com.example.myapplication.MainAbility", "name": "com.example.accessibilityxts.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.myapplication", "bundleName": "com.example.accessibilityxts",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"bundle-name": "com.example.myapplication", "bundle-name": "com.example.accessibilityxts",
"module-name": "phone", "module-name": "phone",
"shell-timeout": "600000", "shell-timeout": "600000",
"testcase-timeout": 70000 "testcase-timeout": 70000
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"teardown-command":[ "teardown-command":[
"bm uninstall -n com.example.myapplication", "bm uninstall -n com.example.accessibilityxts",
"bm uninstall -n com.example.acetest" "bm uninstall -n com.example.acetest"
] ]
} }
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.myapplication.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.example.accessibilityxts.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -17,7 +17,7 @@ import accessibility from '@ohos.accessibility' ...@@ -17,7 +17,7 @@ import accessibility from '@ohos.accessibility'
import commonEvent from '@ohos.commonEvent' import commonEvent from '@ohos.commonEvent'
export default function abilityTest() { export default function abilityTest() {
let targetBundleName = 'com.example.myapplication'; let targetBundleName = 'com.example.accessibilityxts';
let subScriber = undefined; let subScriber = undefined;
let isConnected: boolean = false; let isConnected: boolean = false;
let events: Array<any> = []; let events: Array<any> = [];
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"abilities": [{ "abilities": [{
"name": "com.example.myapplication.MainAbility", "name": "com.example.accessibilityxts.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.myapplication", "bundleName": "com.example.accessibilityxts",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"bundle-name": "com.example.myapplication", "bundle-name": "com.example.accessibilityxts",
"module-name": "phone", "module-name": "phone",
"shell-timeout": "600000", "shell-timeout": "600000",
"testcase-timeout": 70000 "testcase-timeout": 70000
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"teardown-command":[ "teardown-command":[
"bm uninstall -n com.example.myapplication", "bm uninstall -n com.example.accessibilityxts",
"bm uninstall -n com.example.acetest" "bm uninstall -n com.example.acetest"
] ]
} }
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.myapplication.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.example.accessibilityxts.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"abilities": [{ "abilities": [{
"name": "com.example.myapplication.MainAbility", "name": "com.example.accessibilityxts.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.myapplication", "bundleName": "com.example.accessibilityxts",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "360000", "test-timeout": "360000",
"bundle-name": "com.example.myapplication", "bundle-name": "com.example.accessibilityxts",
"module-name": "phone", "module-name": "phone",
"shell-timeout": "600000", "shell-timeout": "600000",
"testcase-timeout": 70000 "testcase-timeout": 70000
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"teardown-command":[ "teardown-command":[
"bm uninstall -n com.example.myapplication", "bm uninstall -n com.example.accessibilityxts",
"bm uninstall -n com.example.acetest" "bm uninstall -n com.example.acetest"
] ]
} }
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.myapplication.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.example.accessibilityxts.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"abilities": [{ "abilities": [{
"name": "com.example.myapplication.MainAbility", "name": "com.example.accessibilityxts.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.myapplication", "bundleName": "com.example.accessibilityxts",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"bundle-name": "com.example.myapplication", "bundle-name": "com.example.accessibilityxts",
"module-name": "phone", "module-name": "phone",
"shell-timeout": "180000", "shell-timeout": "180000",
"testcase-timeout": 70000 "testcase-timeout": 70000
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"type": "ShellKit", "type": "ShellKit",
"teardown-command":[ "teardown-command":[
"bm uninstall -n com.example.myapplication", "bm uninstall -n com.example.accessibilityxts",
"bm uninstall -n com.example.acetest" "bm uninstall -n com.example.acetest"
] ]
} }
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.myapplication.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.example.accessibilityxts.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"abilities": [{ "abilities": [{
"name": "com.example.myapplication.MainAbility", "name": "com.example.accessibilityxts.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
...@@ -25,7 +25,7 @@ struct Index { ...@@ -25,7 +25,7 @@ struct Index {
onPageShow() { onPageShow() {
console.info(`TargetApp onPageShow start`); console.info(`TargetApp onPageShow start`);
config.enableAbility( config.enableAbility(
'com.example.myapplication/AccessibilityExtAbility', 'com.example.accessibilityxts/AccessibilityExtAbility',
["retrieve", "touchGuide", "gesture"] ["retrieve", "touchGuide", "gesture"]
).then(() => { ).then(() => {
console.info('TargetApp enableAbility finish'); console.info('TargetApp enableAbility finish');
...@@ -59,7 +59,7 @@ struct Index { ...@@ -59,7 +59,7 @@ struct Index {
return; return;
} }
config.disableAbility("com.example.myapplication/AccessibilityExtAbility").then(() => { config.disableAbility("com.example.accessibilityxts/AccessibilityExtAbility").then(() => {
console.info(`TargetApp disableAccAbility finish`); console.info(`TargetApp disableAccAbility finish`);
this.isEnable = false; this.isEnable = false;
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册