The invention discloses a method for automatically testing the performance of windows desktop
software, and belongs to the technical field of
software testing. The method comprises the following steps: 1, acquiring a
test case set, and setting an iterative threshold; 2, recording the probability of switching between any two test cases as Pij, and establishing an array for storing the probability of switching between all nodes; 3, initializing all nodes, and initializing the
pheromone strength among the nodes to be 1 and the
pheromone among the nodes to be 0; 4, randomly selecting a group of
test case combinations, and updating pheromones according to the change of
system resources after the execution of the
test case combinations is completed; 5, if resource growth occurs, additionally increasing pheromones among the current nodes, and updating global pheromones; 6, when the
pheromone is higher than the threshold value, entering a confirmation link, and repeatedly executing the path inthe confirmation link to update the pheromone according to the judgment result; and 7, terminating the test after the number of
algorithm iterations exceeds a threshold, and outputting a test conclusion.