CN102035896A - TTCN-3-based distributed testing framework applicable to software system - Google Patents

TTCN-3-based distributed testing framework applicable to software system Download PDF

Info

Publication number
CN102035896A
CN102035896A CN 201010617547 CN201010617547A CN102035896A CN 102035896 A CN102035896 A CN 102035896A CN 201010617547 CN201010617547 CN 201010617547 CN 201010617547 A CN201010617547 A CN 201010617547A CN 102035896 A CN102035896 A CN 102035896A
Authority
CN
China
Prior art keywords
test
module
centroid
unit
file
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 201010617547
Other languages
Chinese (zh)
Other versions
CN102035896B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN 201010617547 priority Critical patent/CN102035896B/en
Publication of CN102035896A publication Critical patent/CN102035896A/en
Application granted granted Critical
Publication of CN102035896B publication Critical patent/CN102035896B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a testing and test control notation version 3 (TTCN-3)-based distributed testing framework system applicable to a software system. In the framework system, TTCN-3 is used as a distributed testing execution scripting language; and the framework system comprises a node controller module, a central node module and an execution node module which exchange information through a communication module. The distributed testing framework system is provided aiming at the requirement of a distributed type required by testing of the conventional software system; and the framework system provides a convenient user distributed allocation test case and a mechanism for executing the test case in a distributed way, so that the aims of low coupling degree and high extensibility are fulfilled.

Description

