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

modify test app bundleName

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