'Is there any possible solution to generate test mutants after recording using Selenium IDE?

I am doing a research work of web testing. I use Selenium IDE to record the manual test cases, and replay them using webdriver written in Java.

Here I want to make the 「playback」module more intelligent, i.e. to generate more test cases (mutants) according to the recording tests. For example, in manual testing, I chose the first element of the dropdown list, and clicked at the "next" button to browse the next page. Now, in my replay module, I want it to intelligently choose the second element, or the third, the ending element of the droplist, and clicked at the "next" button to browse the next page.

The above is the simplest sample, in my research work, the manual testing could be complicated (the number of operation is big).

Here, I come up with an idea, when clicking at/choosing one element x, I use x.siblingNode() or x.parentNode().childrenNode().get(index) (index != indexof(x)) to generate another testing case. But there is another question, here is the operation steps: 1->2->3->4, if I make mutants 2' at step 2, what can I do in step 3' and 4'? Since DOM elements of 3' and 4' can be very different from 3 and 4.

Is there any possible solution to it? Thanks for kindly help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source