Forum Discussion
We use a common function in our test framework for Oracle Forms testing.
In that function, we use the SetText function of the target object to insert values. Then we use the Keys function to send a TAB. This has worked well since TestComplete version 7 to 12.
Also, you may consider adding a small delay or checking for some object availability after the TAB is sent as it may trigger some processing.
Harnek
- tristaanogre8 years agoEsteemed Contributor
You can also, after using SetText, call the specific "OnExit" event handler on the field if it is exposed to TestComplete. Again, that negates the need for calling the "Tab" keystroke directly.
- Parthiv1088 years agoNew Contributor
just an update, that this a very intermittent issue. I also notice that the oracle forms application hangs (intermittently) when i put breakpoint after the Keys "[Tab]" operation.
- tristaanogre8 years agoEsteemed Contributor
Parthiv108 wrote:
just an update, that this a very intermittent issue. I also notice that the oracle forms application hangs (intermittently) when i put breakpoint after the Keys "[Tab]" operation.
Is it possible, then, that the problem is not necessarily with the automation but with the application itself? Does the behavior occur if TestComplete is not running and you attempt to tab to the next field in a manual test?
- Parthiv1088 years agoNew Contributor
I don't think there is a problem with the application as it doesn't happen when you run the steps manually. The problem is not in just one form but noticed it on a couple. The problem is that it is intermittent so its quite difficult to replicate. I have a suspicion something gets broken within oracle forms as a tab to the next field triggers some internal validation/navigation of the cursor and the speed of the playback interferes with this process. (just a hunch)