CN105631309B - A kind of event tests power method and tests power system - Google Patents

A kind of event tests power method and tests power system Download PDF

Info

Publication number
CN105631309B
CN105631309B CN201511018358.8A CN201511018358A CN105631309B CN 105631309 B CN105631309 B CN 105631309B CN 201511018358 A CN201511018358 A CN 201511018358A CN 105631309 B CN105631309 B CN 105631309B
Authority
CN
China
Prior art keywords
power
event
module
test
testing
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.)
Active
Application number
CN201511018358.8A
Other languages
Chinese (zh)
Other versions
CN105631309A (en
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.)
Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Original Assignee
Shenzhen Kemanda Intelligent Management Science & 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 Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd filed Critical Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Priority to CN201511018358.8A priority Critical patent/CN105631309B/en
Publication of CN105631309A publication Critical patent/CN105631309A/en
Application granted granted Critical
Publication of CN105631309B publication Critical patent/CN105631309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems

Abstract

It is tested the embodiment of the invention discloses a kind of event and power method and tests power system, the method comprise the steps that test power system creates system configuration file in testing power module, system configuration file, which is used to indicate, corresponding with event type tests power process;It tests power system the first functional module of reception and power request is tested to first event;The power system of testing determines the object event type of first event;It tests power system and determines that the corresponding target of object event type tests power process according to system configuration file;Test power system according to target test power process first event is carried out to test power.The embodiment of the invention also provides one kind to test power system.The embodiment of the present invention by test power modular system configuration file in it is corresponding with event type test power process modify, just can guarantee different function module same type event test power process it is identical, to reduce maintenance cost.

Description

