CN110784370B - Method and device for testing equipment, electronic equipment and medium - Google Patents

Method and device for testing equipment, electronic equipment and medium Download PDF

Info

Publication number
CN110784370B
CN110784370B CN201910947925.XA CN201910947925A CN110784370B CN 110784370 B CN110784370 B CN 110784370B CN 201910947925 A CN201910947925 A CN 201910947925A CN 110784370 B CN110784370 B CN 110784370B
Authority
CN
China
Prior art keywords
target
test
equipment
dimension code
target equipment
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.)
Active
Application number
CN201910947925.XA
Other languages
Chinese (zh)
Other versions
CN110784370A (en
Inventor
刘胜阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910947925.XA priority Critical patent/CN110784370B/en
Publication of CN110784370A publication Critical patent/CN110784370A/en
Application granted granted Critical
Publication of CN110784370B publication Critical patent/CN110784370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application discloses a method and a device for testing equipment, electronic equipment and a medium. According to the method and the device, after a test instruction for the target device is received, a first work mode configuration file of the target device is obtained, a two-dimension code instruction is configured based on the work mode configuration file, and then the test service of the target device is completed according to the two-dimension code instruction. By applying the technical scheme, the two-dimension code instruction for automatically displaying the communication information can be added into the configuration file of the detected mobile equipment, so that the communication information of the mobile equipment is displayed in the form of the two-dimension code when the equipment is detected subsequently, and the communication connection with the test equipment is realized. Therefore, the problem of low efficiency caused by the fact that the testing process can be realized only by manually configuring each testing device in the related technology can be solved.

Description

Method and device for testing equipment, electronic equipment and medium
Technical Field
The present application relates to image processing technologies, and in particular, to a method and an apparatus for device testing, an electronic device, and a medium
Background
Due to the rise of the communication era and society, intelligent terminals have been continuously developed along with the use of more and more users.
With the development of terminal technology, terminals have become important tools for people to live and work. Furthermore, the intelligent terminal needs to be detected before leaving the factory, so that various functions of the terminal are ensured, and the quality of the terminal is ensured. In the related art, in the process of testing the terminals, it is generally necessary to manually configure communication with the test equipment for each terminal. And after the communication connection between the terminal and the test equipment is successful, the test detection of each terminal is completed.
However, when a large number of terminals to be detected are faced, the method in the related art is prone to a problem of inefficiency. Therefore, for manufacturers, in order to meet the requirement of mass production, a way for efficiently testing the terminal equipment is needed.
Disclosure of Invention
The embodiment of the application provides a device testing method and device, electronic equipment and a medium.
According to an aspect of an embodiment of the present application, there is provided a device testing method, including:
when a preset instruction is received, acquiring a first fingerprint characteristic image and light sensation intensity information which are identified in a fingerprint identification area; when a test instruction for target equipment is received, acquiring a target work model configuration file of the target equipment, wherein the target work model configuration file is a first configuration file in all work model configuration files;
configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment;
and completing the test service of the target equipment according to the two-dimension code instruction.
According to another aspect of the embodiments of the present application, there is provided an apparatus for device testing, including:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a target work model configuration file of target equipment when receiving a test instruction aiming at the target equipment, and the target work model configuration file is a first configuration file in all work model configuration files;
the configuration module is arranged for configuring a two-dimension code instruction based on the work model configuration file, the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment;
and the generating module is set to complete the test service of the target equipment according to the two-dimensional code instruction.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for displaying with the memory to execute the executable instructions to perform the operations of any of the above-described method of device testing.
According to yet another aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which, when executed, perform the operations of any one of the above-mentioned device testing methods.
According to the method and the device, after a test instruction for the target device is received, a first work mode configuration file of the target device is obtained, a two-dimension code instruction is configured based on the work mode configuration file, and then the test service of the target device is completed according to the two-dimension code instruction. By applying the technical scheme, the two-dimension code instruction for automatically displaying the communication information can be added into the configuration file of the detected mobile device, so that the communication information of the mobile device can be displayed in the form of the two-dimension code when the device is detected subsequently, and the communication connection with the test device can be realized. Therefore, the problem of low efficiency caused by the fact that the testing process can be realized only by manually configuring each testing device in the related technology can be solved.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a system architecture for device testing according to the present application;
FIG. 2 is a schematic diagram of a method for device testing as set forth herein;
FIG. 3 is a schematic diagram of a method for device testing according to the present application;
FIG. 4 is a schematic structural diagram of an apparatus for testing the device of the present application;
fig. 5 is a schematic view of an electronic device according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for performing device testing according to an exemplary embodiment of the present application is described below in conjunction with fig. 1-3. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 to which a video processing method or a video processing apparatus of an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
A user may use terminal devices 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
The terminal apparatuses 101, 102, 103 in the present application may be terminal apparatuses that provide various services. For example, when a user receives a test instruction for a target device through the terminal device 103 (or the terminal device 101 or 102), a target job model configuration file of the target device is obtained, where the target job model configuration file is a first configuration file in each job model configuration file; configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment; and completing the test service of the target equipment according to the two-dimension code instruction.
It should be noted that the video processing method provided in the embodiments of the present application may be executed by one or more of the terminal devices 101, 102, and 103, and/or the server 105, and accordingly, the video processing apparatus provided in the embodiments of the present application is generally disposed in the corresponding terminal device, and/or the server 105, but the present application is not limited thereto.
The application also provides a device testing method, a device, a target terminal and a medium.
Fig. 2 schematically shows a flow diagram of a method of device testing according to an embodiment of the present application. As shown in fig. 2, the method is applied to a mobile terminal, and includes:
s101, when a test instruction aiming at target equipment is received, a target work module configuration file of the target equipment is obtained, and the marked work module configuration file is the first configuration file in all the work module configuration files.
It should be noted that, in the present application, the target device is not specifically limited, and may be, for example, an intelligent device or a server. The intelligent device may be a PC (Personal Computer), or a smart phone, a tablet Computer, an e-book reader, or an MP3(Moving Picture Experts Group audio layer III) device test device. MP4(Moving Picture expert group Audio Layer IV) device tester, or portable terminal device such as portable computer with display function.
Taking the target device as an example of a mobile phone, each mobile phone needs to be tested and detected before leaving the factory. To ensure the user experience. Furthermore, in a test production line of a manufacturer, communication modes such as WIFI can be used for testing communication between the test equipment and the mobile phone. The test equipment needs to scan the two-dimensional code on the screen of the mobile phone to obtain the IP address of the mobile phone.
Furthermore, the testing process of the testing equipment can be divided into an upper layer and a lower layer, the mobile phone does not need to communicate with the testing equipment in the upper layer testing process, only the mobile phone needs to enter a work module interface of a production line testing twenty, then the equipment is waited to be inserted into a USB head, a common charger, a USB flash disk (OTG testing) and a quick charger are sequentially switched, the work module of the mobile phone can automatically judge a result and generate a mark bit in the mobile phone, then the mobile phone jumps to the work module interface of the next testing, and all processes of the upper layer testing are repeated in this way.
Furthermore, after the upper layer test is finished, the lower layer test is required to be taken, and the lower layer is required to be connected with test equipment (such as a test computer). The test equipment reads the state of the zone bit from the mobile phone and judges whether the test result of the upper layer passes or not. After the mobile phone passes the confirmation test, the test flow of the lower layer is carried out, the mobile phone must enter a work and die interface of a production line test twenty during the upper layer test, in addition, the layer is not communicated with the mobile phone, the mobile phone cannot be controlled to enter a two-dimensional code interface after the upper layer test is finished, so that the mobile phone cannot acquire a mobile phone IP through scanning the two-dimensional code after being taken to the lower layer, the test cannot be carried out in a WIFI communication mode, in order to solve the problem, the technical scheme for automatically displaying the two-dimensional code information is provided, after the mobile phone enters the production line test twenty, the two-dimensional code is automatically displayed on a screen, and the two-dimensional code can be scanned and is communicated with test equipment when the mobile phone is taken to the lower layer test.
Still further, when a test instruction for the target device is received, the first configuration file of the configuration files of the work die of the target device can be obtained. Wherein the configuration file of the target device may be integrated in the file manager. The method for reading the configuration file is not specifically limited in the present application, for example, QSettings may be used to read and write the configuration file.
S102, configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment.
The two-dimensional code instruction for displaying the two-dimensional code information on the display screen of the target device can be configured in the configuration file of the target device. The two-dimension code information can be used for displaying communication information of the target device, so that the test device can realize communication connection with the target device according to the recorded communication information after scanning the two-dimension code information.
Further, the method for displaying the two-dimensional code information by the target device is not specifically limited, and for example, the two-dimensional code information may be displayed on the display screen all the time, or the two-dimensional code information may be displayed on the display screen when a preset instruction is received.
In addition, the communication information is not particularly limited in the present application, for example, the two-dimensional code information may be used to display ID address information, MAC address information, device number information, and the like of the target device.
Moreover, this application also can select test equipment's upper strata to increase the scanning rifle, be in the two-dimensional code interface when the cell-phone is put into the upper strata, equipment acquires the cell-phone IP through the two-dimensional code on the scanning screen, establish communication with the cell-phone, control cell-phone enters into the worker's mode interface of producing line test twenty, then begin to test the upper strata, after upper test, control cell-phone reentrant two-dimensional code interface, take the lower floor just can acquire the IP through scanning the two-dimensional code, use WIFI communication mode to test.
And S103, completing the test service of the target equipment according to the two-dimension code instruction.
Optionally, in the present application, after the two-dimensional code instruction is configured for the target device, the test service of the target device may be completed based on the two-dimensional code instruction.
It should be noted that the present application does not specifically limit the test service of the target device. For example, may include functional testing. So as to ensure the basic functions of the mobile phone software to be intact. And the stability test is also carried out to ensure that the mobile phone application can stably run for a certain time, and the current state needs to be kept continuously after the running state of the application is switched, so that the flash back does not occur. Or, the performance test includes a performance test of the background service (response time of API and response message size) and a performance condition of the application itself (CPU, memory, I/O, power consumption condition, and switching speed from page to page, if it is a game or animation, it is also guaranteed that a certain frame rate is achieved). Further, security testing can be further included to ensure that key confidential data connections in the mobile phone are not encrypted, a local database is not encrypted, whether the confidential data connections can be read by other malicious applications, whether interfaces of background services are secure, whether the interfaces of background services are affected by SQL injection, whether applications are confused, whether applications are reversed, whether sensitive data are modified and re-signed on an SD Card or not, and the like.
In addition, the test service for the target device may further include a geographic location positioning test, so as to ensure that the mobile phone can meet the requirement that service software (e-commerce class) supports obtaining geographic location information of the user. The method comprises the steps of determining whether a city can be accurately positioned, whether positioning position precision meets requirements or not, and whether a geographic position name resolution process is correct or not, and further comprising an application upgrading compatibility test and an equipment compatibility test, so that certain key data can be reserved after upgrading or cross-version upgrading of an application in a mobile phone without user resetting, such as user account authentication information, brightness setting, UUID for marking equipment, certain key application function switch setting and the like. With the rapid differentiation of Android devices and the slow differentiation of iOS devices, applications need to be adapted to hardware platforms with different configurations (different CPU architectures, different RAM configurations, different Flash storage, different sensor configurations, different network modes, and the like), and different OS versions need to be considered at the same time.
According to the method and the device, after a test instruction for the target device is received, a first work mode configuration file of the target device is obtained, a two-dimension code instruction is configured based on the work mode configuration file, and then the test service of the target device is completed according to the two-dimension code instruction. By applying the technical scheme, the two-dimension code instruction for automatically displaying the communication information can be added into the configuration file of the detected mobile device, so that the communication information of the mobile device can be displayed in the form of the two-dimension code when the device is detected subsequently, and the communication connection with the test device can be realized. And further, the problem of low efficiency caused by the fact that the testing process can be realized only by manually configuring each testing device in the related technology can be solved.
Optionally, the two-dimensional code information in the present application is used to display the IP address information of the target device, and/or the device identification information.
In a possible embodiment of the present application, after the present application S102 (configuring the two-dimensional code instruction based on the tool mode configuration file), the present application further provides a method for testing a device, as shown in fig. 3, where the method includes:
s201, when a test instruction for the target equipment is received, a target work mode configuration file of the target equipment is obtained.
S202, configuring a two-dimensional code instruction based on the work die configuration file.
And S203, when the activation event aiming at the two-dimension code instruction is detected, displaying the two-dimension code information on the display screen of the target device.
In one possible implementation manner of the present application, the technical feature of displaying the two-dimensional code information on the display screen of the target device when the activation event for the two-dimensional code instruction is detected can be implemented based on any one or more of the following three manners:
the first mode is as follows:
and when the target equipment is detected to be positioned at the preset coordinate position based on the GPS module of the target equipment, displaying the two-dimensional code information on a display screen of the target equipment.
Further, the GPS module in the target device can be started, so that the position detection function is started. And when the target device is detected to be located at the preset coordinate position, judging that an activation event aiming at the two-dimensional code instruction is received currently. And displaying the two-dimension code information on a display screen of the target equipment. It can be understood that the preset coordinate position is not specifically limited in the present application, that is, the preset coordinate position may be any position.
In the process of testing the target device, the testing positions of all stages are different. Therefore, the problem of consuming power resources caused by the fact that the target device always displays the two-dimensional code information on the screen is avoided. According to the method and the device, when the target device detects that the current target device is located at the position where the test process can be completed only by displaying the two-dimension code information through the GPS module, the two-dimension code information can be displayed. So as to achieve the purpose of saving the power consumption of the equipment.
The second mode is as follows:
when the camera shooting acquisition module based on the target equipment detects that the target equipment is located in a preset scene, the two-dimension code information is displayed on a display screen of the target equipment.
Optionally, the GPD module can be used to detect whether the current target device is located at a position where the test process can be completed only by displaying the two-dimensional code information, and the camera shooting and collecting module of the target device can be selected to be used to start the camera shooting and collecting function. And when the target device is confirmed to be located in the preset scene, judging that the activation event aiming at the two-dimensional code instruction is received currently. And displaying the two-dimension code information on a display screen of the target equipment. It can be understood that the preset scene is not specifically limited in this application, that is, the preset scene may be any scene.
In the process of testing the target device, the test scenes of all stages are different. For example, when the mobile phone performs a power test (e.g., a fast charge test, a general charge test), it performs a test on the functional group. When the mobile phone is subjected to a performance test, the test is performed in a manufacturing part. It will be appreciated that different test groups correspond to different test scenarios. Therefore, the problem of power consumption resources caused by the fact that the target device always displays the two-dimensional code information on the screen is solved. According to the method and the device, when the target equipment detects that the current target equipment is located at a scene where the test process can be completed only by displaying the two-dimension code information, the target equipment displays the two-dimension code information. So as to achieve the purpose of saving the power consumption of the mobile phone.
For example, when testing a handset, the power test performed on the functional group can be performed without communicatively connecting the handset to the test equipment. However, the performance test performed by the manufacturing unit is completed only by connecting the mobile phone to the test equipment through communication. Therefore, the camera shooting acquisition function of the mobile phone can be started before the mobile phone is tested in the field, and the current scene is judged to be the scene in the manufacturing department by utilizing the camera shooting manufacturing monitoring, and the current scene needing to display the two-dimensional code information can be judged to complete the test process. Therefore, a notification that the two-dimensional code information is presented on the display screen of the target terminal can be immediately generated.
The third mode is as follows:
the induction device of the monitoring target equipment is realized on the basis of magnetic field induction;
and when the sensing device of the target equipment generates the sensing message, displaying the two-dimensional code information on a display screen of the target equipment.
Further optionally, according to the method and the device for displaying the two-dimensional code information, besides the condition that whether the current target device is located and needs to display the two-dimensional code information to complete the test process can be detected by the GPD module and the camera shooting acquisition device, whether the target device needs to display the two-dimensional code information currently can be judged by the induction device of the target device based on magnetic field induction. It should be noted that, the present application is not limited to the induction device, and the induction device may be an induction device that is installed in the target apparatus and can induce a magnetic field of a magnet. Or an induction device installed in the target apparatus and capable of inducing an electromagnetic wave magnetic field.
As described above, in the process of testing the target device, the test scenarios (or positions) are different for each stage. Also by way of example, when the mobile phone performs a power test (e.g., a fast charge test, a normal charge test), the detection is performed in the functional group, and the detection can be completed without making a communication connection between the mobile phone and the test equipment. When the mobile phone is used for performance test, the test is carried out in the manufacturing part, and the mobile phone and the test equipment are required to be in communication connection. Further, it can be appreciated that different test sets correspond to different test scenarios (or locations). Therefore, the problem of power consumption resource caused by the fact that the target device always displays the two-dimensional code information on the screen is solved. According to the method and the device, when the target equipment detects that the sensing device existing in the current target equipment and the manufacturing part generates the sensing message by using the sensing device, the two-dimensional code information can be displayed. So as to achieve the purpose of saving the power consumption of the mobile phone.
For example, in the case of using an induction device as a magnet, the present application may install a magnet at a position of a test target device in a manufacturing part. Similarly, a magnet is also mounted at a predetermined position in the target device. Further, the induction signal of magnet department in the target equipment can real-time supervision. It can be understood that when the target device enters the position of the target device to be tested in the manufacturing part, the target terminal can generate an induction message according to the magnetic field signal generated when the two magnets are close to each other. In other words, after the target device detects that the sensing message is generated, it can be determined that the current position is located at a position where the test process can be completed only by displaying the two-dimensional code information. Therefore, a notification of the two-dimensional code information being presented on the display screen of the target terminal can be immediately generated.
S204, when a communication request is received, communication connection with the test equipment is completed, and the communication request is generated by the test equipment based on the two-dimensional code information;
s205, based on the communication connection with the testing device, the testing service of the target device is completed.
In another possible embodiment of the present application, after the test service of the target device is completed, the following steps may be further implemented:
detecting a test result of a test service of the target equipment;
and when the test result of the test service is determined to be successful, generating a finishing instruction, wherein the finishing instruction is used for indicating the target equipment to be shut down after a preset time period.
Optionally, in the present application, after the test result of the test service of the target device is monitored, when the test result of the test service is determined to be successful, the energy consumption of the target device is reduced. The method and the device can immediately generate a finishing instruction for indicating the target device to be powered off after a preset time period. The preset time period is not specifically limited, and may be, for example, 1 minute or 5 minutes.
In another embodiment of the present application, as shown in fig. 4, the present application further provides a device for testing equipment. The device comprises an acquisition module 301, a configuration module 302 and a generation module 303, wherein:
an obtaining module 301, configured to obtain a target job model configuration file of a target device when a test instruction for the target device is received, where the target job model configuration file is a first configuration file in each job model configuration file;
a configuration module 302 configured to configure a two-dimension code instruction based on the work model configuration file, where the two-dimension code instruction is used to display two-dimension code information on a display screen of the target device, and the two-dimension code information is used to display communication information of the target device;
the generating module 303 is configured to complete the test service of the target device according to the two-dimensional code instruction.
According to the method and the device, after a test instruction for the target device is received, a first work mode configuration file of the target device is obtained, a two-dimension code instruction is configured based on the work mode configuration file, and then the test service of the target device is completed according to the two-dimension code instruction. By applying the technical scheme, the two-dimension code instruction for automatically displaying the communication information can be added into the configuration file of the detected mobile device, so that the communication information of the mobile device can be displayed in the form of the two-dimension code when the device is detected subsequently, and the communication connection with the test device can be realized. And further, the problem of low efficiency caused by the fact that the testing process can be realized only by manually configuring each testing device in the related technology can be solved.
In another embodiment of the present application, the configuration module 302 further includes:
a configuration module 302 configured to display the two-dimensional code information on a display screen of the target device when an activation event for the two-dimensional code instruction is detected.
In another embodiment of the present application, the configuration module 302 further includes:
a configuration module 302 configured to display the two-dimensional code information on a display screen of the target device when the target device is detected to be located at a preset coordinate position based on a GPS module of the target device;
and/or the presence of a gas in the atmosphere,
a configuration module 302 configured to display the two-dimensional code information on a display screen of the target device when the target device is detected to be located in a preset scene based on a camera shooting and collecting module of the target device.
In another embodiment of the present application, the configuration module 302 further includes:
a configuration module 302 configured to monitor an induction device of the target apparatus, wherein the induction device is implemented based on magnetic field induction;
a configuration module 302 configured to display the two-dimensional code information on a display screen of the target device when it is determined that the sensing device of the target device generates a sensing message.
In another embodiment of the present application, the generating module 303 further includes:
a generating module 303 configured to complete a communication connection with a test device when receiving a communication request, the communication request being generated by the test device based on the two-dimensional code information;
a generating module 303 configured to complete a test service of the target device based on the communication connection with the test device.
In another embodiment of the present application, the generating module 304 further includes:
a generating module 303 configured to detect a test result of the test service of the target device;
the generating module 303 is configured to generate a finishing instruction when it is determined that the test result of the test service is successful, where the finishing instruction is used to instruct the target device to power off after a preset time period.
In another embodiment of the present application, the two-dimensional code information is used to show IP address information of the target device and/or device identification information.
Fig. 5 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 300 may include one or more of the following components: a processor 301 and a memory 302.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 301 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 302 is configured to store at least one instruction for execution by the processor 301 to implement the interactive special effect calibration method provided by the method embodiments of the present application.
In some embodiments, the electronic device 300 may further include: a peripheral interface 303 and at least one peripheral. The processor 301, memory 302 and peripheral interface 303 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 303 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, touch display screen 305, camera 306, audio circuitry 307, positioning components 308, and power supply 309.
The peripheral interface 303 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and peripheral interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the peripheral interface 303 may be implemented on a single chip or circuit board, which is not limited by the embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or above the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, providing the front panel of the electronic device 300; in other embodiments, the display screens 305 may be at least two, respectively disposed on different surfaces of the electronic device 300 or in a folded design; in still other embodiments, the display 305 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 300. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 306 is used to capture images or video. Optionally, camera assembly 306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, the main camera and the wide-angle camera are fused to realize panoramic shooting and a VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, camera assembly 306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 301 for processing or inputting the electric signals to the radio frequency circuit 304 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the electronic device 300. The microphone may also be an array microphone or an omni-directional acquisition microphone. The speaker is used to convert electrical signals from the processor 301 or the radio frequency circuitry 304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 307 may also include a headphone jack.
The positioning component 308 is used to locate the current geographic Location of the electronic device 300 to implement navigation or LBS (Location Based Service). The Positioning component 308 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
The power supply 309 is used to supply power to various components in the electronic device 300. The power source 309 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 309 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 300 also includes one or more sensors 310. The one or more sensors 310 include, but are not limited to: acceleration sensor 311, gyro sensor 312, pressure sensor 313, fingerprint sensor 314, optical sensor 315, and proximity sensor 316.
The acceleration sensor 311 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic device 300. For example, the acceleration sensor 311 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 301 may control the touch display screen 305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 311. The acceleration sensor 311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 312 may detect a body direction and a rotation angle of the electronic device 300, and the gyro sensor 312 and the acceleration sensor 311 may cooperate to acquire a 3D motion of the user on the electronic device 300. The processor 301 may implement the following functions according to the data collected by the gyro sensor 312: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 313 may be disposed on a side bezel of the electronic device 300 and/or an underlying layer of the touch display screen 305. When the pressure sensor 313 is disposed on the side frame of the electronic device 300, the holding signal of the user to the electronic device 300 can be detected, and the processor 301 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 313. When the pressure sensor 313 is arranged at the lower layer of the touch display screen 305, the processor 301 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 314 is used for collecting a fingerprint of the user, and the processor 301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 314, or the fingerprint sensor 314 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, processor 301 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, device testing, and changing settings. The fingerprint sensor 314 may be disposed on the front, back, or side of the electronic device 300. When a physical button or vendor Logo is provided on the electronic device 300, the fingerprint sensor 314 may be integrated with the physical button or vendor Logo.
The optical sensor 315 is used to collect the ambient light intensity. In one embodiment, the processor 301 may control the display brightness of the touch screen display 305 based on the ambient light intensity collected by the optical sensor 315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 305 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 305 is turned down. In another embodiment, the processor 301 may also dynamically adjust the shooting parameters of the camera head assembly 306 according to the ambient light intensity collected by the optical sensor 315.
The proximity sensor 316, also known as a distance sensor, is typically disposed on the front panel of the electronic device 300. The proximity sensor 316 is used to capture the distance between the user and the front of the electronic device 300. In one embodiment, the processor 301 controls the touch display screen 305 to switch from the bright screen state to the dark screen state when the proximity sensor 316 detects that the distance between the user and the front surface of the electronic device 300 gradually decreases; when the proximity sensor 316 detects that the distance between the user and the front surface of the electronic device 300 is gradually increased, the processor 301 controls the touch display screen 305 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of electronic device 300 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as the memory 304, comprising instructions executable by the processor 320 of the electronic device 300 to perform the method of device testing described above, the method comprising: when a test instruction for target equipment is received, acquiring a target work module configuration file of the target equipment, wherein the target work module configuration file is a first configuration file in each work module configuration file; configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment; and completing the test service of the target equipment according to the two-dimension code instruction. Optionally, the instructions may also be executable by the processor 320 of the electronic device 300 to perform other steps involved in the exemplary embodiments described above. Optionally, the instructions may also be executed by the processor 320 of the electronic device 300 to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by the processor 320 of the electronic device 300 to perform the above-described method of device testing, the method comprising: when a test instruction for target equipment is received, acquiring a target work module configuration file of the target equipment, wherein the target work module configuration file is a first configuration file in each work module configuration file; configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment; and completing the test service of the target equipment according to the two-dimension code instruction. Optionally, the instructions may also be executable by the processor 320 of the electronic device 300 to perform other steps involved in the exemplary embodiments described above. Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of device testing, comprising:
when a test instruction for target equipment is received, acquiring a target work module configuration file of the target equipment, wherein the target work module configuration file is a first configuration file in all work module configuration files, and a two-dimension code instruction for displaying two-dimension code information on a display screen of the target equipment is configured in the target configuration file;
configuring a two-dimension code instruction based on the work mode configuration file, wherein the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment;
and realizing communication connection with the test equipment according to the two-dimension code instruction, and further completing the test service of the test equipment on the target equipment.
2. The method of claim 1, wherein after configuring two-dimensional code instructions based on the tool mode configuration file, further comprising:
and when an activation event aiming at the two-dimension code instruction is detected, displaying the two-dimension code information on a display screen of the target equipment.
3. The method of claim 2, wherein the displaying the two-dimensional code information on the display screen of the target device when the activation event for the two-dimensional code instruction is detected comprises:
when the target equipment is detected to be located at a preset coordinate position based on a GPS module of the target equipment, displaying the two-dimensional code information on a display screen of the target equipment;
and/or the presence of a gas in the gas,
and when the target equipment is detected to be positioned in a preset scene based on the camera shooting acquisition module of the target equipment, displaying the two-dimensional code information on a display screen of the target equipment.
4. The method of claim 3, wherein the displaying the two-dimensional code information on the display screen of the target device when the activation event for the two-dimensional code instruction is detected comprises:
monitoring an induction device of the target equipment, wherein the induction device is realized based on magnetic field induction;
and when the induction device of the target equipment generates induction information, displaying the two-dimensional code information on a display screen of the target equipment.
5. The method of claim 2, wherein after the displaying the two-dimensional code information on the display screen of the target device when the activation event for the two-dimensional code instruction is detected, further comprising:
when a communication request is received, completing communication connection with the test equipment, wherein the communication request is generated by the test equipment based on the two-dimension code information;
and completing the test service of the target equipment based on the communication connection with the test equipment.
6. The method of claim 5, wherein after the completion of the test service for the target device based on the communication connection with the test device, further comprising:
detecting a test result of the test service of the target equipment;
and generating a finishing instruction when the test result of the test service is determined to be successful, wherein the finishing instruction is used for indicating the target equipment to be powered off after a preset time period.
7. The method according to claims 1-6, wherein the two-dimensional code information is used for showing IP address information of the target device and/or device identification information.
8. An apparatus for device testing, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a target work model configuration file of target equipment when receiving a test instruction aiming at the target equipment, the target work model configuration file is a first configuration file in all work model configuration files, and a two-dimension code instruction for displaying two-dimension code information on a display screen of the target equipment is configured in the target configuration file;
the configuration module is arranged for configuring a two-dimension code instruction based on the work model configuration file, the two-dimension code instruction is used for displaying two-dimension code information on a display screen of the target equipment, and the two-dimension code information is used for displaying communication information of the target equipment;
and the generating module is set to realize communication connection with the testing equipment according to the two-dimension code instruction so as to complete the testing service of the target equipment of the testing equipment.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for display with the memory to execute the executable instructions to perform the operations of the method of device testing of any of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions that, when executed, perform operations of the method of testing the device of any of claims 1-7.
CN201910947925.XA 2019-10-08 2019-10-08 Method and device for testing equipment, electronic equipment and medium Active CN110784370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910947925.XA CN110784370B (en) 2019-10-08 2019-10-08 Method and device for testing equipment, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910947925.XA CN110784370B (en) 2019-10-08 2019-10-08 Method and device for testing equipment, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110784370A CN110784370A (en) 2020-02-11
CN110784370B true CN110784370B (en) 2022-07-12

Family

ID=69385147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910947925.XA Active CN110784370B (en) 2019-10-08 2019-10-08 Method and device for testing equipment, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110784370B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500984A (en) * 2021-12-02 2022-05-13 四川天邑康和通信股份有限公司 Two-dimensional code identification automatic distribution network factory self-checking method for network camera
CN116708632B (en) * 2022-09-22 2024-04-05 荣耀终端有限公司 Test method and electronic equipment
CN116734903A (en) * 2022-10-20 2023-09-12 荣耀终端有限公司 Test method and device
CN116405661B (en) * 2023-04-28 2023-09-29 可诺特软件(深圳)有限公司 Smart television development performance testing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700904A (en) * 2014-11-28 2016-06-22 腾讯科技(深圳)有限公司 Session initiation method and apparatus
CN107132442A (en) * 2017-06-20 2017-09-05 广州供电局有限公司 The test device for relay protection of Intelligent transformer station
CN108647552A (en) * 2018-05-02 2018-10-12 山东浪潮通软信息科技有限公司 A method of realizing that contract text batch scanning uploads PDF using the technology that scans the two-dimensional code
CN108762854A (en) * 2018-08-17 2018-11-06 深圳市万通顺达科技股份有限公司 The method and its system, storage medium of exhalation Quick Response Code based on operating system
CN108876366A (en) * 2018-05-20 2018-11-23 智车优行科技(北京)有限公司 Processing method, system and the device of two dimensional code, vehicle, electronic equipment, program and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345531B (en) * 2017-01-23 2021-03-30 阿里巴巴集团控股有限公司 Test method, device and system
CN107528833A (en) * 2017-08-09 2017-12-29 成都派沃特科技有限公司 The method and its system of contactless network transmission are carried out based on Quick Response Code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700904A (en) * 2014-11-28 2016-06-22 腾讯科技(深圳)有限公司 Session initiation method and apparatus
CN107132442A (en) * 2017-06-20 2017-09-05 广州供电局有限公司 The test device for relay protection of Intelligent transformer station
CN108647552A (en) * 2018-05-02 2018-10-12 山东浪潮通软信息科技有限公司 A method of realizing that contract text batch scanning uploads PDF using the technology that scans the two-dimensional code
CN108876366A (en) * 2018-05-20 2018-11-23 智车优行科技(北京)有限公司 Processing method, system and the device of two dimensional code, vehicle, electronic equipment, program and medium
CN108762854A (en) * 2018-08-17 2018-11-06 深圳市万通顺达科技股份有限公司 The method and its system, storage medium of exhalation Quick Response Code based on operating system

Also Published As

Publication number Publication date
CN110784370A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110784370B (en) Method and device for testing equipment, electronic equipment and medium
CN110971930A (en) Live virtual image broadcasting method, device, terminal and storage medium
CN110278464B (en) Method and device for displaying list
CN113204298B (en) Method and device for displaying release progress, electronic equipment and storage medium
CN110659127A (en) Method, device and system for processing task
CN108897659B (en) Method, device and storage medium for modifying log level
CN110827820B (en) Voice awakening method, device, equipment, computer storage medium and vehicle
CN111177013A (en) Log data acquisition method and device, computer equipment and storage medium
CN112256320A (en) Version number generation method, device, terminal and storage medium
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN109783176B (en) Page switching method and device
CN111241499A (en) Application program login method, device, terminal and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN109413190B (en) File acquisition method and device, electronic equipment and storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN112988254B (en) Method, device and equipment for managing hardware equipment
CN110708582B (en) Synchronous playing method, device, electronic equipment and medium
CN112015612B (en) Method and device for acquiring stuck information
CN108632459B (en) Communication information notification method and device and computer readable storage medium
CN110471613B (en) Data storage method, data reading method, device and system
CN113051485A (en) Group searching method, device, terminal and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium

Legal Events

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