System and method for maintaining and testing a software application
Granted 18 Jan 2011 · 2 office actions
Assignee: International Business Machines
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Douglas G. Murray, Renee C. Mullins, James A. Martin, Jr., Matthew J. Bangel · Examiner: Anna Deng · AU 2191 · TC 2100
Life of the application
12 dated eventsAbstract
Maintaining and testing a software application by performing regression testing uses standard reusable test cases from change history records to generate actual test cases. A new test case template is created upon saving a change history entry. A subset of the actual and new test cases is determined, and new actual test cases generated and documented from the subset. The new actual test cases are released after successful verification.
Description
6 parts›BACKGROUND OF THE INVENTION
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.
›SUMMARY OF THE INVENTION
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.
›BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a diagrammatic representation of the test case generator system of the preferred embodiment of the invention.
FIG. 2 is a diagrammatic representation of the process of the preferred embodiment of the invention for generating regression test cases.
FIG. 3 is a diagrammatic representation of a change history record in accordance with an exemplary embodiment of the invention.
FIG. 4 is a diagrammatic representation of a test case template and actual test case in accordance with an exemplary embodiment of the invention.
FIG. 5 is a diagrammatic representation of a system including a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system.
›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS · 1 of 3
Referring to FIG. 1 , in accordance with the present invention, there is provide a system, method, and computer program product for maintaining and testing software applications 64 in which a test case generator system 60 generates reusable test cases 90 for any type of software application system 64 .
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 .
FIGS. 3 and 4 illustrate, as they appear at GUI 80 , change history record 70 and test case template 76 /actual test case 90 , respectively. Test cases 90 are similar in nature to change history record 70 , and also include results of testing.
Referring to FIG. 2 in connection with FIG. 1 , the process of the invention executes as an application 60 on top of a development tool 62 , be it Websphere, Lotus Notes, or equivalent.
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.
›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS · 2 of 3
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 FIG. 3 , a GUI 80 representation of a change history record 200 illustrates an exemplary embodiment of change history record 70 .
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 FIG. 4 , a GUI 80 representation of a change history production test case 220 illustrates an exemplary test case 92 . Fields for a template 76 are similar, and also similar for actual test cases 90 , with actual test case 90 also including documentation from the testing 84 , 86 , 88 .
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 .
Advantages Over the Prior Art
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.
Alternative Embodiments
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 FIG. 5 , the invention can take the form of a computer program product accessible from a physically tangible computer-readable storage medium 96 providing program code 98 for use by or in connection with a computer 94 or any instruction execution system. For the purposes of this description, the computer-readable medium 96 can be any apparatus that can store the program for use by or in connection with the instruction execution, system, apparatus, or device.
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.
›DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS · 3 of 3
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.
›Tables in the description — 1
| Step | Input | Output | Operation |
| 102 | actual code | change history | perform save and |
| development | record 70 | prompt user to | |
| or code | and/or an | create a test case | |
| change 66 | actual test | 78 and/or change | |
| case 78 | history record 71 | ||
| 104 | saved | change history | save the change |
| development | record 70 for | history record 70 | |
| code or code | documentation | ||
| change 66 | of the change | ||
| 106 | change | set of standard | save test cases 92 |
| history | reusable test | to fill a set of | |
| records 70 to | cases 92 | reusable test case | |
| utilize for | scenarios 74 for | ||
| regression | performing a full | ||
| test | 88 or partial 86 | ||
| regression test | |||
| 110 | output of | test cases 74 | create (by |
| step 106: | to be used for | selection out of | |
| actual, | regression | the master list of | |
| standard and | testing | standard test case | |
| reusable test | 92) actual test | ||
| cases | cases 74 used to | ||
| document pass/fail | |||
| during regression | |||
| testing 86, 88 | |||
| 108 | output of | pass/fail | perform regression |
| step 110: | result of | test 86, 88 | |
| actual test | regression | ||
| cases 74 | testing 86, 88, | ||
| created from | case by case | ||
| standard | |||
| reusable test | |||
| cases 92 when | |||
| regression | |||
| test 86, 88 | |||
| occurs | |||
| 112 | from step | actual test | create and save |
| 102: saved | case 78 for | test case 78 | |
| code change | single code | ||
| 66 in the | change test 84 | ||
| development | |||
| tool 62 | |||
| 113 | from step | pass/fail | perform single code |
| 112: test | result of | change pass/fail | |
| case 78 | single code | test 84 | |
| change test 84 | |||
| 114 | from steps | set of test | select test cases |
| 106 and 112: | cases 78 to be | for performing | |
| actual test | used for non- | pass/fail test for | |
| case set 78 | regression | multiple code | |
| testing 84 of | change, non- | ||
| multiple code | regression test | ||
| changes | |||
| 115 | from step | pass/fail | perform non- |
| 114: test | result | regression test 84 | |
| cases 78 | of multiple code | ||
| changes | |||
| 118 | from steps | change release | verify test cases |
| 108, 115, | and updated | from step 108, 115, | |
| 113: passed | documentation | and 113, and issue | |
| test cases 90 | of the change | change release | |
| history record | (with version and | ||
| 70 to reflect | release number) of | ||
| release date, | new actual test | ||
| etc. | cases 90 | ||
| successfully | |||
| verified |
Claims as granted
21 claimsLog in to read the claims of this application.
Log in to unlockClassifications
3 codes- G06F9/44
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock