Forum Discussion
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?
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.
Related Content
- 5 months agommaloney