Outlook automation using QTP - 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: Outlook automation using QTP (/Thread-Outlook-automation-using-QTP) |
Outlook automation using QTP - sara0710 - 10-14-2009 I Want to automate outlook operations. Basically it recognizes the QTP objects but with co ordinates. For example : For a button object, the click property has coordinates instead of name. Do I need to change any QTP settings to record the object with the name of the object. RE: Outlook automation using QTP - Saket - 10-14-2009 Check Object identification settings, go to tools > object identification Select environment - and then select your test object check what mandatory properties are assigned with your test object. you can change this setting using add/remove button there. RE: Outlook automation using QTP - sreekanth chilam - 10-14-2009 @Saket,Sara : hope this post is already posted by 'pbrqtp' in the same "QTP beginners" group. So it would better to follow the same post instead of creating duplicate thread. RE: Outlook automation using QTP - Saket - 10-14-2009 Thanks for pointing out Sreekanth - I agree that the queries are on Outlook automation but I dont feel this is a duplicate thread as the query asked by pbrqtp is somthing related to recording issue and the query which sara0710 has raised is objet identification issue. In this thread the original poster is able to record the application whether it is not in the other thread. let me know if I am wrong some where. RE: Outlook automation using QTP - sreekanth chilam - 10-14-2009 Saket , I thought the both posts were pointing to same. If Sara query is clarified with ur reply , then its fine On the whole, you, me & all are on the same page buddy. RE: Outlook automation using QTP - sara0710 - 10-25-2009 Hi, I have tried your solution and it is also not working. I see the same behaviour Goto Tools->Rules and Alerts Select Rules wizard and select any item "move messages with specific words in subject in a folder" Apply this rules to inbox folder. In the above scenario, the items under the windows "Rules and Alerts" and 'Rules Wizard", the specific items can not be recognized as objects. It is very complex to recognize the objects in outlook in such scenarios. Is there any other add-ins required to identify all objects. Also the behaviour of menu items in OL2003 and OL2007 is different, when trying to record using QTP. I have attached screen shots RE: Outlook automation using QTP - Saket - 10-26-2009 which object in outlook is not recognised, do you mean to say when you click Tools>Rules and Alerts in record mode ,it records the statement with co-ordinates? something like Code: Window("Microsoft Outlook").Window("Tools").Click 47,60 QTP does not recognise context menu, this is the reson you are getting the statements with co-ordinates, but Yes there could be different ways of handling this in QTP, one of the way could be use the shortcut keys using Sendkeys method. see the code below Code: Window("Microsoft Outlook").Activate RE: Outlook automation using QTP - basanth27 - 10-26-2009 My 2 cents would be exploring "DeviceReplay". RE: Outlook automation using QTP - sara0710 - 10-29-2009 Hi Thanks for your response. I will explore your solution and let you know. Meantime, can you please tell me what other options do we have to work around this ? Is id possible for you to let me know Thanks Saravanan |