CN100562033C - A kind of automated test tool of stored-program control exchange and method - Google Patents

A kind of automated test tool of stored-program control exchange and method Download PDF

Info

Publication number
CN100562033C
CN100562033C CNB200610058422XA CN200610058422A CN100562033C CN 100562033 C CN100562033 C CN 100562033C CN B200610058422X A CNB200610058422X A CN B200610058422XA CN 200610058422 A CN200610058422 A CN 200610058422A CN 100562033 C CN100562033 C CN 100562033C
Authority
CN
China
Prior art keywords
test
programme
module
sound card
controlled exchange
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
CNB200610058422XA
Other languages
Chinese (zh)
Other versions
CN101043543A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB200610058422XA priority Critical patent/CN100562033C/en
Publication of CN101043543A publication Critical patent/CN101043543A/en
Application granted granted Critical
Publication of CN100562033C publication Critical patent/CN100562033C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Monitoring And Testing Of Exchanges (AREA)

Abstract

The invention discloses a kind of testing tool and method of testing thereof of programme-controlled exchange.At existing regression test to programme-controlled exchange mainly by the manual low-quality problem of poor accuracy, regression test brought of carrying out of tester; The present invention includes sound card calls out controlling platform, testing tool platform and calls out sound card and communication network between controlling platform and the programme-controlled exchange to be tested with the parallel sound card that connects of communication mode; Sound card call testing platform provides order and interface, realization is to call testings such as the off-hook of sound card, on-hook, dialing, conversation, continuity test, dialing tone tests, the testing tool platform is caught mutual between analog subscriber and the programme-controlled exchange to be tested in conjunction with sound card call testing platform, record test script, editor's test script and playback test script are realized test.The present invention has replaced the tester, has improved the regression test accuracy, is applicable to the various environment that need test programme-controlled exchange.

Description

