CN1805582A - Method of testing with integrated test tools - Google Patents

Method of testing with integrated test tools Download PDF

Info

Publication number
CN1805582A
CN1805582A CN 200510032854 CN200510032854A CN1805582A CN 1805582 A CN1805582 A CN 1805582A CN 200510032854 CN200510032854 CN 200510032854 CN 200510032854 A CN200510032854 A CN 200510032854A CN 1805582 A CN1805582 A CN 1805582A
Authority
CN
China
Prior art keywords
test
trigger
data
adapter
different
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
Application number
CN 200510032854
Other languages
Chinese (zh)
Other versions
CN100391290C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100328549A priority Critical patent/CN100391290C/en
Publication of CN1805582A publication Critical patent/CN1805582A/en
Application granted granted Critical
Publication of CN100391290C publication Critical patent/CN100391290C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a method for using integrated detecting tool which can solve the problem that the diversity of detecting scrip in different contexts and different processes. The method comprises: (a), setting the detected context and process parameter in one electric table document; (b) using one trigger to attain said context and process parameter via a interface document of electric table document, while attained context and process parameter is used in one adapter for instructing said process; (c) the adapter processes relative detecting process according to the trigger condition of trigger.

Description

A kind of method of using integrated test tools to test
[technical field]
The invention belongs to communication technique field, relate in particular to a kind of use integrated test tools (IntegratedTest Tool, following abbreviation ITT), the method that the base station controller (BSC) of GSM is tested.
[background technology]
For the correctness of the BSC product basic function that guarantees each redaction that GSM issues, all basic functions of this product all need to test.But when the basic function of product great change does not take place, often can cause the repeatability of test job again.Therefore, each company generally adopts automated test tool, to improve testing efficiency.The ITT automated test tool is a kind of instrument of commonplace use, and it adopts supports OO TCL to set up test pattern, can finish the test of all procedure basic functions of BSC product.
Use the ITT testing tool, before test, at first need increase a stubs,, also can handle simultaneously configuration order to handle the message that measurand receives and sends in the inside of system under test (SUT).ITT provides test script running environment and message editor procedure and resolver in the system under test (SUT) outside, the tester writes test script in backstage the integration environment (IDE), submits to then and carries out.ITT mainly is by the tested object interaction message flow of test background, and utilizes relatively message flow of built-in order, thereby realizes test automatically.
The ITT instrument adopts the TCL script to test, and after the communication that realizes tested object and ITT, drives test by script, also the result who exports is checked simultaneously.When adopting present ITT instrument to test, need prior clear and definite environmental data configuration.Test script and environmental data configuration are closely related, and various like this environment just must cause the diversity and the complexity of test script.The minor modifications of data configuration all might be used different scripts in the practical operation, for example: the test with signaling process is an example, adopt existing method of testing, if wish that test is under different background, the flow process of various process, just need finish by writing a lot of scripts, the diversity of background and process is just brought the diversity of script like this.In addition, as a result the time, the executor must understand the configuration of realization environmental data and the process of different test results very much at checkout, if adopt the disposable mode of finishing a plurality of test cases, to the very complicated often work of result's inspection.
[summary of the invention]
For this reason, the technical problem to be solved in the present invention provides a kind of method of using integrated test tools to test, and this method mainly can solve in the prior art for testing under the different background diverse problems of the test script of the flow process of various process.
For solving the problems of the technologies described above, the invention provides a kind of method of using integrated test tools to test, this method comprises the steps:
(a) background to be tested and procedure parameter are set in an electronic form file,
(b) use the interface document of this trigger by an electronic form file to obtain background and procedure parameter in the above-mentioned electronic form file, this trigger is used for the adapter of assignment procedure according to background of being obtained and procedure parameter triggering one,
(c) this adapter is carried out corresponding testing process according to the trigger condition of trigger.
This method can further comprise test result is write step in the corresponding electrical form record.
This method utilizes electrical form directly to carry out the parameter input, thereby realizes the test case based on data-driven, makes test execution become more convenient, understand; Use simple script like this, the flow testing of different backgrounds and different process just can be simulated and finish to different parameters.
In addition, also output to the test case execution result in the electrical form, can utilize electrical form powerful data analysis function, for example: ordering, screening, the classification to execution result gathers, the pivot analysis, makes function such as chart and realizes automatic analysis to test result.
Specify other technologies characteristics of the present invention and advantage below in conjunction with the drawings and specific embodiments.
[description of drawings]
Fig. 1 is the schematic diagram of ITT establishmentization test model in the embodiment of the invention.
Fig. 2 is the instantiation of the employed Excel form of call flow of test GBSC in the embodiment of the invention.
[embodiment]
The main design of the inventive method, using integrated test tools ITT that the base station controller BSC of GSM is carried out in the test process exactly, background and process are all passed through electronic form document, for example: the parameter in the Excel document is represented, that is, all test cases manage by the Excel document, utilize Excel directly to carry out the parameter input, thereby realize test case, make test execution become more convenient, understand based on data-driven.Use simple script like this, the flow testing of different backgrounds and different process just can be simulated and finish to different parameters.Simultaneously, the test case execution result also can be outputed in the Excel form, utilize Excel powerful data analysis function, realize the automatic analysis of test result.
Method for the data-driven that will describe below the more convenient understanding at first in conjunction with Fig. 1, illustrates the basic establishment model of ITT testing tool of the present invention.
As shown in Figure 1, among the present invention ITT testing tool component model to be divided into be four layers: i.e. logical layer, data Layer, interface layer and application layer.Wherein, logical layer is used to realize logical drive.Data Layer is used to realize the definition of data and initialization etc.Interface layer is mainly data Layer and logical layer provides the tabulation of logic state, the tabulation of dynamic operation, for bottom provides abstract logic.Uppermost part is a user application layer, application layer directly corresponding be exactly real test case.
Wherein, the work of above-mentioned interface layer can be regarded a process that logic is adaptive as, so among the application the entity of interface layer correspondence is called adapter.The major function of adapter is to provide flow process needed logical data for data Layer and logical layer, comprises flow logic state table and dynamic data operation table.But, only realize that logic state is not enough, in order to finish the testing process of hope, must guarantee that also logic state moving under the different dynamic operations under its different logic state to correspondence, and Here it is the required work of finishing of trigger of the present invention.
Trigger allows the user to embed self-defining logic determines in procedural model among the present invention.In adapter, this trigger and message relating are got up, so that state is adjourned on the different states in reception or after sending different message.But the Rule of judgment that should be pointed out that trigger may be according to the type of message that defines in type of message that receives and trigger coupling, also may be to receive the bytes match that defines in some bytes in certain bar message and the trigger.
The present embodiment of introducing below is to serve as user application layer with the EXCEL data form, and drives the call flow of ITT test GBSC by this EXCEL data form.Present embodiment is by filling different data, i.e. background and procedure parameter in Microsoft Excel; Directly revise Rule of judgment in the trigger (such as the byte of needs coupling etc.), finish different tests thereby drive.
As previously mentioned, adapter mainly is used for assignment procedure, and it has defined the basic logic flow process of assignment.For example: the NormalAssAdaptor in the following TCL script is exactly one of adapter instantiation that is used for assignment procedure:
package?provide?RRADPT?1.0
namespace?eval?RRADPT{
class?NormalAssAdaptor{
public?method?configLogic{obj}
public?method?updateMsg{obj}
}
body?NormalAssAdaptor::configLogic{obj}{
}
body?NormalAssAdaptor::updateMsg{obj}
}
}
Simultaneously, present embodiment is finished assignment procedure by trigger under different background environments.The driving of test script by trigger can realize the different resource of distribution under the different background environment conditions.For example: AssProcTrigger has just defined the trigger of an assignment procedure in the following script.
package?provide?RRTRIGER?1.0
package?require?UTIL?1.0
namespace?eval?RRTRIGER{
class?AssProcTrigger{
}
}
Need in the trigger to design and the interface of extraction and Excel file, after the different variable parameter of input, trigger just can obtain background and procedure parameter in the Excel file by this Excel interface document; Trigger carries out some logic determines according to current condition again, so that logic flow carries out according to the pattern of setting, thereby realizes different test cases with specific environment background.
Design is finished after adapter and the trigger, just can realize concrete test.As previously mentioned, in order to be implemented in the assignment procedure under the different background environmental condition, the use-case designer only need insert concrete data parameters according to the form that designs in the Excel file.When test case was carried out, these data parameters just can drive finishing of assignment procedure.
In addition, also can in the Excel interface document, define the form of input data parameters, and set the automatic preservation of configuration data, functions such as loading.Make the test case designer when the design use-case, just fill in the input data, the operation of all functions is all finished by the code of bottom according to the form of definition.For example Figure 2 shows that an instantiation of Excel form.
Each automatic test cases also must be reported its operation result after complete, test report is exactly the execution result that is used for storing test case.Usually, general test report comprises following components: the title of (1) single automatic test cases, time of implementation; (2) the execution average information of single automatic test cases; (3) execution result of single automatic test cases.And test result generally comprises: desired output, variance reports and test mode.
In conjunction with the input pattern of Excel file parameters, adopt the report manner that test result is write the Excel form in the present embodiment.Test case of every execution, the data that need in the corresponding execution result to be recorded will be written in the corresponding charting according to the data format that designs in advance, and zero-time and termination time that use-case is carried out also have been saved in the record.Then, utilize Excel powerful data analysis function, for example: ordering, screening, the classification to execution result gathers, the pivot analysis, makes function such as chart and realizes automatic analysis to test result.By Excel data are carried out various analysis operations and should be well known to those of ordinary skill in the art, so do not repeat them here.
Need to prove; above-mentioned explanation only is the detailed description to preferred embodiment of the present invention; narration only is explanation realizability of the present invention and outstanding effect thereof; concrete feature can not be used as the restriction to technical scheme of the present invention, and protection scope of the present invention should be as the criterion with appended claims of the present invention.

