diff --git a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets index ff6bfb313337b70aab577312fbbccf453901a6e9..67b23248151ad043a5735f3c8c2a13dc55ccf17f 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardDisplayTest.ets @@ -25,7 +25,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示点击输入框等待键盘加载'+'\n'+'预期结果:输入键盘弹出时延小于1000ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -86,10 +86,11 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time); + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 1000 ) { this.Vue = true; - }else if ( isNaN(this.time )){ + } else if ( isNaN(this.time) ){ this.time = -1000; } globalThis.HideFloatingWindow(); diff --git a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets index 872367f784b4009d7b0255e6fe71177f8b32f968..9976e1301c2c3b15cb5adbbdba6a7c29e9228398 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/KeyboardInputTest.ets @@ -24,7 +24,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示点击键盘按键'+'\n'+'预期结果:键盘输入响应时延小于150ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -85,9 +85,12 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 150 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); }) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets b/validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets index 9efd7ab9725dbc8f1f6423d54f488f11a6caeb8d..17b3b7ac03aa1c36e7f102d284689041aa9b18e8 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/ScrollPhotosList.ets @@ -24,7 +24,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示滑动图库缩略表'+'\n'+'预期结果:滑动响应时延小于150ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -85,9 +85,12 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 150 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); }) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets b/validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets index da8107582357e16f2fb6992fb5f5fdd20efbc1a8..bce147d073949b55bc566b0f54543553bb6e894b 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/StartBackgroundTask.ets @@ -27,7 +27,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示打开后台任务'+'\n'+'预期结果:打开后台任务时延小于600ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -85,9 +85,12 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 600 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); }) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets b/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets index 133b0adf382f8230ac578764d478a47304561e90..2d2c78295a571e55d04526c9d6a02e84047f801f 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/StartNotification.ets @@ -27,7 +27,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示下拉通知栏'+'\n'+'预期结果:下拉通知栏时延小于150ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -85,9 +85,12 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 150 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); }) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets b/validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets index 9f7ad174b549442771adb7541953ffcc0a05ab37..cd1a056602c82fdfa661856b1dfe5c794d0b8453 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/StartTaskManager.ets @@ -27,7 +27,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示打开任务管理器'+'\n'+'预期结果:打开任务管理器时延小于1000ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -85,9 +85,12 @@ struct CustomContainerUser { let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 1000 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); }) diff --git a/validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets b/validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets index 7ee149634bf0bacd45832eb3727af3432d34c6da..5f72225d5a31417b14364ce3d18ded52cf94d22f 100644 --- a/validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets +++ b/validator/acts_validator/src/main/ets/pages/Experience/ViewPhotoTest.ets @@ -24,7 +24,7 @@ struct CustomContainerUser { @State StepTips: string = '操作步骤:根据操作提示点击图片等待加载'+'\n'+'预期结果:图片响应时延小于150ms测试通过'; @State Vue: boolean = false; @State StartEnable: boolean = true; - @State time: string = '0'; + @State time: number = 0; scroller: Scroller = new Scroller(); async aboutToAppear(){ await FirstDialog.ChooseDialog(this.StepTips,this.name); @@ -81,13 +81,16 @@ struct CustomContainerUser { .enabled(!this.StartEnable) .opacity(!this.StartEnable? 1 : 0.4) .onClick(() => { - this.StartEnable = !this.StartEnable + this.StartEnable = !this.StartEnable; let report = globalThis.resultNum; let head = report.indexOf(":"); this.time = report.substring(head+1); - let time = parseFloat(this.time) + // let time = parseFloat(this.time) + let time = this.time; if( 0 < time && time < 150 ) { this.Vue = true; + } else if ( isNaN(this.time) ){ + this.time = -1000; } globalThis.HideFloatingWindow(); })