A kind of automated test tool of stored-program control exchange and method
Technical field
The present invention relates to exchange the field automatization testing technique.Be particularly related to a kind of programme-controlled exchange automated test tool and method.
Background technology
Programme-controlled exchange is core and the junction in the modern telecom network.The programme-controlled exchange product mainly carries out two big class testings, i.e. functional test and performance test after entering test phase.Functional test is generally carried out in the manual mode of calling, and performance test then is based on special test equipment (as Bulk Call call testing instrument etc.), every performance index of test programme-controlled exchange product, and as BHCA, call completing rate, charging accuracy rate etc.Experience shows in the test that 80% fault finds that in functional test therefore, the automation of finishing functional test can obtain maximum value.
Generation along with defective in programme-controlled exchange product design and the development process, and the demand of what's new, the developer need constantly revise product design, can not exert an influence to existing function in order to make new modification, carry out the function regression test to product.The function regression test is meant a kind of repetitious test of being carried out under system interface, function can the situations that great changes have taken place.Its purpose is the test case of version before re-executing in redaction, guarantees that software and product function can not exert an influence along with the renewal of version.
When programme-controlled exchange carries out regression test, the set of the basic function that some must be verified, be called basic regression test collection, comprise basic alarm, manmachine command, basic service, PSTN (Public Switched Telephone Network) public switch telephone network supplementary service, group, simple and easy console test, file operation, data backup and transmission, log record, inspection MP EMS memory occupation, standard console, IP supermarket etc.Wherein comprise test, and in a large number the data configuration at background maintenance interface is tested the dialing audition of business.
In the past to the regression test of programme-controlled exchange business function, all be to be undertaken by tester's manual configuration environment and the mode of calling, promptly the tester repeatedly is configured operational testings such as service environment, off-hook, dialing, RT register traffic, audition, conversation, CDR inquiry, on-hook.Content measurement repeats and loaded down with trivial details, and testing efficiency is not high.Under the more situation of version, the tester must spend great effort to go these regression tested contents of testing authentication, and not free and energy goes to test out deeper fault.And, when regression test is tested by different testers, be easy to be subjected to the influence of personal experience and level, can not guarantee the accurate repetition tested, the result and the quality of influence test.
The normal instrument that adopts of system's regression test is commercial seizure/playback testing tool, as the WinRunner of MI.It adopts the regression test method of normal use: seizure/playback method is tested.Promptly earlier catch mutual between user and the system, and the achievement of catching is recorded as the test script storage with instrument.By playback script, realize that the operation of analog subscriber is tested.But only use seizure/playback instrument only to be suitable for carrying out interface detection, but can't realize test the programme-controlled exchange call business.
Still do not have a kind of comprehensive automation testing tool now, can realize regression test the programme-controlled exchange above-mentioned functions.Main cause is to programme-controlled exchange exploitation automated test tool, and two big difficult points are arranged, the one, and the configuration of complex software environment and data, the 2nd, the test of manual dial and audition, mainly be because these two parts are complicated and changeable, difficult to realize automation, restricted automaticity.
Under this present situation and background, return the automation tools of functional test substantially if can develop a kind of programme-controlled exchange of realizing, must save the test human resources largely, improve and the raising testing efficiency.
Existing patent documentation comprises: number of patent application is the Chinese patent " the system test apparatus and method of programme-controlled exchange " of CN96102625.
The CN96102625 Chinese patent application has the following disadvantages: the method for testing that this patent proposed only limits to test the hardware device of programme-controlled exchange, and the test of the business function that the involved content measurement of this patent provides for the programme-controlled exchange operation and maintenance system relevant with programme-controlled exchange.
Summary of the invention
At problems of the prior art, it is a kind of easy-to-use flexibly that the automated test tool of a kind of programme-controlled exchange of the present invention provides, the reliable and stable automated test tool and the method that are used for programme-controlled exchange is carried out functional test.
In order to address the above problem, the invention provides a kind of testing tool of programme-controlled exchange, comprising: the sound card call testing platform that is used to provide order and interface; Be used to realize the regression tested testing tool platform to programme-controlled exchange interface configurations to be tested and operation, described testing tool platform and sound card call testing platform communicate by the interface that provides mutually; Between described sound card call testing platform and programme-controlled exchange to be tested, be connected with sound card and communication network with communication mode.
The testing tool of above-mentioned programme-controlled exchange, described sound card call testing platform comprises: sound card Call Control Block, sound identification module, communication module and test result analysis module;
Wherein, described sound card Call Control Block control sound card carries out the call operation test;
Wherein, described sound identification module be used for by sound card detect, identification programme-controlled exchange to be tested is in the professional speech detection of test, and the information of returning is outputed to the test result analysis module analyze and handle;
Wherein, communication module is used for carrying out information interaction between sound card call testing platform and programme-controlled exchange to be tested, when carrying out call testing, dispose programme-controlled exchange to be tested by communication module, the calling that sound card call testing platform is initiated to programme-controlled exchange to be tested sound card by communication module is followed the tracks of, and obtains information that programme-controlled exchange to be tested returns and test result and export the test result analysis module to and analyze and handle;
Wherein, the test result analysis module is compared to result and expected test result that sound identification module and communication module are returned, and information or the data returned are analyzed and handled, and judges whether test process is well on, and whether test result is correct.
The testing tool of above-mentioned programme-controlled exchange, wherein, described sound card call testing platform also comprises: log pattern and test execution statistical module, wherein, described log pattern is used for the analysis situation log information according to the test result analysis module; The test execution statistical module is used to add up the test execution situation of all functions module.
The testing tool of above-mentioned programme-controlled exchange, wherein, described sound card call testing platform also comprises: described sound identification module is DTMF (dual-tone multifrequency) sound identification module.
The testing tool of above-mentioned programme-controlled exchange, wherein, described sound card call testing platform also comprises: start-up control module, script interpreter, script operation main entrance module, wherein, described start-up control module is moved the main entrance module to each environmental variance and the initialization of various Driver Library file by script; Described script interpreter is finished the functions such as syntactic analysis, argument replacement and command calls to test script; Described script operation main entrance module connects script interpreter and other modules, calls each functional test module, finishes the unification of all operational trials scripts is called and carried out.
The testing tool of above-mentioned programme-controlled exchange, wherein, described sound card call testing platform also comprises: parameter typing module, environment configurations module, wherein, parameter typing module realizes that test parameter separates with test script, during loading parameters, script interpreter is by the parameter in the environment configurations module invokes parameter typing module; The environment configurations module is connected with functional module, according to the prerequisite of test event, through communication module, the service attribute and the environment of programme-controlled exchange is configured, and programme-controlled exchange is reverted to initial test environment after test is finished; Functional module is finished the covering of each test event and the execution of test automatically through script operation main entrance module.
The testing tool platform of above-mentioned programme-controlled exchange, wherein, described testing tool platform is a seizure/playback instrument, also comprises starting runnable interface, the total control interface of script, statistical analysis interface; Described testing tool platform is connected with the start-up control module of sound card call testing platform by starting runnable interface.
A kind of method of testing of programme-controlled exchange, wherein, this method may further comprise the steps:
Sound card call testing platform carries out call testing and audition test by sound card to programme-controlled exchange to be tested; The testing tool platform is tested the off-hook of sound card, on-hook, dialing, conversation, continuity test, dialing tone by itself and the interface seizure/voice playback card call testing platform between the sound card call testing platform; The testing tool platform uses seizure/playback function that programme-controlled exchange to be tested is carried out interface configurations and operation, and testing tool platform invoke sound card call testing platform interface carries out the function regression test to programme-controlled exchange to be tested; Programme-controlled exchange to be tested returns detecting information and result by communication network to sound card call testing platform.
The method of testing of above-mentioned a kind of programme-controlled exchange, wherein, described audition test is specially: the speech conversion that programme-controlled exchange is play is corresponding dtmf tone earlier, sound card call testing platform carries out call operation by sound card to programme-controlled exchange to be tested, and the voice of reception programme-controlled exchange broadcast, the DTMF value that identification is corresponding, whether this value and predefined value are compared the warning tone of judging broadcast correct.
Compared with prior art, the present invention supports the automatic testing instrument of test of programme-controlled exchange call business and interface configurations test by introducing, and proposes the two technical conceive that combines, and has realized the function automatic detection to programme-controlled exchange with innovating.
The call testing platform has solved the difficult problem of the audition of programme-controlled exchange calling in the past test, commercial seizure/playback the testing tool of testing tool platform utilization is supported the characteristics of interface detection, overcome the shortcoming that it can't be called out, it is combined with the call testing platform, realize test programme-controlled exchange interface configurations related service function.In addition, automated test tool of the present invention is easy-to-use flexibly, and test process does not need manual intervention, finishes from presetting environment and disposes automatically, carries out all test processs that expected results compares and test result generates to testing procedure.Save tester's time, improved testing efficiency and test mass.
Description of drawings
Fig. 1 is the platform structure schematic diagram of automatic testing instrument of the present invention;
Fig. 2 is the flow chart of automatic testing process of the present invention;
Fig. 3 is the embodiment of TCL instrument of the present invention in conjunction with Dialogic sound card call testing platform;
Fig. 4 WinRunner testing tool of the present invention platform is in conjunction with the embodiment of Dialogic sound card call testing platform.
Embodiment
Be introduced below in conjunction with the embodiment of accompanying drawing programme-controlled exchange automated test tool of the present invention.
The technical conceive that the present invention takes sound card call testing platform and testing tool platform are combined is realized.Concrete technical scheme comprises following content:
1) sound card is connected to programme-controlled exchange by subscribers feeder, and the analog subscriber phone carries out the associated call operation.
2) sound card call testing platform provides order and interface, realization is to call testings such as the off-hook of sound card, on-hook, dialing, conversation, continuity test, dialing tone tests, and to the identification test of the professional voice of switch DTMF (Dual Tone Multi Frequency) dual-tone multifrequency.This platform provides the access interface to database simultaneously, environment configurations module and parameter typing module, and start-up control module and script operation main entrance module, modules such as test result analysis and statistical log.Use this platform to the test case compile script, can realize to the basic call business test of call business such as PSTN supplementary service.
3) testing tool platform is supported the business software functional test instrument that seizure/playback is tested.Use this tool platform to be used for realizing regression test to switch interface configurations and operation.By catching mutual between analog subscriber and the programme-controlled exchange, record test script, editor's test script and playback test script are realized test.This platform also provides module interfaces such as starting operation, script master control and statistical analysis.Can realize the switch console, the IP supermarket, file managements etc. relate to the interface alternation test partly of the business of a large amount of interface operations.
4) in the testing tool platform, in conjunction with sound card call testing platform, call the interface program that the sound card platform provides, the realization interface is called sound card and is called out seizure/playback test.The test of sound function is listened in realization to the calling of business such as switch console.
When using testing tool of the present invention, use concrete test script language such as TCL or TSL, control command that calling platform provides and interface are to test procedure or test case creation with write test script, operation test in script interpreter.Script is write easy to maintenance.Wherein, the seizure/playback function of testing tool platform, the generation script template has more strengthened the flexibility that script is created and write automatically.In addition, be to improve the versatility of test script, the method that the present invention takes test parameter to separate with test script is preserved parameter with the form of Parameter File, and script reads the test parameter in the parameter replacement script in the Parameter File when carrying out.
Utilize automatic testing instrument of the present invention that the realization that programme-controlled exchange carries out functional test be may further comprise the steps:
Step 1. start-up control module realizes overall control, calls and loads initialization according to configuration and expand storehouse and correlation module, starts different sound card or voice channel, starts the DTMF sound identification module.
Step 2. is loading scripts operation main entrance module in the test script interpreter, adds each operational trials script to be measured in the module of main entrance.Simultaneously, starting log module and script executing statistical module.
Step 3. script reads the parameter in the parameter replacement script from Parameter File.Script interpreter is moved each test script and is carried out test.
Step 4. is finished environment configurations automatically according to prerequisite.Because the test environment of difference in functionality point is different with prerequisite, automated test tool of the present invention configured the required test environment of this function point automatically before each function point of test, recovered initial test environment after test is finished automatically.
Step 5. uses the call testing platform that basic call business and PSTN business are tested.Call out the interface of calls of controlling in the expansion library module by calling sound card, realize the sound card passage is carried out off-hook, dialing, RT register traffic is conversed, and call operations such as on-hook are finished the test of business.
The communication interface that step 6. call testing platform invoke programme-controlled exchange provides is carried out alternately, sends order to tested programme-controlled exchange.
Step 7. use test tool platform, to console, alarm test, IP supermarket, junction call test, signaling tracing test, file operation, standard console etc. are tested.Interface operation part of detecting is wherein recorded script by platform seizure/playback mode and is tested; The call testing part connects sound card call testing platform start-up control module by the testing tool platform by starting runnable interface, calls sound card call testing platform interface program, and the control sound card is carried out call testing.
Step 8.DTMF sound identification module is handled the speech recognition in the test process.Receiving the professional sound of DTMF that programme-controlled exchange is play, whether correct with standard value if comparing to determine playback.
Information and result that step 9. test result analysis module desampler returns analyze and handle, and compare with expected test result, judge whether test process is well on and whether test result is correct.
Step 10. generates test log automatically according to Measurement results.Record script ruuning situation and and script executing statistical information.Make things convenient for the tester to check test case.
As shown in Figure 1, the platform structure of automatic testing instrument of the present invention comprises:
The sound card Call Control Block is on the API basis of introducing the sound card disposable plates and providing, the expansion module library of the support call controlled function of encapsulation.Realize various calling controls and call event inspection, provide to comprise that the user simulates the order package interface of various call operations such as off-hook, dialing, incoming call, playback, continuity test, conversation, on-hook.Sound card is connected to programme-controlled exchange by subscribers feeder, other modules only need be called the interface that the sound card Call Control Block provides, just can control calling, operations such as user's off-hook, dialing, conversation and on-hook in the analog call process, thus realize calling out automatically.
The DTMF sound identification module is used for detecting, discerning the common professional voice audition test of programme-controlled exchange test.As programme-controlled exchange the registration new business after playing alert tones: " you the application new business registered finish ".Can take special-purpose speech recognition software to the identification of this voice, but evidence, and the voice identification that third party's speech recognition software is play programme-controlled exchange is inaccurate.The present invention innovates and uses the DTMF audio recognition method, the combination of numbers form identification service sound with 0-9 is promptly taked in the DTMF speech recognition, before test, the professional sound of programme-controlled exchange recorded be converted to dtmf tone, when calling out the audition test, the method for obtaining sound card passage continuity test value that usage platform provides receives the voice that programme-controlled exchange is play, be converted to corresponding DTMF value, whether this value and predefined value are compared the warning tone of judging broadcast correct.The DTMF sound identification module has convenient use, the advantage that recognition accuracy is high.
Communication module is used for communicating between sound card call testing platform and programme-controlled exchange, realizes the information interaction of programme-controlled exchange and automatic test platform.Wherein mutual information comprises that automatic test script need send to the configuration data of programme-controlled exchange and information such as information that programme-controlled exchange returns or test data.The mode that communication interface that communication module provides to programme-controlled exchange by registrer application and programme-controlled exchange foreground agency and other background process communicate realizes calling out mutual.Automatic test platform sends order by communication module to programme-controlled exchange when carrying out call testing, calling is followed the tracks of, and obtained the call state that returns, and judges calling out the result.
Parameter typing module realizes that test parameter separates with test script, preserves parameter by the form of Parameter File, and the test parameter in the script reads parameter and replaces from Parameter File when carrying out.
The environment configurations module according to the prerequisite of test event, is configured the service attribute of programme-controlled exchange and environment automatically and recovers by communication module.The environment configurations module of sound card call testing platform is registered to the communication interface that programme-controlled exchange provides, and with the manmachine command process communication of programme-controlled exchange, calls the configuration of " manmachine command " execution environment.Manmachine command is sent to the manmachine command process of programme-controlled exchange with form of message, and manmachine command process fill order, and return command execution result after the window thread receives return results, judge whether successfully configuration operation.After configuration order is finished, cancel the registration of the communication interface routine that provides to programme-controlled exchange; The environment configurations module of testing tool platform, then the communication interface of not using switch to provide is directly used testing tool platform recording interface configuration operation, and playback script is finished automatically to the configuration of switch environment and recovery.
The start-up control module is finished the initialization of system environment variable and the initialization procedure that various Driver Library file is written into.Load sound card Call Control Block, DTMF sound identification module, communication module, database module according to configuration.Start sound card, the initialization voice channel.
The script interpreter module is finished the functions such as syntactic analysis, argument replacement and command calls to test script, and it is responsible for each module in the coupled system.
Script operation main entrance module is the inlet that calls and carry out that all operational trials scripts are unified.Script operation main entrance module connects script interpreter and other modules, calls each functional module that this test needs, and the test executive sequence of defined function module starts test, finishes the unification of all operational trials scripts is called and carried out.Functional module is the core of automatic test, and the execution of the covering of each test event and test automatically all is embodied in the functional module.Use the order and the combination thereof that provide in the automated test tool platform of the present invention, and the interface that the testing tool platform provides records and playback function, the tester programmes to test case, writes automatic test script.
Test result analysis module and expected test result are compared, and information or the data returned are analyzed and handled, and judge whether test process is well on, and whether test result is correct.To the test result inspection of programme-controlled exchange, expected results has a variety of, and some are just can determine in calling procedure, and such as the identification of the professional sound of playing, some will check after calling is finished that but Query Database compares ticket after finishing as calling.In addition, also comprise the test of data message on some system interfaces, show test as frame figure and warning information correctness, control/graphical information capture function that these need utilize the testing tool platform to provide obtains the interface information value and compares.
Log pattern, according to the analysis situation of test result analysis module, log information is to destination file.Daily record comprises: sound card running log and test script running log.The former is to the sound card passage and ruuning situation is checked and record, analyzes the various sound cards reason of makeing mistakes.The latter writes down the running log of test script.Make things convenient for the tester to check the result.
The test execution statistical module is used to add up the test execution situation of all functions module.Comprise the testing total duration, the script number of success and failure, and the statistical informations such as testing time of each functional module.Statistical information also is recorded to the test script running log.
The testing tool platform interface calls the processing of sound card call testing platform interface.In the testing tool platform, connect sound card call testing platform start-up control module by starting runnable interface, call sound card interface calling order, control sound card in tools interfaces seizure/playback mode, open voice channel, call, obtain the continuity test value, control sound card platform is carried out call testing.
As shown in Figure 2, when the automated test tool among use the present invention carried out automatic test, the test process flow process was as follows:
Step 1. start-up control module disposes each module, loads initialization and expands the storehouse, starts different sound cards or voice channel and recognizer; Comprise that loading sound card calls out control expansion library module, database is expanded library module, and library module is expanded in the DTMF speech recognition.
Step 2. starts interpreter, loading scripts operation main entrance module.
Step 3. starts the script inlet module, by each business automation test script to be measured of main entrance module loading.
Step 4. loads supporting module, and supporting module comprises log pattern, communication module, test result analysis module, dtmf tone identification module etc.
Step 5. loads sound card Call Control Block, each passage of initialization sound card.
Whether step 6. judgement loads the sound card Call Control Block successful, if failure, record loading sound card Call Control Block failure daily record forwards step 14 to, withdraws from test; If load successfully, enter next step.
The configuration of step 7. test environment, each functional test all has the environment configurations of this test, is disposed automatically by this test script and finishes.
Step 8. judges whether environment configurations is successful, if the configuration surroundings failure forwards step 11 to, and the deletion environment that above-mentioned steps disposed; If the configuration surroundings success continues next testing procedure.
The script command of step 9. test is made an explanation by script interpreter, to automatic test script carry out syntactic analysis, argument is replaced and command calls, perhaps calls modules such as supporting module and voice control, calling is controlled or is carried out interface operation etc.
In step 10. test process, need all want log to the execution result of each test point of test, so that test process is analyzed and reviewed.
Step 11. is recovered environment, for each functional test, needs environment is configured before the test beginning, the environment of this test configurations is removed after test is finished again, and reverts to initial environment, makes this test can not have influence on next test.
Step 12. test result analysis, in the test process, each test point all can write down execution result after finishing, and behind the EOT, the execution result of each test point is analyzed, and draws the final testing result of this test.
After step 13. draws test result, with the test result log.
After each test of step 14. is finished, in configuration, seek next test, judge whether test finishes,, get back to step 7 and continue next test if also have test not finish; If there is not follow-up test, then unload the module of all loadings, EOT.
Before introducing embodiments of the invention, simply introduce earlier Dialogic sound card and TCL instrument.
The Dialogic sound card, a kind of analog telephone instrument can directly be inserted in inside the pci slot of computer, and simulative telephone interface is provided, and analog interface can directly be plugged telephone wire.The sound card that adopts among the present invention is Dialogic sound card (Dailogue D/41JCT-LS), and 4 road simulative telephone interfaces are provided.
TCL, Tool Control Language, the test automation script exploitation of the explanation type environment that generally acknowledge in a kind of software test field, the running environment of test, its autgmentability is strong, can with compatibility such as C language, programming is simple, is fit to carry out the exploitation of test automation script.In TCL, the User Defined process can realize by the expansion module of creating encapsulation TCL order.
Fig. 3 is incorporated into the embodiment of stroke control switching equipment business function automatic test for the present invention uses TCL instrument and Dialogic sound card:
When using TCL to carry out automatic test, the parameter that the business function of being tested needs is compiled environment configurations script and environment configurations removing script, the transfer environment configuration script carries out the context initialization of business function when the test beginning.
Dialogic sound card test platform loads the sound card Call Control Block, identification sound card and sound card passage, initialization sound card.
When carrying out the business function test, operation business function test script calls the sound card test platform and calls out control in the TCL environment, finishes operational trials.
Need to inquire about the information of programme-controlled exchange in the test process or write down some test results, Dialogic sound card test platform provides the database manipulation interface simultaneously, by this database interface, can inquire about some data such as charging, traffic measurement.
Carry out test result analysis according to test case after the business function test is finished and gather also logging test results, last transfer environment configuration is removed script and is removed the environment of this test, recovers initial environment.
With TCL and the combination of Dialogic sound card, call out by programming Control sound card analog subscriber, realized the automatic test of programme-controlled exchange basic call and PSTN supplementary service etc.
Fig. 4 is incorporated into the embodiment of stroke control switching equipment interface and business function automatic test for the present invention uses WinRunner and Dialogic sound card:
WinRunner, MI company carries out one of tool software of software function property testing, is used for the functional test of proving program correctness.The regression test mode is adopted in the functional test of WR.By playback script, realize the operational testing of analog subscriber.Use TSL language (Test Script Language, the language of a kind C) to write test script.
The WinRunner instrument provides good interface to record and the script editting function.TCL exploitation automatic test script is similar with using, and also needs the parameter that uses in the running to be made configuration file or record into the environment configurations script, and WinRunner reads configuration file or running environment configuration script configuration testing environment.
After environment configurations was finished, the test script of just can playback recording carried out the interface or the business function test of programme-controlled exchange by the playback operation to program interface, carried out the recording and playback operation and finished and call out control by calling Dialogic sound card platform.
Carry out test result analysis according to test case after the business function test is finished and gather also logging test results.
The removing of test environment has also been recorded into script, only needed playback, just can remove the environment that this test is disposed, recovered initial environment.
Use WinRunner to remedy the deficiency that the TCL instrument can not carry out interface operation, realized the automatic test of programme-controlled exchange background system interface and business function, for example console, IP supermarket, file management etc.

