CN111817921A - Mobile test equipment, test method, device, system and networking method - Google Patents
Mobile test equipment, test method, device, system and networking method Download PDFInfo
- Publication number
- CN111817921A CN111817921A CN202010702055.2A CN202010702055A CN111817921A CN 111817921 A CN111817921 A CN 111817921A CN 202010702055 A CN202010702055 A CN 202010702055A CN 111817921 A CN111817921 A CN 111817921A
- Authority
- CN
- China
- Prior art keywords
- test
- slave
- equipment
- tested
- information
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides mobile test equipment, a test method, a test device, a test system and a networking method, and relates to the technical field of equipment test. The mobile test device may include: the test slave machine is provided with a plurality of test ports, and the test ports are used for connecting equipment to be tested; the test slave machine and the network module are both arranged in the movable containing shell; the test slave is connected with the network module and used for receiving a test instruction sent by the test host through the network module and acquiring test information of the equipment to be tested connected with the test port according to the test instruction; and sending test information to the test host through the network module, wherein the test slave is provided with a control module and a network background module. The test slave machine and the network module are arranged in the movable containing shell, the test slave machine completes the test of the equipment to be tested according to the instruction information sent by the test host machine, the test equipment is relatively independent, the test equipment can be suitable for a test scene with strong exclusivity to the equipment to be tested, and the test of the equipment to be tested is facilitated.
Description
Technical Field
The invention relates to the technical field of equipment testing, in particular to mobile testing equipment, a testing method, a testing device, a testing system and a networking method.
Background
With the rapid development of the mobile internet, mobile devices of various models are also coming out endlessly. Debugging and testing mobile devices of different models also become an essential part in the research and development process. There is also an increasing need to manage various models of mobile devices in order to meet the development and testing requirements for different models of mobile devices.
In the related art, a mobile equipment cabinet is arranged, a plurality of mobile equipment are placed in the mobile equipment cabinet, and user equipment can remotely occupy or debug the mobile equipment of different models in a webpage mode through a cloud real machine platform, so that the test of the mobile equipment of different models is realized.
However, in the related art, the method is not suitable for a test scenario with strong exclusivity for the mobile device, for example, the mobile device is tested in a complex network scenario or an outdoor scenario, which brings great inconvenience to the test of the mobile device.
Disclosure of Invention
The present invention aims to provide a mobile testing device, a testing method, an apparatus, a system and a networking method for overcoming the defects in the prior art, so as to solve the problem that the mobile testing device cannot be applied to a testing scenario with strong exclusivity for the mobile device in the related art, for example, the mobile device is tested in a complex network scenario or an outdoor scenario, which brings great inconvenience to the testing of the mobile device.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a mobile test device, including: the test slave is provided with a plurality of test interfaces, and the test interfaces are used for connecting equipment to be tested; the test slave machine and the network module are both arranged in a movable containing shell;
the test slave is connected with the network module and used for receiving a test instruction sent by the test host through the network module and acquiring test information of the equipment to be tested connected with the test interface according to the test instruction; sending the test information to the test host through the network module;
the test slave is provided with a control module and a network background module, the control module is used for acquiring and controlling the equipment information of the equipment to be tested, and the network background module is used for managing the equipment information and sending the equipment information to the test host based on a preset resource interface.
Optionally, the test apparatus further comprises: the test frame is arranged in the movable containing shell and used for bearing the equipment to be tested.
Optionally, the test rack is foldably connected with the inner wall of the movable containing shell through a movable shaft.
Optionally, the movable accommodating case comprises a first case and a second case which are buckled with each other;
the first box body is rotatably connected with the second box body.
Optionally, the test apparatus further comprises: a display; the display is connected with the test slave machine, and the test slave machine is also used for sending information to be displayed to the display.
Optionally, the display is disposed on the movable housing case; alternatively, the display is disposed outside the movable housing case.
Optionally, the test interface includes: a relay, a Universal Serial Bus (USB) hub;
the USB concentrator comprises a power supply end, a data end and a plurality of output ends; the test slave is connected with the data end and the relay, the relay is connected with the power end, each output end is connected with the power end and the data end, and the output end is used for being connected with the equipment to be tested.
Optionally, the test apparatus further comprises: a power supply module;
the power supply module is connected with the test slave and is also used for being connected with the equipment to be tested.
Optionally, the test slave is configured to receive, through the network module, a display instruction sent by the test host; real-time picture information of the equipment to be tested connected with the test interface is acquired in real time according to the display instruction; and sending the real-time picture information to the test host through the network module.
In a second aspect, an embodiment of the present invention further provides a testing method, which is applied to the test slave in the mobile testing device in any one of the first aspects, and the method includes:
receiving a test instruction sent by a test host through the network module;
acquiring test information of the equipment to be tested connected with the test interface according to the test instruction;
and sending the test information to the test host through the network module.
Optionally, the test information includes: testing time information, state information and identification information of the equipment to be tested and operation information.
Optionally, before receiving, by the network module, a test instruction sent by the test host, the method further includes:
sending device information of the mobile test device to a test host, wherein the device information includes: and the IP address of the test slave and the attribute information of the equipment to be tested connected with the test interface are obtained.
Optionally, the method further comprises:
receiving a display instruction sent by a test host through the network module;
acquiring real-time picture information of the equipment to be tested connected with the test interface according to the display instruction;
and sending the real-time picture information to the test host through the network module.
In a third aspect, an embodiment of the present invention further provides a testing apparatus, which is applied to the test slave in the mobile testing device in any one of the first aspects, where the apparatus includes:
the receiving module is used for receiving a test instruction sent by the test host through the network module;
the acquisition module is used for acquiring the test information of the equipment to be tested connected with the test interface according to the test instruction;
and the sending module is used for sending the test information to the test host through the network module.
Optionally, the test information includes: testing time information, state information and identification information of the equipment to be tested and operation information.
Optionally, the sending module is further configured to send device information of the mobile test device to a test host, where the device information includes: and the IP address of the test slave and the attribute information of the equipment to be tested connected with the test interface.
Optionally, the receiving module is further configured to receive, by the network module, a display instruction sent by the test host;
the acquisition module is further used for acquiring real-time picture information of the equipment to be tested connected with the test interface according to the display instruction;
the sending module is further configured to send the real-time picture information to the test host through the network module.
In a fourth aspect, an embodiment of the present invention further provides a test system, including a plurality of mobile test devices according to any one of the first aspect, where one of the mobile test devices is configured as a master test device, and at least one of the mobile test devices is configured as a slave test device;
the main test equipment is in communication connection with the test host through a network module of the main test equipment;
and each slave test device is in communication connection with the master test device through the respective network module.
In a fifth aspect, an embodiment of the present invention further provides a networking method for a test system, which is applied to the test system in the fourth aspect, and the method includes:
the testing slave machine of the slave testing equipment sequentially searches whether each testing slave machine is configured with the sniffing interface or not according to the IP address of each testing slave machine in the testing system;
if it is determined that the sniffing interface is configured in the test slave, the test slave of the slave test equipment determines that the test slave is the test slave of the main test equipment, and records the IP address of the test slave of the main test equipment.
Optionally, the method further comprises:
the control module of the test slave of the slave test device sends first device information to the network background module of the test slave of the master test device, where the first device information includes an IP address of the test slave of the slave test device and device information of a device to be tested connected to a test interface of the slave test device;
the control module of the test slave of the main test equipment sends second equipment information to the network background module of the test slave of the main test equipment, wherein the second equipment information comprises an IP address of the test slave of the main test equipment and equipment information of equipment to be tested connected with a test port of the main test equipment;
and the network background module of the test slave of the main test equipment receives the first equipment information and the second equipment information.
Optionally, before the testing slave of the slave testing apparatus sequentially searches whether each testing slave is configured with the sniffing interface according to the IP address of each testing slave in the testing system, the method further includes:
the test slave of the slave test equipment starts the control module, and the test slave of the main test equipment starts the control module and the network background module.
The invention has the beneficial effects that:
in the mobile test device, the test method, the device, the system and the networking method provided by the embodiment of the invention, the mobile test device may include: the test slave machine is provided with a plurality of test interfaces, and the test interfaces are used for connecting equipment to be tested; the test slave machine and the network module are both arranged in the movable containing shell; the test slave is connected with the network module and used for receiving the test instruction sent by the test host through the network module and acquiring the test information of the equipment to be tested connected with the test interface according to the test instruction; the testing slave is provided with a control module and a network background module, the control module is used for acquiring and controlling equipment information of the equipment to be tested, and the network background module is used for managing the equipment information and sending the equipment information to the testing host based on a preset resource interface. The test slave machine and the network module are arranged in the movable containing shell, the test slave machine can be connected with the equipment to be tested through the test interface, the test slave machine receives the instruction information sent by the test host machine and sends the test information of the equipment to be tested, which is obtained according to the test instruction, to the test host machine, so that the test of the equipment to be tested is completed, the test equipment is relatively independent, the movement of the test equipment is convenient, the test equipment can be suitable for a test scene with strong exclusivity to the equipment to be tested, and the test of the equipment to be tested is convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a mobile test device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a connection structure of a mobile test device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile test device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a connection structure between a test slave and a test interface according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile test device according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a testing method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a testing method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a communication connection of a test slave in a test system according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a testing method according to an embodiment of the present invention;
FIG. 10 is a flowchart illustrating a testing method according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a testing method according to an embodiment of the present invention;
FIG. 12 is a flowchart illustrating a testing method according to an embodiment of the present invention;
fig. 13 is a flowchart illustrating a test management method according to an embodiment of the present invention;
FIG. 14 is a schematic illustration of an equipment maintenance interface provided by an embodiment of the present application;
FIG. 15 is a schematic view of a first interface provided by an embodiment of the present application;
fig. 16 is a schematic flowchart of another test management method according to an embodiment of the present application;
FIG. 17 is a schematic diagram of a device detail interface provided by an embodiment of the present application;
fig. 18 is a schematic flowchart of another test management method according to an embodiment of the present application;
fig. 19 is a schematic flowchart of another test management method according to an embodiment of the present application;
fig. 20 is a schematic diagram of a real-machine interface of a switching device according to an embodiment of the present disclosure;
fig. 21 is a flowchart illustrating a networking method of a test system according to an embodiment of the present invention;
fig. 22 is a flowchart illustrating a networking method of a test system according to an embodiment of the present invention;
FIG. 23 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
fig. 24 is a schematic structural diagram of a test slave according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
With the rapid development of the mobile internet, the requirements for the terminal in the actual development are very large, and since the types of the terminal are also diversified, the terminal of different types needs to be debugged and tested in the development. The same company often has a plurality of types of terminals, and if the corresponding terminal needs to be prepared for each development group, the required number of terminals is very large. In order to meet the development requirements and test requirements of terminals of different models, most of strategies are to uniformly manage the terminals, and borrow or remotely connect and debug project groups when needed. By building a set of cloud real machine platform, a user can occupy and debug different mobile phones in a webpage mode.
In the related art, a device under test may be tested based on a cluster test system, where the cluster test system includes: the system comprises a host, a database and a plurality of slave machines connected with the host, wherein each slave machine is connected with a plurality of devices to be tested, and the host is in communication connection with the database. The host can also display related content through a web page, the web page can be displayed by a display device with the host or an external display device, and if the web page is the external display device, the display device can be connected with the host.
The host, the slave and the multiple devices to be tested are placed in a cabinet of a machine room, a user can operate based on state data of a database displayed by a web page to trigger the host to issue a test task, the slave can receive the test task sent by the host, the slave can test one or multiple devices to be tested connected with the slave, and the database can store data of the multiple devices to be tested.
The host, the slave and the multiple devices to be tested are placed in a cabinet of a machine room, and a user remotely occupies or debugs the mobile devices of different models in a webpage mode to test the mobile devices of different models.
In the related art, the host, the slave and the cabinet are distributed, so that the cluster transfer position cannot be used quickly, the equipment cluster is complex to deploy, services need to be deployed accurately and respectively, and the equipment cabinets with different nodes can share the same host node. When the performance of the equipment to be tested in the complex network condition is tested in an airport, special tests (such as performance tests) are executed for dozens of equipment to be tested, and some outdoor scene tests are performed, the equipment to be tested needs to be carried to various complex scenes such as the airport at any time for testing. In the above situation, the number of the devices to be tested is small, but the exclusivity of the devices to be tested is strong. The cluster test system in the related art cannot be applied to a test scenario with strong exclusivity for the mobile device, which brings great inconvenience to the test of the mobile device.
Fig. 1 is a schematic structural diagram of a mobile testing device according to an embodiment of the present invention, and fig. 2 is a schematic structural diagram of a connection of a mobile testing device according to an embodiment of the present invention, as shown in fig. 1 and 2, the mobile testing device may include: the system comprises a test slave 101 and a network module 102, wherein the test slave is provided with a plurality of test interfaces 103, and the test interfaces are used for connecting equipment to be tested 104; both the test slave 101 and the network module 102 are housed in a removable containment case 105.
The test slave 101 is connected with the network module 102, and is used for receiving a test instruction sent by the test host 106 through the network module 102 and acquiring test information of the device under test 104 connected with the test interface 103 according to the test instruction; test information is sent to test host 106 through network module 102.
The test slave 101 is deployed with a control module for acquiring and controlling device information of the device under test 104 and a network background module for managing the device information and sending the device information to the test host 106 based on a preset resource interface.
The test slave 101 may be connected to the test master 106 through the network module 102, and the test slave 101 may be a micro test slave 101. The communication mode between the network model and the test host 106 may be wireless communication or wired communication. The network module 102 may provide the network test slave 101 for the test slave 101 in a wired or wireless manner, for example, the network module 102 may be a network device such as a switch or a router.
In addition, the network module 102, the test slave 101, the test interface 103, and the device under test 104 may be disposed in the movable housing 105, and certainly, the device under test 104 may also be disposed outside the movable housing 105. The volume of the movable housing 105 is generally small and convenient for the user to carry.
In the embodiment of the present application, as shown in fig. 1, the shape of the movable containing casing 105 may be a rectangular parallelepiped, and the shape of the movable containing casing 105 may also be a cube, a cylinder, a truncated cone, a truncated pyramid, or the like, or other shapes that can contain the test slave 101 and the network module 102, which is not limited in the embodiment of the present application.
In some embodiments, a user may perform a test operation based on a test tool preset by the test master 106, the test master 106 may respond to the test operation of the user, determine a test instruction, and send the test instruction to the test slave 101 through the network module 102, the test slave 101 may receive the test instruction through the network module 102, and test at least one device under test 104 connected to the test interface 103 based on the test instruction, obtain test information of the at least one device under test 104 connected to the test interface 103, and then send the test information to the test master 106 through the network module 102, and the test master 106 may receive the test information, and process and display the test information. Where the test instructions may indicate content to be tested or other relevant information and requirements.
It should be noted that the test host 106 may be a computer device with display and processing functions, such as a notebook computer and a desktop computer, and the device under test 104 may be a terminal that needs to be tested, such as a mobile phone, a tablet computer, and a reader.
In summary, the mobile test device may comprise: the test slave machine is provided with a plurality of test interfaces, and the test interfaces are used for connecting equipment to be tested; the test slave machine and the network module are both arranged in the movable containing shell; the test slave is connected with the network module and used for receiving the test instruction sent by the test host through the network module and acquiring the test information of the equipment to be tested connected with the test interface according to the test instruction; the testing slave is provided with a control module and a network background module, the control module is used for acquiring and controlling equipment information of the equipment to be tested, and the network background module is used for managing the equipment information and sending the equipment information to the testing host based on a preset resource interface. The test slave machine and the network module are arranged in the movable containing shell, the test slave machine can be connected with the equipment to be tested through the test interface, the test slave machine receives the instruction information sent by the test host machine and sends the test information of the equipment to be tested, which is obtained according to the test instruction, to the test host machine, so that the test of the equipment to be tested is completed, the test equipment is relatively independent, the movement and the carrying of the test equipment are convenient, the test equipment can be suitable for a test scene with strong exclusivity to the equipment to be tested, and the test of the equipment to be tested is convenient.
Optionally, as shown in fig. 1, the test apparatus further includes: at least one test rack 107, the test rack 107 being disposed in the movable housing 105 for carrying the device under test 104.
The test rack 107 may be directly placed in the movable housing 105, that is, not connected to the movable housing 105, or the test rack 107 may be connected to the inner wall of the movable housing 105 and placed in the movable housing 105, and the connection mode may be fixed connection or movable connection. For example, when the connection is a fixed connection, the connection mode can be welding or bolt connection; when the movable connection is adopted, the connection mode can be clamping connection or connection through elements such as a rotating shaft and the like.
In addition, at least one test rack 107 may be placed in the same horizontal plane in the movable housing case 105, and when the number of test racks 107 is plural, the plurality of test racks 107 may be placed in layers, that is, the plurality of test racks 107 may be placed in horizontal planes of different heights in the movable housing case. Or a plurality of test racks can be arranged in a row on the same horizontal plane, which is not limited herein.
Of course, the at least one test rack 107 may be placed in the movable housing 105 in other manners, which is not particularly limited in the embodiments of the present application.
Fig. 3 is a schematic structural diagram of a mobile testing device according to an embodiment of the present invention, as shown in fig. 3, a testing jig 107 is disposed in a movable housing 105, and at least one device under test 104 can be placed on the testing jig 107.
In summary, the test frame 107 is disposed in the mobile test device, so that the placement of the multiple devices under test 104 is facilitated, the environment where the devices under test 104 are located is more stable, the multiple test frames 107 are placed in a layered manner, and the number of the devices under test 104 that can be placed can be further increased.
Wherein, the testing jig 107 may be provided with a groove or a rail to allow the device under test 104 to be stably placed therein.
Alternatively, the test rack 107 is foldably connected to the inner wall of the movable accommodation case 105 through a movable shaft.
In practical applications, the test rack 107 is connected to the inner wall of the movable housing 105 through a movable shaft, so that the position of the test rack 107 can be flexibly adjusted through adjustment. In addition, when the test rack 107 is extended to place the device under test 104, the test rack 107 can be folded when the test rack 107 is idle, so that the occupied space in the movable accommodating shell can be reduced.
Alternatively, as shown in fig. 1, the movable housing case 105 may include: a first case 1051 and a second case 1052 that are engaged with each other.
The first box 1051 and the second box 1052 are fastened to form an accommodating space, and the test slave 101, the network module 102 and the device under test 104 may be disposed in the accommodating space, and specifically may be located in the first box 1051 or the second box 1052, which is not limited herein.
Optionally, the first enclosure 1051 is rotatably coupled to the second enclosure 1052. The first box 1051 can be provided with a first lock catch, the second box 1052 can be provided with a second lock catch, and after the first box 1051 and the second box 1052 are buckled, the first lock catch and the second lock catch are matched and locked, so that the first box 1051 and the second box 1052 can be fastened and connected.
It should be noted that, a portable portion may be further disposed on the first casing 1051 and/or the second casing 1052, so that the user can carry the mobile testing apparatus, and the user experience is improved.
In addition, the inner walls of the first box 1051 and the second box 1052 can be provided with buffer materials, so that the test slave 101, the network module 102 and the device under test 104 in the movable accommodating shell 105 can be protected, and damage to devices in the movable accommodating shell 105 due to impact, bumping or vibration can be avoided.
It should be noted that the test slave 101 and the network module 102 may be disposed between the test rack 107 and the bottom of the second enclosure 1052 in fig. 1, and the test slave 101 may also be disposed in the first enclosure 1051, which is not particularly limited in this embodiment of the present application.
Optionally, as shown in fig. 2, the test apparatus further includes: a display 108.
The display 108 may be a micro display, the display 108 is connected to the test slave 101, and the test slave 101 is further configured to send information to be displayed to the display.
In addition, the test slave 101 may control the display 108 to display information to be displayed in a serial port communication manner, the test slave 101 is connected to the display 108 through a preset patch cord, the preset patch cord may be a patch cord for switching a serial port to a USB (universal serial Bus) interface, a serial port may be connected to the test slave 101, and a USB interface may be connected to the display 108.
In some embodiments, when the test slave 101 detects that the display is inserted, the test slave 101 may send an IP (Internet Protocol Address) Address of the test slave 101 to the display, and the display may receive the IP Address and display the IP Address. When a user tests the device to be tested 104 through the test host 106 and the mobile test device, the user may input the IP address at the test host 106 according to the IP address displayed by the display 108, so that the test host 106 tests the device to be tested 104 connected to the test interface 103 in the mobile device through the test instruction sent to the test slave 101 by the network module 102 based on the IP address.
It should be noted that, different mobile test devices have identification information and name information, and the information to be displayed may further include: identification information and name information of the mobile test device, and the like. Of course, the user can also set the information to be displayed according to actual requirements.
In summary, the display displays the information to be displayed, so that the user can test the device under test 104 connected to the mobile test device after testing through the test host 106, and can distinguish different mobile test devices, thereby improving user experience.
Alternatively, the display is provided on the movable housing case 105; alternatively, the display is disposed outside the movable housing 105.
For example, the display may be adhered to the inner wall or the outer wall of the movable housing 105, the display may be embedded in the inner wall or the outer wall of the movable housing 105, or the display may be directly placed in the movable housing 105.
Similarly, when the display is disposed outside the movable housing 105, that is, the display is used as an independent device, the display may be adhered to the outer wall of the movable housing 105, or embedded in the outer wall of the movable housing 105, or the outer wall of the movable housing 105 is provided with a mounting groove or a limiting device for the display, so that the display can be fixed by the movable housing 105 during carrying without carrying. Accordingly, the movable receiving case 105 may be provided with a wiring hole through which a pre-set patch cord is passed to connect the test slave 101 with the display.
In summary, the display is disposed on the movable housing 105; alternatively, the display is disposed outside the movable housing 105, so that the display can be disposed in a more flexible manner.
Optionally, fig. 4 is a schematic diagram of a connection structure between the test slave 101 and the test interface 103 according to an embodiment of the present invention, as shown in fig. 4, the test slave 101 is connected to the device under test 104 through the test interface 103, and the test interface 103 may include: relay 1031, USB hub 1032.
The USB hub 1032 includes a power terminal 1032a, a data terminal 1032b, and a plurality of output terminals 1032 c; the test slaves 101 are connected with a data terminal and a relay, the relay is connected with a power supply terminal, each output terminal is connected with the power supply terminal and the data terminal, and the output terminals are used for being connected with the equipment to be tested 104.
In this embodiment, the relay is a strong current switch, the USB Hub 1032 may be referred to as a USB Hub, the USB Hub may be controlled to be powered on or powered off by the relay, and when the USB Hub is controlled to be powered on by the relay, the test slave 101 may send a test instruction to at least one device under test 104 connected to the output terminal of the USB Hub through the data terminal of the USB Hub.
Optionally, as shown in fig. 2, the test apparatus may further include: a power supply module 109;
the power supply module is connected to the test slave 101 and is also used for being connected to the device under test 104.
It should be noted that the power supply module may also be disposed in the movable housing 105 to independently supply power to the test slave 101 and the device under test 104. The power supply module may be a battery, or may also be a power interface, and is connected to the commercial power through the power interface to supply power to the test slave 101 and the device under test 104.
Optionally, the test slave 101 is configured to receive, through the network module 102, a display instruction sent by the test master 106; real-time picture information of the equipment to be tested 104 connected with the test interface 103 is acquired in real time according to the display instruction; and sends real-time visual information to the test host 106 through the network module 102.
Wherein the number of outputs may be greater than or equal to the number of devices under test 104.
In another possible implementation, a user may select a real-time display button, the test master 106 generates a display instruction according to a selection operation of the user, and sends the display instruction to the test slave 101 through the network module 102, and the test slave 101 may receive the display instruction through the network module 102 and obtain real-time image information of the device under test 104 connected to the test interface 103 in real time according to the display instruction; the real-time visual information is then sent to the test host 106 through the network module 102.
Accordingly, the test host 106 may display the real-time image information, and a user may operate the real-time image to implement the operation on the device under test 104.
To sum up, the test slave 101 sends the real-time image information to the test master 106 through the network module 102, the test master 106 can display the real-time image information, and the user can operate the real-time image information, so that the control mode of the device under test 104 can be more flexible.
Optionally, fig. 5 is a schematic structural diagram of a mobile test device according to an embodiment of the present invention, and as shown in fig. 5, a network backend module 1011, a control module 1012 and a database 1013 may be deployed on a test slave 101. The network background module 1011, the control module 1012 and the database 1013 are communicatively connected. The database 1013 may be configured to store test instructions and test information, the control module 1012 is configured to obtain and control device information of the device under test 104, and the network background module 1011 is configured to manage the device information and send the device information to the test host 106 based on a preset resource interface.
It should be noted that the os of the test slave 101 is a default os, for example, the default os may be any one of a windows (windows operating) system, a Mac (apple computer) system, and a Linux system. The network background module 1011 and the control module 1012 can be deployed on the test slave 101 by using docker (an open source application container engine) containerization technology.
Fig. 6 is a schematic flowchart of a testing method according to an embodiment of the present invention, where the testing method is applied to a test slave in the mobile testing apparatus shown in any one of fig. 1 to 5.
As shown in fig. 6, the method may include:
s101, receiving a test instruction sent by a test host through a network module.
In some embodiments, the test host may be installed with a test tool, the test host may show a test interface of the test tool to a user, the user may perform a test operation based on the test interface, the test host may generate a test instruction according to the test operation of the user, and then the test host may send the test instruction to the network background module of the test slave.
Correspondingly, the network background module of the test slave receives the test instruction through the network module. The test instruction may include: identification information and test operation of the device to be tested.
It should be noted that, the information of the devices to be tested connected to the test interface of the mobile device may be displayed on the test interface, and the user may select a plurality of devices to be tested and click the corresponding function button to control the plurality of devices to be tested.
In addition, the test tool can generate a test script (i.e. the operation steps of the device to be tested are solidified into program codes), and the device to be tested can be directly operated according to the logic of the test script by running the script. In addition, the user can also directly run a self-defined task process on the user computer, and the control on the equipment to be tested is completed in the task process.
And S102, acquiring test information of the equipment to be tested connected with the test interface according to the test instruction.
In this embodiment of the application, the network background module of the test slave sends the test information to the control module of the test slave, and the control module of the test slave may determine at least one device to be tested according to the identifier of the at least one device to be tested in the test instruction, and control the at least one device to be tested to perform a corresponding operation according to the test instruction, so as to obtain the test information of the at least one device to be tested connected to the test interface.
And S103, sending test information to the test host through the network module.
In a possible implementation manner, the control module of the test slave may send the test information to the network back-end module of the test slave, the network back-end module of the test slave may receive the test information and send the test information to the test host through the network module, and the test host may receive the test information and process or display the test information.
It should be noted that the above-mentioned method is based on the mobile testing device described in any one of fig. 1 to fig. 5, so the technical effect achieved by the above-mentioned method is similar to the technical effect brought by the above-mentioned mobile testing device, and is not described here again. In addition, a test tool is installed on the test host, and a user can test the equipment to be tested connected with the test interface in the mobile test equipment by operating the test tool, so that the test of the equipment to be tested in a specific scene is facilitated, and the user experience is improved.
Optionally, the test information includes: testing time information, state information and identification information of the equipment to be tested and operation information.
In the embodiment of the application, the test host can directly display the test time information, the state information and the identification information of the device to be tested and the operation information to a user, and the test host can also count and process the test time information, the state information and the identification information of the device to be tested and the operation information to generate a test report and display the test report to the user.
Optionally, before receiving the test instruction sent by the test host through the network module, the method further includes:
sending device information of the mobile test device to the test host, wherein the device information comprises: and testing the IP address of the slave and the attribute information of the equipment to be tested connected with the test interface.
The attribute information of the device under test may include: identification information, memory information, CPU (central processing unit) information, a system version based, etc.
In some embodiments, a resource interface is preset in the network background module of the test slave, after the test host determines the IP address of the test slave, the test host may access the device information of the network background module, and the network background module may send the device information to the test host through the preset resource interface.
Correspondingly, the test host can display the equipment information to the user through the test tool according to the equipment information, so that the user can complete batch control on the equipment to be tested by selecting the equipment information and the function buttons; the user can also define a test script for the equipment to be tested based on the equipment information displayed by the test tool so that the equipment to be tested can execute the test script; the user can also complete the corresponding service based on the self-defined process of the test tool.
To sum up, the network background module of the test slave sends the device information of the mobile test device to the test host, so that a user can control the device to be tested in various ways based on the test tool and the device information, the control way of the device to be tested is more flexible, and the user experience is improved.
Optionally, fig. 7 is a schematic flow chart of a testing method provided in the embodiment of the present invention, and as shown in fig. 7, the method may further include:
s201, receiving a display instruction sent by a test host through a network module.
The test interface of the test tool displayed by the test host machine can comprise a key connection device to be tested picture button, a user can select at least one device to be tested and the key connection device to be tested picture button, and the test host machine can generate a display instruction according to the operation of the user and send the display instruction to the test slave machine.
Correspondingly, the network background module of the test slave can receive the display instruction through the network module.
S202, acquiring real-time picture information of the equipment to be tested connected with the test interface according to the display instruction.
The display instruction comprises an identifier of at least one device to be tested.
In this embodiment of the application, the network background module of the test slave sends the display instruction to the control module of the test slave, and the control module of the test slave may determine at least one device to be tested according to the identifier of the at least one device to be tested in the display instruction and obtain real-time image information of the at least one device to be tested connected to the test interface.
And S203, sending the real-time picture information to the test host through the network module.
It should be noted that the control module of the test slave may send the real-time image information of the at least one device under test to the network back-end module of the test slave, and the network back-end module of the test slave may receive the real-time image information of the at least one device under test and send the real-time image information of the at least one device under test to the test host through the network module.
Correspondingly, the test host can display the real-time picture information of the at least one device to be tested, and a user can operate the real-time picture to realize the operation of the corresponding device to be tested.
Optionally, an embodiment of the present invention further provides a test system, including a plurality of mobile test devices as described in any one of fig. 1 to fig. 4, where one mobile test device is configured as a master test device, and at least one mobile test device is configured as a slave test device.
The main test equipment is in communication connection with the test host through a network module of the main test equipment; and each slave test device is in communication connection with the master test device through a respective network module.
It should be noted that, the connection mode between each slave test device and the master test device through the respective network module may be: a wireless connection or a wired connection.
In some real-time modes, the main test device can start the network background module and the control module simultaneously in a starting configuration mode, and the main test device can also start the network background module and the control module simultaneously according to a preset first configuration file.
Similarly, the main test device may only start the control module in a power-on configuration manner, and the main test device may also only start the control module according to a preset second configuration file.
Fig. 8 is a schematic diagram of a communication connection of a test slave in a test system according to an embodiment of the present invention, as shown in fig. 8, including: the test slave of the plurality of slave test devices comprises a test slave of a slave test device A, a test slave of a slave test device B, a test slave of a slave test device C and a test slave of a slave test device D. The test slave of the master test device and the test slave of the plurality of slave test devices may be in the same local area network. A control module and a network background are deployed on a test slave of the main test device, and a control module is deployed on the slave test device. Fig. 8 shows only a case where the test slave of the master test apparatus is communicatively connected to the test slaves of the 4 slave test apparatuses, it should be understood that fig. 8 is only an example, and in the embodiment of the present invention, the number of test slaves of the slave test apparatuses to which the test slave of the master test apparatus is communicatively connected is not specifically limited.
In some real-time modes, a network background module of a test slave of the main test device can receive a test instruction of the test master through the network module; the control module of the test slave of the master test device may obtain the test instruction, determine at least one slave test device according to the test instruction, and send the test instruction to the control module of the test slave of the at least one slave test device, where the control module of the test slave of the at least one slave test device may receive the test instruction and control the corresponding device to be tested to perform corresponding operations according to the test instruction.
It should be noted that the network background module may support a cluster state page, a device to be tested, a test slave detail page, a batch maintenance page, a system management page, a cloud real machine page, and a preset resource interface. The network background module is communicated with the database and the file storage test slave machine, and can acquire files from the file storage test slave machine or store the files in the file storage test slave machine. The network background module of the test slave of the master test device may perform RPC (remote procedure call) on the slave test device, and the control module of the test slave of the slave test device may also send a message queue to the network background module of the test slave of the master test device.
To sum up, the test system provided by the embodiment of the present application includes a master test device and at least 1 slave test device, where the master test device is in communication connection with a test host through a network module of the master test device; each slave test device is in communication connection with the master test device through a respective network module, so that the unified use of a plurality of test devices is realized, and the device to be tested in a plurality of mobile test devices can be controlled through one test host.
Fig. 9 is a schematic flowchart of a testing method according to an embodiment of the present invention, and as shown in fig. 9, the method may include:
s301, the test slave machine respectively obtains the device identification and the device state of the device to be tested, and the device state comprises an online state or an offline state.
Each test slave can mount at least one device to be tested, and the test slave can perform related debugging, testing and the like on the device to be tested. The device identifier may be a unique string for each device, may correspond to a device serial number of the device to be tested, or may be an identification code defined by a user, and the application is not limited herein.
The device state can be obtained in different modes according to different types (for example, the device state can be obtained according to operating systems) of the device to be tested, for example, for a device waiting for a mobile phone, a tablet and a simulator of an Android system, the device state can be obtained through an Android Debug Bridge (adb) instruction, wherein the adb is a command line tool which can be used for operating the mobile phone device or the simulator; for the mobile phone, the tablet, the simulator waiting equipment of the iOS system, the acquisition can be performed through the system service protocol, and the acquisition mode can be flexibly selected according to the actual application scenario, which is not limited herein.
S302, the test slave acquires the equipment information of the equipment to be tested with the equipment state being in an online state according to the equipment identification and the equipment state.
Wherein, the device information may include, but is not limited to, a device identifier, a device operating system type, a device model, a device manufacturer, a device memory space (RAM), a device memory space (ROM), a device CPU model, a device GPU model, a device OpenGL rendering engine version, a device CPU dominant frequency, a device CPU core number, a device CPU architecture, a device width (pixel count), a device height (pixel count), a device network card address, a device Software Development Kit (SDK) version, a device operating system version number, a device connected wireless network name, a device network IP, a device network DNS setting, a device remaining memory space, a device remaining power, a device battery health status, a device operator, and other data, and may include one or more of the above combinations according to the type and application scenario of the device to be tested, the present application is not limited thereto.
Certainly, the obtaining mode of the device information may be different according to the type of the device to be tested, for example, for a mobile phone, a tablet, a simulator waiting device of an Android system, the device information may be obtained through an adb instruction, or corresponding device information may be obtained from an application program in the Android system; for the mobile phone, the tablet and the simulator waiting equipment of the iOS system, data can be acquired through a system service protocol, or corresponding equipment information can be acquired from an application program in the iOS system.
Optionally, for the obtaining steps of S301 and S302, the test slave may respectively start a cyclic monitoring program of the device status and the device information to obtain, where the test slave may continuously monitor the device to be tested mounted on the test slave through the cyclic monitoring program of the device status, that is, may continuously monitor the online device to be tested, and then the test slave may cache the corresponding device identifier and send the device identifier to the upper test host, and the test host may determine whether a certain device to be tested is online according to the device identifier; the test slave machine can acquire the equipment information of the equipment to be tested with the equipment state being in an online state based on the cached equipment identification through the equipment information circulation monitoring program, and then the test slave machine can send the equipment information of the equipment to be tested to the upper-layer test host machine, so that the equipment state and the equipment information of the equipment to be tested can be acquired separately, and the performance consumption of the test slave machine in the mobile test equipment can be reduced.
In addition, it should be noted that, by applying the embodiment of the present application, it is also possible to avoid that the device state is refreshed due to the device information acquisition failure.
S303, the test slave machine sends the equipment state and the equipment information of the equipment to be tested to the test host machine respectively.
Optionally, the test slave may package the acquired device state and device information of the device to be tested into a JS Object Notation (JSON) format, and send the JSON format to the test host, so that the test host may determine whether a certain device to be tested is online according to the device identifier, the device state, and the device information sent by the test slave, and display a related test interface, thereby facilitating a user to perform a test. JSON is a lightweight data exchange format.
It should be noted that, if a plurality of devices to be tested are mounted on the test slave, each device to be tested can be sequentially reused for a plurality of devices to be tested according to the foregoing method, which is not described herein again.
Of course, when the test slave sends the device state and the device information of the device to be tested to the test host, the test slave may also carry the corresponding device identifier and the slave identifier of the test slave to which the device to be tested belongs. In addition, the time for sending the device state and the device information from the test slave to the test master is not limited in the application, and the device state and the device information may be sent after being obtained, or the device state and the device information may be sent in a combined manner.
To sum up, the test method provided by the embodiment of the present application obtains the device identifier and the device status of the device to be tested, where the device status includes an online status or an offline status; acquiring equipment information of the equipment to be tested with the equipment state being in an online state according to the equipment identification and the equipment state; the equipment state and the equipment information of the equipment to be tested are sent to the test host, so that the equipment state and the equipment information of the equipment to be tested can be acquired separately, information redundancy can be avoided, and the performance consumption of the test slave in the mobile test equipment is reduced.
Optionally, the process of S302 may further include: the test slave generates an equipment online list according to the equipment identification and the equipment state of the equipment to be tested; and acquiring the equipment information of the equipment to be tested with the equipment state being in an online state according to the equipment online list.
The device online list may include device identification, online time, online duration, online frequency, and other relevant information of at least one device to be tested that is currently online (i.e., connected normally), which is not limited herein. The test slave can detect the equipment state of each equipment to be tested through a preset online detection circulating logic, so that when the equipment state of each equipment to be tested is obtained, an equipment online list can be generated, and the equipment information of the equipment to be tested corresponding to the equipment identification is obtained according to the equipment identification recorded in the equipment online list.
Optionally, when the test slave performs the device state detection on the mounted device to be tested according to the preset online detection logic each time, a corresponding device online list may be generated according to the detection result, so that when the test slave receives a relevant control instruction (such as restart, shutdown, mute, and the like) which is sent by the test host and carries the device identifier, the test slave may search whether the device to be tested corresponding to the device identifier carried in the instruction is online according to the device online list, and if the device to be tested is online, the execution success may be returned; if the operation is not on-line or the operation is unsuccessful, operation failure and failure detailed information (equipment serial number, on-line state, success or failure of operation execution) can be returned, so that a user can conveniently check the reason of the operation failure. Of course, the test slave can also send the device online list to the test host, so that the test host can determine whether a certain device to be tested is online based on the device online list, and then can send a corresponding device control instruction for the online device to be tested, thereby reducing the performance consumption of the test host.
Fig. 10 is a schematic flowchart of a testing method according to an embodiment of the present invention, as shown in fig. 10, the test slave may also respond to the call of the upper test master to execute a corresponding operation on the mounted detection device object, which may specifically refer to the following processes, and the method may further include:
s401, the test slave machine receives the equipment control instruction which is sent by the test host machine and carries the equipment identification.
During specific implementation, the test slave can start related monitoring services in the test process to monitor the device control instruction sent by the test host. The listening service may be implemented based on Remote Procedure Call (RPC), but not limited thereto, and may be flexibly selected according to an actual application scenario. Of course, it should be noted that the device control instruction may include: the device identification command includes one or more device identifications, identifications of test slaves to which the one or more device identifications belong, and device control commands (for example, control commands such as shutdown, mute, and screen lock), so that according to the device identification command, the test slaves can determine corresponding devices to be tested and operations to be executed.
And S402, the test slave machine controls the equipment to be tested corresponding to the equipment identification to execute corresponding operation according to the equipment control instruction.
After receiving the device control instruction, the test slave may control the corresponding device to execute a corresponding operation according to the device control instruction. For example, the device with the device identifier 1 may be controlled to shut down, and the device with the device identifier 2 may be controlled to lock the screen, but the disclosure is not limited thereto.
Fig. 11 is a schematic flowchart of a testing method according to an embodiment of the present invention, and as shown in fig. 11, the step S402 may include:
s501, the test slave determines whether the equipment state of the equipment to be tested corresponding to the equipment identification is an online state.
It should be noted that, based on the description of the foregoing embodiment, if the device online list is generated, the device identifier may be searched in the device online list according to the device identifier in the device control instruction, if the device identifier is found, it may be determined whether the device state of the device to be tested corresponding to the device identifier is an online state, and if the device state is not found, it may be determined that the device state is an offline state.
And S502, if so, controlling the equipment to be tested corresponding to the equipment identification to execute corresponding control operation by the test slave according to the equipment control instruction and the equipment state.
When the device to be tested is determined to be in the online state, the device to be tested corresponding to the identifier of the device to be tested may be controlled to execute corresponding control operations, where the control operations may include, but are not limited to, shutdown, restart, screen lock, lighting, camera opening, volume up, volume down, mute, text input, and the like. By applying the embodiment of the application, the on-line equipment to be tested can be quickly controlled, so that the test is more convenient.
In some embodiments, the device control instructions include at least one of: and the power-on instruction, the power-off instruction and the quick operation instruction of the equipment to be tested.
The shortcut operation corresponding to the shortcut operation instruction may include the control operation listed above, and certainly may also include some other shortcut operations, for example, opening an application program, opening a web page, and the like.
Fig. 12 is a schematic flowchart of a testing method according to an embodiment of the present invention, as shown in fig. 12. In some embodiments, in order to restore the system settings of the device under test after being used by the user to the initial access, the method further includes:
s601, the testing slave machine obtains initial system setting information when the device to be tested is on line for the first time.
The initial system device information may include, but is not limited to: the device to be tested is firstly mounted on an application program installation list, system setting and the like when the slave machine is tested, and the initial system setting information is obtained, so that the device to be tested after being tested and debugged by a user can be restored to an application installation state and a system setting state when the device to be tested is initially accessed, and the convenient management of the device to be tested is realized.
Optionally, the system setting of the device under test at the time of initial access may be referred to as the following process, as shown in fig. 12, where the method further includes:
and S602, the test slave machine receives a setting recovery instruction which is sent by the test host machine and carries the equipment identification.
And S603, the test slave recovers the system setting of the device to be tested corresponding to the device identification according to the setting recovery instruction and the initial system setting information.
The test slave can receive the setting recovery instruction sent by the test host through the rpc service, and then according to the setting recovery instruction and the initial system setting information, the current system equipment of the equipment to be tested can be recovered to the initial system setting, so that the recovery operation of the system setting is realized. Of course, it should be noted that the device under test identifier carried in the setting recovery instruction may include one or more identifiers, and the application is not limited herein.
For example, if a user installs some applications and modifies system settings when using a certain device under test, the device under test can be restored to the application installation state and the system setting state (deleting redundant applications and restoring system settings) when initially accessing according to the setting restoration instruction, and it can be ensured that the device under test is still in the initial system settings when being used next time.
Optionally, in order to enable the administrator to find the target device from at least one device under test mounted by the test slave during the routine maintenance of the device under test, the method further includes:
the test slave machine receives a preset information display instruction which is sent by the test host machine and carries an equipment identifier; and controlling the interface of the equipment to be tested corresponding to the equipment identification to display the preset information according to the preset information display instruction.
The preset information includes at least one of: equipment identification, equipment model and equipment manufacturer of the equipment to be tested.
The preset information display instruction is used for controlling an interface of the device to be tested corresponding to the identifier of the device to be tested to display preset information, and the preset information may include, in addition to the above-mentioned content, other preset information, such as a device serial number of the device to be tested, temperature information, and user-defined information (such as an asset number) of the device to be tested, and the application is not limited herein. The temperature of the equipment can be obtained through a temperature sensor connected with the testing slave, and the temperature testing method and the equipment are not limited in the application and can be flexibly adjusted according to actual application scenes.
By applying the embodiment of the application, the interface of the equipment to be tested is controlled to display the preset information, so that when an administrator performs daily maintenance management on the equipment to be tested, if part of maintenance operation needs to be performed manually, the administrator can quickly find the corresponding equipment to be maintained through the display information on the interface of the equipment to be tested, and the maintenance management efficiency is improved.
In order to monitor physical environmental parameters of a device to be tested in real time, such as environmental parameters of temperature, humidity, longitude and latitude, altitude, and the like, the mobile testing device further includes a sensor, and the sensor is connected with a testing slave machine, and the optional method further includes: the test slave machine acquires the environmental parameters acquired by the sensor; and sending the environmental parameters collected by the sensor to the test host.
The test slave may include a corresponding data acquisition port, such as a serial port, a USB interface, and the like, and the sensor may include but is not limited to: temperature sensors, humidity sensors, position sensors, altitude sensors, etc., and the present application is not limited thereto. The sensor can be connected to the test slave machine through a corresponding data acquisition port, and can acquire the environmental parameters through the hardware drive of the sensor when acquiring the environmental parameters specifically so as to acquire the relevant environmental parameters, such as temperature, humidity, longitude and latitude, height and the like.
Of course, it should be noted that the number of the sensors is not limited herein, and according to an actual application scenario, one testing slave may include a plurality of sensors, and each device under test may correspond to one or more types, and the application is not limited herein.
Optionally, after the environment parameter is obtained, the environment parameter may be combined with the device information and sent to the test host, and the test host displays the corresponding test information.
Fig. 13 is a flowchart of a test management method according to an embodiment of the present invention, and as shown in fig. 13, in some embodiments, the mobile test device may also be placed in a cabinet, where the cabinet may be referred to as a slave cabinet, and at least one mobile test device may be arranged in the slave cabinet, where one mobile test device includes one test slave and corresponding devices to be tested, that is, the slave cabinet may have at least one test slave and at least one device to be tested connected to each test slave. As shown in fig. 13, the test management method may include:
s701, the test host receives device information of the device to be tested sent by the test slave and mounting information of the device to be tested in a cabinet of the slave, wherein the mounting information comprises: the equipment to be tested comprises the identifier of the cabinet of the slave machine to which the equipment to be tested belongs, the equipment identifier of the equipment to be tested and the mounting position of the equipment to be tested in the cabinet of the slave machine.
Wherein, the device information of the device under test may include: the device state of the device to be tested, the attribute information of the device to be tested and other device detail information, wherein the device state of the device to be tested can represent whether the device to be tested is mounted on the test slave or not, namely whether the device to be tested is on line or not; the attribute information of the device under test may represent relevant attributes of the device under test, including but not limited to a brand, a model, a serial number, an operating system version, a name of a connected wireless network, an IP address, a battery temperature, a device memory (RAM), a residual memory/total memory (ROM), and the like, but not limited thereto. The identity of the slave cabinet may be the number of the slave cabinet; the device identifier of the device to be tested may be a production serial number of the device to be tested, for example, may correspond to a character string; the mounting position of the device to be tested in the slave cabinet can represent the physical placement position of the device to be tested in the slave cabinet, and the physical placement position can be represented by horizontal row numbers, vertical column numbers and the like of the slave cabinet.
Optionally, the mounting position may be represented by a three-dimensional coordinate (x, y, z), and an abscissa x may represent an identifier of a slave cabinet to which the device to be tested belongs; the ordinate y can represent the horizontal serial number of the equipment to be tested in the slave machine cabinet; the vertical coordinate z may represent the vertical column number of the device under test in the slave cabinet. Based on the thought, each test slave node can be specially named: the spare field, the cabinet number and the horizontal row number (the number is counted from 0), so that when the related test interface of the equipment is rendered according to the node name, the equipment to be tested in the test interface is rendered in the correct slave cabinet, and the position sequence of the horizontal row of the equipment to be tested in the slave cabinet is correct.
Further, based on the above naming, the following naming can be performed for each node of the device under test: the spare field, the cabinet number, the horizontal row number and the vertical row number enable the left and right sequence of the equipment to be tested in the slave cabinet to be also aligned in the corresponding horizontal row on the basis that the position sequence of the horizontal row of the equipment to be tested in the slave cabinet is correct, and enable the equipment to be tested in the slave cabinet in the test interface to be corresponding to the arrangement position of the equipment in the real cabinet when the related test interface of the equipment is rendered according to the node name.
Of course, the present application is not limited to the communication method between the test master and the test slave, and may perform communication in the form of a message queue. For example, the test slave may encapsulate the node name and a Remote Procedure Call (RPC) service address of the node into a message queue and send the message queue to the test host.
S702, displaying a first interface by the test host according to the equipment information and the mounting information; the first interface includes: the equipment comprises an identifier of a slave cabinet, a cabinet graph used for representing the slave cabinet and at least one icon of equipment to be tested used for representing the mounting position of the equipment to be tested in the slave cabinet.
The device information can reflect the detail information of the device, and the mounting information can reflect the mounting position of the device to be tested in the slave cabinet, so that the corresponding icon of the device to be tested can be displayed on the first interface according to the device information of each device to be tested, and the corresponding identifier of the slave cabinet, the cabinet graph of the slave cabinet, and each device to be tested positioned in the correct slave cabinet, the correct horizontal row and the vertical row can be displayed on the first interface according to the mounting information of the device to be tested in the slave cabinet, so that the display position of the device to be tested in the slave cabinet in the first interface can correspond to the position of the device to be tested in the real slave cabinet, cluster management personnel can quickly position the placement position of the device to be tested in the real slave cabinet based on the display position in the first interface, and the management efficiency is improved. Of course, the number of the slave racks in the first interface is not limited in this application, and one or more slave racks may be included according to an actual application scenario, and each slave rack may correspond to an identifier, so that users can distinguish the slave racks.
To sum up, in the test management method provided in the embodiment of the present application, an identifier of a slave cabinet to which a device to be tested belongs, an equipment identifier of the device to be tested, and a mounting position of the device to be tested in the slave cabinet; displaying a first interface according to the equipment information and the mounting information, wherein the first interface comprises: the method enables the display position of the equipment to be tested in the first interface in the slave machine cabinet to correspond to the position of the real slave machine cabinet, enables cluster management personnel to quickly position the equipment to be tested in the real slave machine cabinet based on the display position, improves management efficiency and also improves user experience in a test process.
Optionally, the method further includes: the test host responds to the touch operation aiming at the at least one device to be tested on the first interface, and the test slave controls the at least one device to be tested to execute the control operation corresponding to the touch operation.
The first interface can also execute other touch operations on the online device to be tested, the touch operations include but are not limited to shutdown, restart, mute, screen lock, screen lighting, screen removal, detail checking and the like, and in response to the touch operations, the test host can communicate with the test slave through the RPC and control the device to be tested to execute corresponding operations through the test slave.
Optionally, in order to facilitate daily maintenance of the device to be tested, the method further includes: and the test host responds to the trigger operation of the equipment maintenance interface and displays the equipment maintenance interface.
The display position of the equipment to be tested can be adjusted and the equipment can be controlled quickly through the equipment maintenance interface, for example, related operations such as screen control, sound size control, on-off control and the like are controlled, and the method and the device are not limited herein.
In the actual test process, if a tester adjusts the placement position of any device under test in the slave rack, the display position of the device under test can be correspondingly adjusted in the device maintenance interface, and the adjustment mode includes, but is not limited to: the display position of the device to be tested is adjusted on the device maintenance interface, and then the adjustment may be synchronized to other interfaces, for example, the first interface, so that the synchronous update of the information may be ensured.
Optionally, the adjustment method may be referred to in the following relevant portions, and the method further includes:
and the test host responds to the position adjusting instruction of the equipment to be tested on the equipment maintenance interface and adjusts the display positions of the icons of the equipment to be tested on the equipment maintenance interface and the first interface.
The position adjusting instruction can be operations such as dragging and sliding of a certain device to be tested on the device maintenance interface, the test host responds to the position adjusting instruction, the display position of the icon of the device to be tested on the device maintenance interface can be adjusted, the display position of the device to be tested is reset, when the placement position of the device to be tested in the real slave cabinet changes, the display position of the device to be tested in the slave cabinet in the device maintenance interface can still be guaranteed to correspond to the placement position of the device to be tested in the real slave cabinet through the management method provided by the application, and management of cluster management personnel is facilitated.
It should be noted that, the test host records the position of the device to be tested in the database during each adjustment, so that, after the adjustment, the cabinet rendering in the first interface is also updated in real time, and it can be ensured that the display position of the device to be tested in the first interface in the slave cabinet corresponds to the placement position of the device to be tested in the real slave cabinet.
Fig. 14 is a schematic view of an equipment maintenance interface according to an embodiment of the present application. For example, the administrator in the equipment maintenance interface may switch the display interfaces of different slave racks, for example, when the current display position of a certain device to be tested in the slave rack No. 0 needs to be adjusted, the administrator may switch to the display interface of the slave rack No. 0, as shown in fig. 14, "airlab-mini-0-00" refers to row 1 of the slave rack No. 0. Optionally, in the row, a manager may drag a device to be tested from a current position (for example, column 5) to a target position (for example, column 3) for display in a dragging manner, so as to realize exchange of positions of the device to be tested, thereby quickly realizing adjustment of the left and right positions of the device to be tested.
Optionally, the method further includes: the test host sends a control instruction to the test slave in response to the control operation of the device to be tested on the device maintenance interface, where the control instruction may include a device identifier of the device to be tested.
The device maintenance interface can also perform corresponding shortcut control on the device to be tested, and the control modes include but are not limited to "lighting", "muting", "turning down the volume", "turning up the volume", "locking the screen", "shutting down", "restarting", and the like. Of course, it should be noted that, according to an actual application scenario, the power on/off of all the devices to be tested mounted on a certain test slave may also be controlled in units of device cluster units.
Optionally, the device maintenance interface may include at least one shortcut control element such as "mute", "lock screen", "shutdown", "restart", and the like, and when the device maintenance interface controls the device to be tested, the following process may be referred to, for example, a controlled object may be selected in the device maintenance interface in a plurality of manners such as clicking, long pressing, and the like, and then the shortcut control element is clicked to trigger the control operation, so that the test host may send a control instruction to the corresponding test slave through RPC call in response to the control operation, where the control instruction may carry an identifier of the device to be tested, so that the test slave may control the corresponding device to be tested to complete a corresponding operation according to the carried identifier of the device to be tested after receiving the control instruction.
Optionally, the sending, by the test master, a control instruction to the test slave in response to a control operation on the device to be tested on the device maintenance interface includes:
the test host responds to the batch control operation of the equipment to be tested on the equipment maintenance interface and sends batch control instructions to the test slave, wherein the batch control instructions comprise: and the equipment identifications of the plurality of equipment to be tested.
The method includes selecting a plurality of devices to be tested through a screening mode on an equipment maintenance interface, for example, selecting the plurality of devices to be tested for batch operation according to equipment brands, equipment operating systems and the like, or selecting all the devices to be tested in a certain equipment cluster unit or selecting all the devices to be tested in a certain slave cabinet according to a device cluster unit to which the device cluster unit belongs, a slave cabinet to which the device cluster unit belongs and the like to select the devices to be tested in different ranges quickly and flexibly. In addition, after a plurality of devices to be tested for batch operation are determined, for the process of batch control operation, reference may be made to the process of control operation, which is not described herein again.
Optionally, the device information may include at least one of: the device state of the device to be tested, the occupation state of the device to be tested, the attribute information of the device to be tested and the environmental parameters of the device to be tested.
The device state and attribute information of the device to be tested may refer to the related parts described above, and are not described herein again. The occupation state of the equipment to be tested can represent whether the equipment to be tested is occupied or not, if the equipment to be tested is occupied, the occupation state of the equipment to be tested is occupied, otherwise, the equipment to be tested is in an idle state; the environmental parameters of the device to be tested may be used to characterize a testing environment of the device to be tested, including but not limited to temperature, humidity, longitude and latitude, and the like, and may include other device information according to an actual application scenario, which is not limited herein.
After receiving the device information of the device to be tested sent by the test slave, the test master may store the obtained device information in the database, and may subsequently call related data from the database to provide data support for other interfaces (e.g., the first interface and the device maintenance interface).
Fig. 15 is a schematic view of a first interface according to an embodiment of the present disclosure. The application is described by taking a first interface as an example, and the device information such as the device state, the environmental parameters, the attribute information and the like of each device to be tested can be displayed on the first interface; for the environmental parameters, the device temperature is taken as an example for explanation here, and since the device temperature is important for the service life of the device and the performance of the user when using the device, the lowest temperature, the highest temperature, the average temperature and the like of the device to be tested in the slave cabinet can be displayed in a first preset area (for example, the upper left corner) of the first interface, so that a manager can directly check related temperature data, and if the temperature is too high (for example, more than 42 ℃), the corresponding device to be tested can be temporarily stopped (for example, shut down), and the service life of the device can be guaranteed; as shown in fig. 15, for the attribute information, according to a selection condition of the user (for example, when the user mouse is hovering over a certain device under test), device details of the selected device under test may be displayed in a second preset area (for example, a lower left corner) of the first interface, including but not limited to: the brand, model, production serial number, battery temperature, etc. can adjust the content that shows in a flexible way according to the practical application scene, and this application is not restricted here. As shown in fig. 15, optionally, a user may click any device to be tested, optionally, a corresponding selection control may be displayed on the first interface, and through the selection control, the user may select any touch operation such as shutdown, restart, mute, lock a screen, light a screen, take down, view details, and the like, for the device to be tested.
Fig. 16 is a flowchart illustrating another test management method according to an embodiment of the present application. Fig. 17 is a schematic diagram of a device detail interface provided in an embodiment of the present application. Optionally, as shown in fig. 16, the method further includes:
s801, the test host responds to the trigger operation of the equipment detail interface and displays the equipment detail interface, wherein the equipment detail interface comprises equipment information.
Based on the aforementioned acquisition of the device information of the device to be tested, the embodiment of the application may further provide a device detail interface, as shown in fig. 17, the device detail interface may visually display the detailed information of the device to be tested, and the device detail interface may include but is not limited to: the device state, the device operating system, the device brand, the device model, the production serial number, the device manufacturer, the device memory space (ram), the device memory space (rom), the device network card address, the device network IP, the wireless network connection information, the battery temperature, and other information may be included according to the actual application scenario, and the application is not limited herein.
Of course, it should be noted that the device detail interface may also have a screening function, which is convenient for information screening and management of a manager.
S802, the test host responds to a device search instruction input on the device detail interface and displays a corresponding search result, wherein the device search instruction comprises: a keyword of the device information.
The keywords of the device information may include, but are not limited to: the device state and part of the information of the attribute information such as the device operating system, the device brand, the device model, the production serial number and the like can be flexibly set according to the actual application scene, and the application is not limited herein. Of course, it should be noted that the device search instruction may be generated by a filtering operation of the user on the device detail interface, or may be generated by a keyword input by the user in a preset search box.
And S803, the test host responds to the editing operation of the equipment information on the equipment detail interface, and displays the edited equipment detail interface.
The editing operation can be used for adding or deleting extra remarks and deleting equipment items, and various management requirements of management personnel can be met. The current device detail interface can be updated according to the editing operation executed by the user, and the edited device detail interface is displayed, and the corresponding device to be tested is not displayed in the edited device detail interface and the first interface any more.
Optionally, the device state of the device under test includes: the test host displays a first interface according to the equipment information and the mounting information, and comprises the following steps:
the test host acquires the equipment to be tested with the equipment state being an offline state, and distinctively displays the equipment to be tested icon corresponding to the equipment to be tested in the first interface.
After receiving the device state of the device to be tested sent by the test slave, the test host can perform distinctive display on the device state of the device to be tested displayed in the first interface. The on-line display method and the device can realize real-time updating of the state of the device, so that the on-line condition of the device to be tested in each slave cabinet can be clear at a glance, and the on-line display of the device to be tested is extremely clear.
It should be noted that, of course, the test slave may send the device state of the mounted device to be tested at intervals (for example, 5s), and after receiving the device state of the device to be tested, if the device state is an offline state, the test master may update the device state of the device to be tested on the first interface according to a preset time or a preset number of times of receiving. The display state of the device to be tested in the first interface can be adjusted by taking part in the following processes: if the number 1-8 devices to be tested are hung on a certain test slave machine, 8 devices to be tested are all online during initialization, and only 1-7 devices to be tested are online during the subsequent preset times (for example, 10 times) or preset time (for example, 1 minute) of online information transmission, the number 8 devices to be tested are judged to be offline. And if the No. 1-8 devices to be tested are on line in the device state of the device to be tested sent later, judging that the No. 8 devices to be tested are on line. That is, when the display state of the device to be tested on the first interface is updated according to the device state of the device to be tested, the device needs to wait for several times of online message sending (or preset time) to trigger the device to be disconnected, but the device can be triggered to be on-line only by one-time online device state, so that the on-line condition of the device to be tested can be monitored in real time.
Optionally, the method further includes:
and the test host responds to the equipment to be tested of which the screening equipment information meets the preset conditions on the first interface, and displays the equipment information of the equipment to be tested meeting the preset conditions on the first interface.
Of course, it should be noted that the first interface may also have a screening function, for example, the user may screen according to the device information such as the device brand and the device system, and may display the device information of the device to be tested meeting the preset condition in the first interface, which is convenient for the administrator to manage. For a specific screening manner, reference may be made to related contents of the foregoing device detail interface, which is not described herein again.
Fig. 18 is a flowchart illustrating another test management method according to an embodiment of the present application. Optionally, as shown in fig. 18, the method further includes:
s901, responding to the trigger operation of the equipment alarm interface by the test host, and displaying the equipment alarm interface, wherein the equipment alarm interface comprises: the reason of the alarm and the equipment identifier of the equipment to be tested where the alarm occurs.
The equipment alarm interface can display the identification of the equipment to be tested with the alarm prompt and the alarm reason in the test system, so that a manager can know the alarm reason and determine the equipment to be alarmed through the equipment alarm interface, and subsequent fault analysis and further equipment maintenance are facilitated. Among them, the reason for alarm includes but is not limited to: the wireless network connection is abnormal, the remaining space of the device is insufficient, the temperature of the battery of the device is too high, the continuous power-on time of the device is too long, and the environment of the device is abnormal.
The device environment parameters may be obtained by the test slave, where the obtaining mode may be that the test master obtains data through an RPC request, or that the test slave actively pushes the data, and the present application is not limited herein. For example, the test slave may access a corresponding environment acquisition unit, and acquire the device environment parameters through the environment acquisition unit, where the acquired device environment parameters include but are not limited to: the test slave computer can store the environmental parameters of the equipment into a database after acquiring the environmental parameters of the equipment through the RPC request, and can generate a corresponding monitoring curve according to the stored environmental parameters of the equipment subsequently, so that the equipment can be monitored and managed visually. For example, the equipment alert interface may show the temperature and humidity profile for each slave cabinet over a recent period of time (e.g., one week).
Optionally, different preset alarm thresholds may be corresponded according to different alarm reasons, and the device to be tested may be alarmed when the device to be tested satisfies at least one of the following conditions. For example, when the temperature of the battery of the device is greater than a preset temperature (e.g., 33 degrees), or when the continuous power-on time of the device is greater than a preset duration (e.g., 100 hours), or when the remaining space of the device is less than a preset storage threshold (e.g., 10G), the device to be tested may be alarmed, and the identifier of the device to be tested may be displayed on the device alarm interface. In summary, by applying the embodiment of the application, the display mode of the equipment alarm information can be enriched, timely alarm is provided, and the cluster is ensured to be in a good state all the time.
S902, the test host responds to the alarm threshold setting operation on the equipment alarm interface, and displays an alarm equipment list on the equipment alarm interface according to the alarm threshold and the equipment information of the equipment to be tested, wherein the alarm equipment list comprises at least one equipment identifier of the equipment to be tested.
Of course, it should be noted that, according to the actual application scenario, the alarm threshold is also reset in the device alarm interface. Optionally, a corresponding alarm device list may also be displayed on the device alarm interface according to the alarm threshold and the device information of the device to be tested, and the alarm device may be intuitively known through the alarm device list. Of course, it should be noted that the alarm device list may also include other alarm information such as alarm time, alarm frequency, and the like, and the application is not limited herein. In summary, by applying the embodiment of the present application, the alarm threshold of the cluster can be reset according to the actual application scenario, and the alarm requirements under different scenarios can be met.
S903, the test host sends an alarm signal to the test slave in response to the trigger operation of the equipment to be tested in the alarm equipment list on the equipment alarm interface, so that the test slave controls the at least one equipment to be tested to execute preset alarm operation.
Optionally, if the user clicks the identifier of a certain device to be tested in the alarm device list, the test host may respond to the trigger operation and send a corresponding alarm signal to the test slave to which the device to be tested belongs, so that the test slave may control the corresponding device to be tested to execute a preset alarm operation. Optionally, in response to the triggering operation, the current device alarm interface may jump to the first interface, the device maintenance interface, and the like, so that a manager may know the position of the device to be tested through the relevant interface.
In addition, it should be noted that the test host may also send related alarm information in the test system to system management personnel at regular time through a mailbox, a short message, communication software, and the like, so as to remind the system management personnel to process the device abnormality alarm and the environment alarm in the cluster in time, thereby ensuring that the devices to be tested in the cluster always operate in a safe and reliable range and each device to be tested maintains an optimal state.
Fig. 19 is a flowchart illustrating another test management method according to an embodiment of the present application. Optionally, as shown in fig. 19, the method further includes:
s1001, responding to the trigger operation of the equipment real machine interface by the test host, and displaying the equipment real machine interface, wherein the equipment real machine interface comprises: the device identification of the device to be tested, the occupation state of the device to be tested and the attribute information of the device to be tested.
The equipment real machine interface can be used for entering a real machine control interface corresponding to the equipment to be tested, and the operation of the real equipment can be executed on the equipment to be tested through the real machine control interface. For example, when the device to be tested is a mobile phone, the real-device interface of the device may display related attribute information such as an identifier, occupation, a model, a brand, an operating system, a memory, and a resolution of at least one mobile phone in the test system, but not limited thereto.
S1002, the test host responds to the equipment occupation operation of the equipment to be tested on the equipment real machine interface, and displays the real machine control interface of the equipment to be tested, wherein the real machine control interface comprises: the equipment identification of the equipment to be tested and the preset interface of the equipment to be tested.
After entering the device-to-device interface, the occupation state of the device to be tested may be adjusted in the device-to-device interface, for example, if the occupation state of a certain device to be tested is unoccupied (i.e., idle state), the occupation state may be adjusted to the occupation state by the adjustment and enter the device-to-device control interface of the device to be tested, i.e., the device-to-device user interface of the device to be tested, and the device to be tested may be operated by the device-to-be-tested through the device-to-device control interface. The preset interface of the device to be tested may be a main interface of the device to be tested.
Optionally, when the device to be tested is controlled through the real machine control interface, the device to be tested may also be controlled to install the application program, and the following contents may be referred to in the installation process: the test host can transmit and store the application program to be installed into the test slave, and then the application program is installed on the corresponding device to be tested through the control of the test slave.
Optionally, the method further includes: the test host responds to batch occupation operation of the equipment to be tested on the real machine interface of the equipment, the equipment to be tested is switched from an idle state to an occupation state, and the batch application operation comprises equipment identifications of the equipment to be tested.
It should be noted that, in the above-mentioned device real-machine interface, the device to be tested may be screened according to the device identifier, the occupation state, the attribute information (for example, the device brand/model, the operating system), and the like, so as to select the idle device to be tested, after the screening is completed, the screened device to be tested may be occupied in batch, and in response to the batch occupation operation, the device to be tested may be switched from the idle state to the occupation state.
Optionally, after the occupation, the test host may also record the user name of the occupant, and record the occupied device to be tested and the user name of the occupant. Optionally, if a certain device to be tested is set to be in an occupied state, corresponding prompt information may be given on a device-to-device interface.
Of course, it should be noted that the test host may further include other management interfaces, for example, a system management interface, where the system management interface may set user permissions and reset user passwords, and a hypervisor may perform system update.
Wherein, the user authority is divided into 3 grades: common users, managers and super managers, and users in different levels can access different interfaces. The common user can have the access right of the equipment real machine interface; the manager can have the access rights of the first interface, the equipment maintenance interface, the equipment detail interface and the system management interface and the access rights of the equipment resource pool interface; of course, it should be noted that the related management interface may also be presented to the user in the form of a web page, and when the related management interface is presented in the form of a web page, for a super manager, a button for "updating the website version" is additionally displayed on the "system management interface" to implement one-key update of the "web page background logic".
The provision of the device resource pool interface can facilitate users to complete development and test under different scenes. For example, when performing compatibility testing on a device to be tested in some special service scenarios, a large batch of devices to be tested need to be selected to run some automated compatibility testing scripts. In this scenario, the user can apply for the device permission in batch through the device resource pool interface, and perform remote connection of the device.
Optionally, a one-key update implementation of the "website background logic" may be referred to in the following description, where the "website background logic" of the test host may run in a docker container of the test host, and control the test host to update a mirror container where the test host is located. The mechanism is as follows: the testing host can be provided with a paramiko library, the library can realize remote instruction calling on the server, and a website background module corresponding to the webpage background logic can directly acquire the IP address of the testing host, so as to trigger the paramiko library to execute the updating and restarting instruction of the docker container. After the instruction is executed, a new docker container is started, and the new docker container is a latest 'website background module', so that a function of updating a website by one key is realized on a webpage, and meanwhile, a control module function corresponding to the real machine control interface can be updated (docker chemical deployment is also adopted), so that service deployment and maintenance can be completed by a simple instruction, and user operation is simplified.
Furthermore, it should be noted that the management method may further include: and executing a preset task according to a preset time interval. For example, it can be specified that at a specific time, the functional principle can be referred to the following content, and the timing of the operating system is used to trigger and run the corresponding logic; through RPC calling, the device cluster unit is controlled to execute power on/off operation, and all the devices to be tested are executed with operations such as recovery initialization/restart, so that the effective service life of the battery of the devices to be tested can be ensured, and the loss of the devices to be tested is reduced.
Fig. 20 is a schematic view of a device-to-device interface switching method provided in an embodiment of the present application, and as shown in fig. 20, a user may enter the device-to-device interface by clicking a control corresponding to the device-to-device interface in a first interface, so as to facilitate switching by the user.
In summary, the test management method provided by the embodiment of the application can realize daily maintenance and user quick operation of the device cluster, and meanwhile, system maintenance and upgrading are extremely convenient.
Optionally, fig. 21 is a schematic flowchart of a networking method of a test system according to an embodiment of the present invention, and as shown in fig. 21, the method may further include:
s1101, the testing slave of the slave testing equipment sequentially searches whether each testing slave is configured with a sniffing interface or not according to the IP address of each testing slave in the testing system.
The sniffing interface is a software interface, namely an interface written by program codes. When the sniffing interface is preset for the test slave, the test slave can be marked so that other test slaves can identify the test slave. The sniffing interface is preset for the test slave of the main test equipment, and the test slave of the slave test equipment which is in the same local area network with the test slave of the main test equipment can sniff the sniffing interface through the IP address of each test slave so as to determine the test slave of the main test equipment.
And S1102, if the test slave is determined to be configured with the sniffing interface, determining the test slave as the main test device by the test slave of the slave test device, and recording the IP address of the test slave of the main test device.
The test slave of the main test device and the test slave of the slave test device are connected in the same local area network in a wired or wireless mode.
In some embodiments, the website background module of the test slave of the master test device provides a fixed external sniffing interface, the control module of the test slave of the slave test device sniffs the IP addresses of all the test slaves of the slave test device from the local area network, and searches whether the external sniffing interface exists on the corresponding test slave according to the IP addresses. And if the test slave is determined to be configured with the sniffing interface, the test slave of the slave test equipment determines that the test slave is the test slave of the main test equipment, and records the IP address of the test slave of the main test equipment, so that networking of the plurality of mobile test equipment is completed.
In summary, according to the networking method of the test system provided in the embodiment of the present application, whether each test slave is configured with the sniff interface is sequentially searched through the test slave of the slave test device according to the IP address of each test slave in the test system, if it is determined that the test slave is configured with the sniff interface, the test slave of the slave test device determines that the test slave is the test slave of the master test device, and records the IP address of the test slave of the master test device, so that networking of a plurality of mobile test devices can be achieved, a networking mode is convenient and efficient, moreover, automatic networking is performed on the plurality of mobile test devices, and testing of devices to be tested connected to the test interfaces in the plurality of mobile test devices can be achieved through the test master.
Optionally, fig. 22 is a schematic flowchart of a networking method of a test system according to an embodiment of the present invention, and as shown in fig. 22, the method may further include:
s1201, the control module of the testing slave of the slave testing device sends first device information to the network background module of the testing slave of the master testing device.
The first device information comprises an IP address of a test slave of the slave test device and device information of the device to be tested connected with a test interface of the slave test device.
In some embodiments, the control module of the test slave of the slave test device may send the first device information to the network background module of the test slave of the master test device, and the network background module of the test slave of the master test device may receive the first device information.
And S1202, the control module of the testing slave of the main testing device sends and acquires the second device information to the network background module of the testing slave of the main testing device.
The second device information includes an IP address of a test slave of the main test device and device information of the device to be tested connected to the test interface of the main test device.
Accordingly, the network background module of the test slave of the main test device may receive the second device information.
And S1203, receiving the first device information and the second device information by a network background module of a test slave of the main test device.
In a possible implementation manner, the network back-stage module of the testing slave of the main testing device may obtain the first device information and the second device information, the display of the main testing device may display an IP address of the testing slave of the main testing device, the network back-stage module of the testing slave of the main testing device may have a preset resource interface, and the testing host may access the preset resource interface based on the IP address of the testing slave of the main testing device, so that the testing host may obtain the website service provided by the network back-stage module.
In addition, the test host can be provided with a test tool, and a user can realize the control of the equipment to be tested based on the plug-in function of the test tool. The function Window name of the plug-in function in the test tool may be devicekeepper Window.
In the embodiment of the application, the test tool of the test host acquires the first device information and the second device information through the preset resource interface of the network port background module of the main test device, the test tool of the test host performs layered display according to the first device information and the second device information and different test devices, the first layer level is split according to the test devices, and the second layer level is the device to be tested mounted in each test device. The test equipment of the first level is clicked, so that the equipment to be tested mounted under the test equipment can be refreshed in the second level. And double-clicking the to-be-tested equipment mounted at the second level, the tool can realize the connection of the to-be-tested equipment, present the real-time picture of the to-be-tested equipment in real time and finish the operation of the to-be-tested equipment through mouse interaction.
It should be noted that, in the functional plug-in, operations such as batch restart, shutdown, volume adjustment, muting and the like of the selected device to be tested can be completed by selecting the devices to be tested at the first level and the second level and clicking the function button.
Fig. 23 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention, which is applied to a test slave in the mobile testing device of any one of fig. 1 to 5, as shown in fig. 23, the testing apparatus includes:
a receiving module 1101, configured to receive a test instruction sent by a test host through a network module;
an obtaining module 1102, configured to obtain test information of a device to be tested connected to the test interface according to the test instruction;
a sending module 1103, configured to send the test information to the test host through the network module.
Optionally, the test information includes: testing time information, state information and identification information of the equipment to be tested and operation information.
Optionally, the sending module 1103 is further configured to send device information of the mobile test device to the test host, where the device information includes: and testing the IP address of the slave and the attribute information of the equipment to be tested connected with the test interface.
Optionally, the receiving module 1101 is further configured to receive, by the network module, a display instruction sent by the test host;
the obtaining module 1102 is further configured to obtain real-time picture information of the device to be tested connected to the test interface according to the display instruction;
the sending module 1103 is further configured to send the real-time screen information to the test host through the network module.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 24 is a schematic structural diagram of a test slave according to an embodiment of the present invention, and as shown in fig. 24, the test slave may be a computing device with a data processing function, and a network background module and a control module may be disposed on the test slave.
The test slave includes: a processor 1201 and a memory 1202.
The memory 1202 is used for storing programs, and the processor 1201 calls the programs stored in the memory 1202 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a test slave, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Claims (18)
1. A mobile test device, comprising: the test slave is provided with a plurality of test interfaces, and the test interfaces are used for connecting equipment to be tested; the test slave machine and the network module are both arranged in a movable containing shell;
the test slave is connected with the network module and used for receiving a test instruction sent by the test host through the network module and acquiring test information of the equipment to be tested connected with the test interface according to the test instruction; sending the test information to the test host through the network module;
the test slave is provided with a control module and a network background module, the control module is used for acquiring and controlling the equipment information of the equipment to be tested, and the network background module is used for managing the equipment information and sending the equipment information to the test host based on a preset resource interface.
2. The test apparatus of claim 1, further comprising: the test frame is arranged in the movable containing shell and used for bearing the equipment to be tested.
3. The test apparatus of claim 2, wherein the test rack is foldably connected to an inner wall of the movable containment case by a movable shaft.
4. The test apparatus according to any one of claims 1 to 3, wherein the movable containment casing comprises a first case and a second case that are snap-fitted to each other;
the first box body is rotatably connected with the second box body.
5. The test apparatus of claim 4, further comprising: a display; the display is connected with the test slave machine, and the test slave machine is also used for sending information to be displayed to the display.
6. The testing apparatus of claim 5, wherein the display is disposed on the movable containment case; alternatively, the display is disposed outside the movable housing case.
7. The test apparatus of claim 1, wherein the test interface comprises: a relay, a Universal Serial Bus (USB) hub;
the USB concentrator comprises a power supply end, a data end and a plurality of output ends; the test slave is connected with the data end and the relay, the relay is connected with the power end, each output end is connected with the power end and the data end, and the output end is used for being connected with the equipment to be tested.
8. The test apparatus of claim 1, further comprising: a power supply module;
the power supply module is connected with the test slave and is also used for being connected with the equipment to be tested.
9. The test equipment according to claim 1, wherein the test slave is configured to receive, through the network module, a show instruction sent by the test master; real-time picture information of the equipment to be tested connected with the test interface is acquired in real time according to the display instruction; and sending the real-time picture information to the test host through the network module.
10. A testing method applied to the test slave in the mobile testing device of any one of claims 1 to 9, the method comprising:
receiving a test instruction sent by a test host through the network module;
acquiring test information of the equipment to be tested connected with the test interface according to the test instruction;
and sending the test information to the test host through the network module.
11. The method of claim 10, wherein the test information comprises: testing time information, state information and identification information of the equipment to be tested and operation information.
12. The method according to claim 10, wherein before receiving, by the network module, the test instruction sent by the test host, the method further comprises:
sending device information of the mobile test device to a test host, wherein the device information includes: and the test slave computer is used for testing the IP address of the slave computer and the attribute information of the equipment to be tested connected with the test interface.
13. The method of claim 10, further comprising:
receiving a display instruction sent by a test host through the network module;
acquiring real-time picture information of the equipment to be tested connected with the test interface according to the display instruction;
and sending the real-time picture information to the test host through the network module.
14. A test apparatus, applied to the test slave in the mobile test device according to any one of claims 1 to 9, the apparatus comprising:
the receiving module is used for receiving a test instruction sent by the test host through the network module;
the acquisition module is used for acquiring the test information of the equipment to be tested connected with the test interface according to the test instruction;
and the sending module is used for sending the test information to the test host through the network module.
15. A test system comprising a plurality of mobile test devices according to any of claims 1 to 9, wherein one of the mobile test devices is configured as a master test device and at least one of the mobile test devices is configured as a slave test device;
the main test equipment is in communication connection with the test host through a network module of the main test equipment;
and each slave test device is in communication connection with the master test device through the respective network module.
16. A networking method for a test system, which is applied to the test system of claim 15, the method comprising:
the testing slave machine of the slave testing equipment sequentially searches whether each testing slave machine is configured with a sniffing interface or not according to the IP address of each testing slave machine in the testing system;
if it is determined that the sniffing interface is configured in the test slave, the test slave of the slave test equipment determines that the test slave is the test slave of the main test equipment, and records the IP address of the test slave of the main test equipment.
17. The method according to claim 16, characterized in that the method further comprises:
the control module of the test slave of the slave test device sends first device information to the network background module of the test slave of the master test device, where the first device information includes an IP address of the test slave of the slave test device and device information of a device to be tested connected to a test interface of the slave test device;
the control module of the test slave of the main test equipment sends second equipment information to the network background module of the test slave of the main test equipment, wherein the second equipment information comprises an IP address of the test slave of the main test equipment and equipment information of equipment to be tested connected with a test port of the main test equipment;
and the network background module of the test slave of the main test equipment receives the first equipment information and the second equipment information.
18. The method according to claim 16, before the test slave of the slave test apparatus sequentially searches whether each test slave is configured with the sniffing interface according to the IP address of each test slave in the test system, the method further comprising:
the test slave of the slave test equipment starts the control module, and the test slave of the main test equipment starts the control module and the network background module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010702055.2A CN111817921B (en) | 2020-07-20 | 2020-07-20 | Mobile test equipment, test method, device, system and networking method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010702055.2A CN111817921B (en) | 2020-07-20 | 2020-07-20 | Mobile test equipment, test method, device, system and networking method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111817921A true CN111817921A (en) | 2020-10-23 |
CN111817921B CN111817921B (en) | 2022-04-12 |
Family
ID=72866582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010702055.2A Active CN111817921B (en) | 2020-07-20 | 2020-07-20 | Mobile test equipment, test method, device, system and networking method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111817921B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112269577A (en) * | 2020-10-26 | 2021-01-26 | 北京信而泰科技股份有限公司 | Configuration method and device of control interface |
CN112346425A (en) * | 2020-11-20 | 2021-02-09 | 宜宾市极米光电有限公司 | Factory automation test method, system, projection equipment and storage medium |
CN113204494A (en) * | 2021-05-29 | 2021-08-03 | 长沙市到家悠享家政服务有限公司 | Terminal remote test platform and method, electronic equipment and readable medium |
CN113315865A (en) * | 2021-05-26 | 2021-08-27 | 西藏自治区大气探测技术与装备保障中心 | Signal test equipment and signal test method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105589801A (en) * | 2014-10-20 | 2016-05-18 | 网易(杭州)网络有限公司 | Mobile phone cluster test method and system |
CN106358157A (en) * | 2016-09-30 | 2017-01-25 | 广东欧珀移动通信有限公司 | Networking method and device for intelligent equipment |
CN106840209A (en) * | 2017-02-22 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation application |
US20180048555A1 (en) * | 2016-08-12 | 2018-02-15 | W2Bi, Inc. | Device profile-driven automation for cell-based test systems |
CN108280026A (en) * | 2018-01-23 | 2018-07-13 | 网易(杭州)网络有限公司 | Automated testing method and device, storage medium, electronic equipment |
CN207704426U (en) * | 2017-12-20 | 2018-08-07 | 博彦科技股份有限公司 | Test box and test system |
CN109218064A (en) * | 2017-07-07 | 2019-01-15 | 普天信息技术有限公司 | network management system and management method |
CN111181801A (en) * | 2019-12-04 | 2020-05-19 | 腾讯云计算(北京)有限责任公司 | Node cluster testing method and device, electronic equipment and storage medium |
CN111294252A (en) * | 2019-07-29 | 2020-06-16 | 展讯半导体(成都)有限公司 | Cluster test system |
-
2020
- 2020-07-20 CN CN202010702055.2A patent/CN111817921B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105589801A (en) * | 2014-10-20 | 2016-05-18 | 网易(杭州)网络有限公司 | Mobile phone cluster test method and system |
US20180048555A1 (en) * | 2016-08-12 | 2018-02-15 | W2Bi, Inc. | Device profile-driven automation for cell-based test systems |
CN106358157A (en) * | 2016-09-30 | 2017-01-25 | 广东欧珀移动通信有限公司 | Networking method and device for intelligent equipment |
CN106840209A (en) * | 2017-02-22 | 2017-06-13 | 百度在线网络技术(北京)有限公司 | Method and apparatus for testing navigation application |
CN109218064A (en) * | 2017-07-07 | 2019-01-15 | 普天信息技术有限公司 | network management system and management method |
CN207704426U (en) * | 2017-12-20 | 2018-08-07 | 博彦科技股份有限公司 | Test box and test system |
CN108280026A (en) * | 2018-01-23 | 2018-07-13 | 网易(杭州)网络有限公司 | Automated testing method and device, storage medium, electronic equipment |
CN111294252A (en) * | 2019-07-29 | 2020-06-16 | 展讯半导体(成都)有限公司 | Cluster test system |
CN111181801A (en) * | 2019-12-04 | 2020-05-19 | 腾讯云计算(北京)有限责任公司 | Node cluster testing method and device, electronic equipment and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112269577A (en) * | 2020-10-26 | 2021-01-26 | 北京信而泰科技股份有限公司 | Configuration method and device of control interface |
CN112346425A (en) * | 2020-11-20 | 2021-02-09 | 宜宾市极米光电有限公司 | Factory automation test method, system, projection equipment and storage medium |
CN112346425B (en) * | 2020-11-20 | 2024-01-16 | 宜宾市极米光电有限公司 | Factory automation testing method, system, projection equipment and storage medium |
CN113315865A (en) * | 2021-05-26 | 2021-08-27 | 西藏自治区大气探测技术与装备保障中心 | Signal test equipment and signal test method |
CN113204494A (en) * | 2021-05-29 | 2021-08-03 | 长沙市到家悠享家政服务有限公司 | Terminal remote test platform and method, electronic equipment and readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN111817921B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111817921B (en) | Mobile test equipment, test method, device, system and networking method | |
CN104360878B (en) | A kind of method and device of application software deployment | |
US20090259321A1 (en) | System and Method for Virtual Control of Laboratory Equipment | |
WO2017076328A1 (en) | Data center inspection method and device | |
EP2472402A1 (en) | Remote management systems and methods for mapping operating system and management controller located in a server | |
CN102082781A (en) | Server management system and method | |
CN117280327B (en) | Detecting data center large scale interruptions through near real time/offline data using machine learning models | |
US20150236799A1 (en) | Method and system for quick testing and detecting mobile devices | |
CN110460476B (en) | Network operation and maintenance management method | |
CN111078490A (en) | Server safety guarantee method and system based on monitoring analysis of operating system | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN115357198B (en) | Mounting method and device of storage volume, storage medium and electronic equipment | |
CN107623598A (en) | A kind of method of server examining system automatically dispose | |
CN111813613A (en) | Test management method, test management device, electronic equipment and storage medium | |
CN106557395B (en) | Application performance monitoring management method, system and application method of system | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN111835902A (en) | Device testing method and device, electronic device and storage medium | |
CN112068953B (en) | Cloud resource fine management traceability system and method | |
CN117632374A (en) | Container mirror image reading method, medium, device and computing equipment | |
US9307015B1 (en) | Cloud black box for cloud infrastructure | |
US8015373B2 (en) | Information sharing between a backup storage device and a management appliance | |
CN114978923B (en) | Fault exercise method, device and system | |
CN112416743B (en) | Test control system, method and equipment | |
CN101741600B (en) | Server system, recording equipment | |
CN115048307A (en) | Weak network testing method, device, equipment and storage medium of application software |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |