mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2025-01-12 01:57:12 +00:00
"modifile wifi/test/wifi_testapp/entry/src/main/ets/pages/subStressTest/p2pManagerStressTest.ets 将应用提升至api10,增加网页时延测试页面"
Signed-off-by: shitijun <shitijun@kaihong.com>
This commit is contained in:
parent
3868103bc6
commit
b68db16f1c
@ -20,12 +20,12 @@ import { PageTitle } from '../../Component/pageTitle';
|
|||||||
import { TestImageDisplay } from '../../Component/testImageDisplay';
|
import { TestImageDisplay } from '../../Component/testImageDisplay';
|
||||||
import { StressContentTable } from '../../Component/stressContentTable';
|
import { StressContentTable } from '../../Component/stressContentTable';
|
||||||
import router from '@system.router';
|
import router from '@system.router';
|
||||||
import ConfigData from '../../Utils/ConfigData';
|
import ConfigData from '../../utils/ConfigData';
|
||||||
import LogUtil from '../../Utils/LogUtil';
|
import LogUtil from '../../utils/LogUtil';
|
||||||
import { initP2pManagerStressData } from '../../MainAbility/model/stressTestDataModels'
|
import { initP2pManagerStressData } from '../../entryability/model/stressTestDataModels'
|
||||||
import { TestData } from '../../MainAbility/model/testData'
|
import { TestData } from '../../entryability/model/testData'
|
||||||
import wifi from '@ohos.wifi';
|
import wifi from '@ohos.wifi';
|
||||||
import { resolveIP } from '../../Utils/Util'
|
import { resolveIP } from '../../utils/Util'
|
||||||
import socket from '@ohos.net.socket';
|
import socket from '@ohos.net.socket';
|
||||||
|
|
||||||
import http from '@ohos.net.http'
|
import http from '@ohos.net.http'
|
||||||
@ -64,15 +64,15 @@ struct P2pManagerStressTest {
|
|||||||
private testItem: TestData = router.getParams().testId;
|
private testItem: TestData = router.getParams().testId;
|
||||||
@State message: string = "";
|
@State message: string = "";
|
||||||
@State deviceId: string = '';
|
@State deviceId: string = '';
|
||||||
@State currentClick: number = - 1;
|
@State currentClick: Number = - 1;
|
||||||
@State deviceAddressManager: string = '6c:96:d7:3d:87:6f';
|
@State deviceAddressManager: string = '6c:96:d7:3d:87:6f';
|
||||||
@State netIdManager: number = - 2 ;
|
@State netIdManager: Number = - 2 ;
|
||||||
@State passphraseManager: string = "12345678" ;
|
@State passphraseManager: string = "12345678" ;
|
||||||
@State groupNameManager: string = "testGroup"
|
@State groupNameManager: string = "testGroup"
|
||||||
@State goBandManager: number = 0 ;
|
@State goBandManager: Number = 0 ;
|
||||||
@State devNameManager: string = "MyTestDevice"
|
@State devNameManager: string = "MyTestDevice"
|
||||||
@StorageLink( 'stressNumber' ) stressNumber: number = 0 ;
|
@StorageLink( 'stressNumber' ) stressNumber: Number = 0 ;
|
||||||
@StorageLink( 'stressTime' ) stressTime: number = 0;
|
@StorageLink( 'stressTime' ) stressTime: Number = 0;
|
||||||
|
|
||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
AppStorage.SetOrCreate( "deviceAddressManager" , this.deviceAddressManager )
|
AppStorage.SetOrCreate( "deviceAddressManager" , this.deviceAddressManager )
|
||||||
@ -223,10 +223,10 @@ struct P2pManagerStressTest {
|
|||||||
@Component
|
@Component
|
||||||
struct p2pManagerSetting {
|
struct p2pManagerSetting {
|
||||||
@State deviceAddressManager: string = '6c:96:d7:3d:87:6f';
|
@State deviceAddressManager: string = '6c:96:d7:3d:87:6f';
|
||||||
@State netIdManager: number = - 2 ;
|
@State netIdManager: Number = - 2 ;
|
||||||
@State passphraseManager: string = "12345678" ;
|
@State passphraseManager: string = "12345678" ;
|
||||||
@State groupNameManager: string = "testGroup"
|
@State groupNameManager: string = "testGroup"
|
||||||
@State goBandManager: number = 0 ;
|
@State goBandManager: Number = 0 ;
|
||||||
@State devNameManager: string = "MyTestDevice"
|
@State devNameManager: string = "MyTestDevice"
|
||||||
|
|
||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
@ -540,8 +540,8 @@ struct socketTest {
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
struct upDownLoad {
|
struct upDownLoad {
|
||||||
@State receivedSize: number = 0
|
@State receivedSize: Number = 0
|
||||||
@State totalSize: number = 0
|
@State totalSize: Number = 0
|
||||||
@State message: string = ''
|
@State message: string = ''
|
||||||
@State files: Array<string> = []
|
@State files: Array<string> = []
|
||||||
@State uploads: Array<string> = []
|
@State uploads: Array<string> = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user