Answer for question num 1
Browser("Micclass:=Browser").Page("Micclass:=Page").WebEdit("name:=Email").Set
"<Email>"
Browser("Micclass:=Browser").Page("Micclass:=Page").WebEdit("name:=Passwd").Set
"<Pwd>"
Browser("Micclass:=Browser").Page("Micclass:=Page").WebButton("name:=Sign
in").Click
Browser("Micclass:=Browser").Sync
rowcount =
Browser("Micclass:=Browser").Page("Micclass:=Page").Frame("html
id:=canvas_frame").WebTable("class:=F cf zt").RowCount
For currentrow = 1 to 10'rowcount
mailsubject =
Browser("Micclass:=Browser").Page("Micclass:=Page").Frame("html
id:=canvas_frame").WebTable("class:=F cf
zt").GetCellData(currentrow,3)
If mailsubject = "Naukri.com" Then
Set oChkbox =
Browser("Micclass:=Browser").Page("Micclass:=Page").Frame("html
id:=canvas_frame").WebTable("class:=F cf
zt").ChildItem(currentrow,1,"WebElement",0)
oChkbox.Click
End If
Next
On Tue, Apr 10, 2012 at 3:24 AM, udaykumar vutukuru <[email protected]>wrote:
> Hi Friends
>
> Yesterday i faced these questions in an interview.
>
> 1) Gmail application is there. On that Inbox so many mails are there
> including naukri mails. On those mails I can select the only naukri
> mail checkboxes? Write the descriptive code for this?
> 2) what s regular expression? [email protected] Apply regular expression for
> this?
> 3) What s recovepare the test scripts in u r project?
> 4) If an object s not identified by the tool? At the time what u will
> do? Write the code for this ?
>
>
> Pls Reply with answers.
>
> Thanks & Regards,
>
> Uday
>
>
> On 4/9/12, Anish Pillai <[email protected]> wrote:
> > Hi Madhavi,
> >
> > QTP Smart Identification is some sort of algorithm in QTP where if you
> try
> > to find an object in a page which is not available currently, then QTP
> will
> > try to see if it can find some similar objects using the Smart
> > Identification algorithm. This way QTP will return the closest matching
> > object to you.
> >
> > Example: Suppose you go to the park and there you see a black Labrador
> dog.
> > When you go there again the next day, you see a black German Shepherd
> dog.
> > In terms of QTP Smart Identification Algorithm, since it doesn't find the
> > Labrador but sees a German shepherd (which is black and is a dog with 4
> > limbs, etc etc), QTP would return the German Shepherd as the closest
> found
> > match.
> >
> > *A very good example for this can be found in Google Search Results.
> Refer
> > the attached word doc for more details..*
> >
> >
> > *
> > Cheers,
> > a n i s h
> >
> > [QTP
> > Tutorial]<
> http://www.automationrepository.com/tutorials-for-qtp-beginners/>|
> > [VBScript
> > Tutorial]<
> http://www.automationrepository.com/category/qtp-and-vbscript-tutorials/>|
> > [QTP
> > Blogs] <http://www.automationrepository.com/qtp-blogs/>
> >
> > **
> > [** Subscribe to Get New Posts in your Inbox
> > **]<
> http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds
> >
> >
> > *--
> > ar
> >
> > --
> > You received this message because you are subscribed to the Google
> > "QTP - HP Quick Test Professional - Automated Software Testing"
> > group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/MercuryQTP?hl=en
> >
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
--
--
"You Can Do It if You Believe You Can!"
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en