CN102035896B - TTCN-3-based distributed testing framework applicable to software system - Google Patents
TTCN-3-based distributed testing framework applicable to software system Download PDFInfo
- Publication number
- CN102035896B CN102035896B CN 201010617547 CN201010617547A CN102035896B CN 102035896 B CN102035896 B CN 102035896B CN 201010617547 CN201010617547 CN 201010617547 CN 201010617547 A CN201010617547 A CN 201010617547A CN 102035896 B CN102035896 B CN 102035896B
- 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.)
- Expired - Fee Related
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
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 adopt the system of distributed structure/architecture for some, test macro can simulate the actual running environment of system; 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 on same computer, to move, 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, carry out interconnected through network.These computers possibly have different operating systems, 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 to 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, thus 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; Said Node Controller module includes node administration unit and time difference server unit; Said Centroid module includes test report unit, operation dispatching unit, script deployment unit and parameter management unit; Said 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, simultaneously also for XM provides login mechanism, whenever the XM startup, it through the node administration unit with oneself joining in the distributed testing environment;
Time difference server unit provides standard time clock T standard, and test computer is calibrated to standard time clock T standard through 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; Test node through after disposing will be ready, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid;
It is that the Centroid module is disposed files such as test script to the XM module that described script is disposed, and script is disposed by disposing session and accomplished, and disposes session and solves interaction problems between the node in the test deployment; Also handle simultaneously the unusual problem that runs in the deployment; The step of disposing session is following:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after receiving 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 carry out file transfer;
Step 2-4: XM receives 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 at XM, start then to dispose and accomplish 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 following:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after receiving 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 maybe 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 receiving 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 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, in the execution of test case, is performed node module and calls, 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 through 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; The functional module that can supply at present to test the auxiliary unit use comprises that test adapter dynamically switches, and 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 the different functions combination, and the flexibility that can improve the test auxiliary unit has so also strengthened simultaneously the control of user to the test auxiliary unit; 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 system to be tested 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 system to be tested;
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 for the XM module login mechanism is provided 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 sketch map of the present invention.
Fig. 5 is a result transmission session sequential chart of the present invention.
Embodiment
To combine accompanying drawing that the present invention is done further detailed description below.
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 through 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 for the XM module login mechanism is provided 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, simultaneously also for XM provides login mechanism, whenever the XM startup, it through the node administration unit with oneself joining in the distributed testing environment.
(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), by the time difference server unit standard time clock T are provided standard so the present invention adopts.
Test computer is calibrated to standard time clock T standard through 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 is sent 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 order of operation dispatching 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 accomplished by the test dispatching session.Fig. 4 has represented a complete dispatch session process, and the step of dispatch session is following:
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 through 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 information is provided to the Centroid module.The concrete realization in the Loop zone among the figure is accomplished by the extension mechanism of distributed test system, comes for different tests Different control strategy and affairs sequential to be provided through 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.Test node through after disposing will be ready, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid.
It is that the Centroid module is disposed files such as test script to the XM module that script among the present invention is disposed, and script is disposed by disposing session and accomplished, and disposes session and solves interaction problems between the node in the 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 following:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after receiving 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 carry out file transfer;
Step 2-4: XM receives 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 at XM, start then to dispose and accomplish 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 following:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after receiving 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 maybe 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 receiving 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 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, in the execution of test case, is performed node module and calls, 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 through 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.The functional module that can supply at present to test the auxiliary unit use comprises that test adapter dynamically switches, and 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 the different functions combination, and the flexibility that can improve the test auxiliary unit has so also strengthened simultaneously the control of user to the test auxiliary unit.
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 system to be tested 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 system to be tested;
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 be according to identifying the element that can supply performance metric 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 accomplished 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 is as shown in Figure 5.The step of result transmission session is following:
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 retransmit as a result.
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 through 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 (4)
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; Said Node Controller module includes node administration unit and time difference server unit; Said Centroid module includes test report unit, operation dispatching unit, script deployment unit and parameter management unit; Said 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, simultaneously also for XM provides login mechanism, whenever the XM startup, it through the node administration unit with oneself joining in the distributed testing environment;
Time difference server unit provides standard time clock T standard, and test computer is calibrated to standard time clock T standard through 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; Test node through after disposing will be ready, and can accept at any time also to carry out corresponding task immediately from the scheduled for executing order of Centroid;
It is the file of Centroid module to XM module deployment test script that described script is disposed, and script is disposed by disposing session and accomplished, and disposes session and solves interaction problems between the node of testing in the deployment; Also handle simultaneously the unusual problem that runs in the deployment; The step of disposing session is following:
Step 2-1: Centroid starts disposes affairs;
Step 2-2: XM is after receiving 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 carry out file transfer;
Step 2-4: XM is received 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 at XM, start then to dispose and accomplish 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 following:
Step 3-1: Centroid starts disposes affairs;
Step 3-2: XM is after receiving 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 is unusually because file is 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 receiving 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 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, in the execution of test case, is performed node module and calls, 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 through 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; The functional module that can supply at present to test the auxiliary unit use comprises that test adapter dynamically switches, and 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 the different functions combination, and the flexibility that can improve the test auxiliary unit has so also strengthened simultaneously the control of user to the test auxiliary unit; 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 system to be tested 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 system to be tested;
The test report unit is collected on the other hand from each XM 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 that is applicable to software systems according to claim 1 based on TTCN-3; It is characterized in that: the order of operation dispatching 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.
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: 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 accomplished by the test dispatching session, and the step of dispatch session is following:
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 through 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; The XM module is received and is saidly stopped to close after the load affairs TTCN-3 and carry out the machine driver, calls the use-case end transaction, passes session back for subsequent result and to the Centroid module information is provided;
Step 4-5: XM is opened use-case end transaction.
4. 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 accomplished 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 will be returned after gathering these information; The step of result transmission session is following:
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 retransmit as a result.
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 CN102035896A (en) | 2011-04-27 |
CN102035896B true 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) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN102222042B (en) * | 2011-06-28 | 2014-04-23 | 北京新媒传信科技有限公司 | Automatic software testing method based on cloud computing |
CN103002490B (en) * | 2011-09-08 | 2015-07-29 | 中国移动通信集团公司 | A kind of business simulating test macro and its implementation |
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 |
CN105159817B (en) * | 2015-08-31 | 2018-06-26 | 湖北三江航天红峰控制有限公司 | A kind of journal file processing system and method |
CN108694121B (en) * | 2017-04-12 | 2021-12-17 | 杭州海康威视数字技术股份有限公司 | Automatic testing method, device and system |
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 |
CN109840211A (en) * | 2019-02-15 | 2019-06-04 | 北京大米科技有限公司 | Application testing method, system, device and storage medium |
CN113254331A (en) * | 2021-05-12 | 2021-08-13 | 深圳前海微众银行股份有限公司 | Model test method, device, storage medium and program product |
CN113849399B (en) * | 2021-09-13 | 2023-06-30 | 北京计算机技术及应用研究所 | Automatic test system and method for multi-machine collaborative software under multi-localization platform |
CN116319245B (en) * | 2023-05-17 | 2023-08-29 | 南京中科算通科技有限公司 | 5G protocol-oriented distributed test system |
Citations (4)
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 |
-
2010
- 2010-12-31 CN CN 201010617547 patent/CN102035896B/en not_active Expired - Fee Related
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102035896A (en) | 2011-04-27 |
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 | |
Gao et al. | Mobile Testing-as-a-Service (MTaaS)--Infrastructures, Issues, Solutions and Needs | |
CN100544292C (en) | A kind of method of BAS Broadband Access Server automatic test | |
CN109460223B (en) | API gateway management system and method thereof | |
CN102768642B (en) | A kind of LINUX kernel reliability evaluating system and method analyzed based on source code | |
CN100570580C (en) | The proving installation of simple network management protocol software and method of testing thereof | |
CN102866944B (en) | Pressure testing system and method | |
CN103544100A (en) | Method, system and client side for testing APP of portable data processing equipment | |
CN103377120A (en) | Test method and device for application programs | |
CN103646104A (en) | Hard real-time fault diagnosis method and system | |
CN101609544A (en) | A kind of image processor data load and method of testing and device | |
CN104239114A (en) | Application compiling method and device | |
CN109977012A (en) | Joint debugging test method, device, equipment and the computer readable storage medium of system | |
CN110990081A (en) | Microservice registration and discovery method and device, storage medium and electronic equipment | |
CN116974874A (en) | Database testing method and device, electronic equipment and readable storage medium | |
Dustdar et al. | Testing of service-oriented architectures–a practical approach | |
CN113747150B (en) | Method and system for testing video service system based on container cloud | |
CN107122307B (en) | Internet of things execution system | |
CN112416980B (en) | Data service processing method, device and equipment | |
RU2532714C2 (en) | Method of acquiring data when evaluating network resources and apparatus therefor | |
CN117041111A (en) | Vehicle cloud function test method and device, electronic equipment and storage medium | |
KR20140037605A (en) | Method for active processing ami using cim schema and system topology information | |
CN112416747A (en) | Test case execution method, device, equipment and medium | |
Gong et al. | Analysis for Microservice Architecture Application Quality Model and Testing 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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121205 Termination date: 20131231 |