Ask a Question

TestComplete Tabbing does not work with my application

forrestaustin
Contributor

TestComplete Tabbing does not work with my application

Hello,

 

I have a .NET based desktop application I am testing with some simple textbox fields inside of it. When I run the application manually (without testcomplete) I am able to use the tab key to go to the next text field. However, when I run the application inside testcomplete such as when I am recording the test, the tab key no longer works as it should during recording. This is a problem because this is how we test if a value is out of the desired range. If the min value is 0 and one puts in -1, then the form does not allow you to tab to the next field.

 

Does anyone have any ideas on how I could fix this or any work around suggestions?

11 REPLIES 11

Hi,

 

> 2) The operation in the keyword test is Keys yes.

Just a wild guess: if the parent of the .Keys() method is something else but the control you need to press a Tab key for, change the operation/code so it used this control and check if it helps.

Some pseudocode to illustrate:

var form;

var control1 = form.control1;

var control2 = form.control2;

control1.Click();

form.Keys('[Tab]'); // <== if test contains something like that change it to control1.Keys('[Tab]');

...

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
forrestaustin
Contributor

Hi Alex,

 

Thanks for the suggestion, but unfortunately I tried that and it did not work.

cancel
Showing results for 
Search instead for 
Did you mean: