CN111290905A - Testing method and device for cloud platform of Internet of things - Google Patents

Testing method and device for cloud platform of Internet of things Download PDF

Info

Publication number
CN111290905A
CN111290905A CN201811495155.1A CN201811495155A CN111290905A CN 111290905 A CN111290905 A CN 111290905A CN 201811495155 A CN201811495155 A CN 201811495155A CN 111290905 A CN111290905 A CN 111290905A
Authority
CN
China
Prior art keywords
scene
test
internet
things
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811495155.1A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811495155.1A priority Critical patent/CN111290905A/en
Publication of CN111290905A publication Critical patent/CN111290905A/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/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • 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/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for testing an Internet of things cloud platform. The method comprises the following steps: acquiring interface configuration information of each service system in the Internet of things; acquiring scene conditions corresponding to each scene; generating a test rule according to the interface configuration information and the scene condition; during testing, generating a corresponding test case according to the selected test scene and the test rule, and testing the Internet of things cloud platform according to the generated test case. The technical scheme has the beneficial effects that the intelligent hardware equipment and the corresponding APP do not need to be manually operated, the data are sent according to the specified format, the scene linkage in the Internet of things can be conveniently simulated, the corresponding processing capacity of the cloud platform of the Internet of things is effectively tested, the testing efficiency is greatly improved, and the cost is reduced.

Description

Testing method and device for cloud platform of Internet of things
Technical Field
The invention relates to the field of Internet of things, in particular to a testing method and device of an Internet of things cloud platform.
Background
The core function of an IoT (Internet of Things) cloud platform is to handle linkage of scenes, where the linkage of scenes includes complex devices, device state information, and executable methods of the devices, and may further include system conditions such as built-in timing, temperature, and humidity. For the multi-condition and multi-result of the service line of the Internet of things, the conventional test mode of an orthogonal table is adopted, and the manual test is time-consuming, labor-consuming and low in efficiency.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a testing method and apparatus for an internet of things cloud platform, which overcomes or at least partially solves the above problems.
According to one aspect of the invention, a testing method for an internet of things cloud platform is provided, which comprises the following steps:
acquiring interface configuration information of each service system in the Internet of things;
acquiring scene conditions corresponding to each scene;
generating a test rule according to the interface configuration information and the scene condition;
during testing, generating a corresponding test case according to the selected test scene and the test rule, and testing the Internet of things cloud platform according to the generated test case.
Optionally, the obtaining interface configuration information of each service system in the internet of things includes:
and acquiring interface documents of each service system, and determining corresponding interface configuration information according to the interface documents.
Optionally, the acquiring the scene conditions corresponding to the scenes includes:
and providing a front-end page, and acquiring the input scene conditions corresponding to each scene through the front-end page.
Optionally, the scene condition corresponding to each scene includes one or more parameter intervals;
the generating of the corresponding test case according to the selected test scenario and the test rule comprises: and randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
Optionally, the scene condition comprises one or more of:
parameters of the Internet of things equipment;
a time parameter;
an environmental parameter;
the operation that thing networking equipment needs to carry out.
Optionally, the generating a test rule according to the interface configuration information and the scenario condition includes:
and storing the interface requests corresponding to the scene conditions in the test rules.
Optionally, the generating a test rule according to the interface configuration information and the scenario condition includes:
and calling a rule engine to generate the test rule.
Optionally, the test rules include one or more of: a guide rule set, a script rule set and a cross decision table.
According to another aspect of the present invention, there is provided a testing apparatus for a cloud platform of an internet of things, including:
the interface configuration information acquisition unit is suitable for acquiring interface configuration information of each service system in the Internet of things;
a scene condition acquisition unit adapted to acquire scene conditions corresponding to respective scenes;
the test rule generating unit is suitable for generating a test rule according to the interface configuration information and the scene condition;
and the test unit is suitable for generating a corresponding test case according to the selected test scene and the test rule during testing, and testing the Internet of things cloud platform according to the generated test case.
Optionally, the interface configuration information obtaining unit is adapted to obtain an interface document of each service system, and determine corresponding interface configuration information according to the interface document.
Optionally, the scene condition obtaining unit is adapted to provide a front end page, and obtain, through the front end page, the input scene conditions corresponding to the scenes.
Optionally, the scene condition corresponding to each scene includes one or more parameter intervals; the test rule generating unit is suitable for randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
Optionally, the scene condition comprises one or more of:
parameters of the Internet of things equipment;
a time parameter;
an environmental parameter;
the operation that thing networking equipment needs to carry out.
Optionally, the test rule generating unit is adapted to store the interface request corresponding to each scenario condition in the test rule.
Optionally, the test rule generating unit is adapted to invoke a rule engine to generate the test rule.
Optionally, the test rules include one or more of: a guide rule set, a script rule set and a cross decision table.
In accordance with still another aspect of the present invention, there is provided an electronic apparatus including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method as any one of the above.
According to a further aspect of the invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement a method as any one of the above.
According to the technical scheme, the interface configuration information of each business system in the Internet of things is obtained, the scene conditions corresponding to each scene are obtained, the test rules can be generated according to the interface configuration information and the scene conditions, the corresponding test cases are generated according to the selected test scenes and the test rules during testing, and the cloud platform of the Internet of things is tested according to the generated test cases. The technical scheme has the beneficial effects that the intelligent hardware equipment and the corresponding APP do not need to be manually operated, the data are sent according to the specified format, the scene linkage in the Internet of things can be conveniently simulated, the corresponding processing capacity of the cloud platform of the Internet of things is effectively tested, the testing efficiency is greatly improved, and the cost is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a testing method of an internet of things cloud platform according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a testing device of an internet of things cloud platform according to an embodiment of the invention;
FIG. 3 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
At present, if hope to test thing networking cloud platform to the throughput of many scenes linkage, need the corresponding scene condition of artifical trigger, for example, when the temperature is higher than 25 degrees centigrade, need trigger and open the air conditioner, then need through the corresponding scene of actual setting, or realize the simulation through the APP that corresponds with the air conditioner. When the number of the intelligent hardware devices is small, the method has certain feasibility, but when the number of the intelligent hardware devices is large, scene linkage is multiplied, and the defects of high labor cost and low efficiency of the test mode are enlarged, so that the invention designs a different scene simulation mode, and can realize the test of the Internet of things cloud platform without manually operating an APP and other modes.
Fig. 1 is a schematic flow chart illustrating a testing method of an internet of things cloud platform according to an embodiment of the invention. As shown in fig. 1, the method includes:
step S110, interface configuration information of each service system in the Internet of things is obtained. For example, some interfaces' parameter configuration. The service system can correspond to various intelligent hardware devices and matched APP thereof. The user can carry out various operations under various conditions through the APP configuration equipment, for example, the air purifier is automatically started when PM2.5 reaches 150.
In step S120, scene conditions corresponding to the respective scenes are acquired.
And step S130, generating a test rule according to the interface configuration information and the scene condition.
In the above example, the air purifier is automatically turned on when the PM2.5 reaches 150, the scenario condition may include that the PM2.5 reaches 150, and an action to be performed to turn on the air purifier, and the generated test rule is to send a request corresponding to invoking to turn on the air purifier to the internet of things cloud platform when the PM2.5 reaches 150, where the request does not directly relate to turning on the air purifier, but includes related interface parameters, so as to test whether the internet of things cloud platform can determine that the air purifier needs to be turned on according to the interface parameters.
And S140, during testing, generating a corresponding test case according to the selected test scene and the test rule, and testing the Internet of things cloud platform according to the generated test case.
Therefore, whether the IOT cloud platform can correctly process the IOT cloud platform or not can be tested by sending corresponding requests through the simulation scene. In the above example, the measurement of PM2.5 may be implemented by another intelligent hardware device, such as an air quality detector, that is, it is implemented that the state of one intelligent hardware device triggers the action of the other intelligent hardware device, that is, the scene linkage is tested.
As can be seen, the method shown in fig. 1 can generate the test rule according to the interface configuration information and the scene condition by acquiring the interface configuration information of each service system in the internet of things and acquiring the scene condition corresponding to each scene, generate the corresponding test case according to the selected test scene and the test rule during testing, and test the cloud platform of the internet of things according to the generated test case. The technical scheme has the beneficial effects that the intelligent hardware equipment and the corresponding APP do not need to be manually operated, the data are sent according to the specified format, the scene linkage in the Internet of things can be conveniently simulated, the corresponding processing capacity of the cloud platform of the Internet of things is effectively tested, the testing efficiency is greatly improved, and the cost is reduced.
In an embodiment of the present invention, the obtaining interface configuration information of each service system in the internet of things includes: and acquiring interface documents of each service system, and determining corresponding interface configuration information according to the interface documents.
In the present embodiment, the interface configuration information may be automatically determined by analyzing the interface document, and of course, in other embodiments, the contents may be filled in by a developer. In short, according to the interface configuration information, the corresponding interface request can be simulated, so that the states and other scene conditions of other intelligent hardware devices can be simulated.
In an embodiment of the present invention, in the method, acquiring the scene condition corresponding to each scene includes: and providing a front-end page, and acquiring the input scene conditions corresponding to each scene through the front-end page.
In a specific embodiment, a web page may be set, and a tester may input various parameters corresponding to scenes, such as temperature, humidity, and the like, through the web page, and convert the data into data in an xml format, so as to obtain scene conditions corresponding to the scenes.
During testing, a corresponding test case can be determined according to the inputted scene conditions, and certainly, in order to test more scenes, a parameter interval setting mode can be adopted to randomly select values in the parameter interval for testing, that is, in one embodiment of the present invention, in the method, the scene conditions corresponding to each scene include one or more parameter intervals; generating a corresponding test case according to the selected test scene and the test rule comprises the following steps: and randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
In an embodiment of the present invention, in the above method, the scene condition includes one or more of the following: parameters of the Internet of things equipment; a time parameter; an environmental parameter; the operation that thing networking equipment needs to carry out.
For example, whether the device is powered on, the current working mode of the device, and the value collected by the device during working; current time, time already running, time for executing automatic operation; current humidity, temperature, illumination; specific operations need to be performed, such as automatic cleaning, heating, air purification, and the like.
In an embodiment of the present invention, the generating a test rule according to the interface configuration information and the scenario condition in the method includes: interface requests corresponding to the scene conditions are stored in the test rules.
In an actual scene, each device reports its own state, and in this embodiment, it can be stored as an interface request corresponding to the scene condition. The following table gives a simple example:
Figure BDA0001896694900000061
that is, when the temperature and the humidity are different, if it is necessary to trigger the operation of a certain device or a plurality of devices, the corresponding interface requests are R1, R2, R3, and R4.
In an embodiment of the present invention, the generating a test rule according to the interface configuration information and the scenario condition in the method includes: and calling a rule engine to generate a test rule.
Here, the rule engine may be a rules engine such as drools, uule, etc., and a rete algorithm is used. In an embodiment of the present invention, in the above method, the test rule includes one or more of the following: a guide rule set, a script rule set and a cross decision table. Several formats of the test rule are given, the above table is a simple example of the cross decision table, and in a specific scenario, the scenario condition may be quite complex, that is, a plurality of decision factors are fused to realize the corresponding test rule.
Fig. 2 shows a schematic structural diagram of a testing device of an internet of things cloud platform according to an embodiment of the invention. As shown in fig. 2, the testing apparatus 200 of the internet of things cloud platform includes:
the interface configuration information obtaining unit 210 is adapted to obtain interface configuration information of each service system in the internet of things.
For example, some interfaces' parameter configuration. The service system can correspond to various intelligent hardware devices and matched APP thereof. The user can carry out various operations under various conditions through the APP configuration equipment, for example, the air purifier is automatically started when PM2.5 reaches 150.
The scene condition obtaining unit 220 is adapted to obtain scene conditions corresponding to each scene.
The test rule generating unit 230 is adapted to generate a test rule according to the interface configuration information and the scenario condition.
In the above example, the air purifier is automatically turned on when the PM2.5 reaches 150, the scenario condition may include that the PM2.5 reaches 150, and an action to be performed to turn on the air purifier, and the generated test rule is to send a request corresponding to invoking to turn on the air purifier to the internet of things cloud platform when the PM2.5 reaches 150, where the request does not directly relate to turning on the air purifier, but includes related interface parameters, so as to test whether the internet of things cloud platform can determine that the air purifier needs to be turned on according to the interface parameters.
The testing unit 240 is adapted to generate a corresponding test case according to the selected test scenario and the test rule during testing, and test the internet of things cloud platform according to the generated test case.
Therefore, whether the IOT cloud platform can correctly process the IOT cloud platform or not can be tested by sending corresponding requests through the simulation scene. In the above example, the measurement of PM2.5 may be implemented by another intelligent hardware device, such as an air quality detector, that is, it is implemented that the state of one intelligent hardware device triggers the action of the other intelligent hardware device, that is, the scene linkage is tested.
As can be seen, the device shown in fig. 2 can generate the test rule according to the interface configuration information and the scene condition by acquiring the interface configuration information of each service system in the internet of things and acquiring the scene condition corresponding to each scene, generate the corresponding test case according to the selected test scene and the test rule during testing, and test the cloud platform of the internet of things according to the generated test case. The technical scheme has the beneficial effects that the intelligent hardware equipment and the corresponding APP do not need to be manually operated, the data are sent according to the specified format, the scene linkage in the Internet of things can be conveniently simulated, the corresponding processing capacity of the cloud platform of the Internet of things is effectively tested, the testing efficiency is greatly improved, and the cost is reduced.
In an embodiment of the present invention, in the above apparatus, the interface configuration information obtaining unit 210 is adapted to obtain an interface document of each service system, and determine corresponding interface configuration information according to the interface document.
In the present embodiment, the interface configuration information may be automatically determined by analyzing the interface document, and of course, in other embodiments, the contents may be filled in by a developer. In short, according to the interface configuration information, the corresponding interface request can be simulated, so that the states and other scene conditions of other intelligent hardware devices can be simulated.
In an embodiment of the present invention, in the above apparatus, the scene condition obtaining unit 220 is adapted to provide a front end page, and obtain the input scene conditions corresponding to each scene through the front end page.
In a specific embodiment, a web page may be set, and a tester may input various parameters corresponding to scenes, such as temperature, humidity, and the like, through the web page, and convert the data into data in an xml format, so as to obtain scene conditions corresponding to the scenes.
During testing, a corresponding test case may be determined according to the inputted scene conditions, and in order to have more test scenes, a parameter interval setting mode may be adopted to randomly select values in the parameter interval for testing, that is, in an embodiment of the present invention, in the apparatus, the scene conditions corresponding to each scene include one or more parameter intervals; the test rule generating unit 230 is adapted to randomly generate one or more scenario conditions corresponding to the test scenario according to the parameter interval.
In an embodiment of the present invention, in the above apparatus, the scene condition includes one or more of: parameters of the Internet of things equipment; a time parameter; an environmental parameter; the operation that thing networking equipment needs to carry out.
For example, whether the device is powered on, the current working mode of the device, and the value collected by the device during working; current time, time already running, time for executing automatic operation; current humidity, temperature, illumination; specific operations need to be performed, such as automatic cleaning, heating, air purification, and the like.
In an embodiment of the present invention, in the above apparatus, the test rule generating unit 230 is adapted to store the interface request corresponding to each scenario condition in the test rule.
In an actual scene, each device reports its own state, and in this embodiment, it can be stored as an interface request corresponding to the scene condition. Reference may be made in particular to the aforementioned tables. That is, when the temperature and the humidity are different, if it is necessary to trigger the operation of a certain device or a plurality of devices, the corresponding interface requests are R1, R2, R3, and R4.
In an embodiment of the present invention, in the above apparatus, the test rule generating unit 230 is adapted to invoke a rule engine to generate the test rule.
Here, the rule engine may be a rules engine such as drools, uule, etc., and a rete algorithm is used. In an embodiment of the present invention, in the above apparatus, the test rule includes one or more of the following: a guide rule set, a script rule set and a cross decision table. Several formats of the test rule are given, the above table is a simple example of the cross decision table, and in a specific scenario, the scenario condition may be quite complex, that is, a plurality of decision factors are fused to realize the corresponding test rule.
In summary, according to the technical scheme of the invention, by acquiring the interface configuration information of each service system in the internet of things and acquiring the scene conditions corresponding to each scene, the test rule can be generated according to the interface configuration information and the scene conditions, during testing, the corresponding test case is generated according to the selected test scene and the test rule, and the internet of things cloud platform is tested according to the generated test case. The technical scheme has the beneficial effects that the intelligent hardware equipment and the corresponding APP do not need to be manually operated, the data are sent according to the specified format, the scene linkage in the Internet of things can be conveniently simulated, the corresponding processing capacity of the cloud platform of the Internet of things is effectively tested, the testing efficiency is greatly improved, and the cost is reduced.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a test apparatus of an internet of things cloud platform according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device comprises a processor 310 and a memory 320 arranged to store computer executable instructions (computer readable program code). The memory 320 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 320 has a storage space 330 storing computer readable program code 331 for performing any of the method steps described above. For example, the storage space 330 for storing the computer readable program code may comprise respective computer readable program codes 331 for respectively implementing various steps in the above method. The computer readable program code 331 may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 4. Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer readable storage medium 400 has stored thereon a computer readable program code 331 for performing the steps of the method according to the invention, readable by a processor 310 of the electronic device 300, which computer readable program code 331, when executed by the electronic device 300, causes the electronic device 300 to perform the steps of the method described above, in particular the computer readable program code 331 stored on the computer readable storage medium may perform the method shown in any of the embodiments described above. The computer readable program code 331 may be compressed in a suitable form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses A1 and a testing method of an Internet of things cloud platform, which comprises the following steps:
acquiring interface configuration information of each service system in the Internet of things;
acquiring scene conditions corresponding to each scene;
generating a test rule according to the interface configuration information and the scene condition;
during testing, generating a corresponding test case according to the selected test scene and the test rule, and testing the Internet of things cloud platform according to the generated test case.
A2, the method as in a1, wherein the obtaining interface configuration information of each service system in the internet of things includes:
and acquiring interface documents of each service system, and determining corresponding interface configuration information according to the interface documents.
A3, the method as in a1, wherein the acquiring the scene conditions corresponding to each scene comprises:
and providing a front-end page, and acquiring the input scene conditions corresponding to each scene through the front-end page.
A4, the method as recited in a1, wherein the scene conditions corresponding to each scene include one or more parameter intervals;
the generating of the corresponding test case according to the selected test scenario and the test rule comprises: and randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
A5, the method of A1, wherein the scene conditions include one or more of:
parameters of the Internet of things equipment;
a time parameter;
an environmental parameter;
the operation that thing networking equipment needs to carry out.
A6, the method of A1, wherein the generating test rules according to the interface configuration information and the scenario conditions comprises:
and storing the interface requests corresponding to the scene conditions in the test rules.
A7, the method of A1, wherein the generating test rules according to the interface configuration information and the scenario conditions comprises:
and calling a rule engine to generate the test rule.
A8, the method of A1, wherein the test rules include one or more of: a guide rule set, a script rule set and a cross decision table.
The embodiment of the invention also discloses B9 and a testing device of the Internet of things cloud platform, which comprises:
the interface configuration information acquisition unit is suitable for acquiring interface configuration information of each service system in the Internet of things;
a scene condition acquisition unit adapted to acquire scene conditions corresponding to respective scenes;
the test rule generating unit is suitable for generating a test rule according to the interface configuration information and the scene condition;
and the test unit is suitable for generating a corresponding test case according to the selected test scene and the test rule during testing, and testing the Internet of things cloud platform according to the generated test case.
B10, the device of B9, wherein,
the interface configuration information acquisition unit is suitable for acquiring interface documents of each service system and determining corresponding interface configuration information according to the interface documents.
B11, the device of B9, wherein,
the scene condition obtaining unit is suitable for providing a front end page, and obtaining the input scene conditions corresponding to each scene through the front end page.
B12, the apparatus as in B9, wherein the scene condition corresponding to each scene comprises one or more parameter intervals;
the test rule generating unit is suitable for randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
B13, the apparatus as in B9, wherein the scene conditions include one or more of:
parameters of the Internet of things equipment;
a time parameter;
an environmental parameter;
the operation that thing networking equipment needs to carry out.
B14, the device of B9, wherein,
the test rule generating unit is suitable for storing the interface requests corresponding to the scene conditions in the test rules.
B15, the device of B9, wherein,
the test rule generating unit is suitable for calling a rule engine to generate the test rule.
B16, the apparatus of B9, wherein the test rules include one or more of: a guide rule set, a script rule set and a cross decision table.
The embodiment of the invention also discloses C17 and electronic equipment, wherein the electronic equipment comprises: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of a 1-A8.
Embodiments of the invention also disclose D18, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method as any one of a1-a 8.

Claims (10)

1. A testing method of an Internet of things cloud platform comprises the following steps:
acquiring interface configuration information of each service system in the Internet of things;
acquiring scene conditions corresponding to each scene;
generating a test rule according to the interface configuration information and the scene condition;
during testing, generating a corresponding test case according to the selected test scene and the test rule, and testing the Internet of things cloud platform according to the generated test case.
2. The method of claim 1, wherein the obtaining interface configuration information of each service system in the internet of things comprises:
and acquiring interface documents of each service system, and determining corresponding interface configuration information according to the interface documents.
3. The method of claim 1, wherein the obtaining scene conditions corresponding to each scene comprises:
and providing a front-end page, and acquiring the input scene conditions corresponding to each scene through the front-end page.
4. The method of claim 1, wherein the scene condition corresponding to each scene comprises one or more parameter intervals;
the generating of the corresponding test case according to the selected test scenario and the test rule comprises: and randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
5. A testing arrangement of thing networking cloud platform includes:
the interface configuration information acquisition unit is suitable for acquiring interface configuration information of each service system in the Internet of things;
a scene condition acquisition unit adapted to acquire scene conditions corresponding to respective scenes;
the test rule generating unit is suitable for generating a test rule according to the interface configuration information and the scene condition;
and the test unit is suitable for generating a corresponding test case according to the selected test scene and the test rule during testing, and testing the Internet of things cloud platform according to the generated test case.
6. The apparatus of claim 5, wherein,
the interface configuration information acquisition unit is suitable for acquiring interface documents of each service system and determining corresponding interface configuration information according to the interface documents.
7. The apparatus of claim 5, wherein,
the scene condition obtaining unit is suitable for providing a front end page, and obtaining the input scene conditions corresponding to each scene through the front end page.
8. The apparatus of claim 5, wherein the scene condition corresponding to each scene comprises one or more parameter intervals;
the test rule generating unit is suitable for randomly generating one or more scene conditions corresponding to the test scene according to the parameter interval.
9. An electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-4.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-4.
CN201811495155.1A 2018-12-07 2018-12-07 Testing method and device for cloud platform of Internet of things Pending CN111290905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811495155.1A CN111290905A (en) 2018-12-07 2018-12-07 Testing method and device for cloud platform of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811495155.1A CN111290905A (en) 2018-12-07 2018-12-07 Testing method and device for cloud platform of Internet of things

Publications (1)

Publication Number Publication Date
CN111290905A true CN111290905A (en) 2020-06-16

Family

ID=71023015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811495155.1A Pending CN111290905A (en) 2018-12-07 2018-12-07 Testing method and device for cloud platform of Internet of things

Country Status (1)

Country Link
CN (1) CN111290905A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148623A (en) * 2020-10-19 2020-12-29 青岛鹏海软件有限公司 LIMS-based intelligent complete set of scene testing method
CN112286507A (en) * 2020-11-09 2021-01-29 无锡新思联信息技术有限公司 RETE algorithm rule engine design method for autonomy of internet of things resources
CN113326068A (en) * 2021-07-02 2021-08-31 佛山市淇特科技有限公司 Cloud testing method, device, equipment and storage medium on intelligent household equipment
CN115277516A (en) * 2022-07-22 2022-11-01 四川虹美智能科技有限公司 Automatic scene testing system and method based on API (application program interface)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148623A (en) * 2020-10-19 2020-12-29 青岛鹏海软件有限公司 LIMS-based intelligent complete set of scene testing method
CN112286507A (en) * 2020-11-09 2021-01-29 无锡新思联信息技术有限公司 RETE algorithm rule engine design method for autonomy of internet of things resources
CN113326068A (en) * 2021-07-02 2021-08-31 佛山市淇特科技有限公司 Cloud testing method, device, equipment and storage medium on intelligent household equipment
CN115277516A (en) * 2022-07-22 2022-11-01 四川虹美智能科技有限公司 Automatic scene testing system and method based on API (application program interface)