Claims (2)

1. a method of using integrated test tools to test is characterized in that, this method comprises the steps:
(a) background to be tested and procedure parameter are set in an electronic form file,
(b) use the interface document of this trigger by an electronic form file to obtain background and procedure parameter in the above-mentioned electronic form file, this trigger is used for the adapter of assignment procedure according to background of being obtained and procedure parameter triggering one,
(c) this adapter is carried out corresponding testing process according to the trigger condition of trigger.
2. the method for claim 1 is characterized in that, further comprises test result is write step in the corresponding electrical form record.
CNB2005100328549A 2005-01-14 2005-01-14 Method of testing with integrated test tools Expired - Fee Related CN100391290C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100328549A CN100391290C (en) 2005-01-14 2005-01-14 Method of testing with integrated test tools

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100328549A CN100391290C (en) 2005-01-14 2005-01-14 Method of testing with integrated test tools

Publications (2)

Publication Number Publication Date
CN1805582A true CN1805582A (en) 2006-07-19
CN100391290C CN100391290C (en) 2008-05-28

Family

ID=36867362

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100328549A Expired - Fee Related CN100391290C (en) 2005-01-14 2005-01-14 Method of testing with integrated test tools

Country Status (1)

Country Link
CN (1) CN100391290C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN103139822A (en) * 2013-03-27 2013-06-05 武汉邮电科学研究院 Method of carrying out automated testing on wireless communication system physical layer
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN104636254A (en) * 2015-01-16 2015-05-20 北京创毅视讯科技有限公司 Method and device for generating test case, testing method and testing equipment
CN105488089A (en) * 2014-12-31 2016-04-13 哈尔滨安天科技股份有限公司 Automatic generation method and system of quality evaluation report

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5654901A (en) * 1995-01-30 1997-08-05 Telefonaktiebolaget Lm Ericsson Loading software into field test equipment
KR100313466B1 (en) * 1998-05-19 2001-12-31 윤종용 Method for automating base station tests in mobile telecommunication system
CN1167297C (en) * 2002-01-24 2004-09-15 华为技术有限公司 Method for checking up ground circuit in BSS system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN102163173B (en) * 2011-04-06 2013-03-27 北京航空航天大学 Automated testing method for distributed information system interface
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN103970614B (en) * 2013-01-24 2018-07-06 腾讯科技(深圳)有限公司 A kind of service test method and device
CN103139822A (en) * 2013-03-27 2013-06-05 武汉邮电科学研究院 Method of carrying out automated testing on wireless communication system physical layer
CN105488089A (en) * 2014-12-31 2016-04-13 哈尔滨安天科技股份有限公司 Automatic generation method and system of quality evaluation report
CN104636254A (en) * 2015-01-16 2015-05-20 北京创毅视讯科技有限公司 Method and device for generating test case, testing method and testing equipment

