Record and Replay doesn't work, why? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Record and Replay doesn't work, why? (/Thread-Record-and-Replay-doesn-t-work-why) |
Record and Replay doesn't work, why? - xinlishang - 02-28-2010 I just tried to create an app by using Visual studio C# Forms applcaiton, QTP record doesn't work. And I tried Win7 build in calcualtor, it doesn't record also, what is wrong? Is it true that more users are using record and replay when using QTP than writting the script? RE: Record and Replay doesn't work, why? - rdemers25 - 03-03-2010 To answer your second question, the only time I use Record Playback is to find out how QTP does something (especially on harders stuff like grids). Once I get the record, then I do the actually writting of the script. The things that go wrong with Record Playback is that timing is so important. So writing the code and added .Exist and waits make it more robust. Also, Record Playback has adds no verifications (so no reason to do automation at all) RE: Record and Replay doesn't work, why? - xinlishang - 03-03-2010 If record doens't work, does it mean QTP cannot be used for this App? It is hard to believe QTP doesn't WPF. RE: Record and Replay doesn't work, why? - rdemers25 - 03-03-2010 It will work(at least while you are recording it), but maintenace on it is a pain in the butt. And in the record playback(RP) there are no verifications, no waits, and is very unreliable. you could use RP to figure out how things work, but it is more robust if you add checks so that it won't fail and get stuck. Some of the things I always add is before pressing a button on a form (i.e. OK button), I verify that the form exists, this helps from getting the script in a invalid state. Sorry I miss-read you question. are you saying when you do record back nothing happens? |