A kind of distributed testing framework that is applicable to software systems based on TTCN-3
Technical field
The present invention relates to a kind of distributed test system that is applicable to software systems, more particularly say, be meant a kind of distributed testing frame system based on TTCN-3.
Background technology
Along with development of internet technology, increasing software systems adopt distributed structure/architecture.The extensive use of distributed computing technology also affects the design of test macro gradually.For the software systems of test distributed, test macro has to support distributed test on the one hand; On the other hand, test macro adopts distributed framework, not only can make full use of limited testing hardware resource and human resources, improve the efficient of test execution, the cost of minimizing time and resource, and for some systems that adopts distributed structure/architecture, test macro can simulate the running environment of system's reality, support the test scene that some are special, produce the test load that needs.
Distributed for test macro, the problem of facing is similar.In the single machine test environment, test case is to move on same computer, and their execution environment all is identical.In the distributed testing environment, test case is assigned on the different test computers and moves, and these different computers are distributed in different physical locations, are undertaken interconnected by network.These computers may have different operating system, file structure and hardware configuration.
TTCN-3 (Testing and Test Control Notation version 3) is the abundant detecting descriptive language based on black box of a descriptive power, and the test specification that can be applied to the interactive system of various ways is described.The typical application field comprises protocol test, service testing, component testing.Simultaneously TTCN-3 supports polytype test, such as uniformity test, interoperability test, robustness testing, regression test, integrated and system testing etc.TTCN-3 is as a kind of standardized measuring technology, and it has obtained a lot of instrument supports of testing manufacturer.TTCN-3 has been applied to a lot of aspects now, and has obtained good achievement as a kind of general test language simultaneously.
Summary of the invention
Technology of the present invention is dealt with problems and is: need distributed demand at present software system test, a kind of distributed testing frame system based on TTCN-3 is provided, this frame system provides the test case of user distribution formula deployment easily, the mechanism of distributed implementation of test cases, thereby reached at the bottom of the degree of coupling purpose that autgmentability is strong.
A kind of distributed testing frame system that is applicable to software systems of the present invention based on TTCN-3, it is characterized in that: this frame system has used TTCN-3 to carry out script as distributed testing, and it includes Node Controller module, Centroid module and XM module; Described Node Controller module includes node administration unit and time difference server unit; Described Centroid module includes test report unit, operation dispatching unit, script deployment unit and parameter management unit; Described XM module includes codec unit, test executing device unit and test auxiliary unit;
The node administration unit before test execution begins, need know to have which available XM under the current distributed testing environment on the one hand; The node administration unit provides the inquiry mechanism of XM module for the Centroid module on the other hand, and simultaneously also for XM provides login mechanism, whenever XM starts, it will join in the distributed testing environment by the node administration unit itself;
Time difference server unit provides standard time clock T standard, and test computer is calibrated to standard time clock T standard by inquiring about to time difference server unit with information, thereby Centroid module and XM module are consistent in time;
The operation dispatching unit is to send the operation dispatching order by the Centroid module to the XM module; This operation dispatching order is used to instruct the XM module implementation of test cases operation under the distributed testing environment;
The script deployment unit with the user in the test set of developing on the Centroid module and the file distributing that comprises execution machine information needed to each node that need carry out, and generate and carry out required file; To be ready through the test node after disposing, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid;
Described script deployment is that the Centroid module is disposed files such as test script to the XM module, and script is disposed by disposing session and finished, and disposes interaction problems between the node in the session solution test deployment; Also handle simultaneously the unusual problem that runs in the deployment; The step of disposing session is as follows:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 2-3: Centroid and XM are carried out file transfer;
Step 2-4: XM is subjected to after the file, adheres to the accuracy of gained file, if file is correct, then startup file is accepted successful affairs;
Step 2-5: generate the secondary file that testing tool needs in XM, start then to dispose and finish affairs;
Because the uncertainty of communication environment is not that all deployment can both be carried out smoothly, therefore occurring under the unusual situation, the step of disposing session unusually is as follows:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 3-3: if after the startup file transmission transaction, occurred when file transmits in the middle of network unusually, this unusually may be because file be incorrect or secondary file generation failure causes;
Step 3-4: XM can be opened unusual affairs to Centroid;
Step 3-5: Centroid can be opened and redeploy affairs after being subjected to the information of unusual affairs;
Step 3-6: if the transmission of file in the middle of network is overtime, the center stage can automatically be opened and be redeployed affairs so;
The parameter management unit is used for the dynamic parameter under the managing distributed test environment;
Codec unit is used for being responsible for the Code And Decode test data, is performed node module and calls in the execution of test case, and the result of encoding and decoding simultaneously also will return to the XM module;
The test executing device unit is used for being responsible for the execution of test case, includes following execution in step:
(A) be transferred to XM modules configured file according to the Centroid module, the test executing device unit generates the test profile corresponding with the XM module;
(B) the test executing device unit test script that the Centroid module is transferred to the XM module as input, call the actuator of TTCN-3 and carry out;
(C) actuator of test executing device cell call TTCN-3 executes after the test script, and the result who tests is returned;
The test auxiliary unit is carried out power of test by test supporting capacity, configurable ability and expandability and is characterized; Wherein test supporting capacity and be meant that the test auxiliary unit can calling functional modules expands the function of whole test system; Can comprise that test adapter dynamically switches for the functional module that the test auxiliary unit is used at present, the robustness test case generates and detecting information is collected; Configurable ability is meant that the user can be configured the test auxiliary unit according to the test needs, thereby realizes different function combinations, can improve the flexibility of test auxiliary unit like this, has also strengthened the control of user to the test auxiliary unit simultaneously; Expandability is meant that the test auxiliary unit can be utilized as the functional module that satisfies other testing requirements and develop;
The test report unit provides the test report of performance test on the one hand to the user, depict tested system each performance index in corresponding performance test; These performance index can make things convenient for the tester to carry out the performance judgment and the diagnosis of tested system;
The test report unit is collected on the other hand from each XM (test computer that can call) and is gathered and next test log, and this test log has write down the sequence of operation MS and the temporal information TI of test macro each behavioral test in measuring executing process; Test log comprises the final result who carries out of time of implementation, XM module of XM module title, XM module.
The present invention is based on the advantage of the distributed testing framework of TTCN-3:
1. the behavior logic that is used for managing distributed execution in the Centroid module, the XM module is responsible for carrying out the test logic of TTCN-3 test case,, collection test data mutual with system under test (SUT), simultaneously different tests and session are managed, the Node Controller module provides the inquiry mechanism of XM module for the Centroid module, also provides login mechanism for the XM module simultaneously.
2. each communication entity in the distributed testing environment provides address registration and inquiry mechanism, and the address that receives each communication entity is upgraded.Communication entity this locality remains with address caching, stores the information of other communication entities commonly used, and the description logic node identification is to the mapping of network attribute.Communication entity can approach to obtain the address lastest imformation of other entity by regular inquire address simultaneously.
3. in the distributed testing framework Centroid module to the rational management and the control of the sightless XM module of physical distribution.
4. in the distributed testing scene to the demand of resource management, adopted the mechanism of the resource of Centroid module management test, resource management mainly is XM module and the dynamic parameter under the managing distributed environment.It provides the inquiry mechanism of a global resource for controller, simultaneously also for the XM module provides a login mechanism, makes the Centroid module can obtain XM Module Links and the available situation in any time distributed environment.When carrying out, guarantee that with certain mechanism the conflict of critical data can not appear in the behavioral test of concurrent execution on each node simultaneously, i.e. dynamic parameter management.
Description of drawings
Fig. 1 is the structure chart that the present invention is based on the distributed testing framework of TTCN-3.
Fig. 2 is that the present invention disposes the session sequential chart.
Fig. 3 is that the present invention disposes the session sequential chart unusually.
Fig. 4 is a dispatch session schematic diagram of the present invention.
Fig. 5 is a result transmission session sequential chart of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
Referring to shown in Figure 1, a kind of distributed testing frame system of the present invention based on TTCN-3, this frame system has used TTCN-3 to carry out script as distributed testing, and it includes Node Controller module, Centroid module and XM module; In the present invention, Node Controller module, Centroid module and XM module three carry out information interaction by communication module.
Wherein, the Node Controller module includes node administration unit and time difference server unit.In the distributed testing environment, need the collaborative work of each node (different test computers), as the Node Controller module of the whole testing process of control and management, its need obtain with managing distributed test environment under resource.The behavior logic that is used for managing distributed execution in the Centroid module, the XM module is responsible for carrying out the test logic of TTCN-3 test case,, collection test data mutual with system under test (SUT), simultaneously different tests and session are managed, the Node Controller module provides the inquiry mechanism of XM module for the Centroid module, also provides login mechanism for the XM module simultaneously.
Wherein, the Centroid module includes test report unit, operation dispatching unit, script deployment unit and parameter management unit.Test macro is distributed carrying out in the present invention, so the Centroid module is used to control the behavior logic of test macro.
Wherein, the XM module includes codec unit, test executing device unit and test auxiliary unit.The XM module is responsible for carrying out the test logic of TTCN-3 test case,, collection test data mutual with system under test (SUT), simultaneously different tests and session is managed.
(1) node administration unit
In the present invention, the node administration unit before test execution begins, need know to have which available XM (test computer that can call) under the current distributed testing environment on the one hand; The node administration unit provides the inquiry mechanism of XM module for the Centroid module on the other hand, and simultaneously also for XM provides login mechanism, whenever XM starts, it will join in the distributed testing environment by the node administration unit itself.
(2) time difference server unit
In the present invention, different test computers have different local clocks, cause having the time difference between the test computer (different node), provide standard time clock T standard so the present invention adopts by time difference server unit.
Test computer is calibrated to standard time clock T standard by inquiring about to time difference server unit with information, thereby Centroid module and XM module are consistent in time.
(3) operation dispatching unit
The operation dispatching unit is an automation process, and in this process, the Centroid module sends the operation dispatching order to the XM module; This operation dispatching order is used to instruct the XM module implementation of test cases operation under the distributed testing environment.
In the present invention, the operation dispatching order in the operation dispatching unit is positioned at after script disposes all the time, and related task must can be by the script support of deployment phase in the test dispatching.
Test dispatching among the present invention is used for being controlled at execution sequence and the dependence between each test execution node module of measuring executing process, thereby is that specific testing requirement realizes specific test logic.Test dispatching is finished by the test dispatching session.Fig. 4 has represented a complete dispatch session process, and the step of dispatch session is as follows:
Step 4-1: Centroid starts corresponding test case affairs according to the test dispatching strategy;
Step 4-2: after XM is received the test case session information of Centroid, can start Execution Bed (translation is a test envelope, and promptly TTCN-3 carries out the machine driver), and can start use-case subsequently and carried out affairs; ,
Step 4-3: after the test case of XM module starts, the Centroid module is carried out load change affairs to reach desired test load level repeatedly by certain strategy, and the XM module is also called the actual test load level of feedback affairs to inform that the Centroid module is present of carrying out in the process of implementation repeatedly
Step 4-4: specify when requiring when load has reached, the Centroid module through one period stipulated time after, will call and stop the load affairs, close Execution Bed after the XM module is received, call the use-case end transaction, pass session back for subsequent result and provide information to the Centroid module.The specific implementation in the Loop zone among the figure is finished by the extension mechanism of distributed test system, comes to provide different control strategy and affairs sequential for different tests by the scheduling script.
Step 4-5: XM is opened use-case end transaction.
(4) script deployment unit
The script deployment unit with the user in the test set of developing on the Centroid module and the file distributing that comprises execution machine information needed to each node that need carry out, and generate and carry out required file.To be ready through the test node after disposing, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid.
Script deployment among the present invention is that the Centroid module is disposed files such as test script to the XM module, and script is disposed by disposing session and finished, and disposes interaction problems between the node in the session solution test deployment.Also handle simultaneously the unusual problem that runs in the deployment.Fig. 2 has represented a flow process of disposing session, and the arrow among the figure is represented a communications transaction.The step of disposing session is as follows:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 2-3: Centroid and XM are carried out file transfer;
Step 2-4: XM is subjected to after the file, adheres to the accuracy of gained file, if file is correct, then startup file is accepted successful affairs;
Step 2-5: generate the secondary file that testing tool needs in XM, start then to dispose and finish affairs.
Because the uncertainty of communication environment is not that all deployment can both be carried out smoothly, therefore the unusual flow process that session will occur disposing is appearring under the unusual situation.Fig. 3 has shown unusual deployment session sequential.When overtime or XM module end made a mistake, the unusual affairs of the timeout mechanism of Centroid module end and XM module will trigger the startup of Centroid module and redeploy session.Simultaneously, the Centroid module has the ability of forcing to end deployment.The step of unusual deployment session is as follows:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 3-3: if after the startup file transmission transaction, occurred when file transmits in the middle of network unusually, this unusually may be because file be incorrect or secondary file generation failure causes;
Step 3-4: XM can be opened unusual affairs to Centroid;
Step 3-5: Centroid can be opened and redeploy affairs after being subjected to the information of unusual affairs;
Step 3-6: if the transmission of file in the middle of network is overtime, the center stage can automatically be opened and be redeployed affairs so.
(5) parameter management unit
The parameter management unit is used for the dynamic parameter under the managing distributed test environment.
The parameter management unit provides the inquiry mechanism of a global resource, simultaneously also for the XM module provides a login mechanism, makes the Centroid module can obtain XM link and the available situation in any time distributed testing environment; When carrying out, guarantee that with mutual exclusion mechanism the conflict of critical data can not appear in the behavioral test of concurrent execution on each node simultaneously.
(6) codec unit
Codec unit is used for being responsible for the Code And Decode test data, is performed node module and calls in the execution of test case, and the result of encoding and decoding simultaneously also will return to the XM module.
In the present invention, being closely connected between codec unit and system under test (SUT) reduced its reusability, and this makes tester's approximate codec of each development function of having to.But in fact, the code that in the codec test data is carried out encoding and decoding has very big similitude, and codec has stronger sensitiveness to the data type simultaneously, and this makes that generating codec based on data type has feasibility.
(7) test executing device unit
The test executing device unit is used for being responsible for the execution of test case.
In the present invention, test executing device includes following execution in step:
(D) be transferred to XM modules configured file according to the Centroid module, the test executing device unit generates the test profile corresponding with the XM module;
(E) the test executing device unit test script that the Centroid module is transferred to the XM module as input, call the actuator of TTCN-3 and carry out;
(F) actuator of test executing device cell call TTCN-3 executes after the test script, and the result who tests is returned.
(8) test auxiliary unit
The test auxiliary unit is carried out power of test by test supporting capacity, configurable ability and expandability and is characterized.
The test supporting capacity
The test supporting capacity is meant that the test auxiliary unit can calling functional modules expands the function of whole test system.Can comprise that test adapter dynamically switches for the functional module that the test auxiliary unit is used at present, the robustness test case generates and detecting information is collected.
Configurable ability
Configurable ability is meant that the user can be configured the test auxiliary unit according to the test needs, thereby realizes different function combinations, can improve the flexibility of test auxiliary unit like this, has also strengthened the control of user to the test auxiliary unit simultaneously.
Expandability
Expandability is meant that the test auxiliary unit can be utilized as the functional module that satisfies other testing requirements and develop.
(9) test report unit
The test report unit provides the test report of performance test on the one hand to the user, depict tested system each performance index in corresponding performance test; These performance index can make things convenient for the tester to carry out the performance judgment and the diagnosis of tested system;
The test report unit is collected on the other hand from each XM (test computer that can call) and is gathered and next test log, and this test log has write down the sequence of operation MS and the temporal information TI of test macro each behavioral test in measuring executing process.Test log comprises the final result who carries out of time of implementation, XM module of XM module title, XM module.
In the present invention, the test report unit will can supply the element of performance metric according to identifying in the test log, and count the performance index that need.
Test result report among the present invention is used for after test execution finishes, to the collection and the feedback of test result.The test result report is finished by the result transmission session, and the result transmission session is started by the Centroid module after dispatch session finishes, and its effect is to collect the execution journal that generates on the XM module.Execution journal has write down the trail-details that the TTCN-3 test case is carried out, and comprises temporal information.The Centroid module after gathering these information is returned calculating.The flow process of result transmission session as shown in Figure 5.The step of result transmission session is as follows:
Step 5-1: Centroid starts the result transmission affairs;
Step 5-2: XM is according to the port information and the startup file transmission transaction of Centroid;
Step 5-3: Centroid can be checked the correctness of gained file, can accept successful affairs by startup file then;
Step 5-4: if run into the network service abnormal problem in the result transmission session, detect that the gained file is incorrect, the file transfer affairs are overtime or the network of dishing out when unusual, the Centroid module will start the result and retransmit defeated.
A kind of distributed testing frame system that is applicable to software systems of the present invention based on TTCN-3, this frame system has used TTCN-3 to carry out script as distributed testing, and it includes Node Controller module, Centroid module and XM module; Node Controller module, Centroid module and XM module three carry out information interaction by communication module.Each communication entity in the distributed testing environment provides address registration and inquiry mechanism, and the address that receives each communication entity is upgraded.Communication entity this locality remains with address caching, stores the information of other communication entities commonly used, and the description logic node identification is to the mapping of network attribute.Communication entity can approach to obtain the address lastest imformation of other entity by regular inquire address simultaneously.The present invention be directed to present software system test needs distributed demand and proposes, and this frame system provides easily the user distribution formula to dispose test case, the mechanism of distributed implementation of test cases, thus reached at the bottom of the degree of coupling purpose that autgmentability is strong.

