提交 a424cb82 编写于 作者: Z zhangfuzhi

add smsmmsbatchinsert

Signed-off-by: Nzhangfuzhi <zhangfuzhi1@huawei.com>
上级 e46ffc6b
<div class="container"> <div class="container">
<text class="title"> <text class="title">
SIM TEST SMS_MMS TEST
</text> </text>
</div> </div>
...@@ -18,21 +18,21 @@ import { Hypium } from '@ohos/hypium'; ...@@ -18,21 +18,21 @@ import { Hypium } from '@ohos/hypium';
import testsuite from '../../../test/List.test'; import testsuite from '../../../test/List.test';
const injectRef = Object.getPrototypeOf(global) || global const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') injectRef.regeneratorRuntime = require('@babel/runtime/regenerator');
export default { export default {
data: { data: {
title: '' title: ''
}, },
onInit () { onInit () {
this.title = this.$t('strings.world') this.title = this.$t('strings.world');
}, },
onShow () { onShow () {
console.info('onShow finish!'); console.info('onShow finish!');
var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments();
console.info('start run testcase!!!'); console.info('start run testcase!!!');
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite);
}, },
onReady () { onReady () {
}, },
......
...@@ -20,14 +20,14 @@ function translateParamsToString(parameters) { ...@@ -20,14 +20,14 @@ function translateParamsToString(parameters) {
'-s class', '-s notClass', '-s suite', '-s itName', '-s class', '-s notClass', '-s suite', '-s itName',
'-s level', '-s testType', '-s size', '-s timeout', '-s level', '-s testType', '-s size', '-s timeout',
'-s package', '-s dryRun' '-s package', '-s dryRun'
]) ]);
let targetParams = ''; let targetParams = '';
for (const key in parameters) { for (const key in parameters) {
if (keySet.has(key)) { if (keySet.has(key)) {
targetParams += ' ' + key + ' ' + parameters[key] targetParams += ' ' + key + ' ' + parameters[key];
} }
} }
return targetParams.trim() return targetParams.trim();
} }
export default { export default {
...@@ -36,18 +36,18 @@ function translateParamsToString(parameters) { ...@@ -36,18 +36,18 @@ function translateParamsToString(parameters) {
}, },
onRun() { onRun() {
console.log('OpenHarmonyTestRunner onRun run'); console.log('OpenHarmonyTestRunner onRun run');
var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments();
var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator();
var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.MainAbility' var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility';
var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName;
cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters);
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"];
console.info('debug value : '+debug); console.info('debug value : '+debug);
if (debug == 'true') if (debug == 'true')
{ {
cmd += ' -D' cmd += ' -D';
} }
console.info('cmd : '+cmd); console.info('cmd : '+cmd);
abilityDelegator.executeShellCommand(cmd, (err, data) => { abilityDelegator.executeShellCommand(cmd, (err, data) => {
...@@ -56,4 +56,4 @@ function translateParamsToString(parameters) { ...@@ -56,4 +56,4 @@ function translateParamsToString(parameters) {
console.info('executeShellCommand : data : ' + data.exitCode); console.info('executeShellCommand : data : ' + data.exitCode);
}) })
} }
}; }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册