1. Technical Field of the Invention
This invention relates to regression testing of programming applications under development. More particularly, it relates to integrating test case generation and change history documentation.
2. Background Art
Regression testing is a manual development process in which a code developer creates test cases upon completion of a code change and executes the test function to determine if the new code functions properly. If the test cases in the regression testing environment pass, the code changes are released in accordance with a development methodology dependent upon the development environment being used but without respect to change history documentation and no automatic verification that the regression test cases were acted upon and deemed production-ready.
There currently does not exist a facility which tightly integrates the application development change management process with a set of automatically created and reusable (for regression test purposes) test cases.
Consequently, there is a need in the art for an improved regression testing and change history environment which tightly integrates the two to ensure a more efficient and verifiable approach to code development production release.
A system, method and computer program product for maintaining and testing a software application by performing regression testing using standard reusable test cases from change history records to generate actual test cases; creating a new test case template upon saving a change history entry; flagging a subset of the actual and new test cases; generating and documenting new actual test cases from the subset; and releasing the new actual test cases after successful verification.
Other features and advantages of this invention will become apparent from the following detailed description of the presently preferred embodiment of the invention, taken in conjunction with the accompanying drawings.
Referring to
Generator system 60 includes a change management documentation system 68 that creates test cases 90 that are standardized to a template 76 and resulting standardized test cases 74 reused for future regression testing 88 of an entire application 64. Standardized test case templates 76 based on the change management documentation system 68 are automatically created, and these templates 76 are used to generate test cases 92 used by a software application programmer in testing the application.
Change management documentation system 68 tracks, as is represented by line 65, changes 66 to the software application 64 to generate the standard reusable test cases 92 independent of type of software application 64, and these test cases 92 are used in generating actual test cases 74 for regression testing 88 of an application system 64.
Graphical user interface (GUI) layer 80 runs, as is represented by lines 81 and 89, in conjunction with development tool 62 and test case generator 60. Development tool 62 recognizes code changes 66 and by way of GUI 80 prompts the user/developer and guides the regression test/test case/change history documentation to verify production-ready changes 66.
In accordance with a preferred embodiment, there is provided a mechanism for automatically generating reusable test cases 90 when a problem or new requirement is identified in the change management system 68. These test cases 90 are initially templates 76 which are used, as represented by line 73, to create standard test cases 92 from which are selected, as is represented by line 77, single executable test cases 78 for single code change test 84 or, as is represented by line 75, a logical suite 74 of test cases for regression testing 86, 88 purposes.
Upon saving, as is represented by line 69, a change history entry 70, a new test case may be created, as is represented by line 71, to form a test case template 76. These templates 76 may be used, as is represented by line 73, to create standard test cases 92 from which either reusable or single (one-time) use test cases 78 may be selected, as is represented by lines 75 and 77, depending on the nature of the code change 66 to the application 64 under test. These may be used, as is represented by lines 81 and 91, in code test 84, or in regression tests 88, 86.
In regression testing 88, as is represented by lines 87 and 97, a standard set of reusable test cases 92 derived from change history records 70, as is represented by lines 71, 73 and 75, is used to generate a suite 74 of actual test cases 90 that are documented during regression testing 88.
In partial regression testing 86, as is represented by lines 85 and 95, any section or functional area (i.e., group of forms within one database, one application within a larger tool suite, etc.) is specified and flagged as a subset 83 of the reusable test cases 74 that can be regenerated and tested against.
Reusing standardized test cases 92 involves flagging a set of test case templates 76 and having an agent generate copies as actual test cases 90 to be used for testing and documentation.
Automatic notification of testing due dates is provided. If a due date for completion of testing is documented, an agent notifies the developer 82 (aka user) owning that particular test case 90 when testing 84, 86, or 88 is due.
Tested changes 66 only are released. If a test case 90 has been used for a particular change, verification of testing “passed” must occur before the change 66 is allowed to be “released”.
To close the loop from change 66 to test 84, 86, 88 to production (that is, release of application 64), if testing fails due to a new problem or change 66 that needs to be corrected, as is represented by line 99, a new change history record 70 may be created directly from the test case 90.
New actual test cases 74 may be released when a full regression test 88 of the environment 64, 66 is not deemed necessary, and testing 84 of individual test cases 78 for small code changes 66 will suffice. A pass/fail determination is made after the developer 82 tests an actual test case 90, created from the change history record 70.
Change management documentation system 68 creates, as is represented by line 71, a test case template 76 upon saving, as is represented by line 69, a change history entry 70. To do so, developer 82 is prompted via GUI 80 to create a test case template 76 for regression testing 88 purposes to be used at a later date. If the user responds to the prompt positively, the information in the change history document 70 is used to create the test case template 76.
Referring to
The input to test case generator system 60 is actual code, or code changes 66.
Reusable test case generator 60 takes actual code changes 66 performed in a development environment 62 and automates the creation of the change history records 70, standard test cases 92, and reusable test cases 74 to perform more advanced regression testing on software application 64 when some number of significant code changes 66 has been reached.
In step 102 a save is performed preparatory to creating a test case 78 and/or change history record 70 from actual code 64 or code change 66. In this step 102, template 76 is created. Upon the save, GUI interface 80 prompts the developer to save a change history record 70 for creating a template 76, or to create a one-time test case 78 directly.
In step 104 development code changes 66 saved from step 102 are saved as change history records 70 documenting the change.
In step 106 a set of standard reusable test cases 92 is created from the output of step 104. The input to step 106 is change management records 70 that are to be utilized for regression test 88 of the application 64 being developed. In step 106 test cases 74 are saved to fill a set of reusable test cases 92 for subsequent use in performing a full 88 or partial 86 regression test on application 64. The output of step 106 is a set of standard reusable test cases 92.
In step 110 actual test cases 74 are selected out of the collection of standard test cases 92 for subsequent regression test.
In step 108, regression test 88 using test cases 74, or partial regression test using subset 83 of test cases 74, is conducted on application 64. These test cases 74 are used to document the pass/fail results of regression testing 88.
In step 112, a new test case 78 is created and saved from step 102. The input to step 112 is saved code change 66 in the development tool 62 and the output is an actual test case 78 for single code-change testing.
In step 113, the new test case 78 created in step 112 is used in test 84 against code change 66.
In step 114 a subset of new actual test cases 78 from steps 106 and 112 are selected and flagged to create a set of test cases to be used for testing in step 115, a non-regression test of multiple code changes 66.
Thus, a pass/fail decision can happen at step 113 for single code-change testing, or at step 115 for multiple code-change, non-regression testing.
In step 118 a change release record 70, with version and release number and updated documentation of the change history record, is generated from test cases 90 passed in steps 108, 115, and 113.
Table 1 summarizes operations of the steps of the preferred embodiment of the invention.
Referring to
Problem record 200 includes identification 202, problem description 204, reference documents 206, customer requirements 208, development plan 210, development details 212, priority 214, and status 216 fields. Identification field 202 includes, for example, fields defining change history identifier 301, product identifier 302, project identifier 303, component identifier 304, type 305, team identifier 306, and open date 307. Development plan field 210 includes fields representing estimated time 308, percent complete 309, due date 310, and fix description 311. Development details field 212 contains fields describing effected elements 312. Priority field 214 contains fields identifying target release version 313 and priority 314. Status field 216 includes fields identifying person 315 currently assigned to the problem, status 316, fix version 317, and product release version 318 and release date 319.
Referring to
Change history 220 includes identification 222, description 224, details 226, test results 228, history 230, and status 232 fields. Identification field 222 includes, for example, fields defining change history identifier 301, product identifier 302, project 303, component 304, design element 320, reason for test case 321, team identifier 306, and date created 307. Status field 232 includes, for example, fields identifying person 322 to whom testing is assigned, status 316, and release version 318.
A test case 90, 92 is an environment, or set of variable effected by code. In this exemplary embodiment, these variables may be entered by user 82 in components field 304. During test, these components 304 may be run during tests 108, 113, 115 against application code 64 or code change 66, and the results recorded, for example, to field 228.
It is an advantage of the invention that there is provided a method and system for documenting code change production releases for auditability and reliability, verifying accuracy of tested products, and more efficiently utilizing developer time spent in testing code releases.
The invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, and microcode.
Referring to
The medium 96 can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a storage medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.
A computer, or data processing, system 94 suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
Accordingly, the scope of protection of this invention is limited only by the following claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
5157782 | Tuttle et al. | Oct 1992 | A |
5164912 | Osborne et al. | Nov 1992 | A |
5218605 | Low et al. | Jun 1993 | A |
5555410 | Tsuchiya | Sep 1996 | A |
5673387 | Chen et al. | Sep 1997 | A |
5694540 | Humelsine et al. | Dec 1997 | A |
5892947 | DeLong et al. | Apr 1999 | A |
5907705 | Carter | May 1999 | A |
6061643 | Walker et al. | May 2000 | A |
6219829 | Sivakumar et al. | Apr 2001 | B1 |
6301701 | Walker et al. | Oct 2001 | B1 |
6336217 | D'Anjou et al. | Jan 2002 | B1 |
6415396 | Singh et al. | Jul 2002 | B1 |
6502235 | Tosaka et al. | Dec 2002 | B1 |
6577982 | Erb | Jun 2003 | B1 |
6694509 | Stoval et al. | Feb 2004 | B1 |
6698012 | Kossatchev et al. | Feb 2004 | B1 |
6698013 | Bertero et al. | Feb 2004 | B1 |
6725399 | Bowman | Apr 2004 | B1 |
6810364 | Conan | Oct 2004 | B2 |
6986125 | Apuzzo et al. | Jan 2006 | B2 |
7039902 | Kuzmin et al. | May 2006 | B2 |
7100195 | Underwood | Aug 2006 | B1 |
7167870 | Avvari et al. | Jan 2007 | B2 |
7296188 | Paternostro et al. | Nov 2007 | B2 |
7299382 | Jorapur | Nov 2007 | B2 |
7363616 | Kalyanaraman | Apr 2008 | B2 |
7437712 | Brown et al. | Oct 2008 | B1 |
7490319 | Blackwell et al. | Feb 2009 | B2 |
7516438 | Leonard et al. | Apr 2009 | B1 |
7539943 | Vaidyanathan et al. | May 2009 | B2 |
7603653 | Sundararajan et al. | Oct 2009 | B2 |
7614042 | Hardy et al. | Nov 2009 | B1 |
7657872 | Kelbaugh et al. | Feb 2010 | B2 |
20020078071 | Foster | Jun 2002 | A1 |
20030018932 | Blum et al. | Jan 2003 | A1 |
20030037314 | Apuzzo et al. | Feb 2003 | A1 |
20030046681 | Barturen et al. | Mar 2003 | A1 |
20030097650 | Bahrs et al. | May 2003 | A1 |
20030126517 | Givoni et al. | Jul 2003 | A1 |
20030229889 | Kuzmin et al. | Dec 2003 | A1 |
20040073886 | Irani | Apr 2004 | A1 |
20040073890 | Johnson et al. | Apr 2004 | A1 |
20050108685 | Ta | May 2005 | A1 |
20050204201 | Meenakshisundaram et al. | Sep 2005 | A1 |
20050223361 | Belbute | Oct 2005 | A1 |
20050229159 | Haba et al. | Oct 2005 | A1 |
20060041864 | Holloway et al. | Feb 2006 | A1 |
Number | Date | Country |
---|---|---|
511391 | May 1993 | JP |
5113910 | May 1993 | JP |
Number | Date | Country | |
---|---|---|---|
20070240116 A1 | Oct 2007 | US |