my assignment is,how can i differentiate between readed &
unreaded mails in my inbox ?, since for both readed &
unreaded having same properties for both test objects &run
time objects

Answers were Sorted based on User's Feedback



my assignment is,how can i differentiate between readed & unreaded mails in my inbox ?, sinc..

Answer / tvs ramakrishna chowdary

ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B"
htmal tag="SPAN"
mail info generally as a webelement

set myreadwe=description.create
readwe("html tsg").value="B"
set myunreadwe=description.create
myunreadwe("html tag").value="SPAN")

all these read and unread mail web elements present in the
same frame underhierarchy as follows

cntread=browser(Gmail - Inbox (1) - krishnat.q).page(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myreadwe)

cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myunreadwe)

msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread

Is This Answer Correct ?    1 Yes 0 No

my assignment is,how can i differentiate between readed & unreaded mails in my inbox ?, sinc..

Answer / tvs ramakrishna chowdary

ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B" 'for to count unread mails
htmal tag="SPAN" ' for to count read mails
mail info generally as a webelement

set myunreadwe=description.create
myunreadwe("html tsg").value="B"
set myreadwe=description.create
myreadwe("html tag").value="SPAN")

all these read and unread mail web elements present in the
same frame underhierarchy as follows

cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myunreadwe)

cntread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myreadwe)

msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script

18 Answers   IBM,


How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large

2 Answers  


Hi This is tanya actually im facing problem in Qtp actully some time QTP doesnot recoznise the recorded object due to which script is going to fail.so can you tell me how we can handle this situation and i have another concerened issue is that at the time of run New errors comes every time so how we can handle this sitauation how we can add Recovery scenarios to the script.some time application runs successfully and some time it produces new error thats why i am facing lot of problem please give me the sugeestion as soon as possible.

2 Answers  


How to make arguments optional in a function?

6 Answers   Liquid Crystal,


What are the views available in quicktest professional (qtp)?

0 Answers  






in Qtp,how to display user name and pwd (script)in data table(global sheet).

2 Answers  


How to handle Java tree in QTP?

0 Answers  


What type of VB script u had done in expert view?

1 Answers  


How can we use the "CreateObject("Wscript.Shell")" in QTP and what is the definition and purpose of it?

2 Answers  


What are the different recording modes?

0 Answers  


draw the qtp frame work?

0 Answers  


What is the basic concept of quicktest professional?

0 Answers  


Categories