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

How to use output values in qtp ?

0 Answers  


I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not

2 Answers   TCS,


how to compare two excell sheets by using vbscript??

2 Answers  


Is it possible to test Flat file using QTP? I have two file- first file is Input file and second file is output file. Input file has Format like first 2 field is record type, next 10 field is Description. Output file also has format. I want to check this file format using QTP. Is it possible?? please reply with example.

2 Answers   Wipro,


What is RTM (require ment tracebulity marix) fromate?

0 Answers   Wipro,






How to retrieve the property of an object?

1 Answers  


what is the difference between link and hyper link?

1 Answers   Ordain Solutions,


Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.

3 Answers  


What is the limitation to XML Checkpoints?

1 Answers  


How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?

1 Answers   Motorola,


Can we do Load Teting with QTP?

12 Answers  


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

0 Answers   Intel, Satyam,


Categories