Generating test plans and test cases from service-oriented architecture and process models
View Patent ↗Testing a system under test (SUT) having a service-oriented architecture includes generating a first test plan for an inbound interface for each service model, generating a second test plan for an outbound interface of each service model, and generating a third test plan for information consumed by the service models using a processor. Testing the system further includes generating a fourth test plan for a process model, wherein the process model utilizes the service models, generating a fifth test plan that maps service models and the process model to executables of the system, and concatenating the first, second, third, fourth, and fifth test plans into a complete test plan for the SUT using the processor.
1. A method of testing a system under test (SUT) having a service-oriented architecture, the method comprising:
generating a first test plan for an inbound interface for each of a plurality of service models, each of the plurality of service models implemented by a respective service executed in the SUT;
generating a second test plan for an outbound interface of each of the plurality of service models;
generating a third test plan for information consumed by each of the plurality of service models using a processor;
generating a fourth test plan for a process model, wherein the process model utilizes each of the plurality of service models;
generating a fifth test plan that maps each of the plurality of service models and the process model to executables of the SUT; and
concatenating the first, second, third, fourth, and fifth test plans into a complete test plan for the SUT using the processor.
2. The method of claim 1 , further comprising:
for a change to the SUT, determining a scope of regression testing needed for testing the change to the SUT, wherein the scope of the regression testing specifies each model, selected from a group consisting of the plurality of service models and the process model, that is to be tested by the regression testing.
3. The method of claim 2 , wherein determining a scope of regression testing comprises:
determining each model, selected from the group consisting of the plurality of service models and the process model, that is dependent upon the change to the SUT; and
adding each dependent model to the scope of the regression testing.
4. The method of claim 3 , further comprising:
determining each of a plurality of executables corresponding to the dependent models added to the scope of the regression testing.
5. The method of claim 4 , further comprising:
adding each of the plurality of determined executables to the scope of the regression testing.
6. The method of claim 2 , further comprising:
generating a test case for the each model specified by the scope of the regression testing;
determining a test case input for each generated test case; and
determining an expected test result for each test case input.
7. The method of claim 6 , further comprising:
generating test cases for executables associated with the each model specified by the scope of the regression testing.
8. A system for testing a system under test (SUT) having a service-oriented architecture, the system comprising:
a processor configured to initiate executable operations comprising:
generating a first test plan for an inbound interface for each of the plurality of service models;
generating a second test plan for an outbound interface of each service model;
generating a third test plan for information consumed by each of the plurality of service models;
generating a fourth test plan for a process model, wherein the process model utilizes each of the plurality of service models;
generating a fifth test plan that maps each of the plurality of service models and the process model to executables of the SUT; and
concatenating the first, second, third, fourth, and fifth test plans into a complete test plan for the SUT using the processor.
9. The system of claim 8 , further comprising:
for a change to the SUT, determining a scope of regression testing needed for testing the change to the SUT, wherein the scope of the regression testing specifies each model, selected from a group consisting of the plurality of service models and the process model, that is to be tested by the regression testing.
10. The system of claim 9 , wherein determining a scope of regression testing comprises:
determining each model selected from the group consisting of the plurality of service models and the process model, that is dependent upon the change to the SUT; and
adding each dependent model to the scope of the regression testing.
11. The system of claim 10 , wherein the processor is further configured to initiate an executable operation comprising:
determining each of a plurality of executables corresponding to the dependent models added to the scope of the regression testing.
12. The system of claim 11 , wherein the processor is further configured to initiate an executable operation comprising:
adding each of the plurality of determined executable to the scope of the regression testing.
13. The system of claim 9 , wherein the processor is further configured to initiate executable operations comprising:
generating a test case for the each model specified by the scope of the regression testing;
determining a test case input for each generated test case; and
determining an expected test result for each test case input.
14. The system of claim 13 , wherein the processor is further configured to initiate an executable operation comprising:
generating test cases for executables associated with the each model specified by the scope of the regression testing.
15. A computer program product for testing a system under test (SUT) having a service-oriented architecture, the computer program product comprising:
a computer readable storage medium having program code embodied therewith, the program code executable by a computer to perform executable operations comprising:
generating, using a processor, a first test plan for an inbound interface for each of a plurality of service models, each of the plurality of service models implemented by a respective service executed in the SUT;
generating a second test plan for an outbound interface of each of the plurality of service models;
generating a third test plan for information consumed by each of the plurality of service models using a processor;
generating a fourth test plan for a process model, wherein the process model utilizes each of the plurality of service models;
generating a fifth test plan that maps each of the plurality of service models and the process model to executables of the SUT; and
concatenating the first, second, third, fourth, and fifth test plans into a complete test plan for the SUT using the processor.
16. The computer program product of claim 15 , wherein the computer readable storage medium has further program code embodied therewith, the further program code executable by a computer to perform executable operations comprising:
for a change to the SUT, determining a scope of regression testing needed for testing the change to the SUT, wherein the scope of the regression testing specifies each model, selected from a group consisting of the plurality of service models and the process model, that is to be tested by the regression testing.
17. The computer program product of claim 16 , wherein determining a scope of regression testing comprises:
determining each model, selected from the group consisting of the plurality of service models and the process model, that is dependent upon the change to the SUT; and
adding each dependent model to the scope of the regression testing.
18. The computer program product of claim 17 , wherein the computer readable storage medium has further program code embodied therewith, the further program code executable by a computer to perform executable operations comprising:
determining each of a plurality of executables corresponding to the dependent models added to the scope of the regression testing; and
adding each of the plurality of determined executables to the scope of the regression testing.
19. The computer program product of claim 16 , wherein the computer readable storage medium has further program code embodied therewith, the further program code executable by a computer to perform executable operations comprising:
generating a test case for the each model specified by the scope of the regression testing;
determining a test case input for each generated test case; and
determining an expected test result for each test case input.
20. The computer program product of claim 19 , wherein the computer readable storage medium has further program code embodied therewith, the further program code executable by a computer to perform executable operations comprising:
generating test cases for executables associated with the each model specified by the scope of the regression testing.