CN103645989B - Device and method for analyzing test resource required by test case during test - Google Patents

Device and method for analyzing test resource required by test case during test Download PDF

Info

Publication number
CN103645989B
CN103645989B CN201310738998.0A CN201310738998A CN103645989B CN 103645989 B CN103645989 B CN 103645989B CN 201310738998 A CN201310738998 A CN 201310738998A CN 103645989 B CN103645989 B CN 103645989B
Authority
CN
China
Prior art keywords
test
resource
test case
type
pending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310738998.0A
Other languages
Chinese (zh)
Other versions
CN103645989A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201310738998.0A priority Critical patent/CN103645989B/en
Publication of CN103645989A publication Critical patent/CN103645989A/en
Application granted granted Critical
Publication of CN103645989B publication Critical patent/CN103645989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a device and a method for analyzing a test resource required by a test case during a test. The device comprises an acquisition module, a type analysis module and a resource analysis module, wherein the acquisition module is used for acquiring a test case to be executed; the type analysis module is used for analyzing and concluding the type of the test case to be executed so as to obtain a corresponding classification result; the resource analysis module is used for confirming the test resource required by the test case to be executed according to the classification result. The invention aims at classifying test cases and providing the test resource and environment topological graphs required by each type of the test cases through comprehensive analysis on the in-batch test cases to be executed, and testers perform test resource preparation and test environment establishment according to output results, so that test resource number estimation errors caused by the large number of test cases and the complex types can be avoided, the situation that the test environment is frequently dissembled and established, or even identical test environment needs to be frequently dissembled and established when the plurality of test cases are tested is avoided, the requirements of the test operation on personnel capability are reduced, and the overall test efficiency is improved.

Description

