I'm posting to this forum since this is the only one for IBM Rational Functional Tester even though I am using the Visual Studio 2005 IDE implementation. My apologies if this is the wrong place.
I've been using RFT for a couple of months now and was wondering if anyone else has come across this issue and could help me out.
Like I mentioned I am using RFT with the Visual Studio 2005 IDE and use VB to write my scripts. I am currently automating manual tests on a Windows Forms based test bed.
I have several test cases where a form is opened and then the properties for several of the controls are changed and then the tester is supposed to verify the changes are reflected in the appearance of the controls. One of the test cases changes the appearance of the title bar on the top of the form. I created a script that uses an image verification point that verifies the appearance of the title bar. Sometimes the test passes and sometimes it fails. It turns out that when RFT verifies the image it sometimes will take the form out of focus, which changes the title bar, causing the test to fail. On other runs it leave it in focus. Because of this on one run it passes but then on another it fails. It happens randomly.
I have tried clicking and holding on another control on the form but neither helped. I have also tried taking the form out of focus before the image VP also. The form still will be in focus on some runs and out of focus on others.
Has anyone else come across this issue and found a work around that works 100% of the time?
Please don't tell me to just use a property verification point because I need to make sure the property change is actually reflected in the control's appearance.
I've been searchin the web for this and looking all over these forums but haven't found anything. Any help would really be appreciated.
If you think you are having problems now with image VPs wait until you try to run these tests on another machine.
The best solution is to use a property verification, or write your own verification. Image VPs are VERY fragile. That is why you will get most (intelligent) replies that ask that you do not use them.
If you really want to try and continue with the image VP try automating a click on the form you are verifying to bring the focus of the form to the front then do the image VP. Or automate a minimize of all forms except the one you want to test. Short of that, good luck on getting an image VP to be successful.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!