we have 5000 scripts in QTP. During SAP GUI version upgrade, we found that the scripts that were built before have problem in changed x & y co-ordinates for a field...So we should change all the scripts that have those x & y coordinates.. Instead of going there manually into all scripts and running the scripts, is there anyother way?...
5000 scripts. Must have been a lot of QTP programmers at some point. And using X, Y coordinates to access controls. Given this later characteristic, you might consider rewriting the scripts to eliminate this undesirable characteristic?
Anyway, if this can't be handled by modifying a small number of shared OR defs (where it probably should have been handled) then you can either use some Unix or Unix-like tools such as SED or AWK, or WildEdit from www.TextPad.com to scan through your dir structure's script.mts files (these are the files containing QTP code inside of each script Action folder), as well as all of your *.vbs lib files.
Of course before you attempt this technique you need to do a full backup and devise a regression testing strategy to confirm that you have batch edited everything correctly. Make sure to generate a detailed log of changes, should you need to later perform another batch update to fixup errors with the previous batch update, etc.