IP Library Granted Patent US 9,632,917
Granted Patent B2
US 9,632,917 · App. 14/599,826 · Granted Apr 25, 2017

Software testing

Inventors: Duan Cai (Beijing, CN); Liu Hao (Beijing, CN); Qiang Li (Beijing, CN); Lan Qian Peng (Beijing, CN); Yan Yan (Beijing, CN); Chuan Jie Zheng (Beijing, CN)
Assignee: International Business Machines Corporation
G06F11/3684G06F11/3419
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,632,917
App. No.
14/599,826
Granted
Apr 25, 2017
Kind
B2
Abstract

Software testing uses a plurality of test cases, where each of the test cases includes a plurality of test tasks. The test cases are analyzed to obtain at least one reusable test task sequence between at least two test cases. The reusable test task sequence includes at least one identical test task. The test cases are divided into at least one test case group according to the reusable test task sequence, where the test cases in each of the test case groups has at least one reusable test task sequence. For each of the test cases of the at least one test case group, an execution script of each test case is generated by using an execution script of a reusable test task, where the execution script of each test case includes at least one of backup or restore for the reusable test task sequence.

Claims (43)

1. A method for performing software testing by using a plurality of test cases, wherein each of the test cases includes a plurality of test tasks, the method comprising:

analyzing, by an analyzing hardware module, the plurality of test cases to obtain at least one reusable test task sequence between at least two test cases, the reusable test task sequence including at least one identical test task;

dividing, by a dividing hardware module, the plurality of test cases into multiple test case groups according to the reusable test task sequence, wherein a plurality of test cases in each of the multiple test case groups has at least one reusable test task sequence; and

generating, for each of the plurality of test cases of the multiple test case groups and by a generating hardware module, an execution script of each test case by using an execution script of a reusable test task, the execution script of each test case including at least one of backup or restore for the reusable test task sequence.

2. The method according to claim 1 , further comprising:

executing, by one or more processors, the test cases;

backing up, by one or more processors, a reusable test task sequence; and

in response to said backing up of the reusable test task sequence, backing up, by one or more processors, an execution environment that corresponds to the reusable test task sequence.

3. The method according to claim 2 , further comprising:

restoring, by one or more processors, the reusable test task sequence; and

in response to restoring the reusable test task sequence, restoring, by one or more processors, the execution environment that corresponds to the reusable test task sequence according to said backing up of the reusable test task sequence.

4. The method according to claim 2 , wherein said backing up the execution environment in response to the backing up for the reusable test task sequence further comprises:

in response to the backing up for the reusable test task sequence, determining, by one or more processors, whether the backing up of the reusable test task sequence accelerates software testing; and

in response to determining that the backing up of the reusable test task sequence accelerates software testing, backing up, by one or more processors, the execution environment corresponding to the reusable test task sequence.

5. The method according to claim 4 , wherein said determining whether the backing up of the reusable test task sequence accelerates software testing is made according to time for performing the backup and restore and execution time of the reusable test task sequence.

6. A system for performing software testing by using a plurality of test cases, wherein each of the test cases includes a plurality of test tasks, the system comprising:

an analyzing hardware module configured to analyze the plurality of test cases to obtain at least one reusable test task sequence between at least two test cases, the reusable test task sequence including at least one identical test task;

a dividing hardware module configured to divide the plurality of test cases into multiple test case groups according to the reusable test task sequence, wherein the plurality of test cases in each of the multiple test case groups has at least one reusable test task sequence; and

a generating hardware module configured to generate, for each of the plurality of test cases of the multiple test case groups, an execution script of each test case by using an execution script of a reusable test task, the execution script of each test case including at least one of backup or restore for the reusable test task sequence.

7. The system according to claim 6 , further comprising:

an executing hardware module configured to execute the test cases; and

a backup hardware module configured for backing up a reusable test task sequence, and in response to said backing up of the reusable test task sequence, backing up an execution environment that corresponds to the reusable test task sequence.

8. The system according to claim 7 , further comprising:

a restoring hardware module configured to restore the reusable test task sequence, and in response to restoring the reusable test task sequence, restoring the execution environment that corresponds to the reusable test task sequence according to said backing up of the reusable test task sequence.

9. The system according to claim 7 , wherein the backup hardware module is further configured to:

in response to the backing up for the reusable test task sequence, determine whether backing up the reusable test task sequence accelerates software testing; and

in response to determining that backing up the reusable test task sequence accelerates software testing, back up the execution environment corresponding to the reusable test task sequence.

10. The system according to claim 9 , wherein said determining whether backing up the reusable test task sequence accelerates software testing is made according to time for performing the backup and restore and execution time of the reusable test task sequence.

11. A computer program product for performing software testing by using a plurality of test cases, wherein each of the test cases includes a plurality of test tasks, the computer program product comprising a non-transitory computer readable storage medium having program code embodied therewith, and wherein the program code is readable and executable by a processor to perform a method comprising:

analyzing the plurality of test cases to obtain at least one reusable test task sequence between at least two test cases, the reusable test task sequence including at least one identical test task;

dividing the plurality of test cases into multiple test case groups according to the reusable test task sequence, wherein a plurality of test cases in each of the multiple test case groups has at least one reusable test task sequence; and

generating, for each of the plurality of test cases of the multiple test case groups, an execution script of each test case by using an execution script of a reusable test task, the execution script of each test case including at least one of backup or restore for the reusable test task sequence.

12. The computer program product of claim 11 , wherein the method further comprises:

executing the test cases;

backing up a reusable test task sequence; and

in response to said backing up of the reusable test task sequence, backing up an execution environment that corresponds to the reusable test task sequence.

13. The computer program product of claim 12 , wherein the method further comprises:

restoring the reusable test task sequence; and

in response to restoring the reusable test task sequence, restoring the execution environment that corresponds to the reusable test task sequence according to said backing up of the reusable test task sequence.

14. The computer program product of claim 12 , wherein said backing up the execution environment in response to the backing up for the reusable test task sequence further comprises:

in response to the backing up for the reusable test task sequence, determining whether backing up the reusable test task sequence accelerates software testing; and

in response to determining that backing up the reusable test task sequence accelerates software testing, backing up the execution environment corresponding to the reusable test task sequence.

15. The computer program product of claim 14 , wherein said determining whether backing up the reusable test task sequence accelerates software testing is made according to time for performing the backup and restore and execution time of the reusable test task sequence.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 19, 2015
From: CAI, DUAN; HAO, LIU; LI, QIANG; PENG, LAN QIAN; YAN, YAN; ZHENG, CHUAN JIE
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 034745/0905 →
Priority Claims (1)
CN 2014 1 0054004 · Feb 18, 2014 · national
Continuity (1)
Related Publication 20150234733A1 · Aug 20, 2015