Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outlook automation using QTP
#1
Not Solved
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.
Reply
#2
Not Solved
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.

Reply
#3
Not Solved
@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.
Reply
#4
Not Solved
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.

Reply
#5
Not Solved
Saket , I thought the both posts were pointing to same.
If Sara query is clarified with ur reply , then its fine Smile

On the whole, you, me & all are on the same page buddy.
Reply
#6
Not Solved
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


Attached Files Image(s)
   
Reply
#7
Not Solved
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
right?
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

set WshShell = CreateObject("WScript.Shell")

WshShell.SendKeys "%(TL)"
does this help?

Reply
#8
Not Solved
My 2 cents would be exploring "DeviceReplay".
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#9
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Clicking a link in an outlook email using QTP kirti 0 5,370 06-15-2014, 01:25 AM
Last Post: kirti
  Getting Application Error while launching Outlook yogesh kancherla 3 3,067 10-29-2012, 12:17 PM
Last Post: krr
  Outlook question mv8167 1 3,062 09-09-2012, 11:46 AM
Last Post: freeboynil
  Automating Outlook PrabhatN 14 15,361 09-08-2012, 02:01 AM
Last Post: Jiju8621
  Adding attachment to Outlook Email mv8167 4 5,206 05-09-2012, 10:52 PM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 1 Guest(s)