Ask a Question

Text capture and input the text during playback.

nn
Occasional Contributor

Text capture and input the text during playback.

Test Complete during recording does not capture the text typed into my desktop application. I am new to the tool, I have seen it capture the text a week ago but not anymore. 

Also since I do not see the text in the Value field, I do not see that value entered during playback.

4 REPLIES 4
tristaanogre
Esteemed Contributor

What is the application platform? What code is it written in? Does it record anything, at least the "Keys" method and the parameter is blank? 

 

You can edit the recording after the fact and fill in the value fields manually.  In fact, this is a best practice.  It is generally not a good idea to rely, purely, on what is recorded.  It's a good way to start creating a test case, but manual edits, updates, etc., are pretty much required in order to make sure a test case is robust and stable.  

 

While this does not address the problem with the text not recording, there is a sufficient work around until we get more information about what you're attempting to test.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
nn
Occasional Contributor

The application is in .net C# . It does not record the "Keys" method for that one step.

Example: 1. Clicking on a text box is recorded.

2. Entering the first name in the text field is not recorded.

 

TextBoxMaskBox Click ... Clicks the 'TextBoxMaskBox' object.(RECORDED)

searchFirstname SetText "sam" Enters text in the text editor.(DOES NOT RECORD)

 

i manually added the 'searchFirstname' step and now the test runs. No changes made and every other time the same test that passed does fail. Why should it fail every other time? Does TestComplete need time before the next run? Also why is it missing the recording of a step?

nn
Occasional Contributor

 
tristaanogre
Esteemed Contributor

i don't have an answer as to why it didn't record.  One thing is that there may be some processing or something that needs to complete between steps to make sure that the process records.

 

As to why sometimes it fails and sometimes it passes.... again, this goes back to what I mentioned about modifications to the test after recording.  I'm guessing that the problem is related to timing.  That the field in question may not be 100% ready for the input.  It would be good to know what the actual error message is as to what the solution would be to solve it.  But generally, there usually is a need to put some sort of wait or delay in the code to prepare for the field to be ready.  You could also increase the Auto-wait timeout in the environment to make sure that you wait sufficient time.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: