提交 7a3b5a32 编写于 作者: T tianwenzhe

report change false and true to 3.2

Signed-off-by: Ntian-wenzhe411 <tianwenzhe2@huawei.com>
上级 4883de48
...@@ -116,7 +116,7 @@ struct IndexPage { ...@@ -116,7 +116,7 @@ struct IndexPage {
let number = WriteTitle.length + 11; let number = WriteTitle.length + 11;
let Index = ColorBack.indexOf(WriteTitle); let Index = ColorBack.indexOf(WriteTitle);
if (this.result === 'Pass'){ if (this.result === 'true'){
this.ColorObject[this.current] = '#ff008000'; this.ColorObject[this.current] = '#ff008000';
let Log = (titles+';'+'#ff008000'+';'); let Log = (titles+';'+'#ff008000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -130,7 +130,7 @@ struct IndexPage { ...@@ -130,7 +130,7 @@ struct IndexPage {
fileio.writeSync(Fd,Report); fileio.writeSync(Fd,Report);
filewrite(name1,results,titles); filewrite(name1,results,titles);
} }
else if (this.result === 'Fail'){ else if (this.result === 'false'){
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
let Log = (titles+';'+'#ffff0000'+';'); let Log = (titles+';'+'#ffff0000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -274,20 +274,20 @@ struct IndexPage { ...@@ -274,20 +274,20 @@ struct IndexPage {
title[i] = str1[i*2]; title[i] = str1[i*2];
result[i] = str1[i*2+1]; result[i] = str1[i*2+1];
} }
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while (FailIndex != -1) { while (FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while (PassIndex != -1) { while (PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
...@@ -342,7 +342,8 @@ function filewrite(name1,results,titles){ ...@@ -342,7 +342,8 @@ function filewrite(name1,results,titles){
console.info("RRRRRRRRRRd"+RD); console.info("RRRRRRRRRRd"+RD);
let report = String.fromCharCode.apply(null,new Uint8Array(buf)); let report = String.fromCharCode.apply(null,new Uint8Array(buf));
let WriteTitle = (titles).toString(); let WriteTitle = (titles).toString();
let number = WriteTitle.length + 6; let WriteResult = (results).toString();
let number = WriteTitle.length + WriteResult.length + 2;
let Index = report.indexOf(WriteTitle); let Index = report.indexOf(WriteTitle);
let Log = (titles+";"+results+";").toString(); let Log = (titles+";"+results+";").toString();
if (Index == -1){ if (Index == -1){
......
...@@ -50,7 +50,7 @@ struct CustomContainer1 { ...@@ -50,7 +50,7 @@ struct CustomContainer1 {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -68,7 +68,7 @@ struct CustomContainer1 { ...@@ -68,7 +68,7 @@ struct CustomContainer1 {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -99,7 +99,7 @@ struct IndexPage { ...@@ -99,7 +99,7 @@ struct IndexPage {
let number = WriteTitle.length + 11; let number = WriteTitle.length + 11;
let Index = ColorBack.indexOf(WriteTitle); let Index = ColorBack.indexOf(WriteTitle);
if (this.result === 'Pass'){ if (this.result === 'true'){
this.ColorObject[this.current] = '#ff008000'; this.ColorObject[this.current] = '#ff008000';
let Log = (titles+';'+'#ff008000'+';'); let Log = (titles+';'+'#ff008000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -113,7 +113,7 @@ struct IndexPage { ...@@ -113,7 +113,7 @@ struct IndexPage {
fileio.writeSync(Fd,Report); fileio.writeSync(Fd,Report);
filewrite(name1,results,titles) filewrite(name1,results,titles)
} }
else if (this.result === 'Fail'){ else if (this.result === 'false'){
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
let Log = (titles+';'+'#ffff0000'+';'); let Log = (titles+';'+'#ffff0000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -257,20 +257,20 @@ struct IndexPage { ...@@ -257,20 +257,20 @@ struct IndexPage {
title[i] = str1[i*2]; title[i] = str1[i*2];
result[i] = str1[i*2+1]; result[i] = str1[i*2+1];
} }
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while (FailIndex != -1) { while (FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while (PassIndex != -1) { while (PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
...@@ -325,7 +325,8 @@ function filewrite(name1,results,titles){ ...@@ -325,7 +325,8 @@ function filewrite(name1,results,titles){
console.info("RRRRRRRRRRd"+RD); console.info("RRRRRRRRRRd"+RD);
let report = String.fromCharCode.apply(null,new Uint8Array(buf)); let report = String.fromCharCode.apply(null,new Uint8Array(buf));
let WriteTitle = (titles).toString(); let WriteTitle = (titles).toString();
let number = WriteTitle.length + 6; let WriteResult = (results).toString();
let number = WriteTitle.length + WriteResult.length + 2;
let Index = report.indexOf(WriteTitle); let Index = report.indexOf(WriteTitle);
let Log = (titles+";"+results+";").toString(); let Log = (titles+";"+results+";").toString();
if (Index == -1){ if (Index == -1){
......
...@@ -100,7 +100,7 @@ struct IndexPage { ...@@ -100,7 +100,7 @@ struct IndexPage {
let number = WriteTitle.length + 11; let number = WriteTitle.length + 11;
let Index = ColorBack.indexOf(WriteTitle); let Index = ColorBack.indexOf(WriteTitle);
if (this.result === 'Pass'){ if (this.result === 'true'){
this.ColorObject[this.current] = '#ff008000'; this.ColorObject[this.current] = '#ff008000';
let Log = (titles+';'+'#ff008000'+';'); let Log = (titles+';'+'#ff008000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -114,7 +114,7 @@ struct IndexPage { ...@@ -114,7 +114,7 @@ struct IndexPage {
fileio.writeSync(Fd,Report); fileio.writeSync(Fd,Report);
filewrite(name1,results,titles) filewrite(name1,results,titles)
} }
else if (this.result === 'Fail'){ else if (this.result === 'false'){
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
let Log = (titles+';'+'#ffff0000'+';'); let Log = (titles+';'+'#ffff0000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -258,20 +258,20 @@ struct IndexPage { ...@@ -258,20 +258,20 @@ struct IndexPage {
title[i] = str1[i*2]; title[i] = str1[i*2];
result[i] = str1[i*2+1]; result[i] = str1[i*2+1];
} }
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while (FailIndex != -1) { while (FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while (PassIndex != -1) { while (PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
...@@ -326,7 +326,8 @@ function filewrite(name1,results,titles){ ...@@ -326,7 +326,8 @@ function filewrite(name1,results,titles){
console.info("RRRRRRRRRRd"+RD); console.info("RRRRRRRRRRd"+RD);
let report = String.fromCharCode.apply(null,new Uint8Array(buf)); let report = String.fromCharCode.apply(null,new Uint8Array(buf));
let WriteTitle = (titles).toString(); let WriteTitle = (titles).toString();
let number = WriteTitle.length + 6; let WriteResult = (results).toString();
let number = WriteTitle.length + WriteResult.length + 2;
let Index = report.indexOf(WriteTitle); let Index = report.indexOf(WriteTitle);
let Log = (titles+";"+results+";").toString(); let Log = (titles+";"+results+";").toString();
if (Index == -1){ if (Index == -1){
......
...@@ -112,7 +112,7 @@ struct IndexPage { ...@@ -112,7 +112,7 @@ struct IndexPage {
let number = WriteTitle.length + 11; let number = WriteTitle.length + 11;
let Index = ColorBack.indexOf(WriteTitle); let Index = ColorBack.indexOf(WriteTitle);
if (this.result === 'Pass'){ if (this.result === 'true'){
this.ColorObject[this.current] = '#ff008000'; this.ColorObject[this.current] = '#ff008000';
let Log = (titles+';'+'#ff008000'+';'); let Log = (titles+';'+'#ff008000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -126,7 +126,7 @@ struct IndexPage { ...@@ -126,7 +126,7 @@ struct IndexPage {
fileio.writeSync(Fd,Report); fileio.writeSync(Fd,Report);
filewrite(name1,results,titles) filewrite(name1,results,titles)
} }
else if (this.result === 'Fail'){ else if (this.result === 'false'){
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
let Log = (titles+';'+'#ffff0000'+';'); let Log = (titles+';'+'#ffff0000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -270,20 +270,20 @@ struct IndexPage { ...@@ -270,20 +270,20 @@ struct IndexPage {
title[i] = str1[i*2]; title[i] = str1[i*2];
result[i] = str1[i*2+1]; result[i] = str1[i*2+1];
} }
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while (FailIndex != -1) { while (FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while (PassIndex != -1) { while (PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
...@@ -338,7 +338,8 @@ function filewrite(name1,results,titles){ ...@@ -338,7 +338,8 @@ function filewrite(name1,results,titles){
console.info("RRRRRRRRRRd"+RD); console.info("RRRRRRRRRRd"+RD);
let report = String.fromCharCode.apply(null,new Uint8Array(buf)); let report = String.fromCharCode.apply(null,new Uint8Array(buf));
let WriteTitle = (titles).toString(); let WriteTitle = (titles).toString();
let number = WriteTitle.length + 6; let WriteResult = (results).toString();
let number = WriteTitle.length + WriteResult.length + 2;
let Index = report.indexOf(WriteTitle); let Index = report.indexOf(WriteTitle);
let Log = (titles+";"+results+";").toString(); let Log = (titles+";"+results+";").toString();
if (Index == -1){ if (Index == -1){
......
...@@ -96,7 +96,7 @@ struct IndexPage { ...@@ -96,7 +96,7 @@ struct IndexPage {
let number = WriteTitle.length + 11; let number = WriteTitle.length + 11;
let Index = ColorBack.indexOf(WriteTitle); let Index = ColorBack.indexOf(WriteTitle);
if (this.result === 'Pass'){ if (this.result === 'true'){
this.ColorObject[this.current] = '#ff008000'; this.ColorObject[this.current] = '#ff008000';
let Log = (titles+';'+'#ff008000'+';'); let Log = (titles+';'+'#ff008000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -110,7 +110,7 @@ struct IndexPage { ...@@ -110,7 +110,7 @@ struct IndexPage {
fileio.writeSync(Fd,Report); fileio.writeSync(Fd,Report);
filewrite(name1,results,titles) filewrite(name1,results,titles)
} }
else if (this.result === 'Fail'){ else if (this.result === 'false'){
this.ColorObject[this.current] = '#ffff0000'; this.ColorObject[this.current] = '#ffff0000';
let Log = (titles+';'+'#ffff0000'+';'); let Log = (titles+';'+'#ffff0000'+';');
let key = ColorBack.substring(Index,Index+number); let key = ColorBack.substring(Index,Index+number);
...@@ -254,20 +254,20 @@ struct IndexPage { ...@@ -254,20 +254,20 @@ struct IndexPage {
title[i] = str1[i*2]; title[i] = str1[i*2];
result[i] = str1[i*2+1]; result[i] = str1[i*2+1];
} }
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while (FailIndex != -1) { while (FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while (PassIndex != -1) { while (PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
...@@ -322,7 +322,8 @@ function filewrite(name1,results,titles){ ...@@ -322,7 +322,8 @@ function filewrite(name1,results,titles){
console.info("RRRRRRRRRRd"+RD); console.info("RRRRRRRRRRd"+RD);
let report = String.fromCharCode.apply(null,new Uint8Array(buf)); let report = String.fromCharCode.apply(null,new Uint8Array(buf));
let WriteTitle = (titles).toString(); let WriteTitle = (titles).toString();
let number = WriteTitle.length + 6; let WriteResult = (results).toString();
let number = WriteTitle.length + WriteResult.length + 2;
let Index = report.indexOf(WriteTitle); let Index = report.indexOf(WriteTitle);
let Log = (titles+";"+results+";").toString(); let Log = (titles+";"+results+";").toString();
if (Index == -1){ if (Index == -1){
......
...@@ -47,7 +47,7 @@ export struct CustomContainer { ...@@ -47,7 +47,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -65,7 +65,7 @@ export struct CustomContainer { ...@@ -65,7 +65,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -55,7 +55,7 @@ export struct CustomContainer { ...@@ -55,7 +55,7 @@ export struct CustomContainer {
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: this.Url, url: this.Url,
params: { result: 'Pass', title: this.name, params: { result: 'true', title: this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -74,7 +74,7 @@ export struct CustomContainer { ...@@ -74,7 +74,7 @@ export struct CustomContainer {
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: this.Url, url: this.Url,
params: { result: 'Fail', title: this.name, params: { result: 'false', title: this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -55,7 +55,7 @@ export struct CustomContainer { ...@@ -55,7 +55,7 @@ export struct CustomContainer {
if (this.clickFrequency === this.testingFrequency){ if (this.clickFrequency === this.testingFrequency){
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
} }
...@@ -74,7 +74,7 @@ export struct CustomContainer { ...@@ -74,7 +74,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -50,7 +50,7 @@ export struct CustomContainer { ...@@ -50,7 +50,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -68,7 +68,7 @@ export struct CustomContainer { ...@@ -68,7 +68,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -52,7 +52,7 @@ export struct CustomContainer { ...@@ -52,7 +52,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -70,7 +70,7 @@ export struct CustomContainer { ...@@ -70,7 +70,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -49,7 +49,7 @@ export struct CustomContainer { ...@@ -49,7 +49,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -67,7 +67,7 @@ export struct CustomContainer { ...@@ -67,7 +67,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -48,7 +48,7 @@ export struct CustomContainer { ...@@ -48,7 +48,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -66,7 +66,7 @@ export struct CustomContainer { ...@@ -66,7 +66,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -50,7 +50,7 @@ export struct CustomContainer { ...@@ -50,7 +50,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -68,7 +68,7 @@ export struct CustomContainer { ...@@ -68,7 +68,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -50,7 +50,7 @@ export struct CustomContainer { ...@@ -50,7 +50,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -68,7 +68,7 @@ export struct CustomContainer { ...@@ -68,7 +68,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -55,7 +55,7 @@ export struct CustomContainer { ...@@ -55,7 +55,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -73,7 +73,7 @@ export struct CustomContainer { ...@@ -73,7 +73,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -50,7 +50,7 @@ export struct CustomContainer { ...@@ -50,7 +50,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Pass', title : this.name, params: {result : 'true', title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
...@@ -68,7 +68,7 @@ export struct CustomContainer { ...@@ -68,7 +68,7 @@ export struct CustomContainer {
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
params: {result : 'Fail',title : this.name, params: {result : 'false',title : this.name,
} }
}) })
this.getScreen(isFullScreen); this.getScreen(isFullScreen);
......
...@@ -306,120 +306,120 @@ struct IndexPage { ...@@ -306,120 +306,120 @@ struct IndexPage {
} }
let report = ArkUIReport + AudioReport + CameraReport + PlayerReport + ExperienceReport; let report = ArkUIReport + AudioReport + CameraReport + PlayerReport + ExperienceReport;
let FailIndex = report.indexOf('Fail'); let FailIndex = report.indexOf('false');
let FailNum = 0; let FailNum = 0;
while(FailIndex != -1) { while(FailIndex != -1) {
console.log(FailIndex); console.log(FailIndex);
FailNum++; FailNum++;
FailIndex = report.indexOf('Fail',FailIndex + 1); FailIndex = report.indexOf('false',FailIndex + 1);
} }
let failNum = (FailNum).toString(); let failNum = (FailNum).toString();
let PassIndex = report.indexOf('Pass'); let PassIndex = report.indexOf('true');
let PassNum = 0; let PassNum = 0;
while(PassIndex != -1) { while(PassIndex != -1) {
console.log(PassIndex); console.log(PassIndex);
PassNum++; PassNum++;
PassIndex = report.indexOf('Pass',PassIndex + 1); PassIndex = report.indexOf('true',PassIndex + 1);
} }
let TestNum = FailNum + PassNum; let TestNum = FailNum + PassNum;
let testNum = (TestNum).toString(); let testNum = (TestNum).toString();
/* /*
* ArkUI * ArkUI
*/ */
let ArkUIFailIndex = ArkUIReport.indexOf('Fail'); let ArkUIFailIndex = ArkUIReport.indexOf('false');
let ArkUIFailNum = 0; let ArkUIFailNum = 0;
while (ArkUIFailIndex != -1) { while (ArkUIFailIndex != -1) {
console.log(ArkUIFailIndex); console.log(ArkUIFailIndex);
ArkUIFailNum++; ArkUIFailNum++;
ArkUIFailIndex = ArkUIReport.indexOf('Fail',ArkUIFailIndex + 1); ArkUIFailIndex = ArkUIReport.indexOf('false',ArkUIFailIndex + 1);
} }
let ArkuiFailNum = (ArkUIFailNum).toString(); let ArkuiFailNum = (ArkUIFailNum).toString();
let ArkUIPassIndex = ArkUIReport.indexOf('Pass'); let ArkUIPassIndex = ArkUIReport.indexOf('true');
let ArkUIPassNum = 0; let ArkUIPassNum = 0;
while (ArkUIPassIndex != -1) { while (ArkUIPassIndex != -1) {
console.log(ArkUIPassIndex); console.log(ArkUIPassIndex);
ArkUIPassNum++; ArkUIPassNum++;
ArkUIPassIndex = ArkUIReport.indexOf('Pass',ArkUIPassIndex + 1); ArkUIPassIndex = ArkUIReport.indexOf('true',ArkUIPassIndex + 1);
} }
let ArkUITestNum = ArkUIFailNum + ArkUIPassNum; let ArkUITestNum = ArkUIFailNum + ArkUIPassNum;
let ArkuiTestNum = (ArkUITestNum).toString(); let ArkuiTestNum = (ArkUITestNum).toString();
/* /*
* Audio * Audio
*/ */
let AudioFailIndex = AudioReport.indexOf('Fail'); let AudioFailIndex = AudioReport.indexOf('false');
let AudioFailNum = 0; let AudioFailNum = 0;
while (AudioFailIndex != -1) { while (AudioFailIndex != -1) {
console.log(AudioFailIndex); console.log(AudioFailIndex);
AudioFailNum++; AudioFailNum++;
AudioFailIndex = AudioReport.indexOf('Fail',AudioFailIndex + 1); AudioFailIndex = AudioReport.indexOf('false',AudioFailIndex + 1);
} }
let audioFailNum = (AudioFailNum).toString(); let audioFailNum = (AudioFailNum).toString();
let AudioPassIndex = AudioReport.indexOf('Pass'); let AudioPassIndex = AudioReport.indexOf('true');
let AudioPassNum = 0; let AudioPassNum = 0;
while (AudioPassIndex != -1) { while (AudioPassIndex != -1) {
console.log(AudioPassIndex); console.log(AudioPassIndex);
AudioPassNum++; AudioPassNum++;
AudioPassIndex = AudioReport.indexOf('Pass',AudioPassIndex + 1); AudioPassIndex = AudioReport.indexOf('true',AudioPassIndex + 1);
} }
let AudioTestNum = AudioFailNum + AudioPassNum; let AudioTestNum = AudioFailNum + AudioPassNum;
let audioTestNum = (AudioTestNum).toString(); let audioTestNum = (AudioTestNum).toString();
/* /*
* Camera * Camera
*/ */
let CameraFailIndex = CameraReport.indexOf('Fail'); let CameraFailIndex = CameraReport.indexOf('false');
let CameraFailNum = 0; let CameraFailNum = 0;
while (CameraFailIndex != -1) { while (CameraFailIndex != -1) {
console.log(CameraFailIndex); console.log(CameraFailIndex);
CameraFailNum++; CameraFailNum++;
CameraFailIndex = CameraReport.indexOf('Fail',CameraFailIndex + 1); CameraFailIndex = CameraReport.indexOf('false',CameraFailIndex + 1);
} }
let cameraFailNum = (CameraFailNum).toString(); let cameraFailNum = (CameraFailNum).toString();
let CameraPassIndex = CameraReport.indexOf('Pass'); let CameraPassIndex = CameraReport.indexOf('true');
let CameraPassNum = 0; let CameraPassNum = 0;
while (CameraPassIndex != -1) { while (CameraPassIndex != -1) {
console.log(CameraPassIndex); console.log(CameraPassIndex);
CameraPassNum++; CameraPassNum++;
CameraPassIndex = CameraReport.indexOf('Pass',CameraPassIndex + 1); CameraPassIndex = CameraReport.indexOf('true',CameraPassIndex + 1);
} }
let CameraTestNum = CameraFailNum + CameraPassNum; let CameraTestNum = CameraFailNum + CameraPassNum;
let cameraTestNum = (CameraTestNum).toString(); let cameraTestNum = (CameraTestNum).toString();
/* /*
* Player * Player
*/ */
let PlayerFailIndex = PlayerReport.indexOf('Fail'); let PlayerFailIndex = PlayerReport.indexOf('false');
let PlayerFailNum = 0; let PlayerFailNum = 0;
while (PlayerFailIndex != -1) { while (PlayerFailIndex != -1) {
console.log(PlayerFailIndex); console.log(PlayerFailIndex);
PlayerFailNum++; PlayerFailNum++;
PlayerFailIndex = PlayerReport.indexOf('Fail',PlayerFailIndex + 1); PlayerFailIndex = PlayerReport.indexOf('false',PlayerFailIndex + 1);
} }
let playerFailNum = (PlayerFailNum).toString(); let playerFailNum = (PlayerFailNum).toString();
let PlayerPassIndex = PlayerReport.indexOf('Pass'); let PlayerPassIndex = PlayerReport.indexOf('true');
let PlayerPassNum = 0; let PlayerPassNum = 0;
while (PlayerPassIndex != -1) { while (PlayerPassIndex != -1) {
console.log(PlayerPassIndex); console.log(PlayerPassIndex);
PlayerPassNum++; PlayerPassNum++;
PlayerPassIndex = PlayerReport.indexOf('Pass',PlayerPassIndex + 1); PlayerPassIndex = PlayerReport.indexOf('true',PlayerPassIndex + 1);
} }
let PlayerTestNum = PlayerFailNum + PlayerPassNum; let PlayerTestNum = PlayerFailNum + PlayerPassNum;
let playerTestNum = (PlayerTestNum).toString(); let playerTestNum = (PlayerTestNum).toString();
/* /*
* Experience * Experience
*/ */
let ExperienceFailIndex = ExperienceReport.indexOf('Fail'); let ExperienceFailIndex = ExperienceReport.indexOf('false');
let ExperienceFailNum = 0; let ExperienceFailNum = 0;
while (ExperienceFailIndex != -1) { while (ExperienceFailIndex != -1) {
console.log(ExperienceFailIndex); console.log(ExperienceFailIndex);
ExperienceFailNum++; ExperienceFailNum++;
ExperienceFailIndex = ExperienceReport.indexOf('Fail',ExperienceFailIndex + 1); ExperienceFailIndex = ExperienceReport.indexOf('false',ExperienceFailIndex + 1);
} }
let experienceFailNum = (ExperienceFailNum).toString(); let experienceFailNum = (ExperienceFailNum).toString();
let ExperiencePassIndex = ExperienceReport.indexOf('Pass'); let ExperiencePassIndex = ExperienceReport.indexOf('true');
let ExperiencePassNum = 0; let ExperiencePassNum = 0;
while (ExperiencePassIndex != -1) { while (ExperiencePassIndex != -1) {
console.log(ExperiencePassIndex); console.log(ExperiencePassIndex);
ExperiencePassNum++; ExperiencePassNum++;
ExperiencePassIndex = ExperienceReport.indexOf('Pass',ExperiencePassIndex + 1); ExperiencePassIndex = ExperienceReport.indexOf('true',ExperiencePassIndex + 1);
} }
let ExperienceTestNum = ExperienceFailNum + ExperiencePassNum; let ExperienceTestNum = ExperienceFailNum + ExperiencePassNum;
let experienceTestNum = (ExperienceTestNum).toString(); let experienceTestNum = (ExperienceTestNum).toString();
......
...@@ -44,8 +44,15 @@ ...@@ -44,8 +44,15 @@
"pages/Experience/Experience_index", "pages/Experience/Experience_index",
"pages/Experience/PhotoFps", "pages/Experience/PhotoFps",
"pages/Experience/DeskFps", "pages/Experience/DeskFps",
"pages/Experience/ColdStartTest", "pages/Experience/ContactsColdStartTest",
"pages/Experience/HotStartTest", "pages/Experience/ContactsHotStartTest",
"pages/Experience/MmsColdStartTest",
"pages/Experience/MmsHotStartTest",
"pages/Experience/PhotosColdStartTest",
"pages/Experience/PhotosHotStartTest",
"pages/Experience/SettingsColdStartTest",
"pages/Experience/SettingsHotStartTest",
"pages/Experience/CameraColdStartTest",
"pages/Experience/ViewPhotoTest", "pages/Experience/ViewPhotoTest",
"pages/Experience/KeyboardDisplayTest", "pages/Experience/KeyboardDisplayTest",
"pages/Experience/StartTaskManager", "pages/Experience/StartTaskManager",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册