maheshbabu.t


{ City } bengalore
< Country > india
* Profession * software test engineer
User No # 41556
Total Questions Posted # 0
Total Answers Posted # 4

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 16
Users Marked my Answers as Wrong # 40
Questions / { maheshbabu.t }
Questions Answers Category Views Company eMail




Answers / { maheshbabu.t }

Question { L&T, 34297 }

What will be the test script in QTP to test a ComboBox
where a user has to select more than two items????


Answer

Hi This Mahesh


I am sending the Descriptive Progarme see below

Function selectWebItem(webListName,ItemName,webItemIndexVal)
ClearDialogs()
strHandle = Window
("RegExpWndClass:=IEFrame","index:=0" ).GetROProperty
("hWnd")
Set gobjBrowser = Browser("hWnd:=" & strHandle)

Set gobjPage = gobjBrowser.Page("index:=1")
gobjPage.Sync
Set objDescription = Description.Create()
objDescription("Class Name").Value = "WebList"
objDescription("html tag").Value = "SELECT"
objDescription("name").Value = webListName


If gobjPage.WebList(objDescription).exist(0) Then
gobjPage.WebList(objDescription).select
ItemName
else
objDescription
("index").value=webItemIndexVal
If gobjPage.WebList(objDescription).exist
(0) Then
gobjPage.WebList
(objDescription).select ItemName
else
testPassCntr=testPassCntr+1

End if
End If
End Function

Is This Answer Correct ?    2 Yes 2 No

Question { IBM, 6034 }

how we can know qtp has used smart identification machanism
during the execution.


Answer

Hi his is Mahesh


We can enable the smart identification at time of recrding
an object,so that will captur the not only
mandatary,assistive properties but also take basefilter
properties and optional filter properties also

during the playback it an object is not identify it will
tke manadatary and Assistiive properties here not idntify
the object it start SI to identify the object with Base
filter and optional filter properties.

Is This Answer Correct ?    1 Yes 1 No


Question { IBM, 41575 }

who is the best faculty in Hyderabad for QTP?


Answer

Best faculty in Mr.Shankar in peers techonology at Ameerpet

He is thought very advanced topics like descrptive
programming and frame work ,vbscript real time approach
Plz contact him u will get good Sbuject

I think he take only one class at morn -7.30

Is This Answer Correct ?    7 Yes 37 No

Question { 24725 }

how to click the link in webpage by using QTP Script????????


Answer

Hi this Mahesh I am sending answer for Above Question

step-1

U can write normal script below

Broser(B.Name).Page(P.Name).Link(L.Name).Click
Step-2
If u write function :

Public Function ClickLink(B.Name,P.Name,L.Name)

If Browser(B.Name).Page(P.Name).Link(L.Name).Exist Then
Browser(B.Name).Page(P.Name).Link(L.Name).Click

End If
End Function

Then u Call Function


Step -3

Descriptive Programe

Function linkClick(linkName,linkIndexVal)
ClearDialogs()

strHandle = Window
("RegExpWndClass:=IEFrame","index:=0" ).GetROProperty
("hWnd")
Set gobjBrowser = Browser("hWnd:=" & strHandle)

Set gobjPage = gobjBrowser.Page("index:=1")
gobjPage.Sync
Set objDescription = Description.Create()

objDescription("Class Name").Value = "Link"
objDescription("html tag").Value = "A"
objDescription("name").Value = linkName

If gobjPage.Link(objDescription).Exist(0) Then
gobjPage.Link(objDescription).Click
else
objDescription("index").value=linkIndexVal

If gobjPage.Link(objDescription).Exist(0)
Then
gobjPage.Link(objDescription).Click
else
Print linkName&" Link not Exist"

End if
End If

End Function

Is This Answer Correct ?    6 Yes 0 No