A kind of event tests power method and tests power system
Technical field
Power method is tested the present invention relates to Development of Modular field more particularly to a kind of event and tests power system.
Background technique
OSGI is the specification of a service framework, and in the exploitation of OSGI modular technology, all kinds of event distributions are in each function Can module, the event that many functional modules include requires verifying authorization, and the event of same type tests power in disparate modules Process should keep identical.
In the prior art, each functional module is individually stored with event and tests power process, when some functional module has event needs It tests temporary, the corresponding power process of testing of the event that this functional module is stored according to itself carries out the event to test power.
When the event of some type test power process go wrong need to modify when, in order to guarantee each module to this type Event test power process it is identical, need respectively to each functional module for the event for including this type test power process into Row modification, to consume a large amount of maintenance cost.
Summary of the invention
The one side of the embodiment of the present invention provides a kind of event and tests power method, comprising:
It tests power system and creates system configuration file in testing power module, system configuration file is used to indicate and event type phase It is corresponding to test power process;It tests power system the first functional module of reception and power request is tested to first event;The power system of testing determines first The object event type of event;It tests power system and determines that the corresponding target of object event type tests power stream according to system configuration file Journey;Test power system according to target test power process first event is carried out to test power.
With reference to first aspect, in the first possible implementation of the first aspect, power system is tested in testing power module Creation system configuration file include: test that power system reads event from each functional module test power process;Testing power system will read To power process of testing integrated according to event type, obtain corresponding with event type testing power process;The power system of testing will be with thing The corresponding power process recording of testing of part type is in system configuration file.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect are possible Implementation in, test power system and distribute to first event and test power module;Test power system according to test power process to first event It carries out testing power including: to test power system to carry out testing power to first event according to power process is tested by testing power module.
With reference to first aspect, second of possible reality of the possible implementation of the first of first aspect and first aspect Any one tests power system for object event type in a third possible implementation of the first aspect among existing mode Corresponding power process of testing distributes to the first functional module;Test power system according to test power process first event is carried out testing power include: It tests power system and first event is carried out to test power according to power process is tested by the first functional module.
The possible implementation of second with reference to first aspect, in the 4th kind of possible implementation of first aspect In, the power system of testing will test power result and distribute to the first functional module.
With reference to first aspect, the possible implementation of the first of first aspect, first aspect second of possible reality It is any among 4th kind of possible implementation of existing mode, the third possible implementation of first aspect and first aspect One kind is tested power system and is listened to from the second functional module and test target in the fifth possible implementation of the first aspect The target modification that power process is done;The power system of testing judges whether target modification is legal;If target modification is legal, power system root is tested Power process is tested in the target tested in power module update system configuration file according to target modification;Test power system according to test power module more The target that new content updates the first functional module tests power process.
With reference to first aspect, the possible implementation of the first of first aspect, first aspect second of possible reality Now the 4th kind of possible implementation and first party of mode, the third possible implementation of first aspect, first aspect Any one tests power in the sixth possible implementation of the first aspect among the 5th kind of possible implementation in face Process is tested power system and is obtained according to the regular changeable assembling of power of testing.
With reference to first aspect, the possible implementation of the first of first aspect, first aspect second of possible reality Now the 4th kind of possible implementation, first aspect of mode, the third possible implementation of first aspect, first aspect The 5th kind of possible implementation and first aspect the 6th kind of possible implementation among any one, in first aspect The 7th kind of possible implementation in, test power system be the system based on OSGI.
The second aspect of the embodiment of the present invention provides one kind and tests power system, comprising:
Creation module, for creating system configuration file in testing power module, system configuration file is used to indicate and event Type is corresponding to test power process;
Receiving module tests power request to first event for receiving the first functional module;
First determining module, for determining the object event type of first event;
Second determining module, for determining that the corresponding target of object event type tests power process according to system configuration file;
Power module is tested, first event is carried out to test power for testing power process according to target.
In conjunction with second aspect, in the first possible implementation of the second aspect, creation module includes:
Reading unit tests power process for reading event from each functional module;
Integral unit, the power process of testing for that will read are integrated according to event type, are obtained and event type pair That answers tests power process;
Recording unit, for power process recording corresponding with event type will to be tested in system configuration file.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect may Implementation in, the power system of testing further includes the first distribution module, tests power module for distributing to first event;Test power module Power unit is tested including first, for carrying out testing power to first event according to power process is tested by testing power module.
In conjunction with the first possible implementation of second aspect, second aspect and second of possible reality of second aspect Among existing mode any one, in the third possible implementation of the second aspect, the power system of testing further includes the second distribution Module, for the corresponding power process of testing of object event type to be distributed to the first functional module;It tests power module and tests power including second Unit, for carrying out testing power to first event according to power process is tested by the first functional module.
In conjunction with second of possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the power system of testing further includes third distribution module, distributes to the first functional module for that will test power result.
In conjunction with the first possible implementation of second aspect, second aspect, second of possible reality of second aspect It is any among 4th kind of possible implementation of existing mode, the third possible implementation of second aspect and second aspect One kind testing power system in a fifth possible implementation of the second aspect further include:
Module is monitored, the target modification that power process is done is tested to target for listening to from the second functional module;
Judgment module, for judging whether target modification is legal;
First update module, for testing power module update system configuration according to target modification when target modification is legal Target in file tests power process;
Second update module, for testing power stream according to the target for update the first functional module of content update for testing power module Journey.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
Test power module in system configuration file record have it is corresponding with event type test power process, when have event needs test Temporary, it tests power system and can be determined according to system configuration file and test power process corresponding to the event type, and power stream is tested according to this Journey carries out the event to test power, ensure that disparate modules to the event of same type to test power process identical.And work as some class The power process of testing of the event of type goes wrong when needing to modify, it is only necessary to test power process accordingly to testing in power module and modifies , to reduce maintenance cost.
Detailed description of the invention
Fig. 1 is that event of the present invention tests power method one embodiment schematic diagram;
Fig. 2 is that event of the present invention tests another embodiment schematic diagram of power method;
Fig. 3 is that event of the present invention tests another embodiment schematic diagram of power method;
Fig. 4 is that the present invention tests power system one embodiment schematic diagram;
Fig. 5 is that the present invention tests another embodiment schematic diagram of power system;
Fig. 6 is that the present invention tests another embodiment schematic diagram of power system.
Specific embodiment
The embodiment of the invention provides a kind of events to test power method, by test power modular system configuration file in and thing Part type is corresponding to be tested power process and modifies, just can guarantee different function module same type event to test power process identical, To reduce maintenance cost.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
For ease of understanding, the detailed process in the embodiment of the present invention is described below, referring to Fig. 1, the present invention is real It applies event in example and tests power method one embodiment and include:
101, it tests power system and creates system configuration file in testing power module;
The power system of testing can create system configuration file in testing power module, and system configuration file is used to indicate and event class Type is corresponding to test power process.
102, it tests power system the first functional module of reception and power request is tested to first event;
Power system is tested in testing power module after creation system configuration file, the power system of testing can receive to the first function mould Block tests power request to first event.
103, the object event type that power system determines first event is tested;
The power system of testing receive the first functional module to first event test power request after, can determine the mesh of first event Mark event type.
104, it tests power system and determines that the corresponding target of object event type tests power process according to system configuration file;
After the power system of testing determines the object event type of first event, the system configuration text tested in power module can be read Part determines that the corresponding target of object event type tests power process.
105, test power system according to target test power process first event is carried out to test power.
The power system of testing determines that target is tested after power process, and power process can be tested according to target and carries out testing power to first event.
It should be noted that tested in above-described embodiment power system test that power process carries out testing power to first event according to target can To realize in different ways, it is illustrated separately below:
One, first event is carried out to test power by testing power module:
In the present embodiment, it tests power system and distributes to first event and test power module, and by testing power module to the first thing Part carries out testing power, and referring specifically to Fig. 2, event of the present invention tests another embodiment of power method and includes:
201, it tests power system creation and tests power module;
The power system of testing, which can create, tests power module, tests power for the event of managing concentratedly.The power system of testing can be for based on opening Service the system that gate originates OSGI, or other systems, as long as it is suitable for the invention system, the present embodiment It is not specifically limited.
202, it tests power system and creates system configuration file in testing power module;
Power system is tested after power module is tested in creation, system configuration file, system configuration text can be created in testing power module Part record, which has, corresponding with event type tests power process.
Test power system the process of system configuration file is created in testing power module can be with are as follows: test power system from each functional module Middle reading event tests power process, is integrated into one and tests power process the power process of testing of disparate modules same type event, i.e., with Event type is corresponding to test power process.Testing for disparate modules same type event weighs process difference if it exists, can be according to certain Rule is unified, and tests power stream for example, can test power process to modify the event of moment most recent event type is corresponding thus Journey, specific rules are herein without limitation.Later, testing power system corresponding with event type can test power process for what integration obtain It is recorded in system configuration file, tests power process to indicate that event type is corresponding.
In addition, the power system of testing can also test power stream by the way that writing events type is corresponding directly in system configuration file Journey, the specific process for creating system configuration file are not specifically limited.
It should be noted that testing what power process was formed by testing power rule according to certain timing, power process is tested in system It can be that unit be stored to test power rule in configuration file, when the power system of testing needs to read, a certain event type is corresponding tests When weighing process, the power system of testing can assemble corresponding test of this event type according to preset time-series dynamics and weigh rule, and power stream is tested in generation Journey, thus the convenient modification to power process is tested.
203, it tests power system and listens to the target modification for testing target and weighing process and being done from the second functional module;
If the second functional module is stored with target and tests power process, tested then user can modify target in the second functional module Weigh process.When the target that user modifies the storage of the second functional module tests power process, the power system of testing can listen to target modification.
204, it tests power system and judges whether target modification is legal, if legal, then follow the steps 205, if it is illegal, then execute Step 206;
After the power system of testing listens to target modification, the power system of testing may determine that whether target modification is legal, if legal, then It executes step 205 and thens follow the steps 206 if it is illegal.
If 205, target modification is legal, test power system according to target modification test power module update system configuration file in Target test power process;
If target modification is legal, power system is tested according to target modification in the mesh tested in power module update system configuration file Mark tests power process.If the target in system configuration file, which tests power process, to be dynamically composed by testing power rule, power system root is tested According to target modification, power rule is tested in modification accordingly in system configuration file, power rule is tested in newly-increased/reduction or adjustment is tested power and advised Execution timing between then.
If 206, target modification is illegal, the power system of testing does not test power process to the target in system configuration file and carries out mesh Mark modification;
If target modification is illegal, then in order to avoid test power process it is illegal caused by test power procedural error, test power system System does not test power process to the target in system configuration file and carries out target modification.
It is understood that in actual use, the power system of testing can also be without the judgement of step 204, and direct root Power process is tested in the target tested in power module update system configuration file according to target modification.
207, it tests power system and power process is tested according to the target for update the first functional module of content update for testing power module;
When test power system according to target modification test power module update system configuration file in target test power process after, The target updated in system configuration file can be tested power process and distribute to the first functional module by the power system of testing, to update the first function The target of energy module tests power process.
Step 203 for illustrating, can test power process by modify event in the first functional module to step 207, It realizes the corresponding modification for testing power process to system configuration file in power module is tested, can be convenient user and repaired to power process is tested Change.In actual use, can also directly test power module system configuration file in test power process modify, herein not It is specifically limited.
Step 208 in the present embodiment is identical as the step 102 in embodiment illustrated in fig. 1, and details are not described herein again.
209, it tests power system and distributes to first event and test power module;
The power system of testing receive the first functional module to first event test power request after, first event can be distributed To power module is tested, the power available first event of module is tested.
210, the object event type that power module determines first event is tested;
Test power module get first event after, test power module can determine object event type.
211, it tests power module and determines that the corresponding target of object event type tests power process according to system configuration file;
Test power module determine object event type after, can read system configuration file search object event type it is corresponding Target tests power process.Testing power module can be read directly target and tests power process, and the side of power rule can also be tested by changeable assembling Formula obtains target and tests power process, is not specifically limited herein.
212, test power module according to target test power process first event is carried out to test power;
Test power module determine target test power process after, can be tested according to target power process first event is carried out to test power, and It obtains testing power as a result, i.e. by testing power or not by testing power.
213, test power module will test power result distribute to the first functional module.
It tests power module to obtain after testing power result, can will test power result and be sent to the first functional module, the first functional module It is available that power result is tested to first event.
Two, first event is carried out by the first functional module testing power:
In the present embodiment, it tests power system and the corresponding power process of testing of object event type is distributed into the first functional module, And first event is carried out by the first functional module to test power, referring specifically to Fig. 3, event of the present invention tests another implementation of power method Example include:
Step 301 in the present embodiment is identical to step 202 as the step 201 in embodiment illustrated in fig. 2 to step 302, Details are not described herein again.
303, test power system by the corresponding target of object event type test power process distribute to the first functional module;
It tests after power system creation system configuration file, the target in system configuration file can be tested to power process and distributed to First functional module.
Step 304 in the present embodiment is identical to step 208 as the step 203 in embodiment illustrated in fig. 2 to step 309, Details are not described herein again.In actual use, if test power module system configuration file in directly to test power process modify, So in the present embodiment, test power system need by the target Jing Guo target modification test weigh process distribute to the first functional module, Power process is tested to update the target of the first functional module storage.
310, the first functional module determines the object event type of first event;
When the first event needs of the first functional module are tested temporary, the first functional module can determine the mesh of first event Mark event type.
311, the first functional module determines that the corresponding target of object event type tests power process;
After first functional module determines the object event type of first event, the event for testing the distribution of power system can be read Type is corresponding to test power process, and therefrom searches and determine that the corresponding target of object event type tests power process.
Step 303 is used to test the target in system configuration file power process and distributes to the first functional module, the first function After the target that module assignment obtains tests power process, it can determine that the corresponding target of object event type tests power process.It is understood that As long as step 303 executes before step 311.
312, the first functional module tests power process according to target and carries out testing power to first event.
After first functional module determines that target tests power process, power process can be tested according to target, first event is tested Power, and obtain testing power as a result, instruction tests whether power passes through.
It tests power method to the event in the embodiment of the present invention above to be described, below to testing in the embodiment of the present invention Power system is described.
Referring to Fig. 4, the one embodiment for testing power system 400 in the embodiment of the present invention includes:
Creation module 401, for creating system configuration file in testing power module, system configuration file is used to indicate and thing Part type is corresponding to test power process;
Receiving module 402 tests power request to first event for receiving the first functional module;
First determining module 403, for determining the object event type of first event;
Second determining module 404, for determining that the corresponding target of object event type tests power stream according to system configuration file Journey;
Power module 405 is tested, first event is carried out to test power for testing power process according to target.
The relationship for testing each intermodule of power system in the present embodiment corresponding embodiment referring to Fig.1, details are not described herein again.
It should be noted that tested in above-described embodiment power system test that power process carries out testing power to first event according to target can To realize in different ways, it is illustrated separately below:
One, first event is carried out to test power by testing power module:
In the present embodiment, it tests power system and distributes to first event and test power module, and by testing power module to the first thing Part carries out testing power, and referring specifically to Fig. 5, the present invention tests another embodiment of power system 500 and includes:
First creation module 501 tests power module for creating;
Creation module 502, for creating system configuration file in testing power module;
Module 503 is monitored, the target modification that power process is done is tested to target for monitoring from the second functional module;
Judgment module 504, for judging whether target modification is legal, if legal, then starting module 505, if it is illegal, then Starting module 506;
First update module 505 is matched testing power module more new system according to target modification for when target modification is legal It sets the target in file and tests power process;
Disabled module 506, for forbidding testing power process to the target in system configuration file when target modification is illegal It modifies;
Second update module 507, for testing power according to the target for update the first functional module of content update for testing power module Process;
Receiving module 508 tests power request to first event for receiving the first functional module;
First distribution module 509 tests power module for distributing to first event;
First determining module 510, for determining the object event type of first event;
Second determining module 511, for determining that the corresponding target of object event type tests power stream according to system configuration file Journey;
Power module 512 is tested, first event is carried out to test power for testing power process according to target;
Third distribution module 513 distributes to the first functional module for that will test power result.
The relationship for testing each intermodule of power system in the present embodiment is referring to the corresponding embodiment of Fig. 2, and details are not described herein again.
Two, first event is carried out by the first functional module testing power:
In the present embodiment, it tests power system and the corresponding power process of testing of object event type is distributed into the first functional module, And first event is carried out by the first functional module to test power, referring specifically to Fig. 6, the present invention tests another implementation of power system 600 Example include:
The module 501 in module 601 and embodiment illustrated in fig. 5 in the present embodiment, module 602 execute phase with module 502 Same function, details are not described herein again.
Second distribution module 603 distributes to the first function mould for the corresponding target of object event type to be tested power process Block;
The module 503 in module 604 and embodiment illustrated in fig. 5 in the present embodiment, module 605 and module 504, module 606 execute identical function with module 505, module 607 and module 506, module 608 and module 507, module 609 and module 508 Can, details are not described herein again.
First determining module 610, for determining the object event type of first event;
Second determining module 611, for determining that the corresponding target of object event type tests power process;
Power module 612 is tested, first event is carried out to test power for testing power process according to target.
The relationship for testing each intermodule of power system in the present embodiment is referring to the corresponding embodiment of Fig. 3, and details are not described herein again.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes all or part of each embodiment method of the present invention Step.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only memory (ROM, Read-Only Memory), random Access various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
More than, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (14)

