CN117098158A - WiFi test method, wiFi test device, wiFi test equipment and storage medium - Google Patents

WiFi test method, wiFi test device, wiFi test equipment and storage medium Download PDF

Info

Publication number
CN117098158A
CN117098158A CN202310872002.9A CN202310872002A CN117098158A CN 117098158 A CN117098158 A CN 117098158A CN 202310872002 A CN202310872002 A CN 202310872002A CN 117098158 A CN117098158 A CN 117098158A
Authority
CN
China
Prior art keywords
test
wifi
interface
hong
monte
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310872002.9A
Other languages
Chinese (zh)
Inventor
胡瑞涛
王石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202310872002.9A priority Critical patent/CN117098158A/en
Publication of CN117098158A publication Critical patent/CN117098158A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a WiFi test method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a hong declaration file, wherein the hong declaration file is a declaration file of a hong device management WiFi; acquiring a plurality of WiFi interfaces in the hong Mongolian statement file; displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface; judging whether the test button is clicked or not; if the test button is clicked, obtaining a test case corresponding to the test type; each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated; and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page. The WiFi test method is beneficial to improving the WiFi test efficiency of the hong Monte device.

Description

WiFi test method, wiFi test device, wiFi test equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a WiFi testing method, device, equipment, and storage medium.
Background
For development and testers of hong-Monte devices, short-range communication is an essential function in an operating system, wi-Fi belongs to a short-range wireless communication technology, and WiFi test of the hong-Monte devices is to ensure that the WiFi function of the hong-Monte devices can run stably and normally.
However, the prior art cannot simplify the WiFi test process of the hong device, which is not beneficial to improving the WiFi test efficiency of the hong device. The reason is that many WiFi interfaces of hong Monte devices are adopted, if the WiFi interfaces of hong Monte devices are tested manually one by one, the workload is huge, and the testing time is long, so the WiFi testing process of the hong Monte devices cannot be simplified in the prior art, the WiFi testing requirement of the hong Monte devices is difficult to meet, and the improvement of the WiFi testing efficiency of the hong Monte devices is not facilitated.
Disclosure of Invention
The embodiment of the application provides a WiFi test method, a WiFi test device, wiFi test equipment and a WiFi test storage medium, which are used for solving the problems that the WiFi test process of hong Monte equipment cannot be simplified in the prior art, and the WiFi test efficiency of the hong Monte equipment cannot be improved.
In a first aspect, an embodiment of the present application provides a WiFi testing method, where the WiFi testing method includes:
acquiring a hong and Monte declaration file, wherein the hong and Monte declaration file is a declaration file of a hong and Monte device management WiFi;
acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
judging whether the test button is clicked or not;
if the test button is clicked, obtaining a test case corresponding to the test type;
each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated;
and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page.
As an optional implementation manner, the obtaining a plurality of WiFi interfaces in the hong and Monte declaration file includes:
acquiring the description content of each API interface in the hong-Monte declaration file;
identifying whether the description content of the API interface comprises the key characters for managing WiFi, wherein the key words comprise one or a combination of characters for connecting WiFi, characters for creating WiFi hotspots and characters for connecting WiFi point to point;
and if the description content of the API interface is identified to comprise the key character, identifying the API interface as the WiFi interface.
As an optional implementation manner, the displaying, on a preset WiFi test interface, a test type and a test button of the WiFi interface under the test type includes:
obtaining the equipment model of the hong Monte equipment;
acquiring the test type corresponding to the hong and Monte device from a preset test type database;
and displaying the test type and a test button of the WiFi interface under the test type on the preset WiFi test interface.
As an optional implementation manner, the determining whether the test button is clicked includes:
acquiring an operation event of the test button;
detecting whether a click operation exists in the operation event;
if the clicking operation exists in the operation event, judging that the test button is clicked, and if the clicking operation does not exist in the operation event, judging that the test button is not clicked.
As an optional implementation manner, if the test button is clicked, the obtaining the test case corresponding to the test type includes:
if the test button is clicked, connecting a preset server through a preset network mode, and sending a preset test case acquisition instruction to the server, wherein the test case acquisition instruction comprises the test type;
receiving test case information returned by the server according to the test case acquisition instruction, wherein the test case information comprises a plurality of test cases corresponding to the test type and the use frequency of each test case;
and sequencing the use frequencies of the test cases according to the sequence from high to low, and obtaining the test case with the first use frequency sequence.
As an alternative embodiment, the test type includes one of a single test, an automatic test, a scenario test, a performance test, a pressure test, or a combination thereof; the scenario test comprises one or a combination of a scenario test for connecting WiFi, a scenario test for creating WiFi hot spots, and a scenario test for WiFi point-to-point connection.
As an alternative embodiment, the hong-and-Monte device includes a device having an open source hong-and-Monte system.
In a second aspect, an embodiment of the present application further provides a WiFi testing device, where the WiFi testing device includes a processor and a memory, where the memory stores a computer program, and when the processor invokes the computer program in the memory, the processor executes the WiFi testing method described above.
In a third aspect, an embodiment of the present application further provides an apparatus, where the apparatus includes a WiFi testing device as described above.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where the storage medium is used to store a computer program, where the computer program when executed by a processor causes the processor to implement the WiFi testing method described above.
The embodiment of the application provides a WiFi test method, a WiFi test device, wiFi test equipment and a WiFi test storage medium, wherein the WiFi test method comprises the following steps:
acquiring a hong and Monte declaration file, wherein the hong and Monte declaration file is a declaration file of a hong and Monte device management WiFi;
acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
judging whether the test button is clicked or not;
if the test button is clicked, obtaining a test case corresponding to the test type;
each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated;
and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page.
The embodiment of the application has the advantages that on one hand, the interface name of the WiFi interface is obtained, the interface name and the WiFi interface test result are packaged, the WiFi test result of the hong Monte device is generated, the WiFi test process of the hong Monte device is simplified, the WiFi test requirement of the hong Monte device can be met, and the WiFi test efficiency of the hong Monte device is improved; on the other hand, the WiFi test result of the hong Monte device is displayed, so that the efficiency of checking the software problem and the hardware problem of the WiFi module is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a WiFi testing method according to an embodiment of the present application;
fig. 2 is a flowchart for acquiring a WiFi interface according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for acquiring test types provided by an embodiment of the present application;
fig. 4 is a flowchart of an application of WiFi testing provided by an embodiment of the present application;
fig. 5 is a schematic block diagram of a WiFi testing device provided by an embodiment of the application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," and the like in various places are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
Referring to fig. 1, fig. 1 is a flowchart of a WiFi testing method provided by an embodiment of the present application, where the method may be applied to hong-mo devices, and the hong-mo devices may be any one of a mobile phone, a camera, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, a personal computer (personal computer, a PC), a netbook, and a personal digital assistant (personal digital assistant, PDA), which is not limited in the embodiment of the present application.
As shown in fig. 1, the WiFi testing method provided by the embodiment of the present application includes the following steps, which are described in detail as follows:
s101, acquiring a hong declaration file, wherein the hong declaration file is a declaration file of a hong device management WiFi;
s101 includes:
and acquiring the file name of the hong declaration file, and searching the hong declaration file according to the file name in the hong system file, wherein the hong declaration file is a declaration file of a hong device management WiFi.
Wherein, the file name of the hong Mongolian statement file is: ohos.wifimanager.d.ts.
S102, acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
the WiFi interface comprises one or a combination of an API interface for connecting WiFi call, an API interface for creating WiFi hot spot call and an API interface for WiFi point-to-point connection call.
S103, displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
wherein, the hong Monte device comprises a device with an open source hong Monte system.
Wherein the test type comprises one or a combination of an individual test, an automatic test, a scene test, a performance test and a pressure test; the scenario test comprises one or a combination of a scenario test for connecting WiFi, a scenario test for creating WiFi hot spots, and a scenario test for WiFi point-to-point connection.
Wherein the individual test is a test of a single WIFI interface.
Wherein, the automatic test is the test of all WIFI interfaces.
Wherein each test type corresponds to a test button, and the test buttons of different test types are different.
For ease of illustration, taking a single test as an example, the following is detailed:
after the WiFi test interface is entered, all WiFi interfaces are called, and each WiFi interface is independently provided with a button for calling, and the buttons can be used for test calling by testers or users or for knowing each WiFi interface under an interface bin. The name and return value of the WiFi interface are displayed on the button, the parameters are default, and the tester can modify and store the parameters as required. The interface is more beautiful and elegant, the operation is simple and convenient, and the display is clear and visual.
For ease of description, the automatic test is exemplified as follows:
after entering the WiFi test interface, the automatic test of the program can call all the WIFI interfaces under the WIFI test after clicking the 'automatic test' button once, and all return values are displayed, so that whether the WIFI interfaces can be normally called or not is checked for simple value transmission and calling actions, and the logic sequence relation of use cases is not strictly complied.
After entering the WiFi test interface, clicking an automatic test button, automatically traversing all various WIFI interfaces in a hong declaration file ohos.wifiManager.d.ts of a test hong Mongolian system, ensuring that the test sequence does not have any logic precedence relationship, only ensuring that the automatic test is finished under the condition of enabling WiFi, and finally closing the WiFi.
For convenience of explanation, taking a scenario test as an example, the following details are:
the scene test of the program is realized by calling the WIFI interface to realize a simpler actual scene after clicking the scene test button once, and displaying all return values. Such as: the WiFi class realizes a simple scene of connecting WiFi; the hotspot class realizes a scene of creating hotspots; the p2p class implements a p2p connected scenario.
After entering the WiFi test interface, clicking a scene test start button, traversing the WIFI interface in the hong and Monte declaration file ohos.wifiManager.d.ts after testing the hong and Monte system, wherein the test sequence has a certain logic sequence relationship, automatically completing a set of scene test connected with WiFi, and displaying a corresponding calling value transmission result. And clicking a scene test end button to finish a series of end operations such as disconnection, wiFi closing and the like so as to ensure that the scene test can be repeated normally.
For ease of description, taking performance testing as an example, the following is detailed:
the performance test of the program is realized by clicking a performance test button once, the WIFI interface realizes a simpler performance test of data transmission, and all return values are displayed. Each interface is implemented to transfer data between two devices under connection conditions, thereby calculating the time and rate performance of data transfer.
After entering the WiFi test interface, clicking a 'performance test preparation' button, testing the WIFI interface in a hong declaration file ohos.wifiManager.d.ts after the hong system is tested, wherein the test sequence has a certain logic sequence relation, and operations needing to be prepared before performance test, such as connection and the like, can be automatically completed, and a corresponding calling value transmission result can be displayed. And clicking a performance test start button to start performance test, transmitting received data between the two devices, and displaying corresponding transmission results. Clicking the end button ends the performance test to ensure that the performance test can be repeated normally.
The test object of the performance test comprises one of HongMong equipment uploading data and HongMong equipment downloading data.
For ease of illustration, the pressure test is taken as an example, as follows:
the pressure test of the program is realized by calling the WIFI interface to realize a simpler pressure test of always sending/receiving data in a certain time after clicking a pressure test button once, and displaying all return values. The interfaces are implemented to test the pressure performance by transferring data between two devices under connection. Events of 100 times of continuous clicking and response time display of each WIFI interface are also realized.
After entering the WiFi test interface, clicking a 'pressure test preparation' button, testing the WIFI interface in the hong and Monte declaration file ohos.wifiManager.d.ts after the hong and Monte system, wherein the test sequence has a certain logic sequence, and the operations needing to be prepared before the pressure test, such as connection and the like, can be automatically completed, so that the corresponding calling value transmission result can be displayed. And clicking a button for starting the pressure test, and always transmitting data between the two devices within a certain time, so that a corresponding transmission result can be displayed. Clicking the "end" button ends the pressure test. Ensuring that the pressure test can be repeated normally.
The test object of the pressure test comprises one of HongMong equipment uploading data and HongMong equipment downloading data.
The performance test comprises one of a hong device uploading data performance test and a hong device downloading data performance test.
S104, judging whether the test button is clicked or not;
wherein, the S104 includes:
acquiring an operation event of the test button;
detecting whether a click operation exists in the operation event;
if the clicking operation exists in the operation event, judging that the test button is clicked, and if the clicking operation does not exist in the operation event, judging that the test button is not clicked.
S105, if the test button is clicked, obtaining a test case corresponding to the test type;
wherein, the S105 includes:
if the test button is clicked, connecting a preset server through a preset network mode, and sending a preset test case acquisition instruction to the server, wherein the test case acquisition instruction comprises the test type;
receiving test case information returned by the server according to the test case acquisition instruction, wherein the test case information comprises a plurality of test cases corresponding to the test type and the use frequency of each test case;
and sequencing the use frequencies of the test cases according to the sequence from high to low, and obtaining the test case with the first use frequency sequence.
S106, acquiring each test step of the test case, testing the WiFi interface according to the test step, and generating a WiFi interface test result of the WiFi interface under the test type;
s107, acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong Monte device, and displaying the WiFi test result of the hong Monte device on a preset page.
S107 includes:
and finding out a plurality of display devices of the same local area network through a distributed soft bus of the hong Monte system, acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong Monte device, and displaying the WiFi test result of the hong Monte device on a preset page of the display device.
The embodiment of the application has the advantages that on one hand, the interface name of the WiFi interface is obtained, the interface name and the WiFi interface test result are packaged, the WiFi test result of the hong Monte device is generated, the WiFi test process of the hong Monte device is simplified, and the WiFi test efficiency of the hong Monte device is improved; on the other hand, the WiFi test result of the hong Monte device is displayed, so that the efficiency of checking the software problem and the hardware problem of the WiFi module is improved.
Referring to fig. 2, fig. 2 is a flowchart of acquiring a WiFi interface according to an embodiment of the present application, which is described in detail below:
s201, acquiring the description content of each API interface in the hong and Monte declaration file;
s202, identifying whether the description content of the API interface comprises key characters for managing WiFi, wherein the key words comprise one or a combination of characters for connecting WiFi, characters for creating WiFi hotspots and characters for WiFi point-to-point connection;
the characters connected with the WiFi, the characters for creating the WiFi hotspot and the characters for WiFi point-to-point connection may be manually entered, or the characters connected with the WiFi, the characters for creating the WiFi hotspot and the characters for WiFi point-to-point connection may be obtained through the disclosed database, and the specific obtaining manner is not limited herein.
And S203, if the description content of the API interface is identified to comprise the key character, identifying the API interface as the WiFi interface.
In the embodiment of the application, if the description content of the API interface is identified to comprise the key character, the API interface is identified as the WiFi interface, so that the WiFi interface of the hong-Mongolian device can be automatically acquired, subsequent testing of the WiFi interface is facilitated, and a WiFi interface test result of the WiFi interface under the test type is acquired.
Referring to fig. 3, fig. 3 is a flowchart of acquiring a test type according to an embodiment of the present application, which is described in detail below:
s301, obtaining the equipment model of the hong Monte equipment;
s302, acquiring the test type corresponding to the hong Monte device from a preset test type database;
and S303, displaying the test type and a test button of the WiFi interface under the test type on the preset WiFi test interface.
In the embodiment of the application, the test buttons are displayed on the WiFi test interface, which is beneficial to visual display operation.
Referring to fig. 4, fig. 4 is an application flowchart of a WiFi test provided by an embodiment of the present application, and is described in detail below:
opening a WiFi test program;
selecting a test type;
selecting a tested WIFI interface;
inputting test parameters;
clicking a test button;
judging whether the returned result meets the expected result or not; if yes, displaying a return value; otherwise, the step of inputting the test parameters is returned.
The expected result is user-defined, or default, and is not limited herein.
The WiFi test method and device have the advantages that in two aspects, the WiFi test program is easier to get on hand, operation and display are more convenient and visual, and the efficiency of checking the software problem and the hardware problem of the WiFi module is improved by judging whether the returned result accords with the expected result or not.
Referring to fig. 5, fig. 5 is a schematic block diagram of a WiFi testing device according to an embodiment of the application.
As shown in fig. 5, the WiFi test device 200 may include a processor 211 and a memory 212, where the processor 211 and the memory 212 are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
Specifically, the processor 211 may be a Micro-controller Unit (MCU), a central processing Unit (Central Processing Unit, CPU), a digital signal processor (Digital Signal Processor, DSP), or the like.
Specifically, the Memory 212 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like. The memory 212 stores therein various computer programs for execution by the processor 211.
Wherein the processor 211 is configured to run a computer program stored in the memory processor 211 and to implement the following steps when the computer program is executed:
acquiring a hong and Monte declaration file, wherein the hong and Monte declaration file is a declaration file of a hong and Monte device management WiFi;
acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
judging whether the test button is clicked or not;
if the test button is clicked, obtaining a test case corresponding to the test type;
each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated;
and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page.
In some embodiments, processor 211 is configured to implement:
acquiring the description content of each API interface in the hong-Monte declaration file;
identifying whether the description content of the API interface comprises the key characters for managing WiFi, wherein the key words comprise one or a combination of characters for connecting WiFi, characters for creating WiFi hotspots and characters for connecting WiFi point to point;
and if the description content of the API interface is identified to comprise the key character, identifying the API interface as the WiFi interface.
In some embodiments, processor 211 is configured to implement:
obtaining the equipment model of the hong Monte equipment;
acquiring the test type corresponding to the hong and Monte device from a preset test type database;
and displaying the test type and a test button of the WiFi interface under the test type on the preset WiFi test interface.
In some embodiments, processor 211 is configured to implement:
acquiring an operation event of the test button;
detecting whether a click operation exists in the operation event;
if the clicking operation exists in the operation event, judging that the test button is clicked, and if the clicking operation does not exist in the operation event, judging that the test button is not clicked.
In some embodiments, processor 211 is configured to implement:
if the test button is clicked, connecting a preset server through a preset network mode, and sending a preset test case acquisition instruction to the server, wherein the test case acquisition instruction comprises the test type;
receiving test case information returned by the server according to the test case acquisition instruction, wherein the test case information comprises a plurality of test cases corresponding to the test type and the use frequency of each test case;
and sequencing the use frequencies of the test cases according to the sequence from high to low, and obtaining the test case with the first use frequency sequence.
In some embodiments, processor 211 is configured to implement:
the test type comprises one or a combination of an individual test, an automatic test, a scene test, a performance test and a pressure test; the scenario test comprises one or a combination of a scenario test for connecting WiFi, a scenario test for creating WiFi hot spots, and a scenario test for WiFi point-to-point connection.
In some embodiments, processor 211 is configured to implement:
the hong-and-Monte devices include devices having an open source hong-and-Monte system mounted thereon.
The embodiment of the application has the advantages that on one hand, the interface name of the WiFi interface is obtained, the interface name and the WiFi interface test result are packaged, the WiFi test result of the hong Monte device is generated, the WiFi test process of the hong Monte device is simplified, and the WiFi test efficiency of the hong Monte device is improved; on the other hand, the WiFi test result of the hong Monte device is displayed, so that the efficiency of checking the software problem and the hardware problem of the WiFi module is improved.
There is also provided in embodiments of the present application a device of the type including, but not limited to, a cell phone, camera, tablet, wearable device, vehicle-mounted device, augmented reality (augmented reality, AR)/Virtual Reality (VR) device, notebook, personal computer (personal computer, PC), netbook, personal digital assistant (personal digital assistant, PDA), etc., without limitation in embodiments of the present application.
The device includes a WiFi test device, which may be the WiFi test device 200 described in the foregoing embodiment, for example. The device may execute any WiFi testing method provided by the embodiment of the present application, so that the beneficial effects that any WiFi testing method provided by the embodiment of the present application can be achieved, which are detailed in the previous embodiments and are not repeated herein.
The embodiment of the application also provides a storage medium, wherein the storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize the steps of the WiFi test method provided by the embodiment. For example, the computer program is loaded by a processor, the following steps may be performed:
acquiring a hong and Monte declaration file, wherein the hong and Monte declaration file is a declaration file of a hong and Monte device management WiFi;
acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
judging whether the test button is clicked or not;
if the test button is clicked, obtaining a test case corresponding to the test type;
each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated;
and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page.
The storage medium may be an internal storage unit of the WiFi testing apparatus or device of the foregoing embodiment, for example, a hard disk or a memory of the WiFi testing apparatus or device. The storage medium may also be an external storage device of the WiFi test apparatus or device, such as a plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash memory Card (Flash Card) or the like, which are provided on the WiFi test apparatus or device.
Because the computer program stored in the storage medium can execute any one of the WiFi testing methods provided by the embodiments of the present application, the beneficial effects that any one of the WiFi testing methods provided by the embodiments of the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A WiFi testing method, wherein the WiFi testing method includes:
acquiring a hong and Monte declaration file, wherein the hong and Monte declaration file is a declaration file of a hong and Monte device management WiFi;
acquiring a plurality of WiFi interfaces in the hong and Monte declaration file;
displaying a test type and a test button of the WiFi interface under the test type on a preset WiFi test interface;
judging whether the test button is clicked or not;
if the test button is clicked, obtaining a test case corresponding to the test type;
each test step of the test case is obtained, the WiFi interface is tested according to the test step, and a WiFi interface test result of the WiFi interface under the test type is generated;
and acquiring the interface name of the WiFi interface, packaging the interface name and the WiFi interface test result, generating the WiFi test result of the hong and Monte device, and displaying the WiFi test result of the hong and Monte device on a preset page.
2. The method of claim 1, wherein the obtaining a plurality of WiFi interfaces in the hong-mo statement file comprises:
acquiring the description content of each API interface in the hong-Monte declaration file;
identifying whether the description content of the API interface comprises the key characters for managing WiFi, wherein the key words comprise one or a combination of characters for connecting WiFi, characters for creating WiFi hotspots and characters for connecting WiFi point to point;
and if the description content of the API interface is identified to comprise the key character, identifying the API interface as the WiFi interface.
3. The method of claim 1, wherein displaying the test type and the test button of the WiFi interface under the test type on a preset WiFi test interface comprises:
obtaining the equipment model of the hong Monte equipment;
acquiring the test type corresponding to the hong and Monte device from a preset test type database;
and displaying the test type and a test button of the WiFi interface under the test type on the preset WiFi test interface.
4. The method of claim 1, wherein the determining whether the test button is clicked comprises:
acquiring an operation event of the test button;
detecting whether a click operation exists in the operation event;
if the clicking operation exists in the operation event, judging that the test button is clicked, and if the clicking operation does not exist in the operation event, judging that the test button is not clicked.
5. The method according to claim 1, wherein if the test button is clicked, obtaining the test case corresponding to the test type includes:
if the test button is clicked, connecting a preset server through a preset network mode, and sending a preset test case acquisition instruction to the server, wherein the test case acquisition instruction comprises the test type;
receiving test case information returned by the server according to the test case acquisition instruction, wherein the test case information comprises a plurality of test cases corresponding to the test type and the use frequency of each test case;
and sequencing the use frequencies of the test cases according to the sequence from high to low, and obtaining the test case with the first use frequency sequence.
6. The method of claim 1, wherein the test type comprises one of a stand alone test, an automatic test, a scenario test, a performance test, a stress test, or a combination thereof; the scenario test comprises one or a combination of a scenario test for connecting WiFi, a scenario test for creating WiFi hot spots, and a scenario test for WiFi point-to-point connection.
7. A method as claimed in any one of claims 1 to 6 wherein the hong device comprises a device incorporating an open source hong system.
8. A WiFi testing device, characterized in that it comprises a processor, a memory storing a computer program executable by the processor, which computer program, when executed by the processor, implements a WiFi testing method according to any of claims 1 to 7.
9. An apparatus comprising the WiFi testing device of claim 8.
10. A storage medium for computer readable storage, wherein the storage medium stores one or more programs executable by one or more processors to implement the steps of the WiFi testing method of any of claims 1 to 7.
CN202310872002.9A 2023-07-14 2023-07-14 WiFi test method, wiFi test device, wiFi test equipment and storage medium Pending CN117098158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310872002.9A CN117098158A (en) 2023-07-14 2023-07-14 WiFi test method, wiFi test device, wiFi test equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310872002.9A CN117098158A (en) 2023-07-14 2023-07-14 WiFi test method, wiFi test device, wiFi test equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117098158A true CN117098158A (en) 2023-11-21