Claims (9)

1, a kind of testing tool of programme-controlled exchange is characterized in that comprising: the sound card call testing platform that is used to provide order and interface; Be used to realize the regression tested testing tool platform to programme-controlled exchange interface configurations to be tested and operation, described testing tool platform and sound card call testing platform communicate by the interface that provides mutually; Between described sound card call testing platform and programme-controlled exchange to be tested, be connected with sound card and communication network with communication mode.
2, a kind of testing tool of programme-controlled exchange according to claim 1, it is characterized in that: described sound card call testing platform comprises: sound card Call Control Block, sound identification module, communication module and test result analysis module;
Described sound card Call Control Block control sound card carries out call operation;
Described sound identification module be used for by sound card detect, identification programme-controlled exchange to be tested is in the professional speech detection of test, and the information of returning is outputed to the test result analysis module analyze and handle;
Communication module is used for carrying out information interaction between sound card call testing platform and programme-controlled exchange to be tested, when carrying out call testing, dispose programme-controlled exchange to be tested by communication module, the calling that sound card call testing platform is initiated to programme-controlled exchange to be tested sound card by communication module is followed the tracks of, and obtains information that programme-controlled exchange to be tested returns and test result and export the test result analysis module to and analyze and handle;
The test result analysis module is compared to result and expected test result that sound identification module and communication module are returned, and information or the data returned are analyzed and handled, and judges whether test process is well on, and whether test result is correct.
3, the testing tool of a kind of programme-controlled exchange as claimed in claim 2, it is characterized in that: described sound card call testing platform also comprises: log pattern and test execution statistical module, wherein, described log pattern is used for the analysis situation log information according to the test result analysis module; The test execution statistical module is used to add up the test execution situation of all functions module.
4, the testing tool of a kind of programme-controlled exchange as claimed in claim 2 is characterized in that: described sound identification module is DTMF (dual-tone multifrequency) sound identification module.
5, the testing tool of a kind of programme-controlled exchange as claimed in claim 2, it is characterized in that: described sound card call testing platform also comprises: start-up control module, script interpreter, script operation main entrance module, wherein, described start-up control module is moved the main entrance module to each environmental variance and the initialization of various Driver Library file by script; Described script interpreter is finished the functions such as syntactic analysis, argument replacement and command calls to test script; Described script operation main entrance module connects script interpreter and other modules, calls each functional test module, finishes the unification of all operational trials scripts is called and carried out.
6, the testing tool of a kind of programme-controlled exchange as claimed in claim 2, it is characterized in that: described sound card call testing platform also comprises: parameter typing module, environment configurations module, wherein, parameter typing module realizes that test parameter separates with test script, during loading parameters, script interpreter is by the parameter in the environment configurations module invokes parameter typing module; The environment configurations module is connected with functional module, according to the prerequisite of test event, through communication module, the service attribute and the environment of programme-controlled exchange is configured, and programme-controlled exchange is reverted to initial test environment after test is finished; Functional module is finished the covering of each test event and the execution of test automatically through script operation main entrance module.
7, the testing tool of a kind of programme-controlled exchange as claimed in claim 5 is characterized in that: described testing tool platform is a seizure/playback instrument, also comprises starting runnable interface, the total control interface of script, statistical analysis interface; Described testing tool platform is connected with the start-up control module of sound card call testing platform by starting runnable interface.
8, a kind of method of testing of programme-controlled exchange is characterized in that, this method may further comprise the steps: start each module of sound card call testing platform, the loaded with traffic test script; Programme-controlled exchange is carried out environment configurations, programme-controlled exchange to be tested is carried out call testing and audition test by sound card; The testing tool platform is tested the off-hook of sound card, on-hook, dialing, conversation, continuity test, dialing tone by itself and the interface seizure/voice playback card call testing platform between the sound card call testing platform; The testing tool platform uses seizure/playback function that programme-controlled exchange to be tested is carried out interface configurations and operation, and testing tool platform invoke sound card call testing platform interface carries out the function regression test to programme-controlled exchange to be tested; Programme-controlled exchange to be tested returns detecting information and result by communication network to sound card call testing platform.
9, the method for testing of the described a kind of programme-controlled exchange of claim 8, it is characterized in that: described audition test is specially: the speech conversion that programme-controlled exchange is play is corresponding dtmf tone earlier, sound card call testing platform carries out call operation by sound card to programme-controlled exchange to be tested, and the voice of reception programme-controlled exchange broadcast, the DTMF value that identification is corresponding, whether this value and predefined value are compared the warning tone of judging broadcast correct.
CNB200610058422XA 2006-03-24 2006-03-24 A kind of automated test tool of stored-program control exchange and method Expired - Fee Related CN100562033C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200610058422XA CN100562033C (en) 2006-03-24 2006-03-24 A kind of automated test tool of stored-program control exchange and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200610058422XA CN100562033C (en) 2006-03-24 2006-03-24 A kind of automated test tool of stored-program control exchange and method

