未验证 提交 3396fe61 编写于 作者: O openharmony_ci 提交者: Gitee

!5189 提交免安装xts问题修改

Merge pull request !5189 from dy/master0825
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
"remount", "remount",
"param set persist.sys.suspend_manager_enabled 0",
"mkdir /data/test/" "mkdir /data/test/"
] ]
}, },
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"formsEnabled": false, "formsEnabled": false,
"label": "$string:MainAbility_label", "label": "$string:MainAbility_label",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "singleton"
}, },
{ {
"orientation": "unspecified", "orientation": "unspecified",
......
...@@ -12,10 +12,19 @@ ...@@ -12,10 +12,19 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '@ohos/hypium'
import testsuite from "./test/List.test";
export default { export default {
onCreate() { onCreate() {
console.info('Application 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() { onDestroy() {
console.info('Application onDestroy') console.info('Application onDestroy')
......
...@@ -38,12 +38,6 @@ async function routePage() { ...@@ -38,12 +38,6 @@ async function routePage() {
struct Index { struct Index {
aboutToAppear() { aboutToAppear() {
console.info("aboutToAppear start!!!!") 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() { build() {
......
...@@ -74,6 +74,18 @@ export default function StartAbilityForResult() { ...@@ -74,6 +74,18 @@ export default function StartAbilityForResult() {
console.info("executeShellCommand4: err : " + JSON.stringify(err), " data : " + JSON.stringify(d)); console.info("executeShellCommand4: err : " + JSON.stringify(err), " data : " + JSON.stringify(d));
}) })
await Utils.sleep(500); 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) { if ("FreeInstall_FA_StartAbilityForResult_3200" === TAG) {
......
...@@ -40,7 +40,6 @@ export default { ...@@ -40,7 +40,6 @@ export default {
}, },
} }
); );
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END'); console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000); }, 1000);
}, },
......
...@@ -33,7 +33,6 @@ export default { ...@@ -33,7 +33,6 @@ export default {
}, },
} }
); );
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END'); console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000); }, 1000);
}, },
......
...@@ -33,7 +33,6 @@ export default { ...@@ -33,7 +33,6 @@ export default {
}, },
} }
); );
featureAbility.terminateSelf();
console.info('fAStartAbilityForResultPromise terminateSelfWithResult END'); console.info('fAStartAbilityForResultPromise terminateSelfWithResult END');
}, 1000); }, 1000);
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册