提交 6e5412d4 编写于 作者: C chengxingzhen

XTS测试套onShow改成onActive

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 93686748
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamscallbackfifthscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamscallbackfirstscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -26,7 +26,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamscallbackfourthscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamscallbacksecondscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamscallbackthirdscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.actsamstestfifthscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.actsamstestfirstscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.actsamstestsecondscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.actsamstestthirdscene",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -5,7 +5,7 @@
"test-timeout": "120000",
"package": "com.ohos.launcher",
"abilityName": "com.ohos.launcherSed11.MainAbility",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -14,6 +14,9 @@
*/
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true
export default {
data: {
......@@ -22,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -5,7 +5,7 @@
"test-timeout": "120000",
"package": "com.ohos.launcher",
"abilityName": "com.ohos.launcherSed111.MainAbility",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -14,6 +14,9 @@
*/
import file from '@system.file'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
var once = true
export default {
data: {
......@@ -22,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -4,7 +4,7 @@
"type" : "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.actsabilitydistributetest",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "18000",
"package": "com.amsst.amsMissionSnapshotTest",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -23,7 +23,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('====onShow finish====<')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.amsst.amsdatauriutils",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -23,7 +23,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('====onShow finish====<')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -25,7 +25,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
......
......@@ -23,7 +23,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('====onShow finish====<')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -23,7 +23,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('====onShow finish====<')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.amsZipfileUnzipfileST",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default{
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "500000",
"package": "com.example.actscontext",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -28,7 +28,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.example.actsfeatureabilitytest",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -27,7 +27,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (!once) {
return;
}
......@@ -40,6 +40,7 @@ export default {
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
this.timeout = 10000;
configService.setConfig(this)
require('../../../test/List.test')
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "420000",
"package": "com.example.formfuzztest",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -29,7 +29,7 @@ export default {
onInit() {
this.title = "FMS Fuzz Test";
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"test-timeout": "300000",
"package": "com.example.formsoneandone",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -29,7 +29,7 @@ export default {
onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用";
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -4,7 +4,7 @@
"type": "JSUnitTest",
"test-timeout": "120000",
"package": "com.example.formsoneandtwo",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -29,7 +29,7 @@ export default {
onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用";
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"test-timeout": "300000",
"package": "com.example.formszeroandone",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -29,7 +29,7 @@ export default {
onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用";
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"test-timeout": "300000",
"package": "com.example.formszero",
"shell-timeout": "60000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -29,7 +29,7 @@ export default {
onInit() {
this.title = "卡片配置信息查询 \n有权限、是系统应用";
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -2,9 +2,9 @@
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "30000",
"test-timeout": "300000",
"package": "com.example.getactiveprocessinfo",
"shell-timeout": "30000"
"shell-timeout": "600000"
},
"kits": [
{
......
......@@ -25,7 +25,7 @@ export default{
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
console.info('onShow finish')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
......
......@@ -28,7 +28,7 @@ export default {
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
onActive() {
if (once) {
once = false
console.info('onShow finish')
......
......@@ -18,19 +18,7 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from
describe('ActsGetWantTest', function () {
beforeAll(async (done) => {
await featureAbility.startAbility(
{
want:
{
deviceId: "",
bundleName: "com.ohos.launcher",
abilityName: "com.ohos.launcher.MainAbility",
action: "action1",
parameters:
{},
},
},
);
console.info('ActsGetWantTest begin')
done();
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册