Forum Discussion

divernut's avatar
divernut
Occasional Contributor
14 years ago

C# form not holding text in textbox on replay

We have a C# developed program that when I record a test run and replay the test, testcomplete puts the numbers into the textbox but when you tab or click to another textbox on the form the numbers in the previous textbox disapears. eventually when the test is finished there is no data at all in the form. Is this a .net problem. Are apps that are developed with CodeGear work just fine. This is my first experiance with testing C# apps.

2 Replies


  • Hello Robert,





    TestComplete simulates entering text to edit controls by using either SetText (by default) or the Keys action. Most probably, the SetText action does not work with your controls properly. So, I suggest that you set the "Record text input into simple editors as" option (Tools | Options | Engines | Recording) to "Keys" and rerecord your test. 





    See the Recording Options Dialog article for more information about the option.