1. a kind of event tests power method characterized by comprising
It tests power system and creates system configuration file in testing power module, the system configuration file is used to indicate and event type phase It is corresponding to test power process;
Power system first functional module of reception of testing requests the power of testing of first event;
The object event type tested power system and determine the first event;
It is described to test power system and determine that the corresponding target of the object event type tests power process according to the system configuration file;
It is described test power system according to the target test power process the first event is carried out to test power.
2. event according to claim 1 tests power method, which is characterized in that the power system of testing creates in testing power module System configuration file includes:
It is described test that power system reads event from each functional module test power process;
The power process of testing testing power system and reading is integrated according to event type, and test corresponding with event type is obtained Weigh process;
It is described test power system by it is described it is corresponding with event type test power process recording in the system configuration file.
3. event according to claim 1 tests power method, which is characterized in that receive the first function mould in the power system of testing Block to first event test power request after, described to test before the object event type that power system determines the first event, institute State method further include:
It is described test power system and distribute to the first event described test power module;
It is described test power system according to the target test power process the first event is carried out testing power include:
It is described test power system by it is described test power module power process tested according to the target first event is carried out to test power.
4. event according to claim 1 tests power method, which is characterized in that test power system described and test power module described It is described to test power system the object event type pair is determined according to the system configuration file after middle creation system configuration file That answers tests before power process, the method also includes:
It is described test power system by the corresponding target of the object event type test power process distribute to first functional module;
It is described test power system according to the target test power process the first event is carried out testing power include:
It is described test power system by first functional module according to the target test power process the first event is tested Power.
5. event according to claim 3 tests power method, which is characterized in that test power system described and test Quan Mo by described Root tuber is tested power process according to the target and is carried out after testing power to the first event, the method also includes:
It is described test power system will test power result distribute to the first functional module.
6. event according to any one of claim 1 to 5 tests power method, which is characterized in that exist in the power system of testing It is described to test in power module after creation system configuration file, the first functional module is received to first event in the power system of testing It tests before power request, the method also includes:
The power system of testing listens to the target modification for testing the target and weighing process and being done from the second functional module;
The power system of testing judges whether the target modification is legal;
It is described to test power system the system is updated in the power module of testing according to the target modification if the target modification is legal Target in system configuration file tests power process;
It is described test power system and test the target of the first functional module described in the update content update of power module according to test power process.
7. event according to any one of claim 1 to 5 tests power method, which is characterized in that the power process of testing is institute It states and tests what power system was obtained according to the regular changeable assembling of power of testing.
8. event according to any one of claim 1 to 5 tests power method, which is characterized in that the power system of testing is base In the system that open service gate originates OSGI.
9. one kind tests power system characterized by comprising
Creation module, for creating system configuration file in testing power module, the system configuration file is used to indicate and event Type is corresponding to test power process;
Receiving module tests power request to first event for receiving the first functional module;
First determining module, for determining the object event type of the first event;
Second determining module, for determining that the corresponding target of the object event type tests power stream according to the system configuration file Journey;
Power module is tested, the first event is carried out to test power for testing power process according to the target.
10. according to claim 9 test power system, which is characterized in that the creation module includes:
Reading unit tests power process for reading event from each functional module;
Integral unit, the power process of testing for that will read are integrated according to event type, are obtained corresponding with event type Test power process;
Recording unit, for test corresponding with event type to be weighed process recording in the system configuration file.
11. according to claim 9 test power system, which is characterized in that described to test power system further include:
First distribution module described tests power module for distributing to the first event;
It is described test power module include:
First tests power unit, for by it is described test power module power process tested according to the target first event is tested Power.
12. according to claim 9 test power system, which is characterized in that described to test power system further include:
Second distribution module distributes to the first function mould for the corresponding target of the object event type to be tested power process Block;
It is described test power module include:
Second tests power unit, for by first functional module according to the target test power process to the first event into Row tests power.
13. according to claim 11 test power system, which is characterized in that described to test power system further include:
Third distribution module distributes to the first functional module for that will test power result.
14. testing power system according to any one of claim 9 to 13, which is characterized in that described to test power system further include:
Module is monitored, the target modification that power process is done is tested to the target for listening to from the second functional module;
Judgment module, for judging whether the target modification is legal;
First update module, for being updated in the power module of testing according to the target modification when the target modification is legal Target in the system configuration file tests power process;
Second update module, the target for testing the first functional module described in the update content update of power module according to test power Process.
CN201511018358.8A 2015-12-29 2015-12-29 A kind of event tests power method and tests power system Active CN105631309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511018358.8A CN105631309B (en) 2015-12-29 2015-12-29 A kind of event tests power method and tests power system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511018358.8A CN105631309B (en) 2015-12-29 2015-12-29 A kind of event tests power method and tests power system

