CN105354144B - Business support system information model uniformity automated testing method and system - Google Patents
Business support system information model uniformity automated testing method and system Download PDFInfo
- Publication number
- CN105354144B CN105354144B CN201510869007.1A CN201510869007A CN105354144B CN 105354144 B CN105354144 B CN 105354144B CN 201510869007 A CN201510869007 A CN 201510869007A CN 105354144 B CN105354144 B CN 105354144B
- Authority
- CN
- China
- Prior art keywords
- entity
- tested
- class
- mapping
- information model
- 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
Links
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of business support system information model uniformity automated testing method and system, wherein, this method includes:Database table in business support system information model to be tested is inversely generated into entity class to be tested;Database table in default comparison information model is inversely generated into comparison entity class;Scan matching entity class to be tested extracts the test entity class to match and compares entity class with comparing entity class;The entity class to be tested to match is based on entity class mapping progress uniformity test with comparing entity class, exports the result of business support system information model uniformity test to be tested.Business support system information model uniformity automated testing method provided by the invention and system, the efficiency of information model uniformity test can be improved.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of business support system information model uniformity automatic test side
Method and system.
Background technology
Telecom operators mainly perform corresponding business operation by business support system to user, wherein, business support
System is the support system that major operator is used for supporting the whole network service operation, and business support system is transported with customer service, business
Battalion and management are core, using key transaction operation (customer service and charging are attached most importance to) as the major function of system, are used
The software engineerings such as open and advanced database, middleware provide a comprehensive service operation for Virtual network operator and management is flat
Platform.The actual conditions in each region that the composition of business support system includes by operator and operator and specific requirement are not
Together, regional has corresponding independent data and service function, due to same operator's regional have it is corresponding independent
Data so that the database that different zones use may be different so that regional can according to the information model of Database
It can have differences.Therefore, in order to ensure the corresponding independent data of same operator's regional are consistent, it is necessary to business support system
The uniformity of system information model is tested.
At present, the uniformity for testing business support system information model is to collect number in subsystems by manual research
The data being collected into are counted according to the data in storehouse, then by some form calculating instruments, show that business support system is believed
Cease the uniformity form of model.However, using current method of testing, receipt and test business support system information model are collected
Uniformity need by artificially collecting and count, time-consuming and efficiency is low.
The content of the invention
The present invention provides a kind of business support system information model uniformity automated testing method and system, can improve
The efficiency of information model uniformity test.
In a first aspect, business support system information model uniformity automated testing method provided by the invention, including:
Database table in business support system information model to be tested is inversely generated into uml class figure to be tested, according to treating
Test uml class figure and generate entity class to be tested;
Database table in default comparison information model is inversely generated and compares uml class figure, is generated according to uml class figure is compared
Compare entity class;
Scan matching entity class to be tested is with comparing entity class, if entity class to be tested matches with comparing entity class,
Extract the test entity class to match and compare entity class;
The entity class to be tested to match is based on entity class mapping progress uniformity test with comparing entity class, output is treated
Test the result of business support system information model uniformity test.
Second aspect, business support system information model uniformity automatization test system provided by the invention, including:
First generation module, it is to be measured for the database table in business support system information model to be tested inversely to be generated
Uml class figure is tried, entity class to be tested is generated according to uml class figure to be tested;
Second generation module, uml class figure, root are compared for the database table in default comparison information model inversely to be generated
Entity class is compared according to the generation of uml class figure is compared;
Scan extraction module, for scan matching entity class to be tested and comparing entity class, if entity class to be tested with than
Entity class is matched, then extracts the test entity class to match and compares entity class;
Output module is contrasted, for the entity class to be tested to match to be based on into entity class mapping progress with comparing entity class
Uniformity test, export the result of business support system information model uniformity test to be tested.
Business support system information model uniformity automated testing method provided by the invention and system, by by business
Entity class to be tested corresponding to database table generation in support system information model, by the data in default comparison information model
Entity class is compared corresponding to the table generation of storehouse, the entity class to be tested to match and comparison entity class of the entity class based on proposition are reflected
The comparison rules penetrated test the uniformity between entity class, may thereby determine that the consistent of business support system information model
Property, realize that business support system tests the uniformity of information model automatically, it is possible to reduce the duration of information model uniformity test,
Improve the efficiency of information model uniformity test.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs
Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the business support system information model uniformity automated testing method flow that the embodiment of the present invention one provides
Figure;
Fig. 2 is the business support system information model uniformity automated testing method flow that the embodiment of the present invention two provides
Figure;
Fig. 3 is the business support system information model uniformity automated testing method flow that the embodiment of the present invention three provides
Figure;
Fig. 4 is the business support system information model uniformity automatization test system structure that the embodiment of the present invention one provides
Schematic diagram;
Fig. 5 is the business support system information model uniformity automatization test system structure that the embodiment of the present invention two provides
Schematic diagram;
Fig. 6 is the work(for the business support system information model uniformity automatization test system that the embodiment of the present invention one provides
Can Organization Chart.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the business support system information model uniformity automated testing method flow that the embodiment of the present invention one provides
Figure.As shown in figure 1, method provided in an embodiment of the present invention includes:
S101:Database table in business support system information model to be tested is inversely generated into uml class figure to be tested, root
Entity class to be tested is generated according to uml class figure to be tested.
Specifically, need business support system information model uniformity during test business support system information model uniformity
Auto-Test System first extracts business support system information model, and the extraction of business support system information model is needed to business branch
The database table of support system is analyzed, and so as to comb out the information model of business support system, is formed information model standard and is built
Mould language (Unified Modeling Language, abbreviation UML) class figure, there is the description of a view to information model.
In the embodiment of the present invention, uml class figure shows one group of class, interface, cooperation and the relation between them, passes through
Uml class models, and builds these uml classes by programming language, establishes information model, so as to realize business support system.Uml class
Including border class, entity class and control class, the major responsibility of entity class is the information inside storage and management system, and entity class is
The class modeled for the information to that must store and corelation behaviour.Entity object (example of entity class) is used to preserving and updating one
A little phenomenons for information about, such as:Event, personnel or some real-life objects.Entity class is generally all permanent
, attribute and relation need for a long time possessed by them, are even required for sometimes in the whole life cycle of system.
Optionally, the database table in business support system to be tested is inversely generated using reverse Engineering Technology to be tested
Entity attribute and entity associated relation to be tested, it is to be tested according to entity attribute to be tested and entity associated relation to be tested generation
Entity class.
Wherein, uml class includes entity class, and entity class includes:Entity attribute and entity associated relation.
S102:Database table in default comparison information model is inversely generated and compares uml class figure, according to comparison uml class
Figure generation compares entity class.
Specifically, the embodiment of the present invention is mainly by by the entity class in business support system information model to be tested and in advance
If the entity class in comparison information model is compared, so as to test the uniformity for determining business support system information model.Cause
This, before being compared, business support system information model uniformity Auto-Test System is in default comparison information model
Database table is analyzed, and generation compares entity class.
It should be noted that it can be information model standard that comparison information model is preset in the embodiment of the present invention, can also
It is the business support system information model with business support system information model different zones to be tested.Specific default compare is believed
The selection of model is ceased depending on actual conditions, such as, if the information model of same two different zones of operator is carried out
Contrastive test, then preset comparison information model and can be, but not limited to information model of the selection for comparison area;If it is to determine a certain
Whether the information model in region meets standard, then it is information model standard to preset comparison information model and can be, but not limited to selection,
The embodiment of the present invention is herein without limiting and repeating.
Optionally, the database table set in comparison information model is inversely generated using reverse Engineering Technology and compares entity category
Property and compare entity associated relation, according to comparing entity attribute and the entity associated relation generation of comparison compares entity class.
S103:Scan matching entity class to be tested is with comparing entity class, if entity class to be tested is with comparing entity class phase
Match somebody with somebody, then extract the test entity class to match and compare entity class.
Specifically, business support system information model uniformity Auto-Test System distinguishes scan matching entity class to be tested
With comparing entity class, entity class to be tested is matched with comparing entity class and being scanned, and it is real to extract the test to match
Body class and comparison entity class.
S104:The entity class to be tested to match is based on entity class mapping progress uniformity test with comparing entity class,
Export the result of business support system information model uniformity test to be tested.
Specifically, business support system information model uniformity Auto-Test System is for test entity class and compares entity
The comparison of class can establish the comparison rules of entity class mapping, by the entity class to be tested to match and compare entity class based on real
The mapping of body class carries out uniformity test.Wherein, the comparison rules of entity class mapping can be mapped according to critical field, for example treat
Test entity class matches with comparing the critical field of entity class, then it is assumed that and entity class to be tested all matches with comparing entity class,
Mapping be present with comparing entity class in entity class to be tested;Can also be mapped according to entity attribute, such as, if entity to be tested closes
Entity corresponding to connection relation is consistent (identical) with comparing entity corresponding to entity associated relation, then it is assumed that entity attribute to be tested with
Compare entity attribute and mapping be present;Can also be according to entity associated relationship map, if corresponding to entity associated relation to be tested
Entity is consistent (identical) with comparing entity corresponding to entity associated relation, then it is assumed that entity associated relation to be tested is with comparing entity
There is mapping in incidence relation, the embodiment of the present invention is herein without limiting and repeating.
In the embodiment of the present invention, by the entity class to be tested to match and entity class is compared based on entity class mapping progress one
Cause property test, if entity class to be tested and comparing and mapping between entity class be present, then it is assumed that business support system information to be tested
Model consistency, business support system information model uniformity Auto-Test System export business support system information mould to be tested
Type uniformity;If entity class to be tested and comparing mapping being not present between entity class, then it is assumed that business support system letter to be tested
Model inconsistency is ceased, business support system information model uniformity Auto-Test System exports business support system letter to be tested
Cease model specifically inconsistent point.
Business support system information model uniformity automated testing method provided in an embodiment of the present invention, by by business
Entity class to be tested corresponding to database table generation in support system information model, by the data in default comparison information model
Entity class is compared corresponding to the table generation of storehouse, the entity class to be tested to match and comparison entity class of the entity class based on proposition are reflected
The comparison rules penetrated test the uniformity between entity class, may thereby determine that the consistent of business support system information model
Property, realize that business support system tests the uniformity of information model automatically, it is possible to reduce the duration of information model uniformity test,
Improve the efficiency of information model uniformity test.
Fig. 2 is the business support system information model uniformity automated testing method flow that the embodiment of the present invention two provides
Figure, Fig. 3 are the business support system information model uniformity automated testing method flow chart that the embodiment of the present invention three provides.Such as
Shown in Fig. 2 and Fig. 3, method provided in an embodiment of the present invention includes:
S201:Database table in business support system information model to be tested is inversely generated into uml class figure to be tested.
Specifically, conversion can use reverse Engineering Technology, such as Object Relation Mapping frame from database table to uml class figure
Frame Hibernate, can solve the problems, such as mapping relations of the database table to entity class.Bottom can be shielded based on reverse Engineering Technology
The difference in layer data storehouse, and reversely generate entity attribute and entity associated relation.It is then possible to utilize the reverse-engineering skill such as JUDE
Entity attribute and entity associated relation are converted to uml class figure by art, so as to complete the conversion from database table to uml class figure, from
And obtain the physical model of business support system database, intuitively reflect business support system data " how realizing ", " how
Association ", the physics present situation of " how using ".
It should be noted that reverse Engineering Technology is the process that a kind of designing technique reproduces, i.e., in business support system
Database table carry out conversed analysis and research, so as to deduce and draw the database table to the mapping relations of entity class;
Hibernate is the Object Relation Mapping framework of an open source code, and programmer be free to use object Program Thought
To edit database;JUDE is a practical UML modeling software, can meet the requirement of UML modelings.
S202:Uml class figure to be tested is subjected to Semantic mapping.
Wherein, Semantic mapping refers to being mapped identical semantic field name in uml class figure to be tested.
Specifically, after extracts physical model, because database table has multi-level isomery, (system data commercial entity orders
Name, entity attribute name, entity relationship name all differ with the description in business support specification).Therefore, it is necessary to extraction
Physical model, establish semantic model (logical model).I.e. for synonymous different word problems, it is necessary to do one layer of Semantic mapping.Tool
For body, " standard semantic data dictionary " is established with business support specification, by the word in business support system Data Physical model
Name section is mapped to the standard semantic of specification, so as to structure and output data semantic model on the Data Physical model of system
Layer.
Wherein, before Semantic mapping, it is thus necessary to determine that the mapping between corresponding uml class figure or perhaps entity class is closed
System, i.e. information model and the corresponding relation of information model in business support specification, this area normative reference or management practice are made
For core reference content, such as, this area normative reference can be the framework that Tele Management Forum (TM Forum) is formulated
(Frameworx) standard, management practice can be conventional planning, specification and construction achievement, by enterprise's concrete condition and core
Reference content is adapted to.For present case, information model can be adapted to business support system specification, it is specific and
Speech, can be deployed with top-down method, be combed out respectively each in business support specification and business support information model
Individual management domain, and mapping on this basis corresponding management domain, it is understood that there may be it is one-to-one, it is one-to-many, many-one, multipair
The relations such as more.After the mapping relations that management domain is determined, it is possible to carry out attribute and incidence relation to the entity in corresponding field
Mapping, so that it is determined that domain, entity, the corresponding relation of attribute, and then do the mapping of semanteme.
S203:Uml class figure to be tested after Semantic mapping is generated into entity class to be tested.
Specifically, the uml class figure to be tested after Semantic mapping is generated into entity class to be tested, can solve heterogeneous service branch
The entity class that database table in support system is generated by reverse Core Generator, which exists, expresses the problem of inaccurate, inconsistent, disappears
Except the phenomenon of synonymous different words.
It should be noted that the business support system established using disparate databases table that heterogeneous service support system refers to.
S204:Database table in default comparison information model is inversely generated and compares uml class figure, according to comparison uml class
Figure generation compares entity class.
It should be noted that S204 is identical with S102 implementation, S102 description is referred to, here is omitted.
S205:Scan matching entity class to be tested is with comparing entity class, if entity class to be tested is with comparing entity class phase
Match somebody with somebody, then extract the test entity class to match and compare entity class.
Optionally, scan matching entity class to be tested and entity class is compared, including:Scan the key in entity class to be tested
Critical field in field and comparison entity class;
Entity class to be tested matches with comparing entity class, including:Critical field in entity class to be tested is with comparing reality
Critical field in body class matches.
Specifically, can be by scanning the critical field in entity class to be tested and comparing entity class in the embodiment of the present invention
In critical field, determine that entity class to be tested matches with comparing entity class, if the critical field in entity class to be tested with
The critical field compared in entity class matches, then entity class to be tested matches with comparing entity class.
S206:The entity class to be tested to match is based on entity class mapping progress uniformity test with comparing entity class,
Export the result of business support system information model uniformity test to be tested.
Specifically, in the embodiment of the present invention can by following several situations by the entity class to be tested to match with comparing
Entity class is based on entity class mapping and carries out uniformity test.
A kind of situation, optionally, by entity attribute to be tested and entity attribute is compared based on entity attribute mapping progress one
The test of cause property, if entity attribute to be tested has mapping with comparing entity attribute, export entity class to be tested and compare entity
There is mapping in class, business support system information model to be tested passes through uniformity test.
In this step, optionally, there is mapping in entity attribute to be tested with comparing entity attribute, including:Entity to be tested
Attribute is consistent with comparing entity attribute.Generally, entity class includes entity attribute and entity associated relation, and entity associated is closed
System includes three kinds of connection, polymerization and set, type, in the embodiment of the present invention, as long as entity attribute to be tested is with comparing entity category
Property it is consistent, even if the incidence relation type of the two is different, it is also assumed that entity attribute to be tested and comparing entity attribute presence
Mapping, business support system information model to be tested pass through uniformity test.
And/or
Another situation, optionally, entity associated relation to be tested is based on entity associated with comparing entity associated relation
Relationship map carries out uniformity test, if entity associated relation to be tested has mapping with comparing entity associated relation, exports
There is mapping in entity class to be tested, business support system information model to be tested passes through uniformity test with comparing entity class.
In this step, there is mapping in entity associated relation to be tested with comparing entity associated relation, including:Entity to be tested
The entity corresponding with comparing entity associated relation of entity corresponding to incidence relation is consistent;And/or entity associated relation to be tested with
Compare entity associated relation and mapping be present, including:Be present entity associated relation to be tested in entity class to be tested, compare between entity class
Connect and comparison entity incidence relation be present, or, there is entity associated relation to be tested in entity class to be tested, compare entity class indirectly
Comparison entity incidence relation be present.In the embodiment of the present invention, there may be two kinds of situations determine entity associated relation to be tested with
Entity associated relation is compared with the presence or absence of mapping, as long as a kind of situation is entity corresponding to entity associated relation to be tested with comparing
Entity corresponding to entity associated relation is consistent, even if the quantity of associated element contained by association both sides is different, it is also assumed that to be measured
There is mapping in examination entity associated relation, business support system information model to be tested passes through uniformity with comparing entity associated relation
Test.Another situation be both entity class to be tested and entity class to be compared one of them entity associated relation be present, it is another
It is individual that entity associated relation is not present, if can indirectly embody entity class association pass in the absence of the entity class of entity associated relation
System, it is also assumed that entity associated relation to be tested has mapping, business support system to be tested with comparing entity associated relation
Information model passes through uniformity test;If in the absence of entity associated relation entity class without reference to the entity class association relation,
Then think entity associated relation to be tested and compare entity associated relation and be not present to map, business support system information mould to be tested
Type can not export entity associated to be tested by uniformity test, business support system information model uniformity Auto-Test System
Mapping is not present with comparing entity associated relation in relation, and test entity associated relation is not used to entity associated relation.
Mapping be present with comparing entity attribute in another situation, optionally, entity attribute to be tested, including:Reality to be tested
Body class matches with comparing the critical field of entity class.Ordinary circumstance, the phase of entity class is may be referred in specific comparison process
Pass describes and the explanation of its attribute field, and in the embodiment of the present invention, it is critical field that can define some fields, according to key
Field map, if entity class to be tested match with comparing the critical field of entity class, can consider entity class to be tested and than
Entity class is all matched, entity class to be tested has mapping, business support system information model to be tested with comparing entity class
Pass through uniformity test.If it should be noted that critical field mismatch of the entity class to be tested with comparing entity class, Ke Yizhi
The critical field mismatch for exporting entity class to be tested and comparing entity class is connect, further can also be used in above-mentioned two situations
The uniformity of at least one further contrastive test information model.
In the embodiment of the present invention, relative to traditional conformance test method, uniformity provided in an embodiment of the present invention is surveyed
The comparison rules that method for testing proposes are more flexible, while independent of the quantity in test data source, the comparison for multi-data source
Work is also relatively adapted to, and validity is higher.
Business support system information model uniformity automated testing method provided in an embodiment of the present invention, by by business
Entity class to be tested corresponding to database table generation in support system information model, by the data in default comparison information model
Entity class is compared corresponding to the table generation of storehouse, the entity class to be tested to match and comparison entity class of the entity class based on proposition are reflected
The comparison rules penetrated test the uniformity between entity class, may thereby determine that the consistent of business support system information model
Property, realize that business support system tests the uniformity of information model automatically, it is possible to reduce the duration of information model uniformity test,
The efficiency of information model uniformity test is improved, reduces influence of the human factor to test result accuracy and fairness.In addition,
Before entity class to be tested is generated according to uml class figure to be tested, uml class figure to be tested is subjected to Semantic mapping, can be solved
It is inaccurate, inconsistent expression to be present in the entity class that the database table in heterogeneous service support system is generated by reverse Core Generator
The problem of, the phenomenon of the synonymous different words of elimination.
Fig. 4 is the business support system information model uniformity automatization test system structure that the embodiment of the present invention one provides
Schematic diagram.As shown in figure 4, system provided in an embodiment of the present invention includes:First generation module 401, the second generation module 402,
Scan extraction module 403 and contrast output module 404.
First generation module 401, for the database table in business support system information model to be tested inversely to be generated
Uml class figure to be tested, entity class to be tested is generated according to uml class figure to be tested.
Second generation module 402, for the database table in default comparison information model inversely to be generated into comparison uml class
Figure, entity class is compared according to the generation of uml class figure is compared.
Scan extraction module 403, for scan matching entity class to be tested and comparing entity class, if entity class to be tested with
Compare entity class to match, then extract the test entity class to match and compare entity class.
Output module 404 is contrasted, for the entity class to be tested to match to be mapped with comparing entity class based on entity class
Uniformity test is carried out, exports the result of business support system information model uniformity test to be tested.
The business support system information model uniformity automatization test system of the embodiment of the present invention is used to perform shown in Fig. 1
The technical scheme of embodiment of the method, its implementing principle and technical effect is similar, and here is omitted.
Further, in the embodiment shown in fig. 4, scanning extraction module 403 is specifically used for:
Scan the critical field in entity class to be tested and compare the critical field in entity class.
Entity class to be tested matches with comparing entity class, including:Critical field in entity class to be tested is with comparing reality
Critical field in body class matches.
Further, in the embodiment shown in fig. 4, the first generation module 401 is specifically used for:
Database table in business support system to be tested is inversely generated by entity category to be tested using reverse Engineering Technology
Property and entity associated relation to be tested, entity to be tested is generated according to entity attribute to be tested and entity associated relation to be tested
Class.
Second generation module 402 is specifically used for:
The database table set in comparison information model is inversely generated using reverse Engineering Technology and compares entity attribute and ratio
To entity associated relation, entity class is compared according to comparing entity attribute and comparing the generation of entity associated relation.
Output module 404 is compared to be specifically used for:
By entity attribute to be tested and entity attribute is compared based on entity attribute mapping progress uniformity test, if to be tested
There is mapping in entity attribute, then export entity class to be tested and compare entity class in the presence of mapping with comparing entity attribute, to be tested
Business support system information model passes through uniformity test.
And/or
By entity associated relation to be tested and entity associated relation is compared based on entity associated relationship map progress uniformity
Test, if entity associated relation to be tested has mapping with comparing entity associated relation, entity class to be tested is exported with comparing
There is mapping in entity class, business support system information model to be tested passes through uniformity test.
Further, in the embodiment shown in fig. 4, with comparing entity attribute there is mapping in entity attribute to be tested, including:
Entity attribute to be tested is consistent with comparing entity attribute.
And/or
Mapping be present with comparing entity associated relation in entity associated relation to be tested, including:Entity associated relation to be tested
Corresponding entity entity corresponding with comparing entity associated relation is consistent.
And/or
Mapping be present with comparing entity associated relation in entity associated relation to be tested, including:Entity class to be tested, which exists, to be treated
Entity associated relation is tested, entity class is compared and comparison entity incidence relation indirectly be present, or, entity class to be tested exists indirectly
Entity associated relation to be tested, compare entity class and comparison entity incidence relation be present.
Fig. 5 is the business support system information model uniformity automatization test system structure that the embodiment of the present invention two provides
Schematic diagram.As shown in figure 5, on the basis of embodiment illustrated in fig. 4, system provided in an embodiment of the present invention also includes:Semanteme reflects
Penetrate module 405.
Semantic mapping module 405, for by uml class figure to be tested carry out Semantic mapping, wherein, Semantic mapping refer to by
Identical semantic field name is mapped in uml class figure to be tested.
First generation module 401, it is additionally operable to the uml class figure to be tested after Semantic mapping generating entity class to be tested.
Specifically, Fig. 6 is the business support system information model uniformity automatic test that the embodiment of the present invention one provides
The functional frame composition of system.As shown in fig. 6, the first generation module 401, the second generation module 402 and Semantic mapping mould in Fig. 5
Block 405 may be collectively referred to as data input module 501 in figure 6, for completing database table to uml class map generalization, uml class figure
Generation and Semantic mapping to entity class.Extraction module 403 and contrast output module 404 are scanned in Fig. 5 can unite in figure 6
Referred to as contrast module 502, for configuring way of contrast, the test entity class to match for scanning extraction and comparison entity class are led to
The way of contrast for crossing configuration is compared, the result of the business support system information model uniformity test to be tested of output, point
Analysis module 503 is used to analyze the result of the business support system information model uniformity test to be tested of output.
The business support system information model uniformity automatization test system of the embodiment of the present invention is used to perform shown in Fig. 2
The technical scheme of embodiment of the method, its implementing principle and technical effect is similar, and here is omitted.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of corresponding technical scheme is departed from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
- A kind of 1. business support system information model uniformity automated testing method, it is characterised in that including:Database table in business support system information model to be tested is inversely generated into Modeling language uml class to be tested Figure, entity class to be tested is generated according to the uml class figure to be tested;Database table in default comparison information model is inversely generated and compares uml class figure, according to the comparison uml class figure generation Compare entity class;Entity class to be tested described in scan matching compares entity class with described, if the entity class to be tested compares entity with described Class matches, then extracts the test entity class to match and the comparison entity class;The entity class to be tested to match and the entity class that compares are based on entity class mapping progress uniformity test, it is defeated Go out the result of the business support system information model uniformity test to be tested.
- 2. according to the method for claim 1, it is characterised in that entity class to be tested described in the scan matching and the ratio To entity class, including:Scan the critical field in the entity class to be tested and the critical field compared in entity class;The entity class to be tested matches with the entity class that compares, including:Critical field in the entity class to be tested Match with the critical field compared in entity class.
- 3. according to the method for claim 1, it is characterised in that the database table by business support system to be tested Uml class figure to be tested is inversely generated, entity class to be tested is generated according to the uml class figure to be tested, including:Database table in the business support system to be tested is inversely generated by entity category to be tested using reverse Engineering Technology Property and entity associated relation to be tested, reality to be tested is generated according to the entity attribute to be tested and entity associated relation to be tested Body class;The database table by default comparison information model, which inversely generates, compares uml class figure, according to the comparison uml class figure Generation compares entity class, including:Using reverse Engineering Technology by the database table in the default comparison information model inversely generate compare entity attribute and Entity associated relation is compared, entity class is compared according to the comparison entity attribute and the relation generation of comparison entity associated;It is described that the entity class to be tested to match and the entity class that compares are based on entity class mapping progress uniformity survey Examination, the result of the business support system information model uniformity test to be tested is exported, including:The entity attribute to be tested and the entity attribute that compares are based on entity attribute mapping progress uniformity test, if institute State entity attribute to be tested and mapping be present with the entity attribute that compares, then export the entity class to be tested and compare reality with described There is mapping in body class, the business support system information model to be tested passes through uniformity test;And/orThe entity associated relation to be tested and the entity associated relation that compares are based on entity associated relationship map progress one The test of cause property, if the entity associated relation to be tested has mapping with the entity associated relation that compares, treated described in output There is mapping in test entity class, the business support system information model to be tested is surveyed by uniformity with the entity class that compares Examination.
- 4. according to the method for claim 3, it is characterised in that the entity attribute to be tested compares entity attribute with described In the presence of mapping, including:The entity attribute to be tested with described to compare entity attribute consistent;And/orMapping be present with the entity associated relation that compares in the entity associated relation to be tested, including:The entity to be tested Entity corresponding to incidence relation with described to compare the corresponding entity of entity associated relation consistent;And/orMapping be present with the entity associated relation that compares in the entity associated relation to be tested, including:The entity to be tested There is the entity associated relation to be tested in class, the comparison entity class has the comparison entity associated relation indirectly, or, There is the entity associated relation to be tested in the entity class to be tested, the comparison entity class has the comparison entity indirectly Incidence relation.
- 5. according to the method described in claim any one of 1-4, it is characterised in that described to be given birth to according to the uml class figure to be tested Also include before into entity class to be tested:The uml class figure to be tested is subjected to Semantic mapping, wherein, the Semantic mapping is referred to the uml class to be tested Identical semantic field name is mapped in figure;It is described that entity class to be tested is generated according to the uml class figure to be tested, including:The uml class figure to be tested after Semantic mapping is generated into entity class to be tested.
- A kind of 6. business support system information model uniformity automatization test system, it is characterised in that including:First generation module, for the database table in business support system information model to be tested inversely to be generated into test-object to be measured Quasi- modeling language uml class figure, entity class to be tested is generated according to the uml class figure to be tested;Second generation module, uml class figure is compared for the database table in default comparison information model inversely to be generated, according to institute State and compare uml class figure generation comparison entity class;Extraction module is scanned, entity class is compared with described for entity class to be tested described in scan matching, if the reality to be tested Body class matches with the entity class that compares, then extracts the test entity class to match and the comparison entity class;Output module is contrasted, for the entity class to be tested to match and the entity class that compares to be mapped based on entity class Uniformity test is carried out, exports the result of the business support system information model uniformity test to be tested.
- 7. system according to claim 6, it is characterised in that the scanning extraction module is specifically used for:Scan the critical field in the entity class to be tested and the critical field compared in entity class;The entity class to be tested matches with the entity class that compares, including:Critical field in the entity class to be tested Match with the critical field compared in entity class.
- 8. system according to claim 6, it is characterised in that first generation module is specifically used for:Database table in the business support system to be tested is inversely generated by entity category to be tested using reverse Engineering Technology Property and entity associated relation to be tested, reality to be tested is generated according to the entity attribute to be tested and entity associated relation to be tested Body class;Second generation module is specifically used for:Using reverse Engineering Technology by the database table in the default comparison information model inversely generate compare entity attribute and Entity associated relation is compared, entity class is compared according to the comparison entity attribute and the relation generation of comparison entity associated;The comparison output module is specifically used for:The entity attribute to be tested and the entity attribute that compares are based on entity class mapping progress uniformity test, if described There is mapping in entity attribute to be tested, then export the entity class to be tested and compare entity with described with the entity attribute that compares There is mapping in class, the business support system information model to be tested passes through uniformity test;And/orThe entity associated relation to be tested and the entity associated relation that compares are based on entity class mapping progress uniformity survey Examination, if the entity associated relation to be tested has mapping with the entity associated relation that compares, export the reality to be tested There is mapping in body class, the business support system information model to be tested passes through uniformity test with the entity class that compares.
- 9. system according to claim 8, it is characterised in that the entity attribute to be tested compares entity attribute with described In the presence of mapping, including:The entity attribute to be tested with described to compare entity attribute consistent;And/orMapping be present with the entity associated relation that compares in the entity associated relation to be tested, including:The entity to be tested Entity corresponding to incidence relation with described to compare the corresponding entity of entity associated relation consistent;And/orMapping be present with the entity associated relation that compares in the entity associated relation to be tested, including:The entity to be tested There is the entity associated relation to be tested in class, the comparison entity class has the comparison entity associated relation indirectly, or, There is the entity associated relation to be tested in the entity class to be tested, the comparison entity class has the comparison entity indirectly Incidence relation.
- 10. according to the system described in claim any one of 6-9, it is characterised in that the system also includes:Semantic mapping mould Block;The semantic mapping module, for the uml class figure to be tested to be carried out into Semantic mapping, wherein, the Semantic mapping refers to Be to be mapped identical semantic field name in the uml class figure to be tested;First generation module, it is additionally operable to the uml class figure to be tested after Semantic mapping generating entity class to be tested.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510869007.1A CN105354144B (en) | 2015-12-01 | 2015-12-01 | Business support system information model uniformity automated testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510869007.1A CN105354144B (en) | 2015-12-01 | 2015-12-01 | Business support system information model uniformity automated testing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354144A CN105354144A (en) | 2016-02-24 |
CN105354144B true CN105354144B (en) | 2018-01-16 |
Family
ID=55330118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510869007.1A Active CN105354144B (en) | 2015-12-01 | 2015-12-01 | Business support system information model uniformity automated testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354144B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990267B (en) * | 2019-11-25 | 2023-09-05 | 泰康保险集团股份有限公司 | Data processing method and device |
CN112948244B (en) * | 2021-02-26 | 2022-08-26 | 中国信息通信研究院 | Method, device and equipment for industrial internet information model test |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708253A (en) * | 2012-05-17 | 2012-10-03 | 广东电网公司电力科学研究院 | Method and device for testing conformity of electric automated information system CIM (common information model) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2734199C (en) * | 2010-03-18 | 2017-01-03 | Accenture Global Services Limited | Evaluating and enforcing software design quality |
US8930767B2 (en) * | 2012-12-07 | 2015-01-06 | Software Ag | Techniques for test automation in emergent systems |
-
2015
- 2015-12-01 CN CN201510869007.1A patent/CN105354144B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708253A (en) * | 2012-05-17 | 2012-10-03 | 广东电网公司电力科学研究院 | Method and device for testing conformity of electric automated information system CIM (common information model) |
Non-Patent Citations (3)
Title |
---|
Using UML 2 activity diagram for visual business management modeling;Darko Markulin ET AL;《MIPRO,International Convention,2011》;20110527;全文 * |
内蒙移动BOSS(2.0)***中关键模块的设计与实现;屈立学等;《中国优秀硕士学位论文全文数据库(电子期刊)》;20110330;全文 * |
基于UML状态图的C/S模式软件***的一致性测试例生成;叶新铭等;《计算机科学》;20090731;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105354144A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844424B (en) | Model-based testing system and method | |
CN107423214A (en) | Software regression testing use-case acquisition methods, device and storage medium and electronic equipment | |
CN104866426A (en) | Software test integrated control method and system | |
CN108345532A (en) | A kind of automatic test cases generation method and device | |
CN106649100A (en) | Automatic test method and system | |
CN109508355A (en) | A kind of data pick-up method, system and terminal device | |
CN105824756B (en) | A kind of out-of-date demand automatic testing method and system based on code dependence | |
CN111309581B (en) | Application performance detection method and device in database upgrading scene | |
CN108876283A (en) | A kind of automatic auditing system and method | |
CN110597721A (en) | Automatic interface pressure testing method based on pressure testing script | |
CN111124917A (en) | Public test case management and control method, device, equipment and storage medium | |
US20130268936A1 (en) | Workflow management system and method | |
CN108897686A (en) | It is complete to record separately automated testing method and device | |
CN105354144B (en) | Business support system information model uniformity automated testing method and system | |
CN110837496A (en) | Data quality management method and system based on dynamic sql | |
CN111190814B (en) | Method and device for generating software test case, storage medium and terminal | |
CN115392805A (en) | Transaction type contract compliance risk diagnosis method and system | |
CN115543428A (en) | Simulated data generation method and device based on strategy template | |
CN115082039A (en) | Data center management method and device, electronic equipment and storage medium | |
CN115600972A (en) | Method, device, equipment and storage medium for verifying and selling of bad assets | |
CN115237469A (en) | Multi-mode architecture reverse analysis method based on cloud service source code | |
CN114911773A (en) | Universal meta-model design method | |
CN113657854A (en) | Man-machine cooperation intelligent audit analysis method for incomplete data | |
CN107292027A (en) | A kind of bounded model checking method of the linear period invariant based on extension | |
CN110096625A (en) | Data close rule inspection method and device |
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 |