Also Published As

Publication number Publication date
CN100391290C (en) 2008-05-28

Similar Documents

Publication Publication Date Title
CN101060372A (en) A method and system for rapid creating the automation test script
CN1248116C (en) General purpose testing arrangement for embedded module and subsystem based on host machine platform
CN1752946A (en) Debugging method of embedded system and its system
CN100337212C (en) Logic verification system and method
CN1805582A (en) Method of testing with integrated test tools
CN101046767A (en) Method and system for automated testing of a graphic-based programming tool
CN1801155A (en) Method for combination of original files of hardware design language and checking data files
CN100340997C (en) Automatic test method of application
CN100351785C (en) Method for debuging embedded system and equipment
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN1713658A (en) Testing system and method for mobile telephones
CN1967499A (en) Journal output system and output method
CN103913672B (en) A kind of satellite low frequency interface automatization test system
US7131080B2 (en) Simulation management system
CN100346308C (en) Automatic test method based on database operation
CN116521217A (en) Method, system and storage medium for rapidly configuring BSW based on AUTOSAR tool
CN101296462A (en) Method and system for batch execution of mobile terminal software automatic test
CN1170225C (en) Method for carrying out instrument module drive of automatic test system
CN106843875A (en) The method and apparatus of cross-platform transplanting Python programs
CN110276443A (en) Model conversion consistency checking and analysis method, device and storage medium
CN1409502A (en) Method for detecting production line of communication product single board with CPU
CN101056226A (en) Automation consistency test method and device
CN1152303C (en) Method and device for automatically recording and reproducing operation path on simulator
CN1848093A (en) Method for debugging high configuration and power supply interface module in basic inputting and outputting system
CN109725905A (en) Software architecture and implementation method based on source code collection, plug-in unit and application method for compiling pins component

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080528

Termination date: 20180114