A kind of analytical equipment and method of test resource needed for test case
Technical field
The present invention relates to networking technology area, the especially analytical equipment of test resource and side needed for a kind of test case Method.
Background technology
Fig. 1 is referred to, test job is broadly divided into test environment preparation, test from flow process and carries out and test data analysis Etc. process, the preparation of test environment is the basis of all working, in actual test, in the face of the use-case that quantity is various, is needed whole Test environment is frequently adjusted for different type use-case in individual test process, the preparation and change for making test environment is occupied in a large number Testing time, by personnel ability affected and the test of different beta versions needed for difference, often cannot accurately estimate and complete Resource needed for all test cases, easily causes that test time is long, test is interrupted, test resource utilization rate is low asks Topic, causes test resource waste, test human cost increase, testing efficiency low.
The content of the invention
(One)The technical problem to be solved
It is an object of the present invention to provide the analytical equipment and method of test resource needed for a kind of test case, so as to reality Now high-volume test case is automatically analyzed, is given and is completed rationally to estimate stock number needed for all tests, to instruct Tester is flexibly allocated for different type test case to test resource, reduces test environment time and test Environment adjustment time, lifts testing efficiency, reduces human cost, realizes the Efficient Operation of test.
(Two)Technical scheme
To solve above-mentioned technical problem, the present invention provides a kind of analytical equipment of test resource needed for test case, including:
Acquisition module, for obtaining pending test case;
Type analysis module, for being analyzed conclusion to the type of the pending test case, is divided accordingly Class result;
Resource analysis module, provides for the test needed for determining the pending test case according to the classification results Source.
Wherein, the analytical equipment also includes:Type sorting module, for obtaining respective type according to the classification results Testing classification list.
Wherein, the resource analysis module includes:
Analytic unit, for according to the testing classification list, analyzing the test of each type of pending test case Resource service condition;
Determining unit, for determining each type of pending test case institute according to the analysis result of the analytic unit The test resource for needing.
Wherein, the analytical equipment also includes:Topological analysis module, for waiting to hold according to test resource determination Network topology needed for row test case.
Wherein, the analytical equipment also includes:Resource sorting module, obtains for the determination result according to the determining unit To the test resource list of respective type.
Wherein, the topological analysis module includes:
Assembled unit, for according to the test resource list, to each type of pending test case and correspondence institute The test resource for needing is combined;
Signal generating unit, for determining network topology corresponding with the pending test case according to combined result.
Wherein, the analytical equipment also includes:Topology g eneration module, the network for being determined according to the signal generating unit is opened up Flutter the network topological diagram for generating respective type.
Wherein, the analytical equipment also includes:Display module, for the classification results and resource of display type analysis module The determination result of analysis module.
To solve above-mentioned technical problem, the present invention also provides a kind of analysis method of test resource needed for test case, bag Include:
Obtain pending test case;
Conclusion is analyzed to the type of the pending test case, corresponding classification results are obtained;
Test resource according to needed for the classification results determine the pending test case.
Wherein, the test resource according to needed for the classification results determine the pending test case includes:
According to the classification results, the test resource service condition of each type of pending test case is analyzed;
Test resource according to needed for analysis result determines each type of pending test case.
Wherein, the analysis method of test resource also includes needed for the test case:Institute is determined according to the test resource State the network topology needed for pending test case.
Wherein, the network topology according to needed for the test resource determines the pending test case includes:
According to the test resource, group is carried out to the test resource needed for each type of pending test case and correspondence Close;
Network topology corresponding with the pending test case is generated according to combined result.
(Three)Beneficial effect
Background technology is different from, it is contemplated that by the comprehensive analysis to the pending test case of batch, using test Example is classified and is provided the test resource needed for every class testing-case and environment topology figure, and tester is according to the result for exporting Carry out that test resource prepares and test environment is built, it is to avoid because test case quantity it is many, test resource that broad categories cause Quantity survey deviation, and need frequently to remove when testing multiple test cases to build test environment, frequently even build dismounting The situation of same test environment, reduces requirement of the test job to personnel ability, improves integrated testability efficiency.
Description of the drawings
Fig. 1 is the execution schematic flow sheet of test case in prior art;
Fig. 2 is two of the structure chart of the analytical equipment of test resource needed for the test case of embodiment one;
Fig. 3 is the construction module figure of the resource analysis module of embodiment one;
Fig. 4 is the construction module figure of the topological analysis module of embodiment one;
Fig. 5 is one of schematic flow sheet of analysis method of test resource needed for the test case of embodiment two;
Fig. 6 is two of the schematic flow sheet of the analysis method of test resource needed for the test case of embodiment two;
Fig. 7 a are the user of embodiment three access class testing-cases, customer service often protects class testing-case and user peak speed is tested Network topological diagram corresponding to class use-case;
Fig. 7 b are one of network topological diagrams corresponding to the user of embodiment three switching class testing-case;
Fig. 7 c are two of the network topological diagram corresponding to the user of embodiment three switching class testing-case.
Specific embodiment
To make the purpose of the present invention, content and advantage clearer, with reference to the accompanying drawings and examples, to the present invention's Specific embodiment is described in further detail.Following examples are used to illustrate the present invention, but are not limited to the model of the present invention Enclose.
Embodiment one
A kind of analytical equipment of test resource needed for test case is present embodiments provided, the device is led by acquisition module Enter batch testing use-case, comprehensive analysis is carried out to batch testing use-case, analytical data is supplied to data compilation by analysis module 20 Module 21, after data compilation module 21 arranges analytical data, the foundation on the one hand further processing as analysis module 20, separately On the one hand phase data arrangement situation is externally exported, display module 22 by the processing data of Jing data compilations module 21 clearly Present to tester, including the classification situation of batch testing use-case, the conditions of demand of test resource and network topological diagram.The dress Put carries out anticipation by the test resource being likely to occur in the preparation and test process before test adjustment situation, helps tester Member formulates rational test process, it is to avoid because test resource is limited, frequently adjust the factors such as test environment to testing whole efficiency Impact.
The cooperation relation between the operation principle of each module of this device and each module is described below.Fig. 2 is referred to, the device Mainly include:Acquisition module, analysis module 20, data compilation module 21 and display module 22.Analysis module 20 includes type point Analysis module 201, resource analysis module 202 and topological analysis module 203, data compilation module 21 include type sorting module 211, Resource sorting module 212 and Topology g eneration module 213, display module 22 includes classification display module 221, resource display module 222 and Topology display module 223.
Specifically, acquisition module, for obtaining the pending test case of batch.
The type of the pending test case of batch of 201 pairs of importings of the type analysis module in analysis module 20 is analyzed Conclude, such as business often protects class use-case, switching class use-case, performance statisticses class use-case, is supplied to data whole classification results data The type sorting module 211 of reason module 21 is processed.
Resource analysis module 202 according to the data for receiving type sorting module 211, to the pending test case of different type Test resource service condition be analyzed, including instrumentation devices, communication network element equipment and adjuvant auxiliary material that need to be used etc., The resource sorting module 212 that analysis result data is supplied to data compilation module 21 is aggregated.Specifically, refer to Fig. 3, resource analysis module 202 includes analytic unit 2021 and determining unit 2022.Analytic unit 2021, for according to the survey Examination tabulation, analyzes the test resource service condition of each type of pending test case.Determining unit 2022, for root Determine the test resource needed for each type of pending test case according to the analysis result of the analytic unit 2021.
Topological analysis module 203 according to the data for receiving resource sorting module 212, to the pending test case of different type It is combined with corresponding resource service condition, combined result is supplied to into the Topology g eneration module 213 of data compilation module 21 Processed.Specifically, Fig. 4 is referred to, topological analysis module 203 includes assembled unit 2031 and signal generating unit 2032.Combination Unit 2031, for according to the test resource list, to the test needed for each type of pending test case and correspondence Resource is combined.Signal generating unit 2032, for determining network corresponding with the pending test case according to combined result Topology.
Type sorting module 211 in data compilation module 21 receives the type analysis module 201 in analysis module 20 Data arranged, form corresponding with test case type testing classification list, be on the one hand supplied to display module 22 Result is presented to tester by classification display module 221, on the other hand serves data to the resource point in analysis module 20 Analysis module 202 is processed.
Resource sorting module 212 receives the data of the resource analysis module 202 in analysis module 20 and is arranged, and is formed For the test resource list of the pending test case of different test-types, test resource list include resource requirement list and For the resource requirement summary table of all use-cases, it is easy to tester to be expressly understood that resource preparation, arranges the side of result one Face is supplied to the resource display module 222 of display module 22 externally to show, on the other hand serves data to analysis module 20 Topological analysis module 203 is processed.
Topology g eneration module 213 receives the data of the topological analysis module 203 in analysis module 20 and is arranged, and passes through Drawing function, forms the test environment topological diagram for different test case types, and is supplied to display module by result is generated 22 Topology display module 223 externally shows.
Testing classification list, test resource list and network topological diagram that display module 22 is exported to data sorting module 21 Presented.
From the foregoing, it will be observed that between above-mentioned each module in principle function mutual dependence for existence, each module is after function treatment is finished There is an output interface to present result, using such framework, that is, ensure moving forward steadily in each functions of modules, and The disposition of each module can be in time grasped, in the case of non-test, tester can using the device To test and analyze to the classification situation of test case, resource service condition, so as to improve the proposition of writing of test case Suggestion.
The present embodiment is absorbed in the rational and efficient use of test resource based on the preparation link of test, realizes to batch The comprehensive analysis of pending test case, is given and completes test resource intersection needed for the pending use-case of batch and for concrete use The information such as test resource quantity, the network topological diagram of example, reality is done from source by test preparation, greatly simplifies test resource Estimate and test environment changes the complexity estimated, reduce requirement of the test job to personnel's technical ability, discharge human resourcess, lifted Test resource utilization rate, lifts testing efficiency, realizes the high efficiency of test.
Embodiment two
The present embodiment provides a kind of analysis method of test resource needed for test case, please refers to Fig. 5 and Fig. 6, should Method originates in step 501, obtains pending test case.
In step 502, conclusion is analyzed to the type of the pending test case, obtains corresponding classification results. Then testing classification list corresponding with test case type is formed further according to classification results, and shows the testing classification row Table.
In step 503, the test resource according to needed for the classification results determine the pending test case.Specifically , step 503 includes:
According to the classification results, the test resource service condition of each type of pending test case is analyzed;And root Determine the test resource needed for each type of pending test case according to analysis result.Then re-form for different test class The test resource list of the pending test case of type, and show the test resource list.
In step 504, the network topology according to needed for the test resource determines the pending test case.Specifically , step 504 is:
According to the test resource, group is carried out to the test resource needed for each type of pending test case and correspondence Close;And network topology corresponding with the pending test case is generated according to combined result.Then re-form for different surveys The test environment network topological diagram of example type on probation, and show test environment network topological diagram.
Compared with traditional test process, using after the method that the present embodiment is provided, the analysis work of test case is complete Automatically complete entirely, according to the pending test case of batch for obtaining, test case type analysis, test resource are carried out automatically Total amount and component analysis, test network topology are drawn, and are generated according to analysis drawing result and shown that the test of test case divides Class list, test resource list and test network topological diagram.Tester is set to have a totality to the situation of current test case Assurance, according to generate result tested tissue resource, classification perform.Avoid the occurrence of test resource budget it is unclear, it is frequent change survey Tested performance is low caused by the factor such as test ring border, test analysis personnel ability be limited.
Embodiment three
The present embodiment is with TD-LTE(Time Division Long Term Evolution, timesharing Long Term Evolution)Experiment Technical scheme is illustrated as a example by the test of room.Illustrate the present embodiment by taking a conventionally test task as an example below Operation principle, for principle of specification, is below hypothesis data:
This test assignment needs the use-case of test to have 30, and the basic process of test is as follows:
Test-types are classified;
Test resource budget;
Test topology is generated;
Build test environment and test.
During using this method, the type of 30 test cases is analyzed first, by test case type analysis work( The analysis that can be organized, test-types and quantity such as table 1 below:
The test case classification list of table 1
Sequence number Test case type Quantity Remarks
1 User accesses class use-case 6 Use-case 1,4,7,10,13,16
2 Customer service often protects class use-case 8 Use-case 2,5,8,11,14,17,22,23
3 User peak speed test class use-case 8 Use-case 3,6,9,12,15,18,24,25
4 User switches class use-case 8 Use-case 19,20,21,26,27,28,29,30
The test resource situation for using:
User's access class use-case, customer service are often protected class use-case and user peak speed test class use-case and can use identical ring Border is tested, and its maximum resource is listed as follows table 2:
Maximum resource needs list of the table 2 for ambient cure
Sequence number Resource requirement Quantity
1 Desktop PC 2
2 Slave computer 1
3 Terminal 7
4 eNB 1
5 Radio frequency unit 4
6 Power line 6
7 Optical fiber 7
8 Radio frequency line 26
9 Coupling disc 2
10 Matched load 14
11 Attenuator 8
12 GPS lines 1
13 4 power splitters 1
14 2 power splitters 2
User's switching class testing-case needs the test resource for using to be listed as follows table 3:
The test resource list of table 3
Sequence number Resource requirement Quantity
1 Desktop PC 1
2 Notebook 24
3 Programmable attenuator 4
4 Shielded box 4
5 USB line 24
6 Terminal 24
7 eNB 4
8 Radio frequency unit 16
9 Power line 24
10 Optical fiber 28
11 Radio frequency line 112
12 Operating board radio frequency interface 4
13 Coupling disc 8
14 Matched load 56
15 Attenuator 32
16 GPS lines 4
17 4 power splitters 4
18 2 power splitters 8
Test environment topological diagram is drawn according to test resource list, user accesses class use-case, customer service and often protects class use-case With topological structure such as Fig. 7 a of user peak speed test class use-case, the network topology such as Fig. 7 b corresponding to user's switching class testing-case With Fig. 7 c, represented by wherein Fig. 7 b is single site 2-4 cell switch test topological diagram, and represented by Fig. 7 c is that 4 website 2-4 are little The switch test topological diagram in area.
From the foregoing, it will be observed that comprehensive analysis of the present embodiment to test case, calculates in advance the reasonable money performed needed for batch use-case Source total amount, and presented in the form of graphical and form, subtest personnel carry out the work.Whole process automatically analyzes reality It is existing, without the need for human intervention.Relieving needs to test the impact that designer estimates the carrying out of test resource for a long time, improves Accuracy and testing efficiency that test resource is estimated, reduce requirement of the test design process to personnel's technical ability, improve test Resource utilization, it is to avoid the waste of test resource.
Embodiments of the invention are the foregoing is only, the scope of the claims of the present invention is not thereby limited, it is every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (6)

1. the analytical equipment of test resource needed for a kind of test case, it is characterised in that include:
Acquisition module, for obtaining pending test case;
Type analysis module, for being analyzed conclusion to the type of the pending test case, obtains corresponding classification knot Really;
Resource analysis module, for the test resource needed for determining the pending test case according to the classification results;
Described device also includes:Type sorting module, the testing classification for obtaining respective type according to the classification results is arranged Table;
Also include:Topological analysis module, for the network needed for determining the pending test case according to the test resource Topology;
Network topology according to needed for the test resource determines the pending test case includes:
Test resource needed for each type of pending test case and correspondence is combined;And generated according to combined result Network topology corresponding with the pending test case;For the test environment network topological diagram of different test case types, And show test environment network topological diagram.
2. analytical equipment according to claim 1, it is characterised in that the resource analysis module includes:
Analytic unit, for according to the testing classification list, analyzing the test resource of each type of pending test case Service condition;
Determining unit, needed for determining each type of pending test case according to the analysis result of the analytic unit Test resource.
3. analytical equipment according to claim 2, it is characterised in that also include:Resource sorting module, for according to described The determination result of determining unit obtains the test resource list of respective type.
4. analytical equipment according to claim 1, it is characterised in that also include:Display module, for display type analysis The classification results of module and the determination result of resource analysis module.
5. the analysis method of test resource needed for a kind of test case, it is characterised in that include:
Obtain pending test case;
Conclusion is analyzed to the type of the pending test case, corresponding classification results are obtained;
Test resource according to needed for the classification results determine the pending test case;
Methods described also includes:Testing classification list corresponding with test case type is formed according to the classification results;
Also include:Network topology according to needed for the test resource determines the pending test case;
Network topology according to needed for the test resource determines the pending test case includes:
Test resource needed for each type of pending test case and correspondence is combined;And generated according to combined result Network topology corresponding with the pending test case;For the test environment network topological diagram of different test case types, And show test environment network topological diagram.
6. analysis method according to claim 5, it is characterised in that described to wait to hold according to the classification results determine Test resource needed for row test case includes:
According to the classification results, the test resource service condition of each type of pending test case is analyzed;
Test resource according to needed for analysis result determines each type of pending test case.
CN201310738998.0A 2013-12-26 2013-12-26 Device and method for analyzing test resource required by test case during test Active CN103645989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310738998.0A CN103645989B (en) 2013-12-26 2013-12-26 Device and method for analyzing test resource required by test case during test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310738998.0A CN103645989B (en) 2013-12-26 2013-12-26 Device and method for analyzing test resource required by test case during test

Publications (2)

Publication Number Publication Date
CN103645989A CN103645989A (en) 2014-03-19
CN103645989B true CN103645989B (en) 2017-04-19

Family

ID=50251210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310738998.0A Active CN103645989B (en) 2013-12-26 2013-12-26 Device and method for analyzing test resource required by test case during test

Country Status (1)

Country Link
CN (1) CN103645989B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10042747B2 (en) 2014-11-12 2018-08-07 International Business Machines Corporation System and method for determining requirements for testing software
CN106872811A (en) * 2015-12-10 2017-06-20 中国船舶工业系统工程研究院 A kind of TCH test channel distribution method based on signal characteristic
CN106452962A (en) * 2016-10-17 2017-02-22 深圳铂睿智恒科技有限公司 WiFi coupling test system and method
CN109495196B (en) * 2019-01-03 2023-10-10 深圳市吉祥腾达科技有限公司 System and method for testing wireless network bandwidth automatic switching characteristics of MESH product
CN114143235A (en) * 2020-08-13 2022-03-04 中国移动通信有限公司研究院 NFV automatic test method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609352B (en) * 2011-01-19 2014-11-19 阿里巴巴集团控股有限公司 Parallel testing method and parallel testing server
CN102736972B (en) * 2011-03-30 2016-03-09 国际商业机器公司 The test case treating Test Application carries out the method and system processed
CN103414811B (en) * 2013-08-09 2016-03-16 北京中创信测科技股份有限公司 The method and system of synchronism detection are carried out in multiple terminals

Also Published As

Publication number Publication date
CN103645989A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN103645989B (en) Device and method for analyzing test resource required by test case during test
CN102567203B (en) A kind of method and system of test distributed file system performance
CN107861606A (en) A kind of heterogeneous polynuclear power cap method by coordinating DVFS and duty mapping
CN102662828A (en) A method and device for achieving software automatic testing
CN107733539A (en) A kind of spaceborne multichannel microwave receiver frequency converter test system
CN109451532A (en) A kind of check method and device of base station location
US20180307594A1 (en) System, method and storage device for cim/e model standard compliance test
CN109150331B (en) Satellite multi-transmission channel index parallel automatic test system
CN103079086A (en) Automatic testing system for set-top box
CN108415830A (en) A kind of generation method and device of software test case
CN106646315B (en) A kind of Auto-Test System and its test method of digital measuring instruments
CN106405294B (en) Portable power distribution product transmission calibrator and implementation test method thereof
CN102164196A (en) Automatic mobile phone current testing method
CN103810092A (en) Application system testing method and device
CN107590037A (en) A kind of method that EDPP tests are carried out to server GPU
CN103678529B (en) Integration method of wafer test data of multiple times
CN106713069A (en) System resource monitoring and bottleneck identification method
US20230376397A1 (en) Method and System for Determining Interval Time for Testing of Server, and Device and Medium
CN107357705A (en) The monitoring measuring system and method for a kind of PCIE outer plug-in cards power consumption
CN105956755A (en) Method and system for establishing quantitative relationship of general power line loss rate influencing factors
CN104461832A (en) Method and device for monitoring resources of application server
CN105182131B (en) Universal testing method
CN105204999B (en) A kind of method for realizing automatic test
CN102521135A (en) Linear system test method and device
CN203909236U (en) Integrated circuit testing system

Legal Events

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