Attribute information detection method and device, storage medium, and electronic device
By generating and sending the writable attribute information serial number of the terminal device, and using the basic service cloud for attribute information detection, the problem of cumbersome and inaccurate online testing of the equipment is solved, and the effect of simplified operation and accurate detection is achieved.
Patent Information
- Application Number
- CN202011043031.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-28
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-09-28
AI Technical Summary
In the prior art, online testing of equipment requires manual setting and verification of multiple attribute values, which leads to cumbersome and inaccurate operations, making it difficult to achieve strict verification control.
By generating the serial number of the writable attribute information of the terminal device and sending it to the basic service cloud, the basic service cloud sends the serial number to the terminal device, and the terminal device reports data to the basic service cloud, and the attributes of the terminal device are based on the data information. Information is detected.
The attribute information testing operation is simplified, the errors in manual judgment are reduced, and the accurate detection and verification of the attribute information of the terminal device is realized.
Smart Images

Figure CN112115062B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a method and device for detecting attribute information, a storage medium, and an electronic device. Background Art
[0002] The online testing of the device requires developers to set the attribute values of all writable commands of the device one by one and verify whether the bottom board responds correctly. Currently, the number of attributes of a device model can reach more than 50. Taking into account the validity of commands within the range of each attribute, the number of commands that need to be issued by the device increases exponentially. Moreover, after the issuance, whether the bottom board responds normally requires manual judgment by staff, which is prone to errors and cannot strictly control the verification results.
[0003] With respect to the above technical problems, no effective solutions have been proposed in the relevant technologies. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for detecting attribute information, a storage medium, and an electronic device, so as to at least solve the problem that the attribute testing operation in the related art is complicated and inaccurate.
[0005] According to one embodiment of the present invention, a method for detecting attribute information is provided, including: generating a serial number of writable attribute information of an acquired terminal device; sending the serial number to a basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device; acquiring data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes the serial number; and detecting the attribute information of the terminal device based on the data information.
[0006] According to another embodiment of the present invention, there is provided a device for detecting attribute information, comprising: a first generating module, used for generating a serial number of writable attribute information of an acquired terminal device; a first sending module, used for sending the serial number to a basic service cloud, wherein the basic service cloud is used for sending the serial number to the terminal device; a first acquiring module, used for acquiring data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes the serial number; and a first detecting module, used for detecting the attribute information of the terminal device based on the data information.
[0007] In an exemplary embodiment, the above-mentioned first generation module includes: a first acquisition unit, used to obtain the attribute list of the above-mentioned terminal device through a preset interface, wherein the above-mentioned attribute list includes the above-mentioned writable attribute information; a first generation unit, used to generate a serial number of the writable attribute information of the above-mentioned terminal device.
[0008] In an exemplary embodiment, the above-mentioned first sending module includes: a first sending unit, used to send the above-mentioned attribute information and the above-mentioned serial number to the above-mentioned basic service cloud in a preset order, wherein the above-mentioned basic service cloud is used to encapsulate the above-mentioned serial number and the above-mentioned attribute information, obtain encapsulation information, and send the above-mentioned encapsulation information to the above-mentioned terminal device.
[0009] In an exemplary embodiment, the above-mentioned first detection module includes: a first determination unit, used to determine whether the attribute information in the above-mentioned data information and the above-mentioned writable attribute information are the same based on the above-mentioned serial number, and obtain a judgment result; a first detection unit, used to detect the attribute information of the above-mentioned terminal device based on the above-mentioned judgment result.
[0010] In an exemplary embodiment, the above-mentioned first detection unit includes one of the following: a first determination subunit, used to determine that the above-mentioned attribute information is in a normal state when the attribute information in the above-mentioned data information corresponding to the same serial number and the above-mentioned writable attribute information are the same; a second determination subunit, used to determine that the above-mentioned attribute information is in an abnormal state when the attribute information in the above-mentioned data information corresponding to the same serial number and the above-mentioned writable attribute information are not the same.
[0011] In an exemplary embodiment, the apparatus further includes: a second generating module for generating a test report corresponding to the judgment result after detecting the attribute information of the terminal device based on the judgment result, wherein the test report is used to indicate the status of the attribute information.
[0012] In an exemplary embodiment, the above-mentioned device also includes: a second acquisition module, which is used to connect the above-mentioned terminal device to a preset web page according to the media access control MAC address of the above-mentioned terminal device before generating a serial number of the acquired writable attribute information of the terminal device to obtain the writable attribute information of the above-mentioned terminal device.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0014] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] Through the present invention, by generating a serial number of the writable attribute information of the terminal device; sending the serial number to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device; obtaining the data information sent by the basic service cloud, wherein the data information is the data reported by the terminal device to the basic service cloud, and the data information includes the serial number; and detecting the attribute information of the terminal device based on the data information. When testing the writable attribute information, there is no need for the tester to perform manual operation. Therefore, the problem of cumbersome and inaccurate attribute testing operations in the related art can be solved, and the effect of simplifying the operation and accurately testing the writable attributes can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for detecting attribute information according to an embodiment of the present invention;
[0017] Figure 2 is a flow chart of a method for detecting attribute information according to an embodiment of the present invention;
[0018] Figure 3 is a flow chart of a method for verifying attributes of a line according to an embodiment of the present invention;
[0019] Figure 4 is a timing flow chart according to an embodiment of the present invention;
[0020] Figure 5 is a structural block diagram of a device for detecting attribute information according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for detecting attribute information according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the detection method of attribute information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for detecting attribute information is provided. Figure 2 is a flow chart of a method for detecting attribute information according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0027] Step S202, generating a serial number of the acquired writable attribute information of the terminal device;
[0028] Step S204, sending the serial number to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device;
[0029] Step S206, obtaining data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number;
[0030] Step S208: Detect the attribute information of the terminal device based on the data information.
[0031] Optionally, this embodiment includes but is not limited to being applied to a scenario of testing write attribute information. In this scenario, the writable attribute information includes a plurality of, for example, 50, writable attribute information and commands within a selection range of each writable attribute information.
[0032] Optionally, in this embodiment, the serial number of the writable attribute information may be a unique serial number. The basic service cloud records the serial number sent by the web page.
[0033] The execution subject of the above steps may be a server, etc., but is not limited thereto.
[0034] Through the above steps, the serial number of the writable attribute information of the terminal device is generated; the serial number is sent to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device; the data information sent by the basic service cloud is obtained, wherein the data information is the data reported by the terminal device to the basic service cloud, and the data information includes the serial number; the attribute information of the terminal device is detected based on the data information. When testing the writable attribute information, there is no need for the tester to perform manual operation. Therefore, the problem of cumbersome and inaccurate attribute testing operations in the related art can be solved, and the effect of simplifying the operation and accurately testing the writable attributes can be achieved.
[0035] In an exemplary embodiment, generating a serial number of the acquired writable attribute information of the terminal device includes:
[0036] S1, obtaining an attribute list of a terminal device through a preset interface, wherein the attribute list includes writable attribute information;
[0037] S2, generating a serial number of writable attribute information of the terminal device.
[0038] Optionally, in this embodiment, the preset interface includes but is not limited to a network device center interface. The attribute list is a writable attribute list, and the network device is used to interact with the device.
[0039] Through this embodiment, by generating a serial number of writable attribute information, the speed of attribute information verification can be accelerated and the verification process can be simplified.
[0040] In an exemplary embodiment, sending the serial number to the basic service cloud includes:
[0041] The attribute information and serial number are sent to the basic service cloud in a preset order, wherein the basic service cloud is used to encapsulate the serial number and attribute information, obtain the encapsulated information, and send the encapsulated information to the terminal device.
[0042] Optionally, in this implementation, the preset order includes but is not limited to ascending order or descending order. For example, the attribute information and the serial number are sent to the basic service cloud in ascending order. The basic service cloud encapsulates the attribute information and the serial number to obtain encapsulated information.
[0043] Through this embodiment, the serial number and attribute information are packaged and sent to the terminal device through the basic service cloud, which speeds up the subsequent verification.
[0044] In an exemplary embodiment, detecting attribute information of a terminal device based on data information includes:
[0045] S1, judging whether the attribute information in the data information and the writable attribute information are the same based on the sequence number, and obtaining a judgment result;
[0046] S2, detecting the attribute information of the terminal device based on the judgment result.
[0047] Optionally, in this embodiment, the terminal device reports the data to the basic service cloud, and the basic service cloud sends the received reporting order and the attached serial number to the web page.
[0048] Through this embodiment, the attribute information is verified based on the serial number, which simplifies the developer's tedious data configuration operations and solves the problem that the developer needs to continuously issue commands and manually observe the motherboard information to confirm whether the commands are executed correctly; the execution results are verified by the program, and the correctness is more guaranteed.
[0049] In an exemplary embodiment, detecting the attribute information of the terminal device based on the judgment result includes one of the following:
[0050] S1, when the attribute information and the writable attribute information in the data information corresponding to the same sequence number are the same, determining that the attribute information is in a normal state;
[0051] S2, when the attribute information and the writable attribute information in the data information corresponding to the same serial number are different, it is determined that the attribute information is in an abnormal state.
[0052] Optionally, in this embodiment, the attribute information is verified by the serial number, which simplifies the developer's tedious data configuration operations and solves the problem that the developer needs to continuously issue commands and manually observe the motherboard information to confirm whether the commands are executed correctly; the execution results are verified by the program, and the correctness is more guaranteed.
[0053] In an exemplary embodiment, after detecting the attribute information of the terminal device based on the judgment result, the method further includes:
[0054] S1, generating a test report corresponding to the judgment result, wherein the test report is used to indicate the status of the attribute information.
[0055] Optionally, in this embodiment, the form of the test report is not limited, for example, it can be a voice prompt or a text display.
[0056] Through this embodiment, the status of the attribute information is displayed through a test report, which simplifies the operation process.
[0057] In an exemplary embodiment, before generating the serial number of the acquired writable attribute information of the terminal device, the method further includes:
[0058] S1, connecting the terminal device to a preset web page according to the media access control MAC address of the terminal device to obtain writable attribute information of the terminal device.
[0059] Optionally, in this embodiment, connecting the terminal device to a preset webpage can quickly obtain readable attribute information of the terminal device, thereby increasing the efficiency of verifying the attribute information.
[0060] The present invention is described in detail below in conjunction with specific embodiments:
[0061] The online testing of terminal devices requires developers to set the attribute values of all writable commands of the terminal devices one by one and verify whether the bottom board responds correctly. When developers currently set writable attributes through the online test page, the operation is too cumbersome and labor-intensive. In addition, after each operation, the confirmation of the bottom board's response result depends on the developer's own judgment, and the accuracy cannot be guaranteed. In view of the above problems, it is not possible to provide an online verification method for the attributes, such as Figure 3 As shown, the following steps are included:
[0062] S301: Preset a web page to call the IoT cloud interface to bind the device MAC;
[0063] S302: The preset web page calls the network device center to obtain a device writable (issuable) command set;
[0064] S303: The preset web page sends the attribute command (including the unique serial number when sending) to the basic cloud in sequence, and the basic cloud records the services node (SN) sent this time, and at the same time encapsulates the attribute command and sends it to the device to send the attribute, and attaches the SN of this sending operation;
[0065] S304: After the basic receiving device reports the data, it attaches the SN in the received reporting order and returns it to the preset webpage. The preset webpage compares the attribute data sent and the reported data based on the SN to see if they are consistent, completes the single attribute and value verification process, and returns the device reported data (attached SN).
[0066] like Figure 4 As shown, the timing diagram in this embodiment includes the following steps:
[0067] S401: The developer configures the terminal device to connect to the network;
[0068] S402: The developer enters the device MAC in the preset webpage online verification interface to complete device binding;
[0069] S403: The developer starts an online test on a preset web page;
[0070] S404: The preset web page calls the network device center interface to obtain a list of writable attributes in the device model;
[0071] S405: Preset the webpage generation sequence (SN), and send the sequence number and command attributes to the basic cloud in order;
[0072] S406: The basic cloud returns the device reported data together with the SN data to the preset web page.
[0073] S407: Comparison of device attribute status is completed on a preset web page;
[0074] S408: Preset the web page to generate a final test report.
[0075] In summary, this embodiment simplifies the tedious data configuration operations of developers, solves the problem that developers need to continuously issue commands and manually observe the motherboard information to confirm whether the commands are executed correctly; the execution results are verified by the program, and the correctness is more guaranteed; and the device access process can be standardized and improved.
[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0077] In this embodiment, a detection device for attribute information is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0078] Figure 5 is a structural block diagram of a device for detecting attribute information according to an embodiment of the present invention. Figure 5 As shown, the device includes: a first generating module 52, a first sending module 54, a first acquiring module 56 and a first detecting module 58. The device is described below:
[0079] A first generating module 52, used to generate a serial number of the acquired writable attribute information of the terminal device;
[0080] A first sending module 54, configured to send the serial number to a basic service cloud, wherein the basic service cloud is configured to send the serial number to a terminal device;
[0081] A first acquisition module 56 is used to acquire data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number;
[0082] The first detection module 58 is used to detect the attribute information of the terminal device based on the data information.
[0083] Optionally, this embodiment includes but is not limited to being applied to a scenario of testing write attribute information. In this scenario, the writable attribute information includes a plurality of, for example, 50, writable attribute information and commands within a selection range of each writable attribute information.
[0084] Optionally, in this embodiment, the serial number of the writable attribute information may be a unique serial number. The basic service cloud records the serial number sent by the web page.
[0085] Through this device, the serial number of the writable attribute information of the terminal device is generated; the serial number is sent to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device; the data information sent by the basic service cloud is obtained, wherein the data information is the data reported by the terminal device to the basic service cloud, and the data information includes the serial number; the attribute information of the terminal device is detected based on the data information. When testing the writable attribute information, there is no need for the tester to perform manual operation. Therefore, the problem of cumbersome and inaccurate attribute testing operations in the related art can be solved, and the effect of simplifying the operation and accurately testing the writable attributes can be achieved.
[0086] In an exemplary embodiment, the above-mentioned first generation module includes: a first acquisition unit, used to obtain the attribute list of the above-mentioned terminal device through a preset interface, wherein the above-mentioned attribute list includes the above-mentioned writable attribute information; a first generation unit, used to generate a serial number of the writable attribute information of the above-mentioned terminal device.
[0087] Optionally, in this embodiment, the preset interface includes but is not limited to a network device center interface. The attribute list is a writable attribute list.
[0088] Through this embodiment, by generating a serial number of writable attribute information, the speed of attribute information verification can be accelerated and the verification process can be simplified.
[0089] In an exemplary embodiment, the above-mentioned first sending module includes: a first sending unit, used to send the above-mentioned attribute information and the above-mentioned serial number to the above-mentioned basic service cloud in a preset order, wherein the above-mentioned basic service cloud is used to encapsulate the above-mentioned serial number and the above-mentioned attribute information, obtain encapsulation information, and send the above-mentioned encapsulation information to the above-mentioned terminal device.
[0090] Optionally, in this implementation, the preset order includes but is not limited to ascending order or descending order. For example, the attribute information and the serial number are sent to the basic service cloud in ascending order. The basic service cloud encapsulates the attribute information and the serial number to obtain encapsulated information.
[0091] Through this embodiment, the serial number and attribute information are packaged and sent to the terminal device through the basic service cloud, which speeds up the subsequent verification.
[0092] In an exemplary embodiment, the above-mentioned first detection module includes: a first determination unit, used to determine whether the attribute information in the above-mentioned data information and the above-mentioned writable attribute information are the same based on the above-mentioned serial number, and obtain a judgment result; a first detection unit, used to detect the attribute information of the above-mentioned terminal device based on the above-mentioned judgment result.
[0093] Optionally, in this embodiment, the terminal device reports the data to the basic service cloud, and the basic service cloud sends the received reporting order and the attached serial number to the web page.
[0094] Through this embodiment, the attribute information is verified based on the serial number, which simplifies the developer's tedious data configuration operations and solves the problem that the developer needs to continuously issue commands and manually observe the motherboard information to confirm whether the commands are executed correctly; the execution results are verified by the program, and the correctness is more guaranteed.
[0095] Optionally, in this embodiment, the attribute information is verified by the serial number, which simplifies the developer's tedious data configuration operations and solves the problem that the developer needs to continuously issue commands and manually observe the motherboard information to confirm whether the commands are executed correctly; the execution results are verified by the program, and the correctness is more guaranteed.
[0096] In an exemplary embodiment, the above-mentioned first detection unit includes one of the following: a first determination subunit, used to determine that the above-mentioned attribute information is in a normal state when the attribute information in the above-mentioned data information corresponding to the same serial number and the above-mentioned writable attribute information are the same; a second determination subunit, used to determine that the above-mentioned attribute information is in an abnormal state when the attribute information in the above-mentioned data information corresponding to the same serial number and the above-mentioned writable attribute information are not the same.
[0097] Optionally, in this embodiment, the form of the test report is not limited, for example, it can be a voice prompt or a text display.
[0098] Through this embodiment, the status of the attribute information is displayed through a test report, which simplifies the operation process.
[0099] In an exemplary embodiment, the apparatus further includes: a second generating module for generating a test report corresponding to the judgment result after detecting the attribute information of the terminal device based on the judgment result, wherein the test report is used to indicate the status of the attribute information.
[0100] In an exemplary embodiment, the above-mentioned device also includes: a second acquisition module, which is used to connect the above-mentioned terminal device to a preset web page according to the media access control MAC address of the above-mentioned terminal device before generating a serial number of the acquired writable attribute information of the terminal device to obtain the writable attribute information of the above-mentioned terminal device.
[0101] Optionally, in this embodiment, connecting the terminal device to a preset webpage can quickly obtain readable attribute information of the terminal device, thereby increasing the efficiency of verifying the attribute information.
[0102] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0103] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0104] In this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0105] S1, generating a serial number of the writable attribute information of the acquired terminal device;
[0106] S2, sending the serial number to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device;
[0107] S3, obtaining data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number;
[0108] S4, detecting the attribute information of the terminal device based on the data information.
[0109] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0110] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0111] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0112] In an exemplary embodiment, the processor may be configured to perform the following steps via a computer program:
[0113] S1, generating a serial number of the writable attribute information of the acquired terminal device;
[0114] S2, sending the serial number to the basic service cloud, wherein the basic service cloud is used to send the serial number to the terminal device;
[0115] S3, obtaining data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number;
[0116] S4, detecting the attribute information of the terminal device based on the data information.
[0117] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0118] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting attribute information, characterized in that: Applied to a preset web page, the preset web page is connected to a terminal device, including: Generate a serial number of the acquired writable attribute information of the terminal device; Sending the serial number and the writable attribute information of the terminal device to the basic service cloud in a preset order, wherein the basic service cloud is used to encapsulate the serial number and the writable attribute information to obtain encapsulation information, and sending the encapsulation information to the terminal device; Acquire data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number and attribute information; Detecting attribute information of the terminal device based on the data information; The step of generating the serial number of the writable attribute information of the terminal device includes: obtaining an attribute list of the terminal device through a preset interface, wherein the attribute list includes the writable attribute information; and generating the serial number of the writable attribute information of the terminal device; Detecting the attribute information of the terminal device based on the data information includes: judging whether the attribute information in the data information and the writable attribute information are the same based on the serial number, and obtaining a judgment result; detecting the attribute information of the terminal device based on the judgment result; The attribute information of the terminal device is detected based on the judgment result, including: when the attribute information in the data information corresponding to the same serial number and the writable attribute information are the same, determining that the attribute information of the terminal device is in a normal state; when the attribute information in the data information corresponding to the same serial number and the writable attribute information are not the same, determining that the attribute information of the terminal device is in an abnormal state.
2. The method according to claim 1, characterized in that: After detecting the attribute information of the terminal device based on the judgment result, the method further includes: A test report corresponding to the determination result is generated, wherein the test report is used to indicate the status of the attribute information.
3. The method according to claim 1, characterized in that Before generating the serial number of the acquired writable attribute information of the terminal device, the method further includes: The terminal device is connected to a preset web page according to the media access control MAC address of the terminal device to obtain writable attribute information of the terminal device.
4. A device for detecting attribute information, characterized in that: Applied to a preset web page, the preset web page is connected to a terminal device, including: A first generating module, used to generate a serial number of the acquired writable attribute information of the terminal device; A first sending module, used for sending the serial number and the writable attribute information of the terminal device to a basic service cloud in a preset order, wherein the basic service cloud is used for encapsulating the serial number and the writable attribute information to obtain encapsulation information, and sending the encapsulation information to the terminal device; A first acquisition module is used to acquire data information sent by the basic service cloud, wherein the data information is data reported by the terminal device to the basic service cloud, and the data information includes a serial number and attribute information; A first detection module, configured to detect attribute information of the terminal device based on the data information; The first generation module includes: a first acquisition unit, used to acquire the attribute list of the terminal device through a preset interface, wherein the attribute list includes the writable attribute information; a first generation unit, used to generate a serial number of the writable attribute information of the terminal device; The first detection module includes: a first determination unit, configured to determine whether the attribute information in the data information and the writable attribute information are the same based on the sequence number, and obtain a determination result; a first detection unit, configured to detect the attribute information of the terminal device based on the determination result; The first detection unit includes: a first determination subunit, used to determine that the attribute information of the terminal device is in a normal state when the attribute information in the data information corresponding to the same serial number and the writable attribute information are the same; a second determination subunit, used to determine that the attribute information of the terminal device is in an abnormal state when the attribute information in the data information corresponding to the same serial number and the writable attribute information are not the same.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 3 when executed.
6. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Application test method and device, equipment and computer readable storage medium
CN110532171A
Equipment UI automatic test method and device, electronic equipment and medium
CN110781089A