Publications (2)

Publication Number Publication Date
CN105631309A CN105631309A (en) 2016-06-01
CN105631309B true CN105631309B (en) 2019-04-09

Family

ID=56046234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511018358.8A Active CN105631309B (en) 2015-12-29 2015-12-29 A kind of event tests power method and tests power system

Country Status (1)

Country Link
CN (1) CN105631309B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494657A (en) * 2008-01-24 2009-07-29 纬创资通股份有限公司 Method and system for automatic arrangement program control
CN101958905A (en) * 2010-09-29 2011-01-26 山东中创软件工程股份有限公司 Command management method, device and system
CN103034789A (en) * 2012-12-10 2013-04-10 山东中创软件商用中间件股份有限公司 Bundle deployment methodnd device and security framework
CN103729450A (en) * 2013-12-31 2014-04-16 深圳市科漫达智能管理科技有限公司 Function authority centralized management method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101456489B1 (en) * 2007-07-23 2014-10-31 삼성전자주식회사 Method and apparatus for managing access privileges in a CLDC OSGi environment
CN104378356B (en) * 2014-10-22 2017-09-29 上海交通大学 The demand response event method for managing security and system of based role

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494657A (en) * 2008-01-24 2009-07-29 纬创资通股份有限公司 Method and system for automatic arrangement program control
CN101958905A (en) * 2010-09-29 2011-01-26 山东中创软件工程股份有限公司 Command management method, device and system
CN103034789A (en) * 2012-12-10 2013-04-10 山东中创软件商用中间件股份有限公司 Bundle deployment methodnd device and security framework
CN103729450A (en) * 2013-12-31 2014-04-16 深圳市科漫达智能管理科技有限公司 Function authority centralized management method and device

