Flex objects not being recognised if test fails and needs to be run again
I have a Flex app I am trying to automate and if any test fails at any point and I need to rerun it or any other test, I find QTP suddenly cannot find some objects in the repository or says that some objects are not unique so the test fails in a place where it did work fine when first run. The only way I can get it to run successfully again is by logging out of the AUT and then back in again and then run the test again. Why is this? I wondered if it was something to do with the automationindex values but I cannot take these out of the mandatory properties list and even changing them to regular expressions so even if the index value changes it can still recognise it only works on that first run through if no errors occur (and the error can be entirely unrelated to the objects that won't work second time around). Has anyone encountered this and if so, do they have any suggestions on how I overcome this as its making automation extremely slow going.