IP Library Granted Patent US 8,869,111
Granted Patent B2
US 8,869,111 · App. 12/891,031 · Granted Oct 21, 2014

Method and system for generating test cases for a software application

Inventors: Ravi Prakash Gorthi (Bangalore, IN); Anjaneyulu Pasala (Bangalore, IN)
Assignee: Infosys Limited
G06F11/3684G06F11/3692G06F11/36G06F9/445G06F11/3668
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,869,111
App. No.
12/891,031
Granted
Oct 21, 2014
Kind
B2
Abstract

The present invention provides a method, system and computer program product for generating one or more test cases for testing a software application by identifying one or more units of functionalities of the software application, structuring use cases of the software application, using the identified units of functionalities, generating a first set of use case activity diagrams from the structured use cases, and generating test cases from the generated use case activity diagrams.

Claims (54)

1. A method for developing one or more test cases for testing a software application, the method comprising:

identifying one or more units of functionalities of the software application by slicing the functionalities of the software application to an indivisible level, further wherein each unit of the one or more units of the functionalities of the software application comprises an ordered sequence of a user input, a set of instructions to process the input, a set of conditions and a system output;

structuring use cases of the software application into the ordered sequence of the user input, the set of instructions to process the input, the set of conditions and the system output;

generating a first set of use case activity diagrams from the structured use cases;

generating test cases from the generated first set of use case activity diagrams, wherein the test cases are generated by traversing the use case activity diagrams using a depth first strategy, further wherein each traversed path of the use case activity diagrams corresponds to a test case; and

linking a plurality of the use case activity diagrams for one or more software applications, wherein the linking facilitates reusability of the plurality of the use case activity diagrams.

2. The method of claim 1 , wherein generating test cases further comprises generating test cases from the structured use cases.

3. The method of claim 1 , wherein the method further comprises:

validating the generated use case activity diagrams with requirements of the software application; and

updating the structured use cases based on the validation.

4. The method of claim 1 , wherein the method further comprises developing test cases for regression testing of the software application.

5. The method of claim 4 , wherein developing test cases for regression testing of the software application comprises:

updating the structured use cases based on a change in requirements of the software application;

generating a second set of use case activity diagrams for the updated structured use cases; and

creating test cases for the regression testing from the generated first set of use case activity diagrams and the generated second set of use case activity diagrams.

6. The method of claim 1 , wherein the linking comprising:

allocating an identifier to each use case; and

referring to a first use case from one or more other use cases, using the identifier of the first use case.

7. A computer system for developing one or more test cases for testing a software application, the computer system comprising a microprocessor and a memory, the computer system further comprising:

identifying module, using the microprocessor, for identifying one or more units of functionalities of the software application by slicing the functionalities of the software application to an indivisible level, further wherein each unit of the one or more units of the functionalities of the software application comprises an ordered sequence of a user input, a set of instructions to process the input, a set of conditions and a system output;

structuring module, using the microprocessor, for structuring use cases of the software application into the ordered sequence of the user input, the set of instructions to process the input, the set of conditions and the system output;

a first generating module, using the microprocessor, for generating a first set of use case activity diagrams from the structured use cases;

a second generating module, using the microprocessor, for generating test cases from the generated first set of use case activity diagrams, wherein the test cases are generated by traversing the use case activity diagrams using a depth first strategy, further wherein each traversed path of the use case activity diagrams corresponds to a test case; and

a linking module, using the microprocessor, for linking a plurality of the use case activity diagrams for one or more software applications, wherein the linking facilitates reusability of the plurality of the use case activity diagrams.

8. The computer system of claim 7 , wherein the second generating module comprises developing module for developing test cases, using the microprocessor, from the structured use cases for regression testing of the software application.

9. The computer system of claim 7 further comprising:

validating module, using the microprocessor, for validating the generated use case activity diagrams with requirements of the software application; and

updating module, using the microprocessor, for updating the structured use cases based on the validation.

10. The computer system of claim 7 , further comprising a developing module, using the microprocessor, for developing test cases for regression testing of the software application.

11. The computer system of claim 10 , wherein the developing module comprises:

updating module, using the microprocessor, for updating the structured use cases based on a change in requirements of the software application;

generating module, using the microprocessor, for generating a second set of use case activity diagrams for the updated structured use cases; and

creating module, using the microprocessor, for creating test cases for the regression testing from the generated first set of use case activity diagrams and the generated second set of use case activity diagrams.

12. The computer system of claim 7 , wherein the linking module comprises:

allocating module, using the microprocessor, for allocating an identifier to each use case; and

referring module, using the microprocessor, for referring to a first use case from one or more other use cases, using the identifier of the first use case.

13. A computer program product for developing one or more test cases for testing a software application consisting of a plurality of instructions stored on a non-transitory tangible computer readable media which when run upon a computer processor carries out steps for managing resources, comprising instructions for:

identifying one or more units of functionalities of the software application by slicing the functionalities of the software application to an indivisible level, further wherein each unit of the one or more units of the functionalities of the software application comprises an ordered sequence of a user input, a set of instructions to process the input, a set of conditions and a system output;

structuring use cases of the software application into the ordered sequence of the user input, the set of instructions to process the input, the set of conditions and the system output;

generating a first set of use case activity diagrams from the structured use cases;

generating test cases from the generated first set of use case activity diagrams, wherein the test cases are generated by traversing the use case activity diagrams using a depth first strategy, further wherein each traversed path of the use case activity diagrams corresponds to a test case; and

linking a plurality of the use case activity diagrams for one or more software applications, wherein the linking facilitates reusability of the plurality of the use case activity diagrams.

14. The computer program product of claim 13 , wherein the instructions for generating test cases, generate test cases from the structured use cases.

15. The computer program product of claim 13 further comprising instructions for:

validating the generated use case activity diagrams with requirements of the software application; and

updating the structured use cases based on the validation.

16. The computer program product of claim 13 further comprising instructions for developing test cases for regression testing of the software application.

17. The computer program product of claim, 16 wherein the instructions for developing test cases for regression testing of the software application comprises instructions for:

updating the structured use cases based on a change in requirements of the software application;

generating a second set of use case activity diagrams for the updated structured use cases; and

creating test cases for the regression testing from the generated first set of use case activity diagrams and the generated second set of use case activity diagrams.

18. The computer program product of claim 13 further comprising instructions for linking the use cases, the instructions further comprising instructions for:

allocating an identifier to each use case; and

referring to a first use case from one or more other use cases, using the identifier of the first use case.

Assignments (2)
CHANGE OF NAME Recorded Mar 18, 2013
From: INFOSYS TECHNOLOGIES LIMITED
To: INFOSYS LIMITED
Reel/Frame 030050/0683 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 6, 2010
From: GORTHI, RAVI PRAKASH; PASALA, ANJANEYULU
To: INFOSYS TECHNOLOGIES LIMITED
Reel/Frame 025103/0396 →
Continuity (2)
Continuation In Part 12321133 · Jan 15, 2009
Related Publication 20110016451A1 · Jan 20, 2011