Also Published As

Publication number Publication date
CN105631309A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN106940428B (en) Chip verification method, device and system
CN104123186B (en) Method for distributing business and device
JP2020503784A (en) Internet of Things
CN113347164B (en) Block chain-based distributed consensus system, method, device and storage medium
CN104168162B (en) A kind of software-hardware synergism realizes the traffic generator for interchanger validation test
CN104407945B (en) The method, apparatus and system of data backup
CN110417502A (en) A kind of block chain nodal clock common recognition method and device
US20200092192A1 (en) Testing functionality of an internet of things environment
CN104067236A (en) Testing a mobile application
CN110120970A (en) Data processing method, device and gateway system based on car networking
CN106211074A (en) The distribution method of e-sourcing and distributor
CN105553732B (en) A kind of distributed network analogy method and system
CN110244573A (en) Storage system and intelligent appliance based on intelligent appliance
WO2007022440A3 (en) Resource selection in a communication network
Beilharz et al. Continuously testing distributed iot systems: An overview of the state of the art
CN109978547A (en) Risk behavior control method and system, equipment and storage medium
CN104486337B (en) Validation of Data method and device
CN104599092B (en) For monitoring the method and apparatus of order business
CN106131786A (en) The acquisition methods of additional population data and device
CN105631309B (en) A kind of event tests power method and tests power system
CN106776372B (en) Emulation data access method and device based on FPGA
CN110232195A (en) A kind of method and device for simulating delivery process
CN102334315A (en) Port blocking-up method and route equipement
CN105959982A (en) Network access control method server and electronic equipment
Happ et al. Scalable assessment method for agent‐based control in cyber‐physical distribution grids

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant