CN111737136A - Object testing method and device based on Internet of things platform - Google Patents

Object testing method and device based on Internet of things platform Download PDF

Info

Publication number
CN111737136A
CN111737136A CN202010591409.0A CN202010591409A CN111737136A CN 111737136 A CN111737136 A CN 111737136A CN 202010591409 A CN202010591409 A CN 202010591409A CN 111737136 A CN111737136 A CN 111737136A
Authority
CN
China
Prior art keywords
test
target
tested
attribute
target test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010591409.0A
Other languages
Chinese (zh)
Inventor
蒋鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN202010591409.0A priority Critical patent/CN111737136A/en
Publication of CN111737136A publication Critical patent/CN111737136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides an object testing method and device based on an Internet of things platform, which comprises the following steps: acquiring a test instruction on a target internet platform; responding to the test instruction, and determining a target test standard matched with the identity mark in a plurality of pre-established 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 generating a test report according to the test result, and displaying the test report in the target Internet platform. By the method and the device, the problem of low verification integrity of the bottom board program is solved, so that the effects of improving the standardization and the correctness of the bottom board program and reducing the workload of development and verification personnel are achieved.

Description

Object testing method and device based on Internet of things platform
Technical Field
The invention relates to the field of communication, in particular to an object testing method and device based on an Internet of things platform.
Background
Before a product is marketed, it is often necessary to test and verify the function of the product, one of which includes verifying the backplane program of the product.
The prior art typically verifies the backplane program through an operating device or manually. However, it is difficult to ensure the integrity of the test by operating the equipment, and the qualification rate of the backplane program is difficult to count. Because the bottom plate programs of different types of products are different, the verification requirements of each type of bottom plate are different, the standards are different, and the uniform quality standard is difficult to ensure. If each attribute of the backplane program is to be completely verified, it is necessary for the verifier to be very clear of all the attributes of the device and how to verify each attribute by operation, which is a business requirement for the verifier, i.e., the cost of learning time for the verifier is high. And because the verification result includes a large amount of reported information, the verifier can hardly analyze the reported information of the state attribute and the big data attribute.
Aiming at the problem that the integrity of the verification of the bottom board program is low in the related technology, an effective solution does not exist at present.
Disclosure of Invention
The embodiment of the invention provides an object testing method and device based on an Internet of things platform, which at least solve the problem of low verification integrity of a bottom board program in the related art.
According to an embodiment of the invention, an object testing method based on an internet of things platform is provided, which includes: acquiring a test instruction at a target internet platform, wherein the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested; responding to the test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating to test 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 the target attribute is tested; 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, displaying the test report in the target Internet platform, wherein the test report comprises target attributes which are tested, and the equipment running state of the object to be tested when the target attributes of the object to be tested are tested.
Optionally, the testing the object to be tested according to the target test scheme and the target test data in the target test standard includes: sequencing at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information; and sequentially acquiring a target test scheme and target test data in each target test attribute information, and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
Optionally, the testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data includes: detecting current first state information of a 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 according to a communication protocol indicated in the test scheme so as to indicate the object to be tested to execute target operation according to the target control instruction, wherein the communication protocol comprises a corresponding relation between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; and receiving a control result output by the object to be tested, wherein the control result comprises current second state information of the target attribute.
Optionally, after the generating a test report according to the test result, the method further includes: determining that the object to be tested is not qualified if at least one of the following is included in the test report: determining that the object to be tested is unqualified under the condition that the current second state information is indicated to be the same as the current first state information in the test report; determining that the object to be tested is unqualified under the condition that the number of target attributes indicating that the test is completed in the test report is less than or equal to a first preset threshold value; determining that the object to be tested is unqualified under the condition that the data volume of the target test data indicating that the test is completed in the test report is less than or equal to a second preset threshold value; in the test report, determining that the object to be tested is unqualified under the condition that the equipment running state of the object to be tested does not accord with a preset state in the process of testing the target attribute of the object to be tested; and determining that the object to be tested is unqualified under the condition that the control result output after the target attribute is tested is indicated to exceed a preset value range in the test report.
Optionally, the receiving the control result output by the object to be tested includes: and receiving the control result output by the object to be tested through a message callback address pre-subscribed in the message push service of Kafka.
Optionally, before the determining, from the plurality of pre-established test criteria, a target test criterion that matches the identity identifier, the method further includes: acquiring at least two attributes included by each test object in a plurality of test objects; determining a test scheme and test data according to the characteristics of each attribute in at least two attributes included in each test object, and generating a test standard corresponding to the test object; and storing the test standard and the identity of the test object in an associated manner.
According to another embodiment of the present invention, an object testing apparatus based on an internet of things platform is provided, which includes: the system comprises an acquisition module, a test module and a processing module, wherein the acquisition module is used for acquiring a test instruction at a target Internet platform, the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested; the response module is used for responding to the test instruction and determining a target test standard matched with the identity identifier in 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 for indicating the test of 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 the target attribute is tested; the test module is used 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; and the generating module is used for generating a test report according to the test result, displaying the test report in the target Internet platform, wherein the test report comprises the target attribute which is tested, and the equipment running state of the object to be tested is the equipment running state of the object to be tested when the target attribute of the object to be tested is tested.
Optionally, the test module comprises: the sorting unit is used for sorting at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information; and the test unit is used for sequentially acquiring a target test scheme and target test data in each target test attribute information and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the target Internet platform acquires the test instruction for requesting to test the object to be tested, and the test instruction carries the identity of the object to be tested; responding to a test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating the test of corresponding target attributes in an object to be tested, and each target test attribute information carries a target test scheme and target test data when the target attributes are tested; 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 generating a test report according to the test result, displaying the test report in a target internet platform, wherein the test report comprises the target attribute of the finished test, and the equipment running state of the object to be tested when the target attribute of the object to be tested is tested. Therefore, the problem of low verification integrity of the bottom plate program can be solved, the normalization and the correctness of the bottom plate program are improved, and the workload of development and verification personnel is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of an object testing method based on an internet of things platform according to an embodiment of the present invention;
fig. 2 is a flowchart of an object testing method based on an internet of things platform according to an embodiment of the present invention;
FIG. 3 is a schematic flow diagram in accordance with an alternative embodiment of the present invention;
FIG. 4 is an overall frame diagram in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram of an object testing apparatus based on an internet of things platform according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on a mobile terminal as an example, fig. 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. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 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, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the object testing method based on the internet of things platform in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include 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 memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above 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 (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 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an object testing method based on an internet of things platform, which is run on the mobile terminal, is provided, and fig. 2 is a flowchart of the object testing method based on the internet of things platform according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, a test instruction is obtained on a target Internet platform, wherein the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested;
step S204, responding to the test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating to test 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 the target attribute is tested;
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;
step S208, generating a test report according to the test result, and displaying the test report in the target Internet platform, wherein the test report comprises the target attribute which is tested, and the equipment running state of the object to be tested when the target attribute of the object to be tested is tested.
As an alternative embodiment, the target internet platform may be a developer-specific platform, may be a web page, or may be a client. The test instruction may be generated by triggering a touch identifier in the target internet platform, for example, a developer may trigger the test instruction by a touch identifier in a touch webpage. A plurality of touch identifiers may be displayed in the target internet platform, and each touch identifier may correspond to a corresponding object to be tested. The object to be tested may be a base plate of a terminal device, which may be a household appliance, such as a refrigerator, a washing machine, an air conditioner, etc. For example, the touch identifier 1 is used for indicating to test the bottom plate of the refrigerator, and the touch identifier 2 is used for indicating to test the bottom plate of the washing machine. In this embodiment, the touch identifiers corresponding to different terminal devices to be tested are displayed in the target internet platform, so that a developer can conveniently test the bottom plate of the terminal device after selecting the corresponding touch identifier in the target internet platform. A convenient test platform is provided for developers, and the test efficiency of the bottom plate of the terminal equipment is improved.
As an alternative, the base boards of different terminal devices correspond to different test standards, which may be predefined. The setting can be carried out according to the attribute that terminal equipment possesses, and the attribute that terminal equipment possesses can be the function that terminal equipment possesses, for example, Wifi function, bluetooth function, refrigeration or heating function etc.. Each test standard comprises at least two pieces of test attribute information, and the test attribute information comprises a test scheme and test data when testing corresponding attributes of the terminal equipment. For example, the target test standard corresponding to the bottom plate of the refrigerator includes a scheme and test data when the bottom plate is tested, and the following table 1 is a test scheme and test data of the refrigerator in an alternative embodiment.
TABLE 1
Figure BDA0002556280460000071
Figure BDA0002556280460000081
In this embodiment, the target test standard further includes a test service scheme and corresponding test data of other attributes of the terminal device, where the attribute of the terminal device may be a function possessed by the terminal device, and may be, for example, a Wifi attribute test scheme and test data, or a current mode test scheme and test data of the terminal device. The test data may be data preset for testing the corresponding function of the bottom plate, for example, data for controlling refrigeration of a refrigerator, data for controlling rotation of a washing machine, data for heating of an air conditioner, and the like, and specific test schemes and test data may be set according to a certain function of the test operation device, and the test schemes and test data in table 1 are only for explaining the present embodiment, and the specific test schemes and the corresponding test data may be set according to the function of the terminal device. In this embodiment, the terminal device bottom plate is tested through the obtained target test standard, so that a unified test standard can be achieved, and the technical effect of test integrity is ensured.
As an optional implementation manner, after the backplane of the terminal device is tested, a test report is generated according to an obtained test result, and the test report is displayed on a display interface of the target internet platform, where the test result includes an operation state of the backplane in the test process. The method can be convenient for developers to check the corresponding test result, and whether the bottom plate is qualified or not can be judged according to the test result, so that the products can be conveniently listed in subsequent processes. And because the target internet platform records the testing process and the result of the bottom plate, the problem can be prevented from being found when the bottom plate breaks down, the management of the bottom plate of the terminal equipment is convenient, and the product quality is guaranteed.
Through the steps, the target Internet platform acquires a test instruction for requesting to test the object to be tested, and the test instruction carries the identity of the object to be tested; responding to a test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating the test of corresponding target attributes in an object to be tested, and each target test attribute information carries a target test scheme and target test data when the target attributes are tested; 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 generating a test report according to the test result, displaying the test report in a target internet platform, wherein the test report comprises the target attribute of the finished test, and the equipment running state of the object to be tested when the target attribute of the object to be tested is tested. Therefore, the problem of low verification integrity of the bottom plate program can be solved, the normalization and the correctness of the bottom plate program are improved, and the workload of development and verification personnel is reduced.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
Optionally, the testing the object to be tested according to the target test scheme and the target test data in the target test standard includes: sequencing at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information; and sequentially acquiring a target test scheme and target test data in each target test attribute information, and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
As an optional implementation manner, a weight value may be assigned according to the importance degree of the property of the backplane, and the specific weight value is set according to the importance degree of the function possessed by the terminal device. For example, the terminal device is a refrigerator, and since the temperature reduction is an essential attribute of the refrigerator, the importance level is the highest, the Wifi function is an additional function of the refrigerator, and the important program is relatively low. Therefore, the weight value set corresponding to the test attribute information for measuring the cooling temperature is larger than that of the test attribute information for Wifi. And sequentially testing corresponding attributes according to the sequence of the weighted values from large to small, testing the important programs before the important programs are arranged, and ensuring the test of the basic functions of the product and the quality of the basic functions of the terminal product after the arrangement with lower importance degree is relatively lower.
Optionally, the testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data includes: detecting current first state information of a 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 according to a communication protocol indicated in the test scheme so as to indicate the object to be tested to execute target operation according to the target control instruction, wherein the communication protocol comprises a corresponding relation between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; and receiving a control result output by the object to be tested, wherein the control result comprises current second state information of the target attribute.
As an alternative embodiment, before testing the backplane of the terminal device, it is necessary to determine the current state of the corresponding attribute in the backplane, which may include a switch state, an operating mode, and the like. For example, the operation mode of the ice maker of the refrigerator at present (ice water mode, ice crushing mode, ice shaping mode, etc.), the on-off state (on, off) of the safety light, the temperature mode (celsius degree mode, fahrenheit degree mode), and the like. 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 floor property may be represented in a binary manner, for example, 0001 represents that the ice maker is in an ice water mode, 0002 represents that the ice maker is in a crushed ice mode, and 0004 represents that the ice maker is in a whole ice mode. By detecting the state of the current bottom plate attribute, a corresponding control instruction can be sent according to the current state so as to test the attribute of the bottom plate. For example, when the current ice maker is in an ice water mode 0001, the ice maker can be switched by sending a target control instruction of 5D 290002 or 5D 290004 to the object to be tested to indicate the state of the ice maker to be tested, so as to achieve the effect of testing the function of the corresponding attribute.
Optionally, after the generating a test report according to the test result, the method further includes: determining that the object to be tested is not qualified if at least one of the following is included in the test report: determining that the object to be tested is unqualified under the condition that the current second state information is indicated to be the same as the current first state information in the test report; determining that the object to be tested is unqualified under the condition that the number of target attributes indicating that the test is completed in the test report is less than or equal to a first preset threshold value; determining that the object to be tested is unqualified under the condition that the data volume of the target test data indicating that the test is completed in the test report is less than or equal to a second preset threshold value; in the test report, determining that the object to be tested is unqualified under the condition that the equipment running state of the object to be tested does not accord with a preset state in the process of testing the target attribute of the object to be tested; and determining that the object to be tested is unqualified under the condition that the control result output after the target attribute is tested is indicated to exceed a preset value range in the test report.
As an optional implementation manner, after the target control instruction is sent to the object to be tested, the control result returned by the object to be tested is received, and the control result includes a control result of the object to be tested after the corresponding operation is executed. And if the control result indicates that the state of the tested attribute in the object to be tested does not change, determining that the terminal equipment is unqualified. For example, if the ice machine is in the ice water mode state 0001 before the test, and the state of the ice machine is not changed after the preset time for sending the target control instruction to the object to be tested, it is determined that the attribute function of the ice machine is not qualified.
As an optional implementation manner, in this embodiment, if the target test standard indicates that 100 items of attributes are tested, and 50 completed tests indicate that the attributes tested for the object to be tested are incomplete and the yield of the product cannot be guaranteed, it is determined that the object to be tested is not qualified. The first preset threshold may be determined according to actual conditions, for example, 100 items of attributes are indicated in the target test standard for testing, and the first preset threshold may be set to 90, 80, 85, and so on.
As an alternative embodiment, if the tested data quantity 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 tests are performed on the attributes of the ice making machine of the refrigerator, but the data quantity of the completed tests is 50, and is lower than the second preset threshold 80, and the object to be tested is determined to be unqualified. The second preset threshold may be determined according to actual situations, for example, 100 test data of a certain attribute are indicated in the target test standard for testing, and the second preset threshold may be set to 90, 80, 85, and so on.
As an alternative embodiment, the object to be tested is determined to be unqualified if the running state of the bottom plate is found not to meet the predetermined state in the testing process, for example, the water inlet time gear is also changed or the temperature of the bottom plate is too high in the testing process of the attributes of the ice making machine of the refrigerator, and the like, and the product is determined to be unqualified. The specific preset state can be determined according to the actual situation of the bottom plate.
As an optional embodiment, if the output test result exceeds the preset threshold range, the bottom plate is determined to be unqualified, for example, the preset refrigeration threshold of the refrigerator is set to 0 ℃ to minus 18 ℃, and the test result output by the bottom plate of the refrigerator is not within the range, the bottom plate of the refrigerator is determined to be unqualified. If the total testing time length exceeds the preset time length, determining that the bottom plate is unqualified, for example, the preset time length is 3 minutes, and the total testing time length of the bottom plate is 5 minutes, determining that the tested bottom plate is unqualified. Fig. 3 is a schematic flow diagram according to an alternative embodiment of the present invention.
In this embodiment, whether a product is qualified or not can be determined by displaying a test report in the platform of the internet of things according to corresponding information recorded in the test process of the bottom plate in the test report. Compared with the prior art, the Internet of things platform provides a test standard for developing unification, the test integrity is guaranteed, and the product qualification rate is improved
Optionally, the receiving the control result output by the object to be tested includes: and receiving the control result output by the object to be tested through a message callback address pre-subscribed in the message push service of Kafka.
As an optional implementation manner, information such as a Media Access Control (MAC) address and a verified device model is used as an input, and the function of the backplane is verified online through an online verification function. The pre-subscription object may enable Kafka to subscribe to the Kafka-based message push service by means of subscription. After the subscription is successful, the data reported by the bottom plate is received, and whether the bottom plate is qualified or not is judged according to the data reported by the bottom plate.
As an alternative embodiment, Kafka was originally an internal infrastructure system of LinkedIn. The initial development was that LinkedIn, although available with databases and other systems to store data, lacked a component that could help handle continuous data flow. Therefore, in design concept, developers do not want to develop a system capable of storing data, such as a relational database, a Nosql database, a search engine, and the like, but rather want to view the data as a continuously changing and growing stream, and build a data system and a data architecture based on the idea. Kafka can be viewed as a streaming platform on which data streams can be published, subscribed, stored and processed. Kafka is somewhat like a messaging system, allowing for publication and subscription of message streams, but it is very different from the traditional messaging system, first, Kafka is a modern distributed system, operating in a clustered fashion, that can scale freely. Secondly, Kafka can store data as required, how long it can be stored, and thirdly, streaming processing prompts the hierarchy of data processing to a new level, the message system only transmits data, and the streaming processing capability of Kafka can enable us to dynamically process derivative streams and data sets with little code. Kafka is not just a message middleware. Meanwhile, in the field of big data, Kafka can also be regarded as real-time version of Hadoop, which can store and periodically process a large number of data files, often counted by TB, while Kafka can store and continuously process a large data stream. Hadoop is mainly used for data analysis, while Kafka is more suitable for core business applications because of low latency.
Optionally, obtaining the test result through a preset subscription object includes: sending a subscription message to a Kafka-based message push service, wherein the subscription message carries a message callback address; and under the condition of acquiring the subscription success message returned by the Kafka, acquiring the test result through the message callback address.
As an optional implementation manner, the callback address of the message is filled in during subscription, and once the message is reported, the message is pushed to the service of the callback address by the message pushing service and is immediately put in a database for persistence. Fig. 4 is an overall frame diagram according to an alternative embodiment of the present invention. In this embodiment, when the distributed timing task is started, each server will uniformly process the tasks belonging to its own service. And each task filters out relevant reported data according to the model information and the MAC information, and then judges whether the bottom plate is qualified or not according to the reported data.
Optionally, before the determining, from the plurality of pre-established test criteria, a target test criterion that matches the identity identifier, the method further includes: acquiring at least two attributes included by each test object in a plurality of test objects; determining a test scheme and test data according to the characteristics of each attribute in at least two attributes included in each test object, and generating a test standard corresponding to the test object; and storing the test standard and the identity of the test object in an associated manner.
As an optional embodiment, before testing the attribute of the object to be tested, a corresponding test standard may be formulated according to the characteristic of the attribute of the object to be tested. The testing standard and the identity of the object to be tested are stored in a correlated mode, the corresponding target testing standard can be obtained in the database through the identity of the object to be tested, and the identity of the target object to be verified can enable information such as a bottom plate MAC address and a verified equipment model to be obtained. In the present embodiment, the attribute feature may be a feature of a function provided in the terminal device, for example, a refrigeration function of a refrigerator at-17 ℃ to 7 ℃, and the humidity includes low humidity, medium humidity, high humidity, and the like. In this embodiment, by formulating a unified test standard in advance, the test efficiency can be improved, and the integrity of the test and the qualification rate of the product can be ensured.
The method and the device verify whether the developed function of the equipment bottom plate is standard and correct or not through the verification function of the platform. Under the condition that the technical scheme is not changed, the capability of the verification system can be continuously improved and the quality of the functions of the equipment bottom plate can be improved through the iteration of the service rules. The accuracy, the standardability and the high hit rate of the bottom plate program are verified on line in a distributed concurrent mode, so that the standardability and the accuracy of the bottom plate program can be improved to a great extent, and meanwhile, the workload of development and verification personnel is reduced. In addition, the standard of the verification can be adjusted according to the actual situation, and the controllable flexibility is realized.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an object testing apparatus based on an internet of things platform is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a structure of an object testing apparatus based on an internet of things platform according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: an obtaining module 52, configured to obtain a test instruction at a target internet platform, where the test instruction is used to request a test on an object to be tested, and the test instruction carries an identity of the object to be tested; a response module 54, configured to respond to the test instruction, and determine a target test standard matching the identity identifier in a plurality of pre-established test standards, where the target test standard includes at least two pieces of target test attribute information, each piece of 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 piece of target test attribute information carries a target test scheme and target test data when the target attribute is tested; the test module 56 is configured 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 generating module 58, configured to generate a test report according to the test result, and display the test report in the target internet platform, where the test report includes a target attribute that has been tested, and an equipment running state of the object to be tested when the target attribute of the object to be tested is tested.
Optionally, the test module comprises: the sorting unit is used for sorting at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information; and the test unit is used for sequentially acquiring a target test scheme and target test data in each target test attribute information and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
Optionally, the apparatus is further configured to implement the testing of the corresponding target attribute in the object to be tested by using the target testing scheme and the target testing data as follows: detecting current first state information of a 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 according to a communication protocol indicated in the test scheme so as to indicate the object to be tested to execute target operation according to the target control instruction, wherein the communication protocol comprises a corresponding relation between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data; and receiving a control result output by the object to be tested, wherein the control result comprises current second state information of the target attribute.
Optionally, the apparatus is further configured to, after the generating of the test report according to the test result, determine that the object to be tested is unqualified if the test report includes at least one of the following: determining that the object to be tested is unqualified under the condition that the current second state information is indicated to be the same as the current first state information in the test report; determining that the object to be tested is unqualified under the condition that the number of target attributes indicating that the test is completed in the test report is less than or equal to a first preset threshold value; determining that the object to be tested is unqualified under the condition that the data volume of the target test data indicating that the test is completed in the test report is less than or equal to a second preset threshold value; in the test report, determining that the object to be tested is unqualified under the condition that the equipment running state of the object to be tested does not accord with a preset state in the process of testing the target attribute of the object to be tested; and determining that the object to be tested is unqualified under the condition that the control result output after the target attribute is tested is indicated to exceed a preset value range in the test report.
Optionally, the apparatus is further configured to implement the receiving of the control result output by the object to be tested by: and receiving the control result output by the object to be tested through a message callback address pre-subscribed in the message push service of Kafka.
Optionally, the apparatus is further configured to, before the target test standard matching the identity identifier is determined from the plurality of pre-established test standards, obtain at least two attributes included in each of the plurality of test objects; determining a test scheme and test data according to the characteristics of each attribute in at least two attributes included in each test object, and generating a test standard corresponding to the test object; and storing the test standard and the identity of the test object in an associated manner.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, obtaining a test instruction on a target Internet platform, wherein the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested;
s2, responding to the test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating to test 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 the target attribute is tested;
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;
s4, generating a test report according to the test result, and displaying the test report in the target Internet platform, wherein the test report comprises the target attribute of the completed test, and the device running state of the object to be tested when the target attribute of the object to be tested is tested.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus 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.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining a test instruction on a target Internet platform, wherein the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested;
s2, responding to the test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating to test 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 the target attribute is tested;
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;
s4, generating a test report according to the test result, and displaying the test report in the target Internet platform, wherein the test report comprises the target attribute of the completed test, and the device running state of the object to be tested when the target attribute of the object to be tested is tested.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An object testing method based on an Internet of things platform is characterized by comprising the following steps:
acquiring a test instruction at a target internet platform, wherein the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested;
responding to the test instruction, and determining a target test standard matched with the identity identifier in 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 for indicating to test 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 the target attribute is tested;
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, displaying the test report in the target Internet platform, wherein the test report comprises target attributes which are tested, and the equipment running state of the object to be tested when the target attributes of the object to be tested are tested.
2. The method of claim 1, wherein the testing the object to be tested according to the target test scheme and the target test data in the target test standard comprises:
sequencing at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information;
and sequentially acquiring a target test scheme and target test data in each target test attribute information, and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
3. The method of claim 2, wherein said testing corresponding target attributes in said object under test using said target test protocol and said target test data comprises:
detecting current first state information of a 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 according to a communication protocol indicated in the test scheme so as to indicate the object to be tested to execute target operation according to the target control instruction, wherein the communication protocol comprises a corresponding relation between the current state of the target attribute and the control instruction, and the target control instruction carries the target test data;
and receiving a control result output by the object to be tested, wherein the control result comprises current second state information of the target attribute.
4. The method of claim 3, wherein after said generating a test report based on said test results, said method further comprises:
determining that the object to be tested is not qualified if at least one of the following is included in the test report:
determining that the object to be tested is unqualified under the condition that the current second state information is indicated to be the same as the current first state information in the test report;
determining that the object to be tested is unqualified under the condition that the number of target attributes indicating that the test is completed in the test report is less than or equal to a first preset threshold value;
determining that the object to be tested is unqualified under the condition that the data volume of the target test data indicating that the test is completed in the test report is less than or equal to a second preset threshold value;
in the test report, determining that the object to be tested is unqualified under the condition that the equipment running state of the object to be tested does not accord with a preset state in the process of testing the target attribute of the object to be tested;
and determining that the object to be tested is unqualified under the condition that the control result output after the target attribute is tested is indicated to exceed a preset value range in the test report.
5. The method of claim 3, wherein receiving the control result output by the object to be tested comprises:
and receiving the control result output by the object to be tested 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, wherein before determining the target test criterion matching the identity among a plurality of pre-established test criteria, the method further comprises:
acquiring at least two attributes included by each test object in a plurality of test objects;
determining a test scheme and test data according to the characteristics of each attribute in at least two attributes included in each test object, and generating a test standard corresponding to the test object;
and storing the test standard and the identity of the test object in an associated manner.
7. The utility model provides an object testing arrangement based on thing networking platform which characterized in that includes:
the system comprises an acquisition module, a test module and a processing module, wherein the acquisition module is used for acquiring a test instruction at a target Internet platform, the test instruction is used for requesting to test an object to be tested, and the test instruction carries an identity of the object to be tested;
the response module is used for responding to the test instruction and determining a target test standard matched with the identity identifier in 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 for indicating the test of 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 the target attribute is tested;
the test module is used 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;
and the generating module is used for generating a test report according to the test result, displaying the test report in the target Internet platform, wherein the test report comprises the target attribute which is tested, and the equipment running state of the object to be tested is the equipment running state of the object to be tested when the target attribute of the object to be tested is tested.
8. The apparatus of claim 7, wherein the test module comprises:
the sorting unit is used for sorting at least two pieces of target test attribute information included in the target test standard according to the weight of each piece of target test attribute information in the target test standard, wherein the target test standard carries the weight of each piece of target test attribute information;
and the test unit is used for sequentially acquiring a target test scheme and target test data in each target test attribute information and testing the corresponding target attribute in the object to be tested by using the target test scheme and the target test data.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202010591409.0A 2020-06-24 2020-06-24 Object testing method and device based on Internet of things platform Pending CN111737136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010591409.0A CN111737136A (en) 2020-06-24 2020-06-24 Object testing method and device based on Internet of things platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010591409.0A CN111737136A (en) 2020-06-24 2020-06-24 Object testing method and device based on Internet of things platform

Publications (1)

Publication Number Publication Date
CN111737136A true CN111737136A (en) 2020-10-02

Family

ID=72651086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010591409.0A Pending CN111737136A (en) 2020-06-24 2020-06-24 Object testing method and device based on Internet of things platform

Country Status (1)

Country Link
CN (1) CN111737136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153775A1 (en) * 2003-01-31 2004-08-05 Saikat Bhattacharjee Method, system, and apparatus for utilizing device-specific diagnostic settings within a standard management platform
US20060117237A1 (en) * 2004-11-12 2006-06-01 Weller Christopher T Systems and methods of test case generation with feedback
US20110088014A1 (en) * 2009-10-08 2011-04-14 International Business Machines Corporation Automated test execution plan generation
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
CN104298596A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Random distribution method and device for test scheme and server
CN105512039A (en) * 2015-12-16 2016-04-20 青岛海信电器股份有限公司 Software test request form generating method and device
CN106227658A (en) * 2016-07-15 2016-12-14 珠海市魅族科技有限公司 The management method of a kind of test case, system and device
CN106569943A (en) * 2015-10-09 2017-04-19 北京北方微电子基地设备工艺研究中心有限责任公司 Hardware testing method and hardware testing system for equipment
CN106897218A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 Software testing management method and device
CN108255653A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 The test method and its terminal of a kind of product
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium
CN109491902A (en) * 2018-11-01 2019-03-19 京东方科技集团股份有限公司 Interactive testing method, apparatus and system
CN109976995A (en) * 2017-12-28 2019-07-05 百度在线网络技术(北京)有限公司 Method and apparatus for test
CN110532141A (en) * 2019-08-30 2019-12-03 峰米(北京)科技有限公司 A kind of automatization test system and method, a kind of storage medium of intelligent display terminal
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment
US20200174911A1 (en) * 2018-11-29 2020-06-04 Entit Software Llc Detection of graphical user interface element of application undergoing functional testing

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040153775A1 (en) * 2003-01-31 2004-08-05 Saikat Bhattacharjee Method, system, and apparatus for utilizing device-specific diagnostic settings within a standard management platform
US20060117237A1 (en) * 2004-11-12 2006-06-01 Weller Christopher T Systems and methods of test case generation with feedback
US20110088014A1 (en) * 2009-10-08 2011-04-14 International Business Machines Corporation Automated test execution plan generation
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
CN104298596A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Random distribution method and device for test scheme and server
CN106569943A (en) * 2015-10-09 2017-04-19 北京北方微电子基地设备工艺研究中心有限责任公司 Hardware testing method and hardware testing system for equipment
CN105512039A (en) * 2015-12-16 2016-04-20 青岛海信电器股份有限公司 Software test request form generating method and device
CN106227658A (en) * 2016-07-15 2016-12-14 珠海市魅族科技有限公司 The management method of a kind of test case, system and device
CN106897218A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 Software testing management method and device
CN109976995A (en) * 2017-12-28 2019-07-05 百度在线网络技术(北京)有限公司 Method and apparatus for test
CN108255653A (en) * 2018-01-02 2018-07-06 深圳壹账通智能科技有限公司 The test method and its terminal of a kind of product
CN109359031A (en) * 2018-09-04 2019-02-19 中国平安人寿保险股份有限公司 More appliance applications test methods, device, server and storage medium
CN109491902A (en) * 2018-11-01 2019-03-19 京东方科技集团股份有限公司 Interactive testing method, apparatus and system
US20200174911A1 (en) * 2018-11-29 2020-06-04 Entit Software Llc Detection of graphical user interface element of application undergoing functional testing
CN110532141A (en) * 2019-08-30 2019-12-03 峰米(北京)科技有限公司 A kind of automatization test system and method, a kind of storage medium of intelligent display terminal
CN111104341A (en) * 2019-12-30 2020-05-05 深圳Tcl新技术有限公司 Automatic testing method, device, equipment and storage medium for intelligent household equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112364054B (en) Wind control decision method, device, electronic device and storage medium
CN111488271B (en) Message middleware tuning method, system, electronic equipment and storage medium
US20180164758A1 (en) Information processing method, cloud service platform and information processing system
CN111860667A (en) Method and device for determining equipment fault, storage medium and electronic device
CN111736938A (en) Information display method and device, storage medium and electronic device
CN110472216B (en) Method and device for determining field, storage medium and electronic device
CN106792784A (en) A kind of method, server and system that data check is carried out in server side
CN111737136A (en) Object testing method and device based on Internet of things platform
CN110990381B (en) Processing method and device of server, storage medium and electronic device
CN108463813B (en) Method and device for processing data
CN104462116B (en) Data selection method and device
CN102833594B (en) A kind of network protocol television IPTV program searching methods, apparatus and system
CN115037665B (en) Equipment testing method and device
CN112231167A (en) Cloud resource monitoring method, device, equipment and storage medium
CN116074228A (en) Network card testing method and device, storage medium and electronic equipment
CN106681894B (en) Monitoring method and monitoring device of intelligent equipment
CN112420019B (en) Equipment testing method and device
CN111111211B (en) Game data reporting method, device, system, equipment and storage medium
CN110578989B (en) Debugging method and device of air conditioner, air conditioner and storage medium
CN114327693A (en) AB experiment method and system, terminal device and storage medium
CN109151007B (en) Data processing method, core server and transmission server for application scheduling
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
CN110781878A (en) Target area determination method and device, storage medium and electronic device
WO2023213288A1 (en) Model acquisition method and communication device
CN113064926B (en) Data screening method and device, storage medium and electronic device

Legal Events

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