Family

ID=88772647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310872002.9A Pending CN117098158A (en) 2023-07-14 2023-07-14 WiFi test method, wiFi test device, wiFi test equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117098158A (en)

Similar Documents

Publication Publication Date Title
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN116265972B (en) Power consumption display method of mobile device and mobile device
CN110875858A (en) Application test data capturing method, system, equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN110619096A (en) Method and apparatus for synchronizing data
CN110825537B (en) Method, device and equipment for calling remote application based on C/S architecture
CN109032911B (en) Frame rate detection method and device for mobile device and electronic device
CN112637281B (en) Terminal equipment data access method and device, electronic equipment and storage medium
CN106535102B (en) A kind of mobile terminal locating method and mobile terminal
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN112799763A (en) Function management method, management device, terminal equipment and readable storage medium
CN110659189B (en) Application program generation method and device, cloud server and readable storage medium
CN109697166B (en) Test data preparation method and related device
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN113835948A (en) Temperature detection method, temperature detection device and electronic equipment
CN117098158A (en) WiFi test method, wiFi test device, wiFi test equipment and storage medium
CN112379967B (en) Simulator detection method, device, equipment and medium
CN112948225B (en) Link monitoring method and device, monitoring equipment and storage medium
CN112631812A (en) Identification setting method and device, electronic equipment and storage medium
CN112651212A (en) Method and terminal for remotely acquiring word stock
CN114356870A (en) Cross-device data sharing method and related devices
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN112948013A (en) Application probe configuration method and device, terminal equipment and storage medium
CN116820930A (en) Interface testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination