Fire-fighting Internet of things system method of testing
Technical field
The present invention relates to a kind of method of testing, specifically, relate to a kind of fire-fighting Internet of things system method of testing.
Background technology
Along with applying of fire-fighting Internet of things system, for guaranteeing normally operation stably of system, and has a compatibility, must guarantee that the fire-fighting Internet of things system meets the codes and standards requirement, and each equipment all is in normal operating conditions in the system, thereby need detect each equipment in the system, and existing method of testing mainly is divided into two kinds: one, object test: adopt the corresponding system of real device build, various possible situations are tested, and according to the standard evaluation system; Two, virtual test: utilize the various system equipments of computer virtual to constitute complete system, generate various application scenarioss and system situation at random, and system is estimated.More than two kinds of test modes respectively have superiority, but function is all imperfect, namely can't relatively comprehensively test the fire-fighting Internet of things system, can't meet consumers' demand.
Summary of the invention
The object of the present invention is to provide a kind of fire-fighting Internet of things system method of testing, it is imperfect mainly to solve the fire-fighting Internet of things system method of testing function that exists in the prior art, can't comprehensively test the problem that to meet consumers' demand to the fire-fighting Internet of things system.
To achieve these goals, the technical solution used in the present invention is as follows:
Fire-fighting Internet of things system method of testing may further comprise the steps:
(1) sets up the virtual fire-fighting equipment corresponding with real equipment, virtual fire-fighting controller, virtual transmission network and virtual fire-fighting data center, wherein, the output of virtual fire-fighting equipment links to each other with virtual fire-fighting controller, virtual fire-fighting controller is by virtual transmission network and virtual two-way connection of fire-fighting data center, and virtual fire-fighting data center comprises the database that stores fire-fighting Internet of things system index request;
(2) according to the concrete working condition of test cases collection simulation virtual fire-fighting equipment, virtual fire-fighting controller and virtual transmission network, and according to the index request in the database fire-fighting Internet of things system is tested;
(3) test data according to the index request in the database and test cases collection outputs test result.
Specifically, in the described step (2), the test cases collection is tested according to test specification set pair fire-fighting Internet of things system, and described test specification collection comprises testing standard, test specification, testing process and content measurement.
In the described step (1), that the index request in the database comprises is functional, fail safe, robustness and availability.
Further, described functional adaptability, accuracy, interoperability and the function compliance of comprising.
Among the present invention, described fail safe comprises key management authentication and access control, safe route, secret protection, intrusion detection and fault-tolerance and invade-tolerance, trackability, the property monitored and connectivity; Described robustness comprises maturity, fault-tolerance, easy restorative and compliance; Described availability comprises the utilization of resources and time response.
Compared with prior art, the present invention has following beneficial effect:
(1) the present invention tests the fire-fighting Internet of things system with the mode of virtual test according to test specification collection and test cases centralized procurement, and be provided with specific index request, realized the full test to the fire-fighting Internet of things system, for practical application provides reliable basis, reduced unnecessary loss in system's process of construction, and compare with the material object construction that cost is lower, construction efficiency is higher, more meet user's request.
Description of drawings
Fig. 1 is work schematic diagram of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples, and embodiments of the present invention include but not limited to the following example.
Embodiment
Imperfect in order to solve the fire-fighting Internet of things system method of testing function that exists in the prior art, can't comprehensively test the fire-fighting Internet of things system, the problem that can't meet consumers' demand, as shown in Figure 1, the invention discloses a kind of fire-fighting Internet of things system method of testing, this method adopts the mode of virtual test that the fire-fighting Internet of things system is tested, according to test specification collection and test cases collection, index request according to test is (functional, fail safe, robustness, availability etc.) system is tested, and output test result, comprise knowledge base, the defective storehouse, case library, resources bank etc., thereby various fire-fighting Internet of things system are estimated, and then for practical application provides foundation, reduced unnecessary loss in the process of construction, raising system construction efficiency, the normal stable operation of assurance system.
In order to realize the present invention, only need to set up successively to link to each other, the virtual fire-fighting equipment corresponding with real equipment, virtual fire-fighting controller, virtual transmission network and virtual fire-fighting data center, according to the test cases collection at virtual fire-fighting equipment, virtual fire-fighting controller, the various truths of emulation such as virtual transmission network, and it is (functional according to the index request of test, fail safe, robustness, availability etc.) the fire-fighting Internet of things system is tested, output test result at last, comprise knowledge base, the defective storehouse, case library, resources bank etc., wherein, knowledge base and resources bank all show the dependence test foundation; Case library shows corresponding test case; The problem that defective storehouse display system exists or hides in the hiding so just can realize full test and detection to the fire-fighting Internet of things system.
Consider the accuracy of test, the test cases collection is tested according to the virtual fire-fighting equipment in the test specification set pair fire-fighting Internet of things system, virtual fire-fighting controller, virtual transmission network etc., and the test specification collection among the present invention comprises testing standard, test specification, testing process and content measurement.
Among the present invention, its functional attributes in the index request comprises adaptability, accuracy, interoperability and function compliance etc.; Safety indexes comprises key management, authentication and access control, safe route, secret protection, intrusion detection and fault-tolerance and invade-tolerance, trackability, the property monitored and connectivity etc.; Robustness comprises maturity, fault-tolerance, easy restorative and compliance etc.; Availability comprises the utilization of resources and time response etc.
In order to ensure testing efficiency, preferably set up a database in virtual fire-fighting data center among the present invention, the system index of fire-fighting Internet of Things requires to be stored in this database, only needs accessing database just can call wherein index request when test, realizes test quickly and easily.
Among the present invention, the index request of test and test specification concentrate relevant parameter all to arrange according to the industry index of fire-fighting Internet of things system, test cases is test case, during application, according to the concentrated test cases that is complementary with it of selecting for use of the test cases that do not coexist of the selected Device element of virtual fire-fighting system.
According to above-described embodiment, just can realize the present invention well.