CN106897224A - A kind of software test method of determining range and device - Google Patents
A kind of software test method of determining range and device Download PDFInfo
- Publication number
- CN106897224A CN106897224A CN201710108510.4A CN201710108510A CN106897224A CN 106897224 A CN106897224 A CN 106897224A CN 201710108510 A CN201710108510 A CN 201710108510A CN 106897224 A CN106897224 A CN 106897224A
- Authority
- CN
- China
- Prior art keywords
- metadata
- degree value
- influence degree
- modification
- software
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a kind of software test method of determining range and device, the method includes:Determine at least two functional modules included by software to be tested;At least one metadata for defining each functional module is obtained respectively;According to the adduction relationship between the metadata, the influence degree value between each described metadata and other metadata is determined;Changed at least one is obtained by modification metadata;Be directed to each described by modification metadata, according to the influence degree value by between modification metadata and other metadata, it is determined that with least one associated metadata corresponding by modification metadata;At least one functional module that each described associated metadata is defined is defined as the test scope of the software to be tested.The device includes:Default unit, acquiring unit, recognition unit and processing unit.This programme can provide the efficiency tested software.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of software test method of determining range and device.
Background technology
Software is to run computer program set on computer hardware, including systems soft ware, application software and between
Middleware between the two etc..Software has generally included multiple functional modules, and phase interaction is there may be between each functional module
With after being modified to one of functional module, in addition to needing to test the functional module changed, in addition it is also necessary to
The other functions module influenceed by modification functional module by this is tested.Accordingly, it would be desirable to determine from each functional module
Go out to need the functional module tested, that is, determine the test scope of software.
At present, it is generally that each functional module included by software is right as test it is determined that during software test scope
As.
The method for determining software test scope at present is directed to, because the functional module included by software is more, to wherein
One function module is modified and using all of functional module as software test scope, it is necessary to expend longer time ability
The test of software is completed, causes the less efficient of software test.
The content of the invention
The embodiment of the invention provides a kind of software test method of determining range and device, it is possible to increase software is carried out
The efficiency of test.
In a first aspect, a kind of software test method of determining range is the embodiment of the invention provides, including:
Determine at least two functional modules included by software to be tested;
At least one metadata for defining each functional module is obtained respectively;
According to the adduction relationship between the metadata, the shadow between each described metadata and other metadata is determined
Ring degree value;
Changed at least one is obtained by modification metadata;
Each is directed to described by modification metadata, according to the shadow by between modification metadata and other metadata
Ring degree value, it is determined that with least one associated metadata corresponding by modification metadata;
At least one functional module that each described associated metadata is defined is defined as the test of the software to be tested
Scope.
Preferably, the adduction relationship according between the metadata determines each described metadata and other yuan of number
Influence degree value between, including:
Each described metadata is directed to, other each metadata are traveled through, it is determined that there is adduction relationship with the metadata
At least one reference metadata;
According to the metadata and the metadata type and the corresponding functional module of each reference metadata,
The influence degree value between the metadata and each described reference metadata is determined respectively;
The influence degree value that there will be no between two metadata of adduction relationship is defined as minimum level of application value.
Preferably,
The metadata type includes:In data object, data model, data form, service logic component, Business Entity
It is any one or more.
Preferably, it is described according to this by the influence degree value between modification metadata and other metadata, it is determined that with it is described
By at least one corresponding associated metadata of modification metadata, including:
Each metadata in addition to the metadata by modification is traveled through, journey will be influenceed between the metadata by modification
Angle value is defined as described by the corresponding associated metadata of modification metadata more than the metadata of preset standard influence degree value.
Preferably, it is described according to this by the influence degree value between modification metadata and other metadata, it is determined that with it is described
By at least one corresponding associated metadata of modification metadata, including:
The influence degree value by between modification metadata and other metadata is shown;
According to the triggering command of outside input, determine at least one metadata as the quilt from described other metadata
The modification corresponding associated metadata of metadata, wherein, the triggering command by outside according to the influence degree value for being shown shape
Into.
Preferably, after the influence degree value between described each described metadata of determination and other metadata, enter
One step includes:
Receive the influence degree value more new command of outside input;
According to the influence degree value more new command, the influence degree value between corresponding two metadata is carried out more
Newly.
Second aspect, the embodiment of the present invention additionally provides a kind of determining device of software test scope, including:It is default single
Unit, acquiring unit, recognition unit and processing unit;
The default unit, for determining at least two functional modules included by software to be tested;Obtaining respectively is used for
Define at least one metadata of each functional module;And according to the adduction relationship between the metadata, it is determined that often
Influence degree value between one metadata and other metadata;
The acquiring unit, for obtaining changed at least one by modification metadata;
The recognition unit, for be directed to that the acquiring unit gets each is described by modification metadata, root
According to the influence degree value by between modification metadata and other metadata that the default unit determines, it is determined that with the quilt
At least one corresponding associated metadata of modification metadata;
The processing unit, for the recognition unit is determined at least the one of each described associated metadata definition
Individual functional module is defined as the test scope of the software to be tested.
Preferably,
The default unit includes:Determination subelement;
The determination subelement, for being directed to each described metadata, travels through other each metadata, it is determined that with this
There is at least one reference metadata of adduction relationship in metadata;According to the metadata and the unit of each reference metadata
Data type and the corresponding functional module, determine between the metadata and each described reference metadata respectively
Influence degree value;The influence degree value that there will be no between two metadata of adduction relationship is defined as minimum level of application value.
Preferably,
The recognition unit, for traveling through each metadata in addition to the metadata by modification, will be repaiied with described
Influence degree value is defined as described by modification metadata pair more than the metadata of preset standard influence degree value between metadata
The associated metadata answered.
Preferably,
The recognition unit, for being opened up to the influence degree value by between modification metadata and other metadata
Show;According to the triggering command of outside input, determine that at least one metadata is changed as described from described other metadata
The corresponding associated metadata of metadata, wherein, the triggering command is formed by outside according to the influence degree value for being shown.
Preferably, the determining device of the software test scope is further included:Updating block;
The updating block, the influence degree value more new command for receiving outside input;And according to the influence degree
Value more new command, is updated to the influence degree value between corresponding two metadata for being determined by the default unit.
A kind of software test method of determining range and device are the embodiment of the invention provides, it is every in acquisition software to be tested
After metadata corresponding to One function module, the influence degree value between each two metadata is determined, changed when getting
After metadata, determine by the corresponding pass of modification metadata according to by the influence degree value between modification metadata and other metadata
Connection metadata, and then the functional module that associated metadata is defined is defined as the test scope of software to be tested.As can be seen here, may be used
To be defined as associated metadata by by the larger metadata of modification metadata influence degree with according to influence degree value, and then will closed
The functional module for joining metadata definition is defined as test scope, it is ensured that as the functional module of test scope and by modification metadata
There is considerable influence between the defined functional module by modification, received by modification functional module influence degree in reduction test scope
Less functional module, so as to reduce the scope of software test, improves the efficiency of software 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
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of software test method of determining range flow chart that one embodiment of the invention is provided;
Fig. 2 is a kind of software test method of determining range flow chart that another embodiment of the present invention is provided;
Fig. 3 is a kind of signal of the determining device place equipment of software test scope that one embodiment of the invention is provided
Figure;
Fig. 4 is a kind of determination schematic device of software test scope that one embodiment of the invention is provided;
Fig. 5 is a kind of determination schematic device of software test scope that another embodiment of the present invention is provided.
Specific 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
A part of 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 on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the invention provides a kind of software test method of determining range, the method can include
Following steps:
Step 101:Determine at least two functional modules included by software to be tested;
Step 102:At least one metadata for defining each functional module is obtained respectively;
Step 103:According to the adduction relationship between the metadata, each described metadata and other metadata are determined
Between influence degree value;
Step 104:Changed at least one is obtained by modification metadata;
Step 105:Each is directed to described by modification metadata, according to described by modification metadata and other metadata
Between influence degree value, it is determined that with least one associated metadata corresponding by modification metadata;
Step 106:At least one functional module that each described associated metadata is defined is defined as described to be tested soft
The test scope of part.
A kind of software test method of determining range is the embodiment of the invention provides, each work(in software to be tested is obtained
After metadata that can be corresponding to module, the influence degree value between each two metadata is determined, when getting by modification metadata
Afterwards, determine by the corresponding first number of association of modification metadata according to by the influence degree value between modification metadata and other metadata
According to, and then the functional module that associated metadata is defined is defined as the test scope of software to be tested.As can be seen here, can basis
Influence degree value will be received to be defined as associated metadata by the larger metadata of modification metadata influence degree, and then will the first number of association
Functional module according to definition is defined as test scope, it is ensured that defined with by modification metadata as the functional module of test scope
There is considerable influence between modification functional module, reduce in test scope by less by modification functional module influence degree
Functional module, so as to reduce the scope of software test, improves the efficiency of software test.
In an embodiment of the invention, when determining the influence degree value between metadata in step 103, it is directed to every
One metadata, travels through other each metadata, it is determined that there is each reference metadata of adduction relationship with the metadata;According to
The metadata type and each corresponding functional module of the metadata and each reference metadata, determine this yuan of number respectively
According to the influence degree value between each reference metadata.Wherein, there will be no between two metadata using relation
Influence degree value is defined as minimum level of application value.
Specifically, each functional module is recorded and stored by one or more metadata, is directed to each unit
Each metadata of data, the same functional module of traversal correspondence and difference in functionality module, filters out and there is adduction relationship
Reference metadata.Because the type of metadata is different, the degree of dependence between two metadata is different, meanwhile, corresponding to same
Degree of dependence between two metadata of individual functional module and corresponding between two metadata of difference in functionality module according to
Bad degree is also differed, thus according to metadata and the metadata type and corresponding functional module of reference metadata, really
Determine the influence degree value between metadata and reference metadata.Two metadata of no adduction relationship are directed to, journey will be influenceed
Angle value is defined as minimum influence degree value set in advance, such as be zero.
By adduction relationship, metadata type and whether correspond to same functional module and determine between two metadata
Influence degree value, it is ensured that the dependence that the influence degree value determined can truly reflect between two metadata, and then
Ensure each functional module determined according to influence degree value really with by the corresponding functional module of modification metadata exist compared with
Big influence, and can ensure to receive can be with by the larger functional module of the corresponding functional module influence degree of modification metadata
It is determined in test scope, so as to ensure the accuracy of determined test scope.
In an embodiment of the invention, metadata type includes that data object, data model, data form, business are patrolled
It is any one or more in volume component, Business Entity.One function module needs to enter by multiple different types of metadata
Row record and storage, the type of metadata include data object, data model, data form, service logic component, Business Entity
Deng determining the test scope of software by determining the influence degree value between all kinds metadata, it is ensured that determined
The test scope for going out it is comprehensive.
In an embodiment of the invention, the process for determining associated metadata according to influence degree value in step 105 has
Following two implementations:
Mode one:Influence degree value is defined as associated metadata more than the metadata of preset standard influence value;
Mode two:According to the triggering command of outside input, associated metadata is determined.
Below for above two implementation, it is described separately:
For mode one:
Determine each metadata and by the influence degree value between modification metadata after, will with by modification metadata it
Between influence degree value be defined as associated metadata more than each metadata of preset standard influence degree value.
Because the influence degree value between two metadata is bigger, illustrate that the degree of dependence between two metadata is stronger
Strong, when a metadata changes, the impacted possibility of another metadata is bigger.Rule of thumb preset standard influence
Degree value, the criteria influences degree value is more than when a metadata and by the influence degree value between modification metadata, illustrates this
Metadata and there is stronger dependence between modification metadata, thus the metadata is defined as to be changed metadata
Associated metadata, so as to the functional module of the metadata definition is defined as into test scope.When a metadata is first with by modification
Influence degree value between data is less than or equal to the criteria influences degree value, illustrates the metadata and by between modification metadata
Dependence it is weaker or without dependence, thus the functional module of the metadata definition can not be tested so that
Do not say that the metadata is defined as being changed the associated metadata of metadata.
For mode two:
Determine each metadata and by the influence degree value between modification metadata after, each yuan that will be determined
Data and it is shown by the influence degree value between modification metadata, user specifies it according to the influence degree value for being shown
In one or more metadata as by the associated metadata of modification metadata, form triggering command;Triggering according to input refers to
Order determines associated metadata.
It is shown to metadata and by the influence degree value between modification metadata, is selected for user.User can
With rule of thumb, according to the title of each metadata, type and with determined by the influence degree value between modification metadata
Associated metadata.For with test experience than more rich user, to metadata and by the influence degree between modification metadata
Value is shown, for can empirically determine associated element, so as to ensure that determined test scope is more accurate.
In sum, mode one automatically determines out associated metadata, mode two according to the influence degree value between metadata
After influence degree value between metadata is showed into user, associated metadata is determined by user.Pass-through mode one and mode two
Two kinds of different modes determine associated metadata, can meet the demand of different user, and mode one determines associated metadata
Process is fully automated, determines that the speed of test scope is very fast, and mode two determines that the process of associated metadata combines the warp of user
Test, the test scope determined is more accurate.The mode for providing two kinds of determination associated metadatas is optional, improves software survey
Try the applicability of range determining method.
In an embodiment of the invention, after step 103, the influence degree value renewal that can receive outside input refers to
Order, according to the influence degree value more new command for receiving, is updated to the influence degree value between corresponding two metadata.
Specifically, the influence degree value in step 103 between two metadata be according to the adduction relationship between metadata,
What metadata type and corresponding functional module were determined, can there is few some effects degree value and determine inaccurate situation,
When the influence degree value between user has found certain two metadata is inaccurate, user can send influence degree value and update and refer to
Order, is updated by influence degree value more new command to the influence degree value between respective meta-data.Determine again same
During the test scope of software to be tested, associated metadata will be determined according to the influence degree value after updating.As can be seen here, Yong Hutong
Cross influence degree value more new command to be updated the influence degree value between metadata, make the influence degree value between metadata
Constantly improve, when to same software to be tested carrying out test scope with the later stage and determining, lifting determines the accurate of test scope
Property.
Below by taking inventory system software as an example, software test method of determining range provided in an embodiment of the present invention is made into
One step is described in detail, as shown in Fig. 2 the method may comprise steps of:
Step 201:Determine each functional module included by software to be tested.
In an embodiment of the invention, it is determined that before software test scope, it is first determined included by software to be tested
Functional module.
For example, inventory system software includes warehouse dictionary, material dictionary, personnel's dictionary, shifting storehouse list, quantity in stock inquiry altogether
5 functional modules.
Step 202:Obtain corresponding each metadata of each functional module.
In an embodiment of the invention, each functional module is recorded and stored by metadata, pin
For each functional module, each metadata for recording the functional module is obtained.
For example, warehouse dictionary is recorded and stored by 50 metadata, 50 metadata are respectively metadata 1
To metadata 50;Material dictionary is recorded and stored by 30 metadata, and 30 metadata are respectively metadata 51
To metadata 80;Personnel's dictionary is recorded and stored by 20 metadata, and 20 metadata are respectively metadata 81
To metadata 100;Move storehouse singly to be recorded and stored by 40 metadata, 40 metadata are respectively metadata 101
To metadata 140;Quantity in stock inquiry is recorded and stored by 60 metadata, and 60 metadata are respectively metadata
141 to metadata 200.
Step 203:Determine the influence degree value between metadata.
In an embodiment of the invention, according to each metadata metadata type, affiliated functional module and unit
Application relation between data, determines the influence degree value between each two metadata.
For example, the metadata type of metadata 1 is data object, the metadata type of metadata 2 is data model, first number
According to 2 direct reference metadatas 1, and metadata 1 and the equal corresponding function module warehouse dictionary of metadata 2, by metadata 1 and first number
It is defined as 90 according to the influence degree value between 2.The metadata type of metadata 51 is data form, and metadata 51 directly quotes unit
Data 2, and the direct reference metadata 1 of metadata 2, therefore the indirect application metadata 1 of metadata 51;By the corresponding function of metadata 1
Module warehouse dictionary, the corresponding function module material dictionary of metadata 51, the function mould different from the correspondence of metadata 51 of metadata 1
Block, 70 are defined as by the influence degree value between metadata 1 and metadata 51.Metadata 81 is not quoted (bag to metadata 1
Include and directly quote and indirect referencing), and the functional module different from the correspondence of metadata 81 of metadata 1, by metadata 1 and metadata
Influence degree value between 81 is defined as 0.
Step 204:Obtain by modification metadata.
In an embodiment of the invention, because each functional module included by software to be tested is by metadata
Recorded and stored, the functional module that treat test software is modified, i.e., to corresponding to the corresponding function module
Individual or multiple metadata are modified.So as to treating after test software modifies, acquisition be modified each changed
Metadata.
For example, in order to increase a field in warehouse dictionary, the metadata 1 to record and storage repository dictionary is repaiied
Change, metadata 1 is defined as to be changed metadata.
Step 205:According to influence degree value, it is determined that by the corresponding associated metadata of modification metadata.
In an embodiment of the invention, after obtaining by modification metadata, according to each yuan determined in step 203
Data and by the influence degree value between modification metadata, will be more than preset standard with by influence degree value between modification metadata
The metadata of influence degree value is defined as associated metadata.
For example, preset standard influence degree value is 60, in corresponding 200 metadata of inventory system software, to there is unit
Influence degree value between data 2, metadata 51 and metadata 1 is more than 60, and metadata 2 and metadata 51 are defined as into metadata
1 associated metadata.
Step 206:Associated metadata is confirmed.
In an embodiment of the invention, to each associated metadata for being determined in step 205 and by modification element
It is shown with the influence degree value between other each metadata, so that user is confirmed.User confirms errorless rear direct
Perform step 207;If the user thinks that there is problem in the associated metadata determined, then metadata to be tested and other yuan of number
Influence degree value between is updated, so that increase associated metadata or reduce associated metadata, and to the shadow after renewal
Degree value is rung to be stored.
For example, determine that the influence degree value between metadata 1 and metadata 141 is 50 in step 203, by metadata 1 with
After influence degree value between other 199 metadata shows user, user rule of thumb thinks metadata 1 and metadata
Influence programmed value between metadata 1 and metadata 141 is updated to 80 by the dependence between 141 than stronger.So that will
Metadata 141 is also defined as the associated metadata of metadata 1, and to the influence journey between metadata after renewal 1 and metadata 141
Sequence value is stored.
Step 207:The corresponding functional module of associated metadata is defined as the test scope of software to be tested.
In an embodiment of the invention, by identified each associated metadata record in step 206 and storage
Functional module is defined as the test scope of software to be tested.
For example, metadata 2 is recorded and storage repository dictionary, metadata 51 is recorded and stores material dictionary, and metadata 141 is remembered
Quantity in stock inquiry is recorded and stored, the inquiry of warehouse dictionary, material dictionary and quantity in stock is defined as the test model of inventory system software
Enclose.And then when testing inventory system software, these three work(mainly are inquired about to warehouse dictionary, material dictionary and quantity in stock
Energy module is tested.
In addition, when testing functional module correspondence, can be according to respective associated metadata and by between modification metadata
Influence degree value, it is determined that test degree.Such as due to the influence degree between metadata 1 and metadata 2, metadata 141
Value is larger, and warehouse dictionary and quantity in stock inquiry are tested comprehensively;Due to the influence degree between metadata 1 and metadata 51
Value is smaller, and the test of general aspects is carried out to material dictionary.
As shown in Figure 3, Figure 4, the embodiment of the invention provides a kind of determining device of software test scope.Device embodiment
Can be realized by software, it is also possible to realized by way of hardware or software and hardware combining.From for hardware view, such as Fig. 3
It is shown, it is a kind of hardware structure diagram of the determining device place equipment of software test scope provided in an embodiment of the present invention, except
Outside processor, internal memory, network interface and nonvolatile memory shown in Fig. 3, the equipment in embodiment where device is led to
Other hardware can also often be included, be such as responsible for the forwarding chip for the treatment of message.As a example by implemented in software, as shown in figure 4, making
It is the device on a logical meaning, is by corresponding computer journey in nonvolatile memory by the CPU of equipment where it
Sequence instruction runs what is formed in reading internal memory.The determining device of the software test scope that the present embodiment is provided, including:It is default single
Unit 401, acquiring unit 402, recognition unit 403 and processing unit 404;
The default unit 401, for determining at least two functional modules included by software to be tested;Obtain respectively and use
In at least one metadata for defining each functional module;And according to the adduction relationship between the metadata, it is determined that
Influence degree value between each described metadata and other metadata;
The acquiring unit 402, for obtaining changed at least one by modification metadata;
The recognition unit 403, for be directed to that the acquiring unit 402 gets each is described by the first number of modification
According to, according to the influence degree value by between modification metadata and other metadata that the default unit 401 determines, it is determined that
With at least one associated metadata corresponding by modification metadata;
The processing unit 404, what each the described associated metadata for the recognition unit 403 to be determined was defined
At least one functional module is defined as the test scope of the software to be tested.
In an embodiment of the invention, the default unit 402 includes:Determination subelement;
The determination subelement, for being directed to each described metadata, travels through other each metadata, it is determined that with this
There is at least one reference metadata of adduction relationship in metadata;According to the metadata and the unit of each reference metadata
Data type and the corresponding functional module, determine between the metadata and each described reference metadata respectively
Influence degree value;The influence degree value that there will be no between two metadata of adduction relationship is defined as minimum level of application value.
In an embodiment of the invention, the recognition unit 403 is used to travel through in addition to the metadata by modification
Each metadata, influence degree value between the metadata by modification is true more than the metadata of preset standard influence degree value
It is set to described by the corresponding associated metadata of modification metadata.
In an embodiment of the invention, the recognition unit 403 is used for described by modification metadata and other yuan of number
Influence degree value between is shown;According to the triggering command of outside input, determine at least from described other metadata
One metadata as described by the corresponding associated metadata of modification metadata, wherein, the triggering command is by outside according to institute
The influence degree value of displaying and formed.
In an embodiment of the invention, as described in Figure 5, the determining device of the software test scope can also include:More
New unit 505;
The updating block 505, the influence degree value more new command for receiving outside input;And according to the influence journey
Angle value more new command, is carried out more to the influence degree value between corresponding two metadata for being determined by the default unit 401
Newly.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
One embodiment of the invention additionally provides a kind of computer-readable recording medium, including execute instruction, when the treatment of storage control
When device performs the execute instruction, the storage control performs the determination of the software test scope that above-mentioned each embodiment is provided
Method.
One embodiment of the invention additionally provides a kind of storage control, including:Processor, memory and bus;
The memory is used to store execute instruction, and the processor is connected with the memory by the bus, when
When the storage control runs, the execute instruction of memory storage described in the computing device, so that the storage
Controller performs the software test method of determining range of each embodiment offer.
Software test method of determining range and device that each embodiment of the invention is provided, at least with following beneficial effect
Really:
1st, in software test method of determining range provided in an embodiment of the present invention and device, in acquisition software to be tested
After metadata corresponding to each functional module, the influence degree value between each two metadata is determined, repaiied when getting
It is corresponding by modification metadata according to being determined by the influence degree value between modification metadata and other metadata after metadata
Associated metadata, and then the functional module that associated metadata is defined is defined as the test scope of software to be tested.As can be seen here,
Be able to will be received to be defined as associated metadata by the larger metadata of modification metadata influence degree according to influence degree value, and then will
The functional module of associated metadata definition is defined as test scope, it is ensured that as the functional module of test scope and by the first number of modification
According to there is considerable influence between the defined functional module by modification, journey is influenceed by by modification functional module in reduction test scope
Less functional module is spent, so as to reduce the scope of software test, the efficiency of software test is improved.
2nd, in software test method of determining range provided in an embodiment of the present invention and device, by adduction relationship, unit
Data type and whether correspond to same functional module and determine the influence degree value between two metadata, it is ensured that determined
The dependence that can truly reflect between two metadata of influence degree value, and then guarantee determines according to influence degree value
Each functional module there is large effect with by the corresponding functional module of modification metadata really, and can ensure by quilt
The larger functional module of the corresponding functional module influence degree of modification metadata can be determined in test scope, so as to protect
The accuracy of the determined test scope of card.
3rd, in software test method of determining range provided in an embodiment of the present invention and device, One function module needs
Recorded and stored by multiple different types of metadata, the type of metadata is included data object, data model, data
List, service logic component, Business Entity etc., software is determined by determining the influence degree value between all kinds metadata
Test scope, it is ensured that the test scope determined it is comprehensive.
4th, in software test method of determining range provided in an embodiment of the present invention and device, can according to metadata it
Between influence degree value automatically determine out associated metadata, the influence degree value between metadata can also be showed user
Afterwards, associated metadata is determined by user.Associated metadata is determined by different modes, the need of different user can be met
Ask, improve the applicability of the software test range determining method.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating
Any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements,
But also other key elements including being not expressly set out, or also include by this process, method, article or equipment are solid
Some key elements.In the absence of more restrictions, the key element limited by sentence " including a 〃 ", does not arrange
Except also there is other identical factor in the process including the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, skill of the invention is merely to illustrate
Art scheme, is not intended to limit the scope of the present invention.All any modifications made within the spirit and principles in the present invention,
Equivalent, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of software test method of determining range, it is characterised in that including:
Determine at least two functional modules included by software to be tested;
At least one metadata for defining each functional module is obtained respectively;
According to the adduction relationship between the metadata, the influence journey between each described metadata and other metadata is determined
Angle value;
Changed at least one is obtained by modification metadata;
Each is directed to described by modification metadata, according to the influence journey by between modification metadata and other metadata
Angle value, it is determined that with least one associated metadata corresponding by modification metadata;
At least one functional module that each described associated metadata is defined is defined as the test scope of the software to be tested.
2. method according to claim 1, it is characterised in that
The adduction relationship according between the metadata determines the shadow between each described metadata and other metadata
Degree value is rung, including:
Each described metadata is directed to, other each metadata are traveled through, it is determined that there is adduction relationship extremely with the metadata
A few reference metadata;
According to the metadata and the metadata type and the corresponding functional module of each reference metadata, difference
Determine the influence degree value between the metadata and each described reference metadata;
The influence degree value that there will be no between two metadata of adduction relationship is defined as minimum level of application value.
3. method according to claim 2, it is characterised in that
The metadata type includes:Appointing in data object, data model, data form, service logic component, Business Entity
Anticipate one or more.
4. method according to claim 1, it is characterised in that
It is described according to this by the influence degree value between modification metadata and other metadata, it is determined that with described by modification metadata
At least one corresponding associated metadata, including:
Travel through each metadata in addition to the metadata by modification, will between the metadata by modification influence degree value
It is defined as more than the metadata of preset standard influence degree value described by the corresponding associated metadata of modification metadata.
5. method according to claim 1, it is characterised in that
It is described according to this by the influence degree value between modification metadata and other metadata, it is determined that with described by modification metadata
At least one corresponding associated metadata, including:
The influence degree value by between modification metadata and other metadata is shown;
According to the triggering command of outside input, determine that at least one metadata is changed as described from described other metadata
The corresponding associated metadata of metadata, wherein, the triggering command is formed by outside according to the influence degree value for being shown.
6. according to any described method in claim 1 to 5, it is characterised in that
After influence degree value between described each described metadata of determination and other metadata, further include:
Receive the influence degree value more new command of outside input;
According to the influence degree value more new command, the influence degree value between corresponding two metadata is updated.
7. a kind of determining device of software test scope, it is characterised in that including:Default unit, acquiring unit, recognition unit and
Processing unit;
The default unit, for determining at least two functional modules included by software to be tested;Obtain respectively for defining
At least one metadata of each functional module;And according to the adduction relationship between the metadata, determine each
Influence degree value between the metadata and other metadata;
The acquiring unit, for obtaining changed at least one by modification metadata;
The recognition unit, for be directed to that the acquiring unit gets each is described by modification metadata, according to institute
The influence degree value by between modification metadata and other metadata that default unit determines is stated, it is determined that being changed with described
At least one corresponding associated metadata of metadata;
The processing unit, at least one work(of each associated metadata definition for the recognition unit to be determined
Energy module is defined as the test scope of the software to be tested.
8. device according to claim 7, it is characterised in that
The default unit includes:Determination subelement;
The determination subelement, for being directed to each described metadata, travels through other each metadata, it is determined that with this yuan of number
According at least one reference metadata that there is adduction relationship;According to the metadata and the metadata of each reference metadata
Type and the corresponding functional module, determine the influence between the metadata and each described reference metadata respectively
Degree value;The influence degree value that there will be no between two metadata of adduction relationship is defined as minimum level of application value.
9. device according to claim 7, it is characterised in that
The recognition unit, for traveling through each metadata in addition to the metadata by modification, will be with described by modification unit
Influence degree value is defined as described corresponding by modification metadata more than the metadata of preset standard influence degree value between data
Associated metadata;
Or,
The recognition unit, for being shown to the influence degree value by between modification metadata and other metadata;
According to the triggering command of outside input, determine at least one metadata as described by the first number of modification from described other metadata
According to corresponding associated metadata, wherein, the triggering command is formed by outside according to the influence degree value for being shown.
10. according to any described device in claim 7 to 9, it is characterised in that further include:Updating block;
The updating block, the influence degree value more new command for receiving outside input;And according to the influence degree value more
New command, is updated to the influence degree value between corresponding two metadata for being determined by the default unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710108510.4A CN106897224B (en) | 2017-02-27 | 2017-02-27 | Method and device for determining software testing range |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710108510.4A CN106897224B (en) | 2017-02-27 | 2017-02-27 | Method and device for determining software testing range |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106897224A true CN106897224A (en) | 2017-06-27 |
CN106897224B CN106897224B (en) | 2020-05-08 |
Family
ID=59184362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710108510.4A Active CN106897224B (en) | 2017-02-27 | 2017-02-27 | Method and device for determining software testing range |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897224B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063846A (en) * | 2018-07-31 | 2018-12-21 | 北京城市网邻信息技术有限公司 | Operation method, device, equipment and the storage medium of machine learning |
CN111104326A (en) * | 2019-12-19 | 2020-05-05 | 北京明略软件系统有限公司 | Test method, test device, electronic equipment and readable storage medium |
CN112115124A (en) * | 2020-09-25 | 2020-12-22 | 平安国际智慧城市科技股份有限公司 | Data influence degree analysis method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050137819A1 (en) * | 2003-12-18 | 2005-06-23 | International Business Machines Corporation | Test automation method and tool with dynamic attributes and value sets integration |
CN102831057A (en) * | 2012-08-13 | 2012-12-19 | 于秀山 | Method for analyzing software function change and influence thereof by using function diagram |
CN103186463A (en) * | 2011-12-30 | 2013-07-03 | 阿里巴巴集团控股有限公司 | Method and system for determining testing range of software |
CN104572449A (en) * | 2014-12-23 | 2015-04-29 | 中国移动通信集团广东有限公司 | Automatic test method based on case library |
-
2017
- 2017-02-27 CN CN201710108510.4A patent/CN106897224B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050137819A1 (en) * | 2003-12-18 | 2005-06-23 | International Business Machines Corporation | Test automation method and tool with dynamic attributes and value sets integration |
CN103186463A (en) * | 2011-12-30 | 2013-07-03 | 阿里巴巴集团控股有限公司 | Method and system for determining testing range of software |
CN102831057A (en) * | 2012-08-13 | 2012-12-19 | 于秀山 | Method for analyzing software function change and influence thereof by using function diagram |
CN104572449A (en) * | 2014-12-23 | 2015-04-29 | 中国移动通信集团广东有限公司 | Automatic test method based on case library |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109063846A (en) * | 2018-07-31 | 2018-12-21 | 北京城市网邻信息技术有限公司 | Operation method, device, equipment and the storage medium of machine learning |
CN109063846B (en) * | 2018-07-31 | 2022-05-10 | 北京城市网邻信息技术有限公司 | Machine learning operation method, device, equipment and storage medium |
CN111104326A (en) * | 2019-12-19 | 2020-05-05 | 北京明略软件系统有限公司 | Test method, test device, electronic equipment and readable storage medium |
CN112115124A (en) * | 2020-09-25 | 2020-12-22 | 平安国际智慧城市科技股份有限公司 | Data influence degree analysis method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106897224B (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7971175B2 (en) | Method and system for implementing cached parameterized cells | |
CN104238963B (en) | A kind of date storage method, storage device and storage system | |
CN109690521A (en) | A kind of method and device of database combining | |
CN104573112B (en) | Page interrogation method and data processing node in OLTP Cluster Databases | |
CN106897224A (en) | A kind of software test method of determining range and device | |
CN104423968A (en) | Method of designing business logic, server performing the same and storage medium storing the same | |
Li et al. | ASLM: Adaptive single layer model for learned index | |
CN106021566A (en) | Method, device and system for improving concurrent processing capacity of single database | |
US7703058B2 (en) | Method and system for changing a description for a state transition function of a state machine engine | |
CN104021002B (en) | A kind of PDM system standards part storage method | |
CN114022148B (en) | Transaction conflict detection method, device, equipment and storage medium based on block chain | |
CN107977504A (en) | A kind of asymmetric in-core fuel management computational methods, device and terminal device | |
CN112604273B (en) | Data-driven game system function loading method, device and storage medium | |
CN114428776A (en) | Index partition management method and system for time sequence data | |
CN109189343A (en) | A kind of metadata rule method, apparatus, equipment and computer readable storage medium | |
CN110083337B (en) | Software development optimization method | |
CN110083823B (en) | Dictionary table establishing method and device, computer device and storage medium | |
US9442698B2 (en) | Migration between model elements of different types in a modeling environment | |
CN116893854A (en) | Method, device, equipment and storage medium for detecting conflict of instruction resources | |
CN107844535A (en) | A kind of external resource storehouse call method and system | |
CN110019448A (en) | A kind of data interactive method and device | |
CN107256252A (en) | Third-party multidimensional data migration method and device | |
CN107103426A (en) | Batch deletes the method and device of sequence number and multiple order number binding relationships | |
CN107544753A (en) | Data processing method, device and server | |
Karacali et al. | Full efficient NVM usage for MCU |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200409 Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road Applicant after: INSPUR GENERAL SOFTWARE Co.,Ltd. Address before: 250100, Ji'nan province high tech Zone, Sun Village Branch Road, No. 2877, building, floor, building, on the first floor Applicant before: JINAN INSPUR HI-TECH INVESTMENT AND DEVELOPMENT Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |