Summary of the invention
The purpose of the embodiment of the present invention is to provide verification method and the system of a kind of equipment access-in management platform, with
Solve what prior art existed, during equipment access-in management platform test, owing to building real test wrapper
Border is limited by geographical environment, cost etc., and cannot the problem of Rapid Implementation.
Embodiments of the invention are achieved in that the verification method of a kind of equipment access-in management platform, described side
Method comprises the following steps:
Obtain scene configuration information, create virtual unit cluster according to described scene configuration information;
Recording equipment access-in management platform and the communications records of virtual unit cluster, and equipment access-in management platform
Resource use record;
Record is used to generate test report according to described log and described resource.
Further, wrap before described recording equipment access-in management platform and the communications records of virtual unit cluster
Include:
Arranging chronograph mechanism, described chronograph mechanism includes:
Interim chronograph mechanism, processes the time for calculating the average traffic of equipment access-in management platform;
Global timing's mechanism, for calculating the handling capacity of equipment access-in management platform.
Further, described method also includes:
Judge whether to need adjustment equipment access-in management platform and/or scene configuration information according to test report.
Further, described judge whether to need adjustment equipment access-in management platform and/or scene according to test report
Configuration information particularly as follows:
Index item in test report is compared with pre-set level desired value;
When the deviation of the index item in test report Yu pre-set level desired value exceedes predetermined threshold value, readjust
Hardware that equipment access-in management platform is corresponding and/or press predetermined amplitude and adjust scene configuration information.
Further, include before described acquisition scene configuration information:
There is provided the page by web page server, receive scene configuration information.
Further, when the scene loop number of times in scene configuration information is more than 1, enter by scene loop number of times
Row equipment access-in management platform and the communication of virtual unit cluster.
The purpose of another embodiment of the present invention is to provide the checking system of a kind of equipment access-in management platform, institute
The system of stating includes:
Acquiring unit, is used for obtaining scene configuration information, creates virtual unit collection according to described scene configuration information
Group;
Record unit, for the communications records of recording equipment access-in management platform Yu virtual unit cluster, Yi Jishe
The resource of standby access-in management platform uses record;
Processing unit, for using record to generate test report according to described log and described resource.
Further, described system also includes:
Arranging unit, be used for arranging chronograph mechanism, described chronograph mechanism includes:
Interim chronograph mechanism, processes the time for calculating the average traffic of equipment access-in management platform;
Global timing's mechanism, for calculating the handling capacity of equipment access-in management platform;
Described interim chronograph mechanism and described global timing mechanism are run simultaneously.
Further, described system also includes:
Receive unit, for providing the page by web page server, receive scene configuration information.
Further, described system also includes:
Cycling element, for when the scene loop number of times in scene configuration information is more than 1, by scene loop
Number carries out the communication of equipment access-in management platform and virtual unit cluster.
The embodiment of the present invention, by configuring scene configuration information, creates virtual unit cluster, at equipment access-in management
Platform is with the communication process of virtual unit cluster, and collection communication record and resource service condition, generation test is reported
Accuse, evaluate whether access-in management platform is suitable in the real scene corresponding with scene configuration information, solve existing
With the presence of technology, during equipment access-in management platform test, it is subject to owing to building real test environment
Geographical environment, cost etc. limit, it is impossible to the problem of Rapid Implementation.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and enforcement
Example, is further elaborated to the present invention.Should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
One embodiment of the invention provides the verification method of equipment access-in management platform, the method as it is shown in figure 1,
Concrete steps include:
In step S101, obtain scene configuration information, create virtual unit cluster according to scene configuration information.
In the present embodiment, the mode obtaining scene configuration information includes reading from data base, it is also possible to be real
Time accept the mode of human configuration and realize, this scene can be newly-built scene, it is also possible to be to carry out existing scene
Obtain after Adjustment and reform;This scene configuration information includes but not limited to equipment group information, equipment Foundations value, sets
Standby state updates time interval, communication protocol, load output duration, scene effect duration and scene loop
Number, equipment group information includes device type and the number of devices of equipment in equipment group quantity, each equipment group, this
In device type include but not limited to luminaire, broadcasting equipment, access control equipment and information distributing apparatus;
Equipment Foundations value includes the initial value of equipment state, maximum, minima and each amplitude of variation, bonding apparatus
Each amplitude of variation of state and equipment state update time interval can calculate the changing value of equipment state;Logical
Letter agreement refers to virtual unit cluster and the communication protocol of equipment access-in management platform and communication mode;Load output
Persistent period, refer to when equipment access-in management platform to virtual unit cluster initiating equipment status request when,
Virtual unit cluster continues the time to equipment access-in management platform propelling data bag;Scene effect duration refers to scene
The effect duration of test plan, such as from certain year in such a month, and on such a day to certain year in such a month, and on such a day, this scene can make for test
With;Scene loop number of times refers to the number of times that each test loop of this scene performs, scene set cycle-index be for
Obtain conclusion more accurately.The virtual unit trunked analog created by above-mentioned scene configuration information is actual
Scene.
In step s 102, recording equipment access-in management platform and the communications records of virtual unit cluster, and
The resource of equipment access-in management platform uses record.
It should be noted that before step S102, need to set up equipment access-in management platform and virtual unit
Communication connection between cluster.
In the present embodiment, equipment access-in management platform includes with the communications records of virtual unit cluster: equipment connects
Enter to manage platform to push away to equipment access-in management platform to virtual unit collection pocket transmission subscription request, virtual unit cluster
Send packet, equipment access-in management platform that propelling data bag is fed back, and this subscription request, this propelling movement
Packet and this time of origin feeding back propelling data bag, can also be counted by above-mentioned log
In preset time period, equipment access-in management platform subscribes to number of requests, virtual unit collection to virtual unit collection pocket transmission
Propelling data bag is entered by group to equipment access-in management platform propelling data bag quantity and equipment access-in management platform
Row feedback quantity;Resource use record include central processing unit (English: Central Processing Unit, be called for short:
CPU) utilization rate, EMS memory occupation situation, number of threads and input and output byte number, EMS memory occupation situation includes
Total internal memory and the internal memory taken.
In step S103, record is used to generate test report according to log and resource.
During it should be noted that the index item in test report includes but not limited to number of concurrent, business average treatment
Between, concurrent time ratio, resource service condition, by test report, we can be existed by virtual unit cluster
The situation that preset time period is run, it is thus achieved that when the physical device cluster corresponding with virtual unit cluster runs, equipment
Load and the configuration of access-in management platform are the most reasonable.
Needing further exist for explanation, the process generating test report includes: make from above-mentioned log and resource
Call related data with in record, and input preset formula and obtain test report;Number of concurrent refers to that access tube pats
Platform in the unit interval (1 second) in the number of services that simultaneously processes, equipment access-in management platform is to propelling data
Bag carries out feeding back, and shows that access-in management platform is complete the process of business, by preset time period with default
In time period, propelling data bag is carried out feeding back quantity by access-in management platform, can calculate number of concurrent;Business is put down
All process the time be that all of traffic handling time sums up in preset time period, by add and after business at
The reason time is average to Business Processing number of times, and traffic handling time is by sending out of feeding back propelling data bag
The time of origin of raw time and propelling data bag subtracts each other acquisition, and Business Processing number of times is that access-in management platform is to propelling movement
Packet carries out Times of Feedback;Concurrent time ratio=number of concurrent/business average handling time;Resource service condition bag
Include the meansigma methods of the meansigma methods of CPU usage, maximum, minima and memory usage, maximum,
Little value.
Needing further exist for explanation, test report can also be according to the number of concurrent calculated, business average treatment
Time, the meansigma methods of CPU usage and the meansigma methods of memory usage, and be number of concurrent, Business Processing put down
The desired value that all meansigma methods of time, the meansigma methods of CPU usage and memory usage is arranged, for number of concurrent,
The meansigma methods of Business Processing average time, the meansigma methods of CPU usage and memory usage is given a mark, specifically
As shown in table 1, system evaluation total score is real income score value each data item sum;By calculate each
Data compare with the desired value of setting, it is possible to valuator device access-in management platform is the most reasonable, such as, calculate
The number of concurrent come is 2, but the desired value arranged for number of concurrent is 10, then explanation equipment access-in management platform pair
The disposal ability wretched insufficiency of number of concurrent, needs the number of concurrent disposal ability of adjustment equipment access-in management platform.
Table 1
Optionally, included before step S102:
Arranging chronograph mechanism, this chronograph mechanism includes:
Interim chronograph mechanism, processes the time for calculating the average traffic of equipment access-in management platform;
Global timing's mechanism, for calculating the handling capacity of equipment access-in management platform.
It should be noted that when arranging interim chronograph mechanism, equipment access-in management platform is mass-sended to virtual unit collection
Playing equipment state to pull subscription, the timing when sending response data packet of virtual unit cluster, equipment access tube pats
Platform has often processed a packet, and just respond packet of transmission is to virtual unit cluster, and this time timing terminates, and obtains
Traffic handling time of equipment access-in management platform;When arranging global timing's mechanism, start to knot from test
Bundle, records packet and equipment access-in management platform that virtual unit cluster sends to equipment access-in management platform
The packet being successfully processed, the equipment access-in management platform number that the unit interval is successfully processed within global timing's time
It is exactly the handling capacity in timing according to bag.
Optionally, interim chronograph mechanism and global timing's mechanism are run simultaneously.
In the present embodiment, both use by chronograph mechanism simultaneously, calculate equipment access-in management platform once respectively
Traffic handling time and the handling capacity of equipment access-in management platform.
Optionally, included before step S101:
There is provided the page by web page server, receive scene configuration information.
It should be noted that receiving scene configuration information can be to receive brand-new scene configuration information, it is also possible to
It is that existing scene configuration information is modified.
Web page server includes that data base and network service element are (English: Web Service).Network service element
Provide the application programming interfaces (API) with data base's read/write, all specifically write and readings to data base
All completed by network service element.The scene configuration information providing the page to receive by web page server passes through net
Network service unit stores to data base;When scene configuration information is called, also it is to be come by this network service element
Obtain.It addition, communications records, resource use record also to carry out write into Databasce by network service element.
Optionally, the verification method of this equipment access-in management platform also includes:
When the scene loop number of times in scene configuration information is more than 1, carry out equipment access by scene loop number of times
Management platform and the communication of virtual unit cluster.
It should be noted that scene loop number of times is not the purpose of 1 is to pat by repeatedly testing equipment access tube
Platform communicates with virtual unit cluster, it is thus achieved that log and resource use record the most accurately, further
To test report the most accurately.
Optionally, the verification method of this equipment access-in management platform also includes:
Judge whether to need adjustment equipment access-in management platform and/or scene configuration information according to test report.
Optionally, described judge whether to need adjustment equipment access-in management platform and/or scene to join according to test report
Confidence breath specifically includes:
Index item in test report is compared with pre-set level desired value;
When the deviation of the index item in test report Yu pre-set level desired value exceedes predetermined threshold value, readjust
Hardware that equipment access-in management platform is corresponding and/or press predetermined amplitude and adjust scene configuration information.
It should be noted that pre-set level desired value is corresponding with the index item in test report, it is used for detecting test
Whether the index item in report exceedes predetermined threshold value, such as in test report with the deviation of pre-set level desired value
Number of concurrent is 2, and be the pre-set level desired value that number of concurrent is arranged be 10, and this deviation threshold is 4, the most aobvious
So this deviation has exceeded this deviation threshold, according to predetermined amplitude, equipment group quantity is reduced one group, re-starts survey
Examination, or point out by the internal memory manually increasing equipment access-in management platform, complete equipment access-in management platform
After hardware adjustment, test can be re-started, it is also possible to i.e. point out the hardware of change equipment access-in management platform,
Also scene configuration information is adjusted simultaneously.
The virtual unit cluster that the embodiment of the present invention is created by simulation, record virtual unit cluster and equipment access
Manage the communications records of platform and produce test report, obtaining equipment access-in management platform is tested by report
The result of card, solves what prior art existed, owing to building real test environment by geographical environment, one-tenth
This grade limits, and cannot the problem of Rapid Implementation.
Another embodiment of the present invention provides the checking system of equipment access-in management platform, and this equipment access tube pats
The modular structure of the checking system of platform is as in figure 2 it is shown, specifically include:
Acquiring unit 21, is used for obtaining scene configuration information, creates virtual unit cluster according to scene configuration information;
Record unit 22, for the communications records of recording equipment access-in management platform Yu virtual unit cluster, and
The resource of equipment access-in management platform uses record;
Processing unit 23, for using record to generate test report according to log and resource.
Optionally, the checking system of this equipment access-in management platform also includes:
Arranging unit, be used for arranging chronograph mechanism, this chronograph mechanism includes:
Interim chronograph mechanism, processes the time for calculating the average traffic of equipment access-in management platform;
Global timing's mechanism, for calculating the handling capacity of equipment access-in management platform;
This interim chronograph mechanism and this global timing's mechanism are run simultaneously.
Optionally, the checking system of this equipment access-in management platform also includes:
Receive unit, for providing the page by web page server, receive scene configuration information.
Optionally, the checking system of this equipment access-in management platform also includes:
Cycling element, for when the scene loop number of times in scene configuration information is more than 1, by scene loop
Number carries out the communication of equipment access-in management platform and virtual unit cluster.
The checking system of the equipment access-in management platform that the embodiment of the present invention provides can use in aforementioned correspondence
The verification method of equipment access-in management platform, details see the associated description of above-mentioned Fig. 1 correspondence embodiment, at this
Repeat no more.
The checking system of the equipment access-in management platform that the embodiment of the present invention provides, creates virtual by acquiring unit
The communications records of device clusters, recording unit records equipment access-in management platform and virtual unit cluster, Yi Jishe
The resource of standby access-in management platform uses record, is finally produced test report by processing unit, it is thus achieved that connect equipment
Enter to manage platform validation result, solve owing to building real test environment by the limit such as geographical environment, cost
System, and cannot the problem of Rapid Implementation.
One of ordinary skill in the art will appreciate that the modules included by above-described embodiment is according to merit
Logic can carry out dividing, but be not limited to above-mentioned division, as long as being capable of corresponding function;
It addition, the specific name of each functional module is also only to facilitate mutually distinguish, it is not limited to the present invention's
Protection domain.
Those of ordinary skill in the art it is also understood that, it is achieved all or part of step in above-described embodiment method
The program that can be by completes to instruct relevant hardware, and described program can read storage being stored in
In medium, described storage medium, including ROM/RAM etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention
Spirit and principle within any amendment, equivalent and the improvement etc. made, should be included in the guarantor of the present invention
Within the scope of protecting.