IP Library Granted Patent US 9,378,122
Granted Patent B2
US 9,378,122 · App. 14/022,928 · Granted Jun 28, 2016

Adopting an existing automation script to a new framework

Inventors: Bradley C. Herrin (Marina Del Rey, CA); Maneesh Mehra (Westford, MA)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F11/368
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 9,378,122
App. No.
14/022,928
Granted
Jun 28, 2016
Kind
B2
Abstract

Arrangements described herein relate to adopting an existing automation script to a new framework. A first version of an automation script configured to execute in a first framework, and expected unit test results for the automation script, are received. A second version of the automation script is created from the first version of the automation script. The second version of the automation script is configured to execute in at least a second framework. The first version of the automation script is executed in the first framework to run a first version of a unit test and the second version of the automation script is executed in the second framework to run a second version of the unit test. Results generated by execution of the first and second versions of the automation script are analyzed to validate the second version of the automation script.

Claims (15)

1. A method comprising:

receiving a first version of an automation script configured to execute in a first framework and expected unit test results for the automation script;

automatically creating, using a processor, a second version of the automation script from the first version of the automation script, the second version of the automation script configured to execute in at least a second framework;

generating a first plurality of outputs by executing the first version of the automation script in the first framework to run a first version of a unit test and, in parallel with executing the first version of the automation script, generating a second plurality of outputs by executing the second version of the automation script in the second framework to run a second version of the unit test;

comparing each sequential one of the first plurality of outputs generated by the first version of the automation script running the first version of the unit test and a corresponding one of the second plurality of outputs generated by the second version of the automation script running the second version of the unit test, as output pairs, to at least one expected unit test result to determine whether the first output and the second output correlate with the expected unit test result; and

responsive at least to one output in a particular output pair not correlating with the expected unit test result, identifying code in the first version of the automation script and code in the second version of the automation script that generate the respective outputs in the output pair.

2. The method of claim 1 , further comprising:

automatically creating the second version of the unit test from the first version of the unit test.

3. The method of claim 2 , further comprising:

outputting the second version of the automation script and the second version of the unit test.

4. The method of claim 1 , further comprising:

capturing a first state of a first system hosting the first framework post execution of the first version of the automation script;

capturing a second state of a second system hosting the second framework post execution of the second version of the automation script; and

comparing the second state of the second system to the first state of the first system to determine whether the second state correlates with the first state.

5. The method of claim 1 , wherein the second version of the automation script is configured to execute in a plurality of frameworks.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2013
From: HERRIN, BRADLEY C.; MEHRA, MANEESH
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 031176/0600 →
Continuity (1)
Related Publication 20150074645A1 · Mar 12, 2015