提交 9d6b693e 编写于 作者: D dingyao

修改免安装xts问题

Signed-off-by: Ndingyao <dingyao5@huawei.com>
上级 f74d40a7
......@@ -20,6 +20,7 @@
"type": "ShellKit",
"run-command": [
"remount",
"param set persist.sys.suspend_manager_enabled 0",
"mkdir /data/test/"
]
},
......
......@@ -44,7 +44,7 @@
"formsEnabled": false,
"label": "$string:MainAbility_label",
"type": "page",
"launchType": "standard"
"launchType": "singleton"
},
{
"orientation": "unspecified",
......
......@@ -12,10 +12,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '@ohos/hypium'
import testsuite from "./test/List.test";
export default {
onCreate() {
console.info('Application onCreate')
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
},
onDestroy() {
console.info('Application onDestroy')
......
......@@ -38,12 +38,6 @@ async function routePage() {
struct Index {
aboutToAppear() {
console.info("aboutToAppear start!!!!")
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
}
build() {
......
......@@ -74,6 +74,18 @@ export default function StartAbilityForResult() {
console.info("executeShellCommand4: err : " + JSON.stringify(err), " data : " + JSON.stringify(d));
})
await Utils.sleep(500);
var str = {
'want': {
"bundleName": "com.open.harmony.startAbilityForResult",
"abilityName": "com.open.harmony.startAbilityForResult.MainAbility",
}
}
await featureAbility.startAbility(str).then((data) => {
console.info(' StartAbilityPromise successful. Data: ' + JSON.stringify(data))
}).catch((error) => {
console.info(' StartAbilityPromise failed. Cause: ' + JSON.stringify(error));
})
await Utils.sleep(500);
}
if ("FreeInstall_FA_StartAbilityForResult_3200" === TAG) {
......
......@@ -40,7 +40,6 @@ export default {
},
}
);
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000);
},
......
......@@ -33,7 +33,6 @@ export default {
},
}
);
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000);
},
......
......@@ -33,7 +33,6 @@ export default {
},
}
);
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册