1import router from '@ohos.router'; 2 3@Entry 4@Component 5struct systemTime { 6 @State message: string = 'Hello World'; 7 8 build() { 9 Row() { 10 Column() { 11 12 //API9 13 Text('API9') 14 .textAlign(TextAlign.Center) 15 .fontSize(25) 16 .padding(10) 17 Button('DownLoad') 18 .fontSize(25) 19 .fontWeight(FontWeight.Bold) 20 .onClick(()=>{ 21 router.pushUrl({url:"pages/test/download_V9"}) 22 }) 23 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 24 25 Button('UpLoad') 26 .fontSize(25) 27 .fontWeight(FontWeight.Bold) 28 .onClick(()=>{ 29 router.pushUrl({url:"pages/test/upload_V9"}) 30 }) 31 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 32 Button('9test') 33 .fontSize(25) 34 .fontWeight(FontWeight.Bold) 35 .onClick(()=>{ 36 router.pushUrl({url:"pages/test/test"}) 37 }) 38 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 39 40 //API10 41 Text('API10') 42 .textAlign(TextAlign.Center) 43 .fontSize(25) 44 .width('100%') 45 .margin({ top: '5%'}).width('50%').align(Alignment.Center) 46 47 Button('DownLoad') 48 .fontSize(25) 49 .fontWeight(FontWeight.Bold) 50 .onClick(()=>{ 51 router.pushUrl({url:"pages/test/download"}) 52 }) 53 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 54 55 Button('UpLoad') 56 .fontSize(25) 57 .fontWeight(FontWeight.Bold) 58 .onClick(()=>{ 59 router.pushUrl({url:"pages/test/upload"}) 60 }) 61 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 62 63 Button('1000任务下载压力测试') 64 .fontSize(25) 65 .fontWeight(FontWeight.Bold) 66 .onClick(()=>{ 67 router.pushUrl({url:"pages/test/multipleTask"}) 68 }) 69 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 70 71 Button('ChunkTest') 72 .fontSize(25) 73 .fontWeight(FontWeight.Bold) 74 .onClick(()=>{ 75 router.pushUrl({url:"pages/test/chunktest"}) 76 }) 77 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 78 79 Button('任务代理和证书') 80 .fontSize(25) 81 .fontWeight(FontWeight.Bold) 82 .onClick(()=>{ 83 router.pushUrl({url:"pages/test/feature50"}) 84 }) 85 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 86 87 Button('1k/2k任务特殊测试') 88 .fontSize(25) 89 .fontWeight(FontWeight.Bold) 90 .onClick(()=>{ 91 router.pushUrl({url:"pages/test/stressTask"}) 92 }) 93 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 94 95 Button('TaskPoolTest') 96 .fontSize(25) 97 .fontWeight(FontWeight.Bold) 98 .onClick(()=>{ 99 router.pushUrl({url:"pages/test/taskpooltest"}) 100 }) 101 .margin({ top: '1%'}).width('50%').align(Alignment.Center) 102 103 104 } 105 .width('100%') 106 } 107 .height('100%') 108 } 109}