Publications (2)

Publication Number Publication Date
CN101043543A CN101043543A (en) 2007-09-26
CN100562033C true CN100562033C (en) 2009-11-18

Family

ID=38808725

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200610058422XA Expired - Fee Related CN100562033C (en) 2006-03-24 2006-03-24 A kind of automated test tool of stored-program control exchange and method

Country Status (1)

Country Link
CN (1) CN100562033C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202335A (en) * 2010-03-23 2011-09-28 重庆重邮信科通信技术有限公司 Device and method for automatically testing calling service of terminal

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073777A (en) * 2011-01-26 2011-05-25 北京中星微电子有限公司 Script based method and device for verifying chip performance
TW201242331A (en) * 2011-04-01 2012-10-16 Askey Computer Corp Device for testing function of telephone exchange
CN103164328B (en) * 2011-12-12 2016-06-22 中国移动通信集团陕西有限公司 The regression testing method of a kind of business function, Apparatus and system
CN103473148B (en) * 2012-06-08 2017-10-10 中兴通讯股份有限公司 One kind recovers test environment method and device
CN103746760B (en) * 2014-01-21 2015-07-29 加弘科技咨询(上海)有限公司 A kind of universal testing method of data communication products and production method
CN103885882A (en) * 2014-04-10 2014-06-25 国家电网公司 Testing script based on SAP platform and parameter integration method
CN104349346B (en) * 2014-11-13 2018-05-29 广东欧珀移动通信有限公司 A kind of mobile terminal WiFi handling capacity automated testing methods
CN105337794B (en) * 2015-09-24 2018-09-28 上海斐讯数据通信技术有限公司 A kind of equipments of recording and its application method for switch test process
CN105426278B (en) * 2015-11-20 2019-05-10 北京畅游天下网络技术有限公司 A kind of client device performance test methods and system
CN105915372B (en) * 2016-04-07 2018-11-30 烽火通信科技股份有限公司 Provisional configuration management system and method based on automatic rollback
CN106781341B (en) * 2016-12-27 2020-04-14 公安部第三研究所 Vibration simulation system and method and vibration test system
CN109218541B (en) * 2017-07-07 2022-01-25 中兴通讯股份有限公司 Service voice replacing method and device and computer equipment
CN107749800B (en) * 2017-09-22 2021-01-12 安徽皖通邮电股份有限公司 Method for realizing implicit deletion of automatic test configuration of communication equipment
CN109299009A (en) * 2018-09-25 2019-02-01 金蝶软件(中国)有限公司 Data test method, apparatus, computer equipment and storage medium
CN109840204A (en) * 2018-12-24 2019-06-04 苏州蜗牛数字科技股份有限公司 A kind of application test systems and method
CN113810245A (en) * 2021-09-01 2021-12-17 四川天邑康和通信股份有限公司 Multi-voice-port parallel automatic testing method for government-enterprise gateway
CN114326691B (en) * 2022-03-07 2022-07-22 卡斯柯信号(北京)有限公司 Automatic test method and device for minimum regression subset based on vehicle-mounted system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202335A (en) * 2010-03-23 2011-09-28 重庆重邮信科通信技术有限公司 Device and method for automatically testing calling service of terminal
CN102202335B (en) * 2010-03-23 2015-04-15 重庆重邮信科通信技术有限公司 Device and method for automatically testing calling service of terminal

