Object testing method and device based on Internet of Things platform
By obtaining test instructions on the Internet of Things platform and determining test standards based on identity identification, the baseboard program is comprehensively tested and a detailed test report is generated, which solves the problem of low integrity of baseboard program verification and improves the standardization and correctness of verification. , reducing the workload of verifiers.
Patent Information
- Application Number
- CN202010591409.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-06-24
AI Technical Summary
In the existing technology, the verification integrity of the backplane program is low and it is difficult to ensure unified quality standards. Verifiers require high business requirements and long learning time, and it is difficult to analyze information about status attributes and big data attributes.
Obtain test instructions on the Internet of Things platform, determine the target test standard based on the identity of the object to be tested, test the target attributes according to the test standards, and generate a test report, including the attributes of the completed test and the operating status of the equipment, through sorting and weight values Optimize the test process and use the Kafka message push service for result processing.
It improves the standardization and correctness of the baseboard program, reduces the workload of development and verification personnel, and achieves unified testing standards and efficient verification processes.
Smart Images

Figure CN111737136B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to an object testing method and device based on an Internet of Things platform. Background Art
[0002] Before a product is launched on the market, it is usually necessary to test and verify the product's functions, one of which includes verifying the product's baseboard program.
[0003] In the prior art, the baseboard program is generally verified by operating equipment or manually. However, it is difficult to ensure the integrity of the test by operating equipment, and it is also difficult to count the pass rate of the baseboard program. Since the baseboard programs of different types of products are different, the verification requirements and standards of each baseboard are different, and it is difficult to ensure a unified quality standard. If you want to fully verify each attribute of the baseboard program, the verification personnel need to be very clear about all the attributes of the device and how to verify each attribute through operation. This places high business requirements on the verification personnel, that is, the learning time cost of the verification personnel is high. And because the verification results include a large amount of reported information, it is difficult for the verification personnel to analyze the information reported on the status attributes and big data attributes.
[0004] There is currently no effective solution to the problem of low verification integrity of baseboard programs in related technologies. Summary of the invention
[0005] The embodiment of the present invention provides an object testing method and device based on an Internet of Things platform, so as to at least solve the problem of low verification integrity of a baseboard program in the related art.
[0006] According to one embodiment of the present invention, there is provided an object testing method based on an Internet of Things platform, comprising: obtaining a test instruction on a target Internet platform, wherein the test instruction is used to request a test on an object to be tested, and the test instruction carries an identity identifier of the object to be tested; in response to the test instruction, determining a target test standard that matches the identity identifier from a plurality of pre-established test standards, the target test standard comprising at least two target test attribute information, each target test attribute information being used to indicate a test on a corresponding target attribute in the object to be tested, and each target test attribute information carrying a target test scheme and target test data when testing the target attribute; testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result; generating a test report according to the test result, and displaying the test report on the target Internet platform, the test report comprising target attributes of completed tests, and a device operation status of the object to be tested when the target attributes of the object to be tested are tested.
[0007] Optionally, testing the object to be tested according to the target test scheme and the target test data in the target test standard includes: sorting at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; obtaining the target test scheme and target test data in each target test attribute information in turn, and using the target test scheme and the target test data to test the corresponding target attributes in the object to be tested.
[0008] Optionally, the use of the target test scheme and the target test data to test the corresponding target attributes in the object to be tested includes: detecting current first state information of the target attributes in the object to be tested; based on the current first state information, sending a target control instruction to the object to be tested in accordance with the communication protocol indicated in the test scheme to instruct the object to be tested to perform a target operation according to the target control instruction, wherein the communication protocol includes a correspondence between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; receiving a control result output by the object to be tested, wherein the control result includes the current second state information of the target attribute.
[0009] Optionally, after generating a test report according to the test results, the method further includes: determining that the object to be tested is unqualified when the test report includes at least one of the following: determining that the object to be tested is unqualified when the test report indicates that the current second state information is the same as the current first state information; determining that the object to be tested is unqualified when the test report indicates that the number of target attributes whose tests have been completed is less than or equal to a first preset threshold value; determining that the object to be tested is unqualified when the test report indicates that the amount of target test data whose tests have been completed is less than or equal to a second preset threshold value; determining that the object to be tested is unqualified when the test report indicates that during the process of testing the target attributes of the object to be tested, the equipment operating state of the object to be tested does not conform to the preset state, determining that the object to be tested is unqualified; determining that the object to be tested is unqualified when the test report indicates that the control result output after testing the target attribute exceeds a preset value range.
[0010] Optionally, the receiving the control result output by the object to be tested includes: receiving the control result output by the object to be tested through a message callback address pre-subscribed in a message push service of Kafka.
[0011] Optionally, before determining the target test standard that matches the identity from the pre-established multiple test standards, the method also includes: obtaining at least two attributes included in each of the multiple test objects; determining a test plan and test data based on the characteristics of each of the at least two attributes included in each test object, and generating a test standard corresponding to the test object; and storing the test standard in association with the identity of the test object.
[0012] According to another embodiment of the present invention, there is provided an object testing device based on an Internet of Things platform, comprising: an acquisition module, for acquiring a test instruction on a target Internet platform, wherein the test instruction is used to request a test on an object to be tested, and the test instruction carries an identity identifier of the object to be tested; a response module, for responding to the test instruction, and determining a target test standard that matches the identity identifier from a plurality of pre-established test standards, wherein the target test standard comprises at least two target test attribute information, each target test attribute information is used to indicate a test on a corresponding target attribute in the object to be tested, and each target test attribute information carries a target test scheme and target test data when testing the target attribute; a testing module, for testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result; a generation module, for generating a test report according to the test result, and displaying the test report on the target Internet platform, wherein the test report comprises target attributes of completed tests, and a device operation status of the object to be tested when the target attributes of the object to be tested are tested.
[0013] Optionally, the test module includes: a sorting unit, used to sort at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; a testing unit, used to obtain the target test scheme and target test data in each target test attribute information in turn, and use the target test scheme and the target test data to test the corresponding target attributes in the object to be tested.
[0014] According to yet another embodiment of the present invention, a 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 running.
[0015] 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.
[0016] Through the present invention, by obtaining a test instruction for requesting a test object to be tested on a target Internet platform, the test instruction carries the identity of the test object; in response to the test instruction, a target test standard matching the identity is determined in a plurality of pre-established test standards, the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the test object is to be tested, and each target test attribute information carries a target test scheme and target test data when the target attribute is tested; the test object is tested according to the target test scheme and target test data in the target test standard to obtain a test result; a test report is generated according to the test result, and the test report is displayed on the target Internet platform, the test report includes the target attribute of the completed test, and when the target attribute of the test object is tested, the device operation status of the test object. Therefore, the problem of low verification integrity of the baseboard program can be solved, and the standardization and correctness of the baseboard program can be improved, and the workload of the development and verification personnel can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal of an object testing method based on an Internet of Things platform according to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of an object testing method based on an Internet of Things platform according to an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of a flow chart according to an optional embodiment of the present invention;
[0021] Figure 4 is an overall framework diagram according to an optional embodiment of the present invention;
[0022] Figure 5 4 is a structural block diagram of an object testing device based on an Internet of Things platform according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0024] 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.
[0025] The method embodiment provided in the first embodiment 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 1 is a hardware structure block diagram of a mobile terminal for object testing based on an Internet of Things platform according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal 10 may include one or more ( Figure 1 Only 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. Optionally, 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 for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0026] 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 object testing method based on the Internet of Things platform 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 instances, 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 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] 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 10. 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.
[0028] In this embodiment, a method for testing an object based on an Internet of Things platform and running on the mobile terminal is provided. Figure 2 is a flow chart of an object testing method based on an Internet of Things platform according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0029] Step S202, obtaining a test instruction on the target Internet platform, wherein the test instruction is used to request a test on the object to be tested, and the test instruction carries an identity of the object to be tested;
[0030] Step S204, in response to the test instruction, determining a target test standard that matches the identity identifier from a plurality of pre-established test standards, wherein the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is to be tested, and each target test attribute information carries a target test scheme and target test data when testing the target attribute;
[0031] Step S206, testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result;
[0032] Step S208, generating a test report based on the test results, and displaying the test report on the target Internet platform, wherein the test report includes target attributes of the completed test, and the device operating status of the object to be tested when the target attributes of the object to be tested are tested.
[0033] As an optional implementation, the target Internet platform can be a developer platform, a web page, or a client. The test instruction can be generated by triggering the touch identifier in the target Internet platform. For example, the developer can trigger the test instruction by touching the touch identifier in the web page. Multiple touch identifiers can be displayed in the target Internet platform, and each touch identifier can correspond to a corresponding object to be tested. The object to be tested can be the bottom plate of the terminal device, and the terminal device can be a household appliance, such as a refrigerator, a washing machine, an air conditioner, etc. For example, touch identifier 1 is used to indicate that the bottom plate of the refrigerator is tested, and touch identifier 2 is used to indicate that the bottom plate of the washing machine is tested. This embodiment can facilitate developers to test the bottom plate of the terminal device after selecting the corresponding touch identifier in the target Internet platform by displaying the touch identifiers corresponding to different terminal devices to be tested in the target Internet platform. A convenient testing platform is provided for developers to improve the testing efficiency of the bottom plate of the terminal device.
[0034] As an optional implementation, different bottom plates of terminal devices correspond to different test standards, and the test standards can be pre-established. They can be set according to the attributes of the terminal device, and the attributes of the terminal device can be the functions of the terminal device, such as Wifi function, Bluetooth function, cooling or heating function, etc. Each test standard includes at least two test attribute information, and the test attribute information includes the test scheme and test data when testing the corresponding attributes of the terminal device. For example, the target test standard corresponding to the bottom plate of a refrigerator includes the scheme and test data when testing the bottom plate, and the following Table 1 is a test scheme and test data for a refrigerator in an optional embodiment.
[0035] Table 1
[0036]
[0037]
[0038] In this embodiment, the target test standard also includes test solutions and corresponding test data for other attributes of the terminal device. The attributes of the terminal device may be the functions possessed by the terminal device, such as the test solution and test data for Wifi attributes, or the test solution and test data for the mode in which the terminal device is currently located. The test data may be data pre-set to test the execution of corresponding functions of the base plate, for example, it may be test data for controlling the refrigeration of a refrigerator, or data for controlling the rotation of a washing machine, or data for heating of an air conditioner, etc. The specific test solution and test data may be set according to a function of the test operating device. The test solution and test data in Table 1 above are only for illustrating this implementation. The specific test solution and corresponding test data may be set according to the functions possessed by the terminal device. In this embodiment, by testing the base plate of the terminal device through the acquired target test standard, a unified test standard can be achieved to ensure the technical effect of test integrity.
[0039] As an optional implementation, after testing the baseboard of the terminal device, a test report is generated based on the obtained test results, and the test report is displayed on the display interface of the target Internet platform. The test results include the operating status of the baseboard during the test. It is convenient for developers to view the corresponding test results and determine whether the baseboard is qualified based on the test results, so as to facilitate subsequent processes such as product launch. And because the test process and results of the baseboard are recorded in the target Internet platform, it is possible to prevent the cause of the problem when the baseboard fails, facilitate the management of the terminal device baseboard, and ensure the quality of the product.
[0040] Through the above steps, by obtaining a test instruction for requesting a test object to be tested on the target Internet platform, the test instruction carries the identity of the test object; in response to the test instruction, a target test standard matching the identity is determined in a plurality of pre-established test standards, the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the test object is to be tested, and each target test attribute information carries a target test scheme and target test data when testing the target attribute; the test object is tested according to the target test scheme and target test data in the target test standard to obtain a test result; a test report is generated according to the test result, and the test report is displayed on the target Internet platform, the test report includes the target attribute of the completed test, and when the target attribute of the test object is tested, the device operation status of the test object. Therefore, the problem of low verification integrity of the baseboard program can be solved, and the standardization and correctness of the baseboard program can be improved, and the workload of the development and verification personnel can be reduced.
[0041] Optionally, the execution subject of the above steps may be a terminal, etc., but is not limited thereto.
[0042] Optionally, testing the object to be tested according to the target test scheme and the target test data in the target test standard includes: sorting at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; obtaining the target test scheme and target test data in each target test attribute information in turn, and using the target test scheme and the target test data to test the corresponding target attributes in the object to be tested.
[0043] As an optional implementation, weight values can be assigned according to the importance of the bottom plate attributes, and the specific weight values are set according to the importance of the functions possessed by the terminal device. For example, the terminal device is a refrigerator. Since cooling is the essential attribute of the refrigerator, its importance is the highest. The Wifi function is an additional function of the refrigerator, and its importance is relatively low. Therefore, the weight value set corresponding to the test attribute information for measuring cooling can be larger than the weight value of the test attribute information for Wifi. The corresponding attributes are tested in order from large to small in weight value, and the more important attributes are arranged in the front for testing, and the less important attributes are arranged relatively at the end, which can ensure the testing of the basic functions of the product and the quality of the basic functions of the terminal product.
[0044] Optionally, the use of the target test scheme and the target test data to test the corresponding target attributes in the object to be tested includes: detecting current first state information of the target attributes in the object to be tested; based on the current first state information, sending a target control instruction to the object to be tested in accordance with the communication protocol indicated in the test scheme to instruct the object to be tested to perform a target operation according to the target control instruction, wherein the communication protocol includes a correspondence between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; receiving a control result output by the object to be tested, wherein the control result includes the current second state information of the target attribute.
[0045] As an optional implementation, before testing the bottom plate of the terminal device, it is necessary to determine the current state of the corresponding attribute in the bottom plate, which may include the switch state, the working mode, etc. For example, the working mode of the current refrigerator ice maker (ice water mode, crushed ice mode, whole ice mode, etc.), the switch state of the fuse light (on, off), the temperature mode (Celsius mode, Fahrenheit mode), etc. The attribute states of different terminal devices are different, and the specific state information can be determined according to the actual situation. In this embodiment, the current state of the bottom plate attribute can be represented in a binary manner, for example, 00 01 means that the ice maker is in ice water mode, 00 02 means that the ice maker is in crushed ice mode, and 00 04 means that the ice maker is in whole ice mode. By detecting the current state of the bottom plate attribute, the corresponding control instruction can be sent according to the current state to test the attribute of the bottom plate. For example, if the current ice maker is in ice water mode 00 01, then the target control instruction 5D 2900 02 or 5D 29 00 04 can be sent to the object to be tested to instruct the state of the ice maker of the object to be tested to switch, thereby achieving the effect of testing the function of the corresponding attribute.
[0046] Optionally, after generating a test report according to the test results, the method further includes: determining that the object to be tested is unqualified when the test report includes at least one of the following: determining that the object to be tested is unqualified when the test report indicates that the current second state information is the same as the current first state information; determining that the object to be tested is unqualified when the test report indicates that the number of target attributes whose tests have been completed is less than or equal to a first preset threshold value; determining that the object to be tested is unqualified when the test report indicates that the amount of target test data whose tests have been completed is less than or equal to a second preset threshold value; determining that the object to be tested is unqualified when the test report indicates that during the process of testing the target attributes of the object to be tested, the equipment operating state of the object to be tested does not conform to the preset state, determining that the object to be tested is unqualified; determining that the object to be tested is unqualified when the test report indicates that the control result output after testing the target attribute exceeds a preset value range.
[0047] As an optional implementation, after sending the target control instruction to the object to be tested, the control result returned by the object to be tested is received, and the control result includes the control result of the object to be tested after executing the corresponding operation. If the control result indicates that the state of the attribute tested in the object to be tested has not changed, the terminal device is determined to be unqualified. For example, before the test, the ice maker is in the ice water mode state of 00 01. After the predetermined time of sending the target control instruction to the object to be tested, the state of the ice maker has not changed, then it is determined that the attribute function of the ice maker is unqualified.
[0048] As an optional implementation, in this embodiment, if the target test standard indicates that 100 attributes are to be tested, but only 50 tests have been completed, it means that the attributes tested for the object to be tested are incomplete, the qualified rate of the product cannot be guaranteed, and the object to be tested is determined to be unqualified. The first preset threshold value can be determined according to the actual situation. For example, if the target test standard indicates that 100 attributes are to be tested, the first preset threshold value can be set to 90, 80, 85, etc.
[0049] As an optional implementation, if the amount of test data does not meet the requirement, the object to be tested is determined to be unqualified. For example, the target test standard indicates that 100 data are to be tested on the ice maker attribute of the refrigerator, but the amount of completed test data is 50, which is lower than the second preset threshold of 80, so the object to be tested is determined to be unqualified. The second preset threshold can be determined according to actual conditions. For example, the target test standard indicates that 100 test data are to be tested on a certain attribute, and the second preset threshold can be set to 90, 80, 85, etc.
[0050] As an optional implementation, if it is found during the test that the operating state of the bottom plate does not meet the predetermined state, the object to be tested is determined to be unqualified. For example, during the test of the properties of the ice maker of a refrigerator, if it is found that the water inlet time level has also changed, or the temperature of the bottom plate is too high, etc., the product is determined to be unqualified. The specific preset state can be determined according to the actual situation of the bottom plate.
[0051] As an optional implementation, if the output test result exceeds the preset threshold range, the bottom plate is determined to be unqualified. For example, the preset threshold of the refrigerator's refrigeration is set to 0 degrees Celsius to minus 18 degrees Celsius, and the test result output by the refrigerator bottom plate is not within this range, then the refrigerator bottom plate is determined to be unqualified. If the total test time exceeds the preset time, then the bottom plate is determined to be unqualified. For example, if the preset time is 3 minutes and the total test time of the bottom plate is 5 minutes, then the tested bottom plate is determined to be unqualified. Figure 3 It is a flowchart according to an optional embodiment of the present invention.
[0052] In this embodiment, by displaying the test report in the IoT platform, it is possible to determine whether the product is qualified based on the corresponding information recorded in the test report during the test of the baseboard. Compared with the existing technology, the IoT platform provides a unified test standard, which ensures the integrity of the test and improves the product qualification rate.
[0053] Optionally, the receiving the control result output by the object to be tested includes: receiving the control result output by the object to be tested through a message callback address pre-subscribed in a message push service of Kafka.
[0054] As an optional implementation, the media access control (MAC) address of the backplane, the model of the device to be verified, and other information are used as input to verify the function of the backplane online through the online verification function. The pre-subscription object can enable Kafka to subscribe to the Kafka-based message push service through subscription. After the subscription is successful, the data reported by the backplane will be received, and the qualification of the backplane will be determined based on the data reported by the backplane.
[0055] As an optional implementation, Kafka was originally an internal infrastructure system of LinkedIn. The initial development was that although LinkedIn had databases and other systems to store data, it lacked a component that could help process continuous data streams. Therefore, in terms of design concept, developers do not want to just develop a system that can store data, such as relational databases, Nosql databases, search engines, etc., but rather want to view data as a continuously changing and growing stream, and build a data system and a data architecture based on this idea. Kafka can be seen as a stream platform, on which data streams can be published and subscribed, and they can be saved and processed. Kafka is a bit like a messaging system, allowing the publication and subscription of message streams, but it is very different from traditional messaging systems. First, Kafka is a modern distributed system that runs in a cluster and can be freely scaled. Second, Kafka can store data as required and can be saved as long as required. Third, stream processing has brought the level of data processing to a new height. The messaging system only transmits data, and Kafka's stream processing capabilities allow us to dynamically process derived streams and data sets with very little code. So Kafka is not just a message middleware. At the same time, in the field of big data, Kafka can also be seen as a real-time version of Hadoop. Hadoop can store and regularly process large amounts of data files, often counted in TBs, while Kafka can store and continuously process large data streams. Hadoop is mainly used for data analysis, while Kafka is more suitable for core business applications due to its low latency.
[0056] Optionally, the test result is obtained through a pre-set subscription object, including: sending a subscription message to a Kafka-based message push service, wherein the subscription message carries a message callback address; and when a subscription success message returned by Kafka is obtained, the test result is obtained through the message callback address.
[0057] As an optional implementation, the message callback address is filled in when subscribing. Once the message is reported, it will be pushed to the service at the callback address by the message push service and will be immediately stored and persisted. Figure 4 This is an overall framework diagram of an optional embodiment of the present invention. In this embodiment, when the distributed scheduled task is started, each server will evenly process the tasks belonging to its own service. Each task will filter out the relevant reported data based on the model information and MAC information, and then determine whether the baseboard is qualified based on the reported data.
[0058] Optionally, before determining the target test standard that matches the identity from the pre-established multiple test standards, the method also includes: obtaining at least two attributes included in each of the multiple test objects; determining a test plan and test data based on the characteristics of each of the at least two attributes included in each test object, and generating a test standard corresponding to the test object; and storing the test standard in association with the identity of the test object.
[0059] As an optional implementation scheme, before testing the properties of the object to be tested, corresponding test standards can be formulated according to the characteristics of the properties of the object to be tested. The test standards are associated with the identity of the object to be tested and stored, and the corresponding target test standards can be obtained in the database through the identity of the object to be tested. The identity of the target object to be verified can be the MAC address of the bottom plate, the model of the verified device and other information. In this embodiment, the attribute characteristics can be the characteristics of the functions possessed by the terminal device, for example, the refrigeration function of the refrigerator is between -17°C and 7°C, and the humidity includes low humidity, medium humidity, high humidity, etc. In this embodiment, by formulating unified test standards in advance, the test efficiency can be improved, and the integrity of the test and the qualified rate of the product can be guaranteed.
[0060] This application verifies whether the functions developed by the device baseboard are standardized and correct through the verification function of the platform. In the case of unchanged technical solutions, the ability of the verification system can be continuously improved through the iteration of business rules, and the quality of the device baseboard functions can be improved. Online verification of the correctness, standardization, and high-hit rate of the baseboard program distributed concurrent processing can greatly improve the standardization and correctness of the baseboard program, while reducing the workload of development and verification personnel. In addition, the verification standards can be adjusted according to actual conditions and have controllable flexibility.
[0061] 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.
[0062] In this embodiment, an object testing device based on an Internet of Things platform 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 for 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.
[0063] Figure 5 is a structural block diagram of an object testing device based on an Internet of Things platform according to an embodiment of the present invention. Figure 5 As shown, the device includes: an acquisition module 52, which is used to acquire a test instruction on a target Internet platform, wherein the test instruction is used to request a test on an object to be tested, and the test instruction carries an identity identifier of the object to be tested; a response module 54, which is used to respond to the test instruction, and determine a target test standard that matches the identity identifier from a plurality of pre-established test standards, wherein the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is tested, and each target test attribute information carries a target test scheme and target test data when the target attribute is tested; a test module 56, which is used to test the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result; a generation module 58, which is used to generate a test report according to the test result, and display the test report on the target Internet platform, wherein the test report includes the target attributes of the completed test, and the device operation status of the object to be tested when the target attributes of the object to be tested are tested.
[0064] Optionally, the test module includes: a sorting unit, used to sort at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; a testing unit, used to obtain the target test scheme and target test data in each target test attribute information in turn, and use the target test scheme and the target test data to test the corresponding target attributes in the object to be tested.
[0065] Optionally, the above-mentioned device is also used to implement the use of the target test scheme and the target test data to test the corresponding target attributes in the object to be tested in the following manner: detecting the current first state information of the target attribute in the object to be tested; according to the current first state information, sending a target control instruction to the object to be tested in accordance with the communication protocol indicated in the test scheme to instruct the object to be tested to perform the target operation according to the target control instruction, wherein the communication protocol includes the correspondence between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; receiving the control result output by the object to be tested, wherein the control result includes the current second state information of the target attribute.
[0066] Optionally, the above-mentioned device is also used to determine that the object to be tested is unqualified after the test report is generated according to the test results, if the test report includes at least one of the following: if the test report indicates that the current second state information is the same as the current first state information, the object to be tested is determined to be unqualified; if the test report indicates that the number of target attributes whose tests have been completed is less than or equal to a first preset threshold, the object to be tested is determined to be unqualified; if the test report indicates that the amount of target test data whose tests have been completed is less than or equal to a second preset threshold, the object to be tested is determined to be unqualified; if the test report indicates that during the process of testing the target attributes of the object to be tested, the equipment operation state of the object to be tested does not conform to the preset state, the object to be tested is determined to be unqualified; if the test report indicates that the control result output after testing the target attribute exceeds the preset value range, the object to be tested is determined to be unqualified.
[0067] Optionally, the above-mentioned device is also used to implement the receiving of the control result output by the object to be tested in the following manner: receiving the control result output by the object to be tested through a message callback address pre-subscribed in a message push service of Kafka.
[0068] Optionally, the above-mentioned device is also used to obtain at least two attributes included in each of a plurality of test objects before determining a target test standard that matches the identity identifier from a plurality of pre-established test standards; determine a test scheme and test data based on characteristics of each of the at least two attributes included in each test object, and generate a test standard corresponding to the test object; and store the test standard in association with the identity identifier of the test object.
[0069] 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.
[0070] An embodiment of the present invention further provides a 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.
[0071] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0072] S1, obtaining a test instruction on a target Internet platform, wherein the test instruction is used to request a test on a subject to be tested, and the test instruction carries an identity of the subject to be tested;
[0073] S2, in response to the test instruction, determining a target test standard that matches the identity identifier from a plurality of pre-established test standards, wherein the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is to be tested, and each target test attribute information carries a target test scheme and target test data when testing the target attribute;
[0074] S3, testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result;
[0075] S4, generating a test report according to the test results, and displaying the test report on the target Internet platform, wherein the test report includes target attributes of the completed test, and the device operation status of the object to be tested when the target attributes of the object to be tested are tested.
[0076] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: 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, and other media that can store computer programs.
[0077] 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.
[0078] Optionally, 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.
[0079] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0080] S1, obtaining a test instruction on a target Internet platform, wherein the test instruction is used to request a test on a subject to be tested, and the test instruction carries an identity of the subject to be tested;
[0081] S2, in response to the test instruction, determining a target test standard that matches the identity identifier from a plurality of pre-established test standards, wherein the target test standard includes at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is to be tested, and each target test attribute information carries a target test scheme and target test data when testing the target attribute;
[0082] S3, testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result;
[0083] S4, generating a test report according to the test results, and displaying the test report on the target Internet platform, wherein the test report includes target attributes of the completed test, and the device operation status of the object to be tested when the target attributes of the object to be tested are tested.
[0084] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0085] 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, and optionally, 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.
[0086] 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. An object testing method based on an Internet of Things platform, characterized in that: include: A test instruction is obtained by triggering a touch identifier of a target Internet platform, wherein the test instruction is used to request a test on an object to be tested, the test instruction carries an identity identifier of the object to be tested, the target Internet platform displays a plurality of the touch identifiers, each of the touch identifiers corresponds to a corresponding object to be tested, and the object to be tested is a bottom plate of a terminal device; In response to the test instruction, a target test standard matching the identity identifier is determined from a plurality of pre-established test standards, the target test standard including at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is tested, each target test attribute information carries a target test scheme and target test data when testing the target attribute, and different bottom boards of different terminal devices correspond to different test standards; Testing the object to be tested according to the target test scheme and the target test data in the target test standard to obtain a test result, and recording the target test scheme and the test result on the target Internet platform; A test report is generated according to the test results, and the test report is displayed on the target Internet platform, wherein the test report includes target attributes of the completed test, and the device operation status of the object to be tested when the target attributes of the object to be tested are tested.
2. The method according to claim 1, characterized in that: The testing of the object to be tested according to the target test scheme and the target test data in the target test standard includes: Sorting at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; The target test scheme and the target test data in each target test attribute information are obtained in sequence, and the target test scheme and the target test data are used to test the corresponding target attribute in the object to be tested.
3. The method according to claim 2, characterized in that The using the target test scheme and the target test data to test the corresponding target attribute in the object to be tested includes: Detecting current first state information of a target attribute in the object to be tested; According to the current first state information, a target control instruction is sent to the object to be tested according to the communication protocol indicated in the test scheme to instruct the object to be tested to perform a target operation according to the target control instruction, wherein the communication protocol includes a correspondence between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; A control result output by the object to be tested is received, wherein the control result includes current second state information of the target attribute.
4. The method according to claim 3, characterized in that After generating a test report according to the test result, the method further includes: In the case where the test report includes at least one of the following, the object to be tested is determined to be unqualified: In a case where the test report indicates that the current second state information is the same as the current first state information, determining that the object to be tested is unqualified; If the number of target attributes whose tests have been completed indicated in the test report is less than or equal to a first preset threshold, determining that the object to be tested is unqualified; If the data amount of the target test data that has completed the test indicated in the test report is less than or equal to a second preset threshold, determining that the object to be tested is unqualified; Indicating in the test report that, in the process of testing the target attribute of the object to be tested, if the device operation state of the object to be tested does not meet the preset state, the object to be tested is determined to be unqualified; In the case where it is indicated in the test report that a control result output after testing the target attribute exceeds a preset value range, it is determined that the object to be tested is unqualified.
5. The method according to claim 3, characterized in that: The receiving the control result output by the object to be tested comprises: The control result output by the object to be tested is received through a message callback address pre-subscribed in the message push service of Kafka.
6. The method according to any one of claims 1 to 5, characterized in that Before determining the target test standard matching the identity identifier from among the pre-established multiple test standards, the method further includes: Obtain at least two attributes included in each test object of the plurality of test objects; Determine a test scheme and test data according to the characteristics of each of the at least two attributes included in each test object, and generate a test standard corresponding to the test object; The test standard is associated with the identity of the test object and stored.
7. An object testing device based on the Internet of Things platform, characterized in that: include: An acquisition module is used to acquire a test instruction by triggering a touch identifier of a target Internet platform, wherein the test instruction is used to request a test on an object to be tested, the test instruction carries an identity identifier of the object to be tested, the target Internet platform displays a plurality of the touch identifiers, each of the touch identifiers corresponds to a corresponding object to be tested, and the object to be tested is a bottom plate of a terminal device; A response module, used to respond to the test instruction, determine a target test standard that matches the identity identifier from a plurality of pre-established test standards, the target test standard including at least two target test attribute information, each target test attribute information is used to indicate that a corresponding target attribute in the object to be tested is to be tested, each target test attribute information carries a target test scheme and target test data when testing the target attribute, and different bottom boards of different terminal devices correspond to different test standards; A testing module, used to test the object to be tested according to the target testing scheme and the target testing data in the target testing standard, obtain a test result, and record the target testing scheme and the test result on the target Internet platform; A generation module is used to generate a test report based on the test results and display the test report on the target Internet platform. The test report includes the target attributes of the completed test and the device operation status of the object to be tested when the target attributes of the object to be tested are tested.
8. The device according to claim 7, characterized in that The test module includes: A sorting unit, used to sort at least two target test attribute information included in the target test standard according to the weight of each target test attribute information in the target test standard, wherein the target test standard carries the weight value of each target test attribute information; The testing unit is used to sequentially obtain the target test scheme and target test data in each target test attribute information, and use the target test scheme and the target test data to test the corresponding target attribute in the object to be tested.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when executed.
10. 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 6.
