CN101505241B - Method and apparatus for generating test instances - Google Patents

Method and apparatus for generating test instances Download PDF

Info

Publication number
CN101505241B
CN101505241B CN2008101187490A CN200810118749A CN101505241B CN 101505241 B CN101505241 B CN 101505241B CN 2008101187490 A CN2008101187490 A CN 2008101187490A CN 200810118749 A CN200810118749 A CN 200810118749A CN 101505241 B CN101505241 B CN 101505241B
Authority
CN
China
Prior art keywords
data flow
flow path
function
sign
test
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.)
Expired - Fee Related
Application number
CN2008101187490A
Other languages
Chinese (zh)
Other versions
CN101505241A (en
Inventor
张明振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ke Lingna
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2008101187490A priority Critical patent/CN101505241B/en
Publication of CN101505241A publication Critical patent/CN101505241A/en
Application granted granted Critical
Publication of CN101505241B publication Critical patent/CN101505241B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a method and a device for generating a test case, which solve the problems that in the prior art, the test case formed by a comprehensive topology environment has higher difficulty in text description so that the requirement on the capability of a test executive staff is improved, and the efficiency and the effect for executing the test and the test accuracy are reduced. The method comprises the following steps: determining functional information corresponding to a device mark contained in data stream channel marks, wherein the device mark contains at least one tested device mark; determining data stream parameters needed by data streams generated by executing functions defined by the functional information; and determining the data stream parameters corresponding to the data stream channel marks to which function points required to be tested relate, and generating the test case according to the determined data stream parameters. By adopting the method and the device, the efficiency and the accuracy rate for test execution are improved.

Description

A kind of method and apparatus that generates test case
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus that generates test case.
Background technology
The method of software test mainly contains white-box testing and the Black-box Testing based on program structure (perhaps code segment).Wherein, Black-box Testing then is also referred to as functional test, is tested object is regarded as a flight data recorder, and the tester can't see the logical construction and the bulk properties of program inside fully, can only be according to the Specification of program, whether the function of audit program meets its function declaration.
Test case (Test Case) design is the behavioral activity with software test, does the tissue of a science and concludes.In order to save time with resource, to improve testing efficiency, must from the great available test data of quantity, pick out the test data of representative or particularity meticulously and test.The Black-box testing Cases design is the design of carrying out from behaviour (the being Software Requirements Specification (also called requirements analysis)) requirement that software is realized.
As shown in Figure 1, in the three-decker of the campus network topology schematic diagram, be divided into core layer, distribution layer, Access Layer.
Core layer is the core of campus network, has two equipment, and route backup each other is called as double-core at these two equipment of core layer.This layer requirement has at a high speed transmits high-performance, the characteristics of high stability, the various functions of the least possible deployment.
Distribution layer is called convergence-level again, be the flow that is used to converge each building exchange data stream, generally be connected into two core layer switches by single line (106 equipment as Fig. 1 has only " connecting a 3 " circuit to be connected on other subtopology equipment) or double-circuit (101 equipment as Fig. 1 is to be connected on other subtopology equipment with " being connected 2 " two circuits by " connection 1 ") framework.Access Layer mainly is that the access-layer switch equipment with each building directly connects into convergence-level equipment, and this part switch directly links to each other with the user, and correlation functions such as safe, online control commonly used will be in this layer deployment.
Need test for this integrated network environment of Fig. 1, from actual test result, after the functional test that the software requirement specification of an equipment realizes is finished, make up in the true environment of building, also various software issues can occur at multiple devices with campus network.Also having a kind of situation is exactly that a function operation is better, and a plurality of functions use back and customer demand widely different jointly, in order to make the function of using under the integrated environment more meet the software metrics specification, need carry out the test case design to this integrated environment.
For comprehensive topological environmental test, there is following point in formed test case at present:
The text description difficulty is bigger.The important feature of catenet shown in Figure 1 is that the final behavior that causes of difference in functionality is different; Can there be certain influencing each other in same function between different switches, certain operation on switch can cause chain reaction, such as disconnecting a physical connection on the switch, as " the connecting 1 " among Fig. 1, can trigger the dynamic routing protocol that moves between the switch recomputates, recomputate route forwarding table, and the path between other switches also can change thereupon, after other switches receive these message in the topology, can calculate in this locality, and then can oppositely be returned to the sender by the dynamic routing protocol function again, also can continue to trigger periphery and produce different behaviors with equipment such as being communicated with switch, these switch devices can react on the switch of executable operations again, and at this moment the incidence relation more complicated needs to take into account constellation and result between the different switches.Therefore with language more complicated is described simply; On describe, spent a large amount of time, got half the result with twice the effort, and the test execution personnel ability is had relatively high expectations.
At test phase, test execution personnel may not understand the personnel's of design test idea and thinking well, like this, test execution efficient and effect all there is very big influence, it is inaccurate to make information transmit, and causes many function point tests not in place, tests insufficient.
In sum, at present for the formed test case of comprehensive topological environmental, the difficulty of text description is than higher, thereby improved the requirement to the test execution personnel ability; In addition, can not understand well the test execution personnel under the situation of personnel's the idea of design test and thinking, can reduce test execution efficient and effect and accuracy rating of tests.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus that generates test case, in order to solve exist in the prior art at present for the formed test case of comprehensive topological environmental, the difficulty of text description is than higher, thereby improved requirement, reduced the efficient of test execution and the problem of effect and accuracy rating of tests the test execution personnel ability.
A kind of method that generates test case that the embodiment of the invention provides comprises:
The device identification functional information corresponding that specified data circulation road sign comprises comprises at least one equipment under test sign in the described device identification;
Determine the needed traffic parameter of data flow of the function generation of the described function information definition of execution;
Need to determine the related corresponding described traffic parameter of described data flow path sign of function point of test, and, generate test case according to the described traffic parameter of determining;
Wherein, the data flow of the function generation of described function information definition is that described data flow path sign corresponding data flow passage can data carried by data stream.
A kind of device that generates test case that the embodiment of the invention provides comprises:
The function information determination module is used for the device identification functional information corresponding that specified data circulation road sign comprises, and comprises at least one equipment under test sign in the described device identification;
The parameter determination module is used for the needed traffic parameter of data flow that definite function of carrying out described function information definition produces;
Generation module is used for determining the related corresponding described traffic parameter of described data flow path sign of function point of needs test, and according to the described traffic parameter of determining, generates test case;
Wherein, the data flow of the function generation of described function information definition is that described data flow path sign corresponding data flow passage can data carried by data stream.
The device identification functional information corresponding that embodiment of the invention specified data circulation road sign comprises comprises at least one equipment under test sign in the described device identification; Determine the needed traffic parameter of data flow of the function generation of the described function information definition of execution; Need to determine the related corresponding described traffic parameter of described data flow path sign of function point of test, and, generate test case according to the described traffic parameter of determining.Owing to data flow path sign and traffic parameter can be combined, generate test case, comprehensive topological environmental is tested, reduced the difficulty of text description, and to test execution personnel ability's requirement, and test execution efficient and effect and accuracy rating of tests have been improved.
Description of drawings
Fig. 1 is the three-decker topology schematic diagram of campus network;
Fig. 2 generates the apparatus structure schematic diagram of test case for the embodiment of the invention;
Fig. 3 A is an embodiment of the invention equipment connecting relation journey schematic diagram;
Fig. 3 B is the method flow schematic diagram that the embodiment of the invention generates test case;
Fig. 4 determines the method flow schematic diagram of circulation road sign for embodiment of the invention data;
The method flow schematic diagram that Fig. 5 generates for embodiment of the invention test case;
Fig. 6 is embodiment of the invention data flow test schematic diagram.
Embodiment
Below in conjunction with Figure of description the embodiment of the invention is described in further detail.
As shown in Figure 2, the device of embodiment of the invention generation test case comprises: function information determination module 10, parameter determination module 20 and generation module 30.
Function information determination module 10 is used for the device identification functional information corresponding that specified data circulation road sign comprises, and comprises at least one equipment under test sign in the device identification.
In specific implementation process, function information determination module 10 is according to the facility information that obtains in the slave unit message file, determine the device identification that comprises in each data flow path sign, identify in the device identification that comprises according to each data flow path of determining, determine to contain the data flow path sign of equipment under test sign, according to the facility information that obtains in the slave unit message file, the all devices sign functional information corresponding that specified data circulation road sign comprises, from the data flow path sign that comprises function information corresponding equipment sign, determine to support the data flow path sign of this function information.
Each equipment all has a facility information file, record corresponding equipment sign in the facility information file.
Device identification is made up of three data, such as 101~108, wherein, first digit in the device identification (as " 1 " in " 108 ") is a regional location, second digit in the device identification (as " 0 " in " 108 ") is the layer numbering at equipment place, such as: core layer is 0, and Access Layer is 1, and distribution layer is 2; Third digit in the device identification (as " 8 " in " 108 ") is the Position Number with layer equipment.If device identification is 108 like this, then can accurately orient 108 corresponding equipment positions.
Device identification according to obtaining can generate the interconnecting relation between the distinct device, thereby forms the data flow path sign, such as: 111-122,121-005-005-122, specifically as shown in Figure 3A, wherein, the data in the middle of the device identification are the label of interconnected physics end interface.
Event data stream gap marker support function information then can be carried out mark in the data flow path sign, such as: 111-122-01 wherein 01 expresses support for.
Wherein, the data flow path sign of determining that contains the equipment under test sign can be set up with the form of channel list.
Parameter determination module 20 is used for the needed traffic parameter of data flow that definite function of carrying out the function information definition produces.
The data flow that the function of function information definition produces is that data flow path sign corresponding data flow passage can data carried by data stream.
In specific implementation process, parameter determination module 20 is according to the corresponding relation of function information in the facility information file and data flow type of message, determine function information corresponding data flow type of message, obtain each data flow type of message corresponding data flow parameter in the slave unit message file.
Generation module 30 is used for determining the related data flow path sign corresponding data flow parameter of function point of needs test, and according to established data stream parameter, generates test case.
Wherein, the device of the embodiment of the invention can further include: first sets up module 40.
First sets up module 40, is used for setting up the corresponding relation of data flow path sign and function information before generation module 30 generates test case, and this data flow path is designated the related data flow path sign of function of function information definition.
The data flow path sign of setting up and the corresponding relation of function information, as shown in table 1.
Equipment under test The data flow path sign Function information
121? 121-101? Mac address learning (ageing time 300s)
121? 111-121-401-701? Support arp study and aging (ageing time 3600s)
121? 104-121-401? Support route ECMP load balancing
...? ? ...?
Table 1
Wherein, the device of the embodiment of the invention can further include: second sets up module 50.
Second sets up module 50, be used for setting up after module 40 sets up the corresponding relation of data flow path sign and function information first, generation module 30 generates before the test case, set up the data flow path sign of module 40 foundation and the corresponding relation of function information according to first, and the needed traffic parameter of data flow that produces of the function of carrying out the function information definition, set up the corresponding relation of data flow path sign and traffic parameter.
Traffic parameter comprises: source MAC, and purpose MAC, source IP, purpose IP, port numbers, information such as length, speed, as shown in table 2.
Source MAC 0201.0040.0010? Source IP address 192.168.40.10/24?
Purpose MAC 00d0.f811.1201? Purpose IP address 192.168.100.10/24?
Type of message IP? Message length 100Bytes?
Vlan number 40? Speed 100PPS?
Table 2
Because traffic parameter determines that corresponding data flow message content is also just determined.
In specific implementation process, can be by flag data circulation road sign, the stream numbering of specified data circulation road correspondence, such as: Flow111-701-001, wherein, first digit " 111 " and second digit " 701 " are head and the tail device identification on the passage, all stream numberings that contain in last numeral passage.
Preferable mode is according to established data stream parameter, distinguishes normal flow and abnormal data stream, so conveniently data stream is searched, and wherein, abnormal data stream includes but not limited to the data flow that following manner produces:
ARP (Address Resolution Protocol, address resolution protocol) attacks, ICMP (InternetControl Message Protocol ICMP) attacks, IP (Internet Protocol; Internet protocol) scanning or the like.
Wherein, generation module 30 can further include: functional module 300, parameter determination module 310 and test case generation module 320.
Functional module 300 is used for need determining the needed data flow path corresponding data flow of each function point gap marker of test from the data flow path sign.
Parameter determination module 310 is used for setting up the data flow path sign that module 50 sets up and the corresponding relation of traffic parameter according to second, determines that this data flow path identifies the corresponding data flow parameter.
Test case generation module 320 is used for generating the test case of each function point correspondence according to established data stream parameter.
A function point needs one or more different function combinations to finish together, according to the data flow path sign of setting up and the corresponding relation of function information, can determine to carry out the needed data flow path sign of function of function point;
Again according to the corresponding relation of data flow path sign and traffic parameter, can determine to carry out the required traffic parameter of function of function point, at this moment just formed the relation between traffic parameter, data flow path sign and the function point, obtain common function means of testing and method of testing in the slave unit message file again, and will go in the data flow of corresponding data flow parametric representation, thereby can generate test case at this function point, as shown in table 3.
Preferable mode can also be determined expected results according to the method for testing of obtaining in traffic parameter and the slave unit message file, and will add in the test case in its result, and is as shown in table 3.
Data flow Device location Means of testing Whether effective
Flow1? 121? Clear?arp? Effectively
Flow1? 121? Clear?ip?ospf?process Invalid
Table 3
Shown in Fig. 3 B, the method that the embodiment of the invention generates test case comprises:
The device identification functional information corresponding that step 300, specified data circulation road sign comprise comprises at least one equipment under test sign in the device identification.
In specific implementation process, according to the facility information that obtains in the slave unit message file, the all devices sign functional information corresponding that specified data circulation road sign comprises, from the data flow path sign that comprises function information corresponding equipment sign, determine to support the data flow path sign of this function information.
The clear and definite function that corresponding equipment provided in the facility information file, after finishing such as the integration test topology design of Fig. 1, the function of each position operation has been determined and clear and definite in this topology.Equipment as shown in Figure 1 provides authentication function, ARP management function, routing function, DHCP (Dynamic Host Configuration Protocol, dynamic host allocation protocol) function etc.
Usually, also can dispose the ACL (Access ControlLists, access control lists) that is used for protection such as virus, functions such as port security in the Access Layer position.
Core layer and distribution layer can carry out the load balancing of flow and the interconnected link failure backup between the topology, have realized ECMP (Equal-Cost MultiPath, the multipath of equal value) function of route etc.
Device identification is made up of three data, such as 101~108, wherein, first digit in the device identification (as " 1 " in " 108 ") is a regional location, second digit in the device identification (as " 0 " in " 108 ") is the layer numbering at equipment place, such as: core layer is 0, and Access Layer is 1, and distribution layer is 2; Third digit in the device identification (as " 8 " in " 108 ") is the Position Number with layer equipment.If device identification is 108 like this, then can accurately orient 108 corresponding equipment positions.
Device identification according to obtaining can generate the interconnecting relation between the distinct device, thereby forms the data flow path sign, such as: 111-122,121-005-005-122, specifically as shown in Figure 3A, wherein, the data in the middle of the device identification are the label of interconnected physics end interface.
Event data stream gap marker support function information then can be carried out mark in the data flow path sign, such as: 111-122-01 wherein 01 expresses support for.
The needed traffic parameter of data flow that step 301, definite function of carrying out the function information definition produce.
The data flow that function produced of function information definition is that data flow path sign corresponding data flow passage can data carried by data stream.
In specific implementation process, corresponding relation according to function information in the facility information file and data flow type of message, determine function information corresponding data flow type of message, obtain each data flow type of message corresponding data flow parameter in the slave unit message file.
Concrete, can determine each traffic parameter according to the data flow type of message in the facility information file and the corresponding relation of parameter.
Because traffic parameter determines that corresponding data flow message content is also just determined.
Data flow in the network is various, and these data flow can accurately define the characteristics of data flow according to difference in functionality.
Mobile the formed topological data flow graph of all data flow in comprehensive topology.As shown in Figure 6, entire stream partly is divided into 800 reference data stream, represents basic function, and surf the Net as the user in the campus network network and visit other websites, video request program, file is uploaded, download service, multimedia teaching application etc.; 801~804 are test data stream, this partial test flow originates from reference data stream (as test data stream 1, test data stream 3), perhaps continue the test data stream (as generating test data stream 4) of deriving new based on test data stream 2, different data streams can be used to test the difference in functionality point, and same test data stream (as test data stream 1) also can be used to test a plurality of function points.Above-mentioned each data flow can be by the behavior and the result of traffic parameter appointment data stream.
Step 302, definite related data flow path sign corresponding data flow parameter of function point that needs test, and according to established data stream parameter, generation test case.
Wherein, can further include before the step 302:
Step S1, set up the corresponding relation of data flow path sign and function information, wherein, data flow path is designated the related data flow path sign of function of function information definition, and the form of foundation is as shown in table 1.Wherein, after the step step S1, can further include before the step 302:
According to the corresponding relation of data flow path sign and function information, and carry out the needed traffic parameter of data flow that the function of function information definition produces, set up that data flow path identifies and the corresponding relation of traffic parameter.
Traffic parameter comprises: source MAC, and purpose MAC, source IP, purpose IP, port numbers, information such as length, speed, as shown in table 2.
In specific implementation process, can be by flag data circulation road sign, specified data is passed to corresponding stream numbering, such as: Flow111-701-001, wherein, first digit " 111 " and second digit " 701 " are head and the tail device identification on the passage, all stream numberings that contain in last numeral passage.
Preferable mode is the parameter according to established data stream newspaper, distinguishes normal flow and abnormal data stream, so conveniently data stream is searched, and wherein, abnormal data stream includes but not limited to the data flow that following manner produces:
ARP attack, ICMP attack, IP scanning or the like.
In specific implementation process, also can not set up the corresponding relation of data flow path sign and traffic parameter, owing between data flow path sign and the function information corresponding relation is arranged, and corresponding relation is arranged between function information and the traffic parameter, so can carry out association by function information between data flow path sign and the traffic parameter.
Wherein, can further include the step of specified data circulation road sign before the step 300, as shown in Figure 4:
Obtain facility information in step 400, the slave unit message file, determine device identification.
Step 401, according to the device identification that obtains, generate the interconnecting relation between the distinct device, form the data flow path sign.
Concrete, if judge two equipment not in same subtopology, promptly non-directly continuous, equipment corresponding equipment all in the middle of then needing to find out identify, and join in the data flow path sign, this part can obtain information in the equipment connection map of slave unit message file.Such as: 111-122,121-005-005-122.
Specifically as shown in Figure 3A, wherein, the data in the middle of the device identification are the label of interconnected physics end interface.
In step 402, the judgment data circulation road sign whether equipment under test is arranged, if then the retention data circulation road identifies; Otherwise, deleted data circulation road sign.
Step 403, according to the data flow path sign after the screening, set up channel list.
Preferable mode be can the specified data circulation road the function of device identification corresponding equipment in the sign, judged whether that according to the function of determining data flow exists, identify enterprising row labels in the data flow path that does not have data flow, can dwindle follow-up scope of searching the data flow path sign like this, thereby save time.
Wherein, step 302 can generate test case according to method shown in Figure 5:
Step 500, from established data circulation road sign, determine the needed data flow path corresponding data flow of each function point of test gap marker.
A function point needs one or more different function combinations to finish together, according to the data flow path sign of setting up and the corresponding relation of function information, can determine to carry out the needed data flow path sign of function of function point.
Step 501, according to the corresponding relation of data flow path sign and traffic parameter, determine this data flow path sign corresponding data flow parameter.
Step 502, according to established data stream parameter, generate the test case of each function point correspondence.
Corresponding relation according to data flow path sign and traffic parameter, can determine to carry out the required traffic parameter of function of function point, at this moment just formed the relation between traffic parameter, data flow path sign and the function point, obtain common function means of testing and method of testing in the slave unit message file again, and join in the corresponding data flow parameter, thereby can generate test case at this function point, as shown in table 3.
Preferable mode can also be determined expected results according to the method for testing of obtaining in traffic parameter and the slave unit message file, and will add in the test case in its result, and is as shown in table 4.
Function point Step Expected results
Data flow is transmitted, site access 1, continues to send data flow 2, the Flow111-701-001 of Fig. 1; 3, disconnect " connecting 1 " 4 of topological diagram 1, " the connecting 1 " of recovering topological diagram 1 1, can receive in the outlet module position; Speed 1K PPS, more than three layers message content for shown in the stream storehouse Flow111-701-001 2, data flow can switch to " connect 2 " of topological diagram 1, switching time in 50ms 3, data flow " the connecting 1 " that can switch back topological diagram 1, switching time is in 50ms
Table 4
Table 4 is to carry out the example that test case is described according to above-mentioned method for test examples design.Can find out clearly that from last table it is to carry out according to the switching and the flow direction of data flow that whole test case is described process, thereby has reduced test case pilot process behavior description.
The method that the embodiment of the invention provides is as a whole by integrated system is done, with the function point is core, serve as theme with data flow and to run through the design of whole test case, variation by the connection between diverse location difference in functionality or the topology, embody the variation of data flow, solved test case and described the problem that time resource consume significant and test execution personnel understand difficulty, the test case that forms of method conforms to fully with actual environment thus.For the test execution personnel, understand wherein characteristics easily, only need allow data flow in comprehensive topology, flow, function point is carried out an acceptance inspection, promptly can finish the test execution task.
From the foregoing description as can be seen: the device identification functional information corresponding that embodiment of the invention specified data circulation road sign comprises comprises at least one equipment under test sign in the described device identification; Determine the needed traffic parameter of data flow of the function generation of the described function information definition of execution; Need to determine the related corresponding described traffic parameter of described data flow path sign of function point of test, and, generate test case according to the described traffic parameter of determining.Owing to data flow path sign and traffic parameter can be combined, generate test case, comprehensive topological environmental is tested, reduced the difficulty of text description, and to test execution personnel ability's requirement, and test execution efficient and effect and accuracy rating of tests have been improved.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1. a method that generates test case is characterized in that, this method comprises:
The device identification functional information corresponding that specified data circulation road sign comprises comprises at least one equipment under test sign in the described device identification;
Determine the needed traffic parameter of data flow of the function generation of the described function information definition of execution;
Need to determine the related corresponding described traffic parameter of described data flow path sign of function point of test, and, generate test case according to the described traffic parameter of determining;
Wherein, the data flow that function produced of described function information definition is that described data flow path sign corresponding data flow passage can data carried by data stream.
2. the method for claim 1 is characterized in that, also comprises before the described generation test case:
Set up the corresponding relation of data flow path sign and function information, described data flow path is designated the related data flow path sign of function of described function information definition.
3. method as claimed in claim 2 is characterized in that, after the described corresponding relation of setting up data flow path sign and function information, generates test case and also comprises before:
According to the corresponding relation of data flow path sign and function information, and carry out the needed traffic parameter of data flow that the function of described function information definition produces, set up that data flow path identifies and the corresponding relation of traffic parameter.
4. method as claimed in claim 3 is characterized in that, the corresponding described traffic parameter of described data flow path sign that the function point of described definite test is related, and according to the described traffic parameter of determining, generate test case and comprise:
From described data flow path sign, need to determine the needed data flow path corresponding data flow of each function point gap marker of test;
According to the corresponding relation of data flow path sign and traffic parameter, determine the corresponding described traffic parameter of this data flow path sign;
According to the described traffic parameter of determining, generate the test case of each function point correspondence.
5. a device that generates test case is characterized in that, this device comprises:
The function information determination module is used for the device identification functional information corresponding that specified data circulation road sign comprises, and comprises at least one equipment under test sign in the described device identification;
The parameter determination module is used for the needed traffic parameter of data flow that definite function of carrying out described function information definition produces;
Generation module is used for determining the related corresponding described traffic parameter of described data flow path sign of function point of needs test, and according to the described traffic parameter of determining, generates test case;
Wherein, the data flow of the function generation of described function information definition is that described data flow path sign corresponding data flow passage can data carried by data stream.
6. device as claimed in claim 5 is characterized in that, described device also comprises:
First sets up module, is used for before described generation module generates test case, sets up the corresponding relation of data flow path sign and function information, and described data flow path is designated the related data flow path sign of function of described function information definition.
7. device as claimed in claim 6 is characterized in that, described device also comprises:
Second sets up module, be used for setting up after module sets up the corresponding relation of data flow path sign and function information described first, described generation module generates before the test case, corresponding relation according to data flow path sign and function information, and the needed traffic parameter of data flow that produces of the function of carrying out the definition of described function information, set up the corresponding relation of data flow path sign and traffic parameter.
8. device as claimed in claim 7 is characterized in that, described generation module comprises:
Functional module is used for need determining the needed data flow path corresponding data flow of each function point gap marker of test from described data flow path sign;
The parameter determination module is used for the corresponding relation according to data flow path sign and traffic parameter, determines the corresponding described traffic parameter of this data flow path sign;
The test case generation module is used for generating the test case of each function point correspondence according to the described traffic parameter of determining.
CN2008101187490A 2008-08-20 2008-08-20 Method and apparatus for generating test instances Expired - Fee Related CN101505241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101187490A CN101505241B (en) 2008-08-20 2008-08-20 Method and apparatus for generating test instances

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101187490A CN101505241B (en) 2008-08-20 2008-08-20 Method and apparatus for generating test instances

Publications (2)

Publication Number Publication Date
CN101505241A CN101505241A (en) 2009-08-12
CN101505241B true CN101505241B (en) 2011-04-27

Family

ID=40977321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101187490A Expired - Fee Related CN101505241B (en) 2008-08-20 2008-08-20 Method and apparatus for generating test instances

Country Status (1)

Country Link
CN (1) CN101505241B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501258A (en) * 2013-10-21 2014-01-08 中国科学院声学研究所 Testing method and system for streaming media server

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847120A (en) * 2010-03-31 2010-09-29 中兴通讯股份有限公司 Design method and system of test case
CN102253671B (en) * 2010-05-20 2014-10-15 上海宝信软件股份有限公司 Generation device of test data of process control computer system of metallurgy
CN104360951B (en) * 2014-12-09 2017-09-29 迈普通信技术股份有限公司 A kind of script method of testing and device
CN106681910B (en) * 2016-12-07 2019-10-11 中国工商银行股份有限公司 A kind of Intrusion Detection based on host code analysis generates the method and device of test cases
CN114448852A (en) * 2021-12-30 2022-05-06 中国电信股份有限公司 Gateway terminal testing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6577982B1 (en) * 2001-01-30 2003-06-10 Microsoft Corporation Model-based testing via combinatorial designs
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6577982B1 (en) * 2001-01-30 2003-06-10 Microsoft Corporation Model-based testing via combinatorial designs
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101196817A (en) * 2008-01-04 2008-06-11 福建星网锐捷网络有限公司 Test case generating method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501258A (en) * 2013-10-21 2014-01-08 中国科学院声学研究所 Testing method and system for streaming media server
CN103501258B (en) * 2013-10-21 2016-08-31 中国科学院声学研究所 The method of testing of streaming media server and system

Also Published As

Publication number Publication date
CN101505241A (en) 2009-08-12

Similar Documents

Publication Publication Date Title
CN101505241B (en) Method and apparatus for generating test instances
CN102025538B (en) Method and device for realizing multicasting flow load sharing based on equal-cost multi-path (ECMP) routing
US8868732B2 (en) Systems and methods for facilitating communication with foundation fieldbus linking devices
CN104243196A (en) Virtual network mapping protection method and system under SDN architecture
CN106685733A (en) FC-AE-1553 network rapid configuration and automatic testing method
JP2007208633A (en) Device, method and program for designing network
CN105681199B (en) The processing method and processing device of message data in a kind of vehicle bus
JP2017135563A (en) Test device, network system, and test method
CN101631060B (en) Method and device for managing edge port
CN104471902A (en) Deterministic network failure detection
CN103995901B (en) A kind of method for determining back end failure
CN104010018B (en) The method and apparatus of synchronization multicast group
CN101924670A (en) Method and equipment for detecting label switched path (LSP)
CN102546652B (en) System and method for server load balancing
US8762528B2 (en) Systems and methods for write protecting foundation fieldbus linking devices
CN106789407A (en) A kind of method that cloud platform checks virtual machine connection status
CN114172789B (en) Virtual equipment link detection method, device, equipment and storage medium
CN109150707B (en) Routing path analysis method and device
CN102739460B (en) Interface wiring path detection device and detection method thereof
CN103885441A (en) Self-adaptive fault diagnosis method for controller local area network
WO2016165491A1 (en) Bridging service and bridging network element inspection method and apparatus
JP4773978B2 (en) Route search device, route search program, route search method, and route search system
US20120311137A1 (en) Systems and methods for identifying foundation fieldbus linking devices
US20120310387A1 (en) Systems and methods for facilitating communication with foundation fieldbus linking devices
CN103825767B (en) The implementation method and bridge of service quality

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: PU NING

Free format text: FORMER OWNER: BEIJING XINGWANG RUIJIE NETWORK TECHNOLOGIES CO., LTD.

Effective date: 20140604

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100036 HAIDIAN, BEIJING TO: 518052 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140604

Address after: 518052 room 217, West Tower, Nanshan digital culture industry base, Shenzhen, Nanshan District, Guangdong

Patentee after: Pu Ning

Address before: 100036 Beijing Haidian District City 33 Fuxing Road Cuiwei East 1106

Patentee before: Beijing Xingwang Ruijie Network Technologies Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151229

Address after: 224500 Jiangsu Province, Yancheng City Binhai County Binhuai town head Zeng Village (Yancheng City coastal chemical industry park)

Patentee after: Jiangsu Jihua Chemical Co., Ltd.

Address before: 518052 room 217, West Tower, Nanshan digital culture industry base, Shenzhen, Nanshan District, Guangdong

Patentee before: Pu Ning

TR01 Transfer of patent right

Effective date of registration: 20170921

Address after: 300200 Tianjin Dongli District Dongli Lake Vanke City view lake court 2-103

Patentee after: Ke Lingna

Address before: 224500 Jiangsu Province, Yancheng City Binhai County Binhuai town head Zeng Village (Yancheng City coastal chemical industry park)

Patentee before: Jiangsu Jihua Chemical Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110427

Termination date: 20180820

CF01 Termination of patent right due to non-payment of annual fee