Also Published As

Publication number Publication date
CN101043543A (en) 2007-09-26

Similar Documents

Publication Publication Date Title
CN100562033C (en) A kind of automated test tool of stored-program control exchange and method
US6192108B1 (en) Performing automated testing using automatically generated logs
US5572570A (en) Telecommunication system tester with voice recognition capability
US6353896B1 (en) Method and apparatus for testing event driven software
CN109361562B (en) Automatic testing method based on associated network equipment access
CN107819608B (en) VoLTE network cutover automatic evaluation method based on multi-interface software simulation
CN108376115B (en) Automatic testing method and system across Android platform
CN106162700A (en) Method of testing, device and the terminal of a kind of terminal speech quality
CN105760300A (en) Automatic STK/UTK service testing method and system
CN105871617B (en) A kind of implementation method of home gateway H.248 protocol voice fault self-diagnosis
CN102025555B (en) Method and device for testing IP multimedia sub-system performance
CN106326095A (en) Test script setting method and system
CN101662543B (en) Method and system for evaluating availability of voice service
CN107576864B (en) Self-learning type relay protection automatic test method and system
CN101227349B (en) Device and method for automatically testing system change
CN101916221A (en) Method and system for performing unit testing on equipment
CN101360315A (en) Test system and method thereof
CN104424096B (en) A kind of automatization test system and method to the equipment based on Android platform
CN100499513C (en) Telecommunication value-added service integrated measuring system and measuring method thereof
CN100369422C (en) Integrated tester and integrated testing method for media server
CN100568834C (en) A kind of system and method for realizing the SP voice content monitoring
CN112131110A (en) Multisource heterogeneous data probe method and device of smart phone system
CN113422794B (en) Flow recording and playback processing method and device and electronic equipment
JP3722869B2 (en) Exchange software test system and test method
CN100488217C (en) Ring back tone testing system and method

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

Granted publication date: 20091118

Termination date: 20150324

EXPY Termination of patent right or utility model