Forum Discussion
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.
- nn6 years agoOccasional 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?
- nn6 years agoOccasional Contributor
- tristaanogre6 years agoEsteemed 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.