QTP Script to get count of number of drafts,number of sent mails,number of emails in Outbox and number of deleted items in outlook application

QTP Script to get count of number of drafts in outlook application





Set a = CreateObject("Outlook.Application")



Set b = a.GetNameSpace("MAPI")



Set c = b.GetDefaultFolder(16)



msgbox(C.Items.Count)





QTP Script to get count of number of sent mails in outlook application





Set a = CreateObject("Outlook.Application")



Set b = a.GetNameSpace("MAPI")



Set c = b.GetDefaultFolder(5)



msgbox(C.Items.Count)





QTP Script to get count of number of emails in Outbox of outlook application





Set a = CreateObject("Outlook.Application")



Set b = a.GetNameSpace("MAPI")



Set c = b.GetDefaultFolder(4)



msgbox(C.Items.Count)







QTP Script to get count of number of deleted items in outlook application





Set a = CreateObject("Outlook.Application")



Set b = a.GetNameSpace("MAPI")



Set c = b.GetDefaultFolder(3)



msgbox(C.Items.Count)

No comments:

Related Posts Plugin for WordPress, Blogger...

Fun and Knowledge