Browse Prior Art Database

A method and system to automatically generate automation asset based on test cases and maintain consistency

IP.com Disclosure Number: IPCOM000226857D
Publication Date: 2013-Apr-23
Document File: 4 page(s) / 86K

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is a method applied to software test cycles to automatically generate automation scripts based on test cases and while maintaining consistency.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 44% of the total text.

Page 01 of 4

A method and system to automatically generate automation asset based on test cases and maintain consistency

In a usual software test cycle, testers first review the design and implementation details of the feature in question, and then test cases are created with information on the test objective(s), test procedures, and test data in order to fully test the feature. In a third step, automation scripts are developed to automate the testing

When developing automation scripts, the automation developer has to reference the test cases to ensure that the automation scripts correctly execute the test procedure

with the correct test data. The test cases are typically written in a structured document such as a spreadsheet or a word document, and the automation scripts are encoded in a programming language such as Java*. The scripts are stored in two different vehicles and are separately maintained.

This separation of test cases and automation scripts results in a few problems . The duplicate efforts (e.g., performing duplicate steps) in composing test cases and developing automation scripts are inefficient. Currently, there is not a method to take the advantage of one to facilitate the other . Even if a test team has gone through the efforts of developing the test cases already, the team must still develop the automation scripts from the beginning. In addition, test cases and automation scripts are often inconsistent. When a developer updates the test cases , the automation scripts as well as the comments should be updated in order to maintain consistency.

However, because test cases and automation scripts are independently developed and maintained, two major issues with the retained information arise. First, there is an inconsistency in test cases and automation scripts. There is no way to automatically synchronize the two; the update is manually performed. Leaving the document and the scripts inconsistent causes confusion and incorrect results going forward. The automation developer must manually ensure that the automation scripts are correctly following the business logic and using the test data described in the test cases. When a change to the test case (either procedure or test data) occurs, it is possible that the automation developer is not aware of the change ; thus, automation scripts are not updated in a timely manner. The second issue is that duplicate efforts take place when conveying the information of the test cases to automation script. When developing the automation script, the comments in the scripts help clarify how the script works, which is similar information to the test

procedure described in the test cases. When developing an automation script, the test data refers to the test cases.

A method is needed to automatically generate automation scripts based on test cases and while maintaining consistency.

The invention is a method and a system that automatically generates automation assets based on test cases, and mainta...