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 one or more processors, 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 one or more processors, the plurality of test cases into at least one test case group according to the reusable test task sequence, wherein a plurality of test cases in each of the test case groups has at least one reusable test task sequence; and generating, for each of the plurality of test cases of the at least one test case group and by one or more processors, 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.