Claims (5)

1. distributed testing frame system that is applicable to software systems based on TTCN-3, it is characterized in that: this frame system has used TTCN-3 to carry out script as distributed testing, and it includes Node Controller module, Centroid module and XM module; Described Node Controller module includes node administration unit and time difference server unit; Described Centroid module includes test report unit, operation dispatching unit, script deployment unit and parameter management unit; Described XM module includes codec unit, test executing device unit and test auxiliary unit;
The node administration unit before test execution begins, need know to have which available XM under the current distributed testing environment on the one hand; The node administration unit provides the inquiry mechanism of XM module for the Centroid module on the other hand, and simultaneously also for XM provides login mechanism, whenever XM starts, it will join in the distributed testing environment by the node administration unit itself;
Time difference server unit provides standard time clock T Standard, test computer is calibrated to standard time clock T by inquiring about to time difference server unit with information StandardThereby, Centroid module and XM module are consistent in time;
The operation dispatching unit is to send the operation dispatching order by the Centroid module to the XM module; This operation dispatching order is used to instruct the XM module implementation of test cases operation under the distributed testing environment;
The script deployment unit with the user in the test set of developing on the Centroid module and the file distributing that comprises execution machine information needed to each node that need carry out, and generate and carry out required file; To be ready through the test node after disposing, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid;
Described script deployment is that the Centroid module is disposed files such as test script to the XM module, and script is disposed by disposing session and finished, and disposes interaction problems between the node in the session solution test deployment; Also handle simultaneously the unusual problem that runs in the deployment; The step of disposing session is as follows:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 2-3: Centroid and XM are carried out file transfer;
Step 2-4: XM is subjected to after the file, adheres to the accuracy of gained file, if file is correct, then startup file is accepted successful affairs;
Step 2-5: generate the secondary file that testing tool needs in XM, start then to dispose and finish affairs;
Because the uncertainty of communication environment is not that all deployment can both be carried out smoothly, therefore occurring under the unusual situation, the step of disposing session unusually is as follows:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after being subjected to the deployment transaction information of Centroid, according to the port information and the startup file transmission transaction of Centroid;
Step 3-3: if after the startup file transmission transaction, occurred when file transmits in the middle of network unusually, this unusually may be because file be incorrect or secondary file generation failure causes;
Step 3-4: XM can be opened unusual affairs to Centroid;
Step 3-5: Centroid can be opened and redeploy affairs after being subjected to the information of unusual affairs;
Step 3-6: if the transmission of file in the middle of network is overtime, the center stage can automatically be opened and be redeployed affairs so;
The parameter management unit is used for the dynamic parameter under the managing distributed test environment;
Codec unit is used for being responsible for the Code And Decode test data, is performed node module and calls in the execution of test case, and the result of encoding and decoding simultaneously also will return to the XM module;
The test executing device unit is used for being responsible for the execution of test case, includes following execution in step:
(A) be transferred to XM modules configured file according to the Centroid module, the test executing device unit generates the test profile corresponding with the XM module;
(B) the test executing device unit test script that the Centroid module is transferred to the XM module as input, call the actuator of TTCN-3 and carry out;
(C) actuator of test executing device cell call TTCN-3 executes after the test script, and the result who tests is returned;
The test auxiliary unit is carried out power of test by test supporting capacity, configurable ability and expandability and is characterized; Wherein test supporting capacity and be meant that the test auxiliary unit can calling functional modules expands the function of whole test system; Can comprise that test adapter dynamically switches for the functional module that the test auxiliary unit is used at present, the robustness test case generates and detecting information is collected; Configurable ability is meant that the user can be configured the test auxiliary unit according to the test needs, thereby realizes different function combinations, can improve the flexibility of test auxiliary unit like this, has also strengthened the control of user to the test auxiliary unit simultaneously; Expandability is meant that the test auxiliary unit can be utilized as the functional module that satisfies other testing requirements and develop;
The test report unit provides the test report of performance test on the one hand to the user, depict tested system each performance index in corresponding performance test; These performance index can make things convenient for the tester to carry out the performance judgment and the diagnosis of tested system;
The test report unit is collected on the other hand from each XM (test computer that can call) and is gathered and next test log, and this test log has write down the sequence of operation MS and the temporal information TI of test macro each behavioral test in measuring executing process; Test log comprises the final result who carries out of time of implementation, XM module of XM module title, XM module.
2. the distributed testing frame system based on TTCN-3 that is applicable to software systems according to claim 1, it is characterized in that: the parameter management unit provides the inquiry mechanism of a global resource, also is XM simultaneously
3. the distributed testing frame system that is applicable to software systems according to claim 1 based on TTCN-3, it is characterized in that: the operation dispatching order in the operation dispatching unit is positioned at after script disposes all the time, and related task must can be by the script support of deployment phase in the test dispatching.
4. the distributed testing frame system that is applicable to software systems according to claim 1 based on TTCN-3, it is characterized in that: test dispatching is used for being controlled at execution sequence and the dependence between each test execution node module of measuring executing process, thereby is that specific testing requirement realizes specific test logic; Test dispatching is finished by the test dispatching session, and the step of dispatch session is as follows:
Step 4-1: Centroid starts corresponding test case affairs according to the test dispatching strategy;
Step 4-2: after XM is received the test case session information of Centroid, can start TTCN-3 and carry out the machine driver, and can start use-case subsequently and carried out affairs;
Step 4-3: after the test case of XM module starts, the Centroid module is carried out load change affairs to reach desired test load level repeatedly by certain strategy, and the XM module is also called the actual test load level of feedback affairs to inform that the Centroid module is present of carrying out in the process of implementation repeatedly;
Step 4-4: specify when requiring when load has reached, the Centroid module through one period stipulated time after, to call and stop the load affairs, close TTCN-3 after the XM module is received and carry out the machine driver, call the use-case end transaction, pass session back for subsequent result and provide information to the Centroid module;
Step 4-5: XM is opened use-case end transaction.
5. the distributed testing frame system based on TTCN-3 that is applicable to software systems according to claim 1 is characterized in that: the test result report is used for after test execution finishes, to the collection and the feedback of test result; The test result report is finished by the result transmission session, and the result transmission session is started by the Centroid module after dispatch session finishes, and its effect is to collect the execution journal that generates on the XM module; Execution journal has write down the trail-details that the TTCN-3 test case is carried out, and comprises temporal information; The Centroid module after gathering these information is returned calculating; The step of result transmission session is as follows:
Step 5-1: Centroid starts the result transmission affairs;
Step 5-2: XM is according to the port information and the startup file transmission transaction of Centroid;
Step 5-3: Centroid can be checked the correctness of gained file, can accept successful affairs by startup file then;
Step 5-4: if run into the network service abnormal problem in the result transmission session, detect that the gained file is incorrect, the file transfer affairs are overtime or the network of dishing out when unusual, the Centroid module will start the result and retransmit defeated.
CN 201010617547 2010-12-31 2010-12-31 TTCN-3-based distributed testing framework applicable to software system Expired - Fee Related CN102035896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010617547 CN102035896B (en) 2010-12-31 2010-12-31 TTCN-3-based distributed testing framework applicable to software system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010617547 CN102035896B (en) 2010-12-31 2010-12-31 TTCN-3-based distributed testing framework applicable to software system