Similar Documents

Publication Publication Date Title
CN111290905A (en) Testing method and device for cloud platform of Internet of things
CN107273269B (en) Log analysis method and device
CN111240653B (en) Interface document generation method, device and readable storage medium
CN111198809A (en) Interface automation test method and device
CN107341102B (en) Test case file generation method and device
CN107357558B (en) Method and device for constructing codes
CN109710528B (en) Test script generation method, device, equipment and medium
CN111176979B (en) Test case generation method and device of graph database
CN111652266A (en) User interface component identification method and device, electronic equipment and storage medium
CN106776334A (en) Based on annotation generation method of test example and device
CN107784230B (en) The restorative procedure and device of page loophole
CN110750434A (en) Interface testing method and device, electronic equipment and computer readable storage medium
CN110737573B (en) Method and device for automatically testing user interface UI
CN110201397B (en) Game resource allocation method and device and electronic equipment
CN110737578A (en) test application method and device
CN115987821A (en) Gateway routing test method and device
CN110737577A (en) test defect data storage method and device
CN109389972A (en) Quality detecting method, device, storage medium and the equipment of semantic cloud function
CN108108467A (en) Data-erasure method and device
CN110750409A (en) Method, device and system for realizing test
CN112329124A (en) CAE model error checking method and device, computer equipment and storage medium
CN111221737B (en) Coverage rate determining method, coverage rate determining device and storage medium
CN111444057A (en) Page performance data acquisition method and device and computing equipment
CN112346988B (en) Data testing method, system and data screening device
CN113434215B (en) Information loading method and device, storage medium and processor

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