Publications (2)

Publication Number Publication Date
CN102035896A true CN102035896A (en) 2011-04-27
CN102035896B CN102035896B (en) 2012-12-05

Family

ID=43888212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010617547 Expired - Fee Related CN102035896B (en) 2010-12-31 2010-12-31 TTCN-3-based distributed testing framework applicable to software system

Country Status (1)

Country Link
CN (1) CN102035896B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201877A (en) * 2011-05-16 2011-09-28 上海通号轨道交通工程技术研究中心有限公司 Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN102222042A (en) * 2011-06-28 2011-10-19 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN103002490A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Service simulation testing system and realizing method thereof
CN103051500A (en) * 2013-01-04 2013-04-17 北京邮电大学 Test method and system of service network system
CN104899141A (en) * 2015-06-05 2015-09-09 北京航空航天大学 Test case selecting and expanding method facing network application system
CN105159817A (en) * 2015-08-31 2015-12-16 湖北三江航天红峰控制有限公司 Log file processing system and method
CN108519943A (en) * 2018-03-06 2018-09-11 平安科技(深圳)有限公司 Testing and control and test execution device, method and computer storage media
CN108694121A (en) * 2017-04-12 2018-10-23 杭州海康威视数字技术股份有限公司 A kind of automated testing method, apparatus and system
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow
WO2020164289A1 (en) * 2019-02-15 2020-08-20 北京大米科技有限公司 Application testing method, system and apparatus, and storage medium
CN113849399A (en) * 2021-09-13 2021-12-28 北京计算机技术及应用研究所 Automatic testing system and method for multi-machine cooperative software under multi-localization platform
CN116319245A (en) * 2023-05-17 2023-06-23 南京中科算通科技有限公司 5G protocol-oriented distributed test system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786925A (en) * 2005-03-08 2006-06-14 中国科学院软件研究所 TTCN-3 testing system basedon C++ mapping and its testing method
CN101262482A (en) * 2008-03-19 2008-09-10 北京天地互连信息技术有限公司 A DHCPv6 testing method for TTCN language
CN101408849A (en) * 2008-12-01 2009-04-15 中国科学技术大学 Method and system for compiling and executing TTCN-3 language
WO2009099808A1 (en) * 2008-01-31 2009-08-13 Yahoo! Inc. Executing software performance test jobs in a clustered system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786925A (en) * 2005-03-08 2006-06-14 中国科学院软件研究所 TTCN-3 testing system basedon C++ mapping and its testing method
WO2009099808A1 (en) * 2008-01-31 2009-08-13 Yahoo! Inc. Executing software performance test jobs in a clustered system
CN101262482A (en) * 2008-03-19 2008-09-10 北京天地互连信息技术有限公司 A DHCPv6 testing method for TTCN language
CN101408849A (en) * 2008-12-01 2009-04-15 中国科学技术大学 Method and system for compiling and executing TTCN-3 language

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201877A (en) * 2011-05-16 2011-09-28 上海通号轨道交通工程技术研究中心有限公司 Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN102201877B (en) * 2011-05-16 2013-08-21 上海通号轨道交通工程技术研究中心有限公司 Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN102222042A (en) * 2011-06-28 2011-10-19 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN102222042B (en) * 2011-06-28 2014-04-23 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN103002490A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Service simulation testing system and realizing method thereof
CN103002490B (en) * 2011-09-08 2015-07-29 中国移动通信集团公司 A kind of business simulating test macro and its implementation
CN103051500A (en) * 2013-01-04 2013-04-17 北京邮电大学 Test method and system of service network system
CN103051500B (en) * 2013-01-04 2015-09-09 北京邮电大学 A kind of method of testing of service network system and system
CN104899141B (en) * 2015-06-05 2017-08-04 北京航空航天大学 A kind of test cases selection and extending method of network-oriented application system
CN104899141A (en) * 2015-06-05 2015-09-09 北京航空航天大学 Test case selecting and expanding method facing network application system
CN105159817A (en) * 2015-08-31 2015-12-16 湖北三江航天红峰控制有限公司 Log file processing system and method
CN105159817B (en) * 2015-08-31 2018-06-26 湖北三江航天红峰控制有限公司 A kind of journal file processing system and method
CN108694121A (en) * 2017-04-12 2018-10-23 杭州海康威视数字技术股份有限公司 A kind of automated testing method, apparatus and system
CN108694121B (en) * 2017-04-12 2021-12-17 杭州海康威视数字技术股份有限公司 Automatic testing method, device and system
CN109254905A (en) * 2017-07-13 2019-01-22 北京航空航天大学 Distributed parallel automatization test system based on workflow
CN109254905B (en) * 2017-07-13 2022-01-28 北京航空航天大学 Distributed parallel automatic test system based on workflow
CN108519943A (en) * 2018-03-06 2018-09-11 平安科技(深圳)有限公司 Testing and control and test execution device, method and computer storage media
WO2020164289A1 (en) * 2019-02-15 2020-08-20 北京大米科技有限公司 Application testing method, system and apparatus, and storage medium
CN113849399A (en) * 2021-09-13 2021-12-28 北京计算机技术及应用研究所 Automatic testing system and method for multi-machine cooperative software under multi-localization platform
CN116319245A (en) * 2023-05-17 2023-06-23 南京中科算通科技有限公司 5G protocol-oriented distributed test system
CN116319245B (en) * 2023-05-17 2023-08-29 南京中科算通科技有限公司 5G protocol-oriented distributed test system

Also Published As

Publication number Publication date
CN102035896B (en) 2012-12-05

Similar Documents

Publication Publication Date Title
CN102035896B (en) TTCN-3-based distributed testing framework applicable to software system
CN102141962B (en) Safety distributed test framework system and test method thereof
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN100451989C (en) Software testing system and testing method
CN102768642B (en) A kind of LINUX kernel reliability evaluating system and method analyzed based on source code
US20090300423A1 (en) Systems and methods for software test management in cloud-based network
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN103246606B (en) The performance test methods of ESB platform and system
CN102419729A (en) Parallel test execution
CN104239114A (en) Application compiling method and device
CN111240955A (en) Automatic testing method and device for Http interface, storage medium and electronic device
CN116089281A (en) Chip testing method, testing platform and device
CN110990081A (en) Microservice registration and discovery method and device, storage medium and electronic equipment
Li et al. A unified solution for advanced metering infrastructure integration with a distribution management system
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
US20050171752A1 (en) Failure-response simulator for computer clusters
CN113747150B (en) Method and system for testing video service system based on container cloud
CN110888800A (en) Service interaction function test method, device, storage medium and test system
Chen et al. MORE: A model-driven operation service for cloud-based IT systems
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN116795728A (en) Multi-core cache consistency verification module and method based on UVM
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium

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

Granted publication date: 20121205

Termination date: 20131231