Give me some scripts for 1). checking webpage links
(counting links,opening web pages,counting child elements)

Answer Posted / lkiran

Hi Rnashok,

I used similar function in my script.But getting syntax
error when I try to run the script.Let me know how to solve
it.Herez my function.....

Function eTimeSummary(hours)

rowCount = Browser("XYZ").Page("XYZ_8").WebTable
("Employee #").RowCount

cellData = Browser("XYZ").Page("XYZ_8").WebTable
("Employee #").GetCellData(1,1)

If cellData <> "Commission Information is not available
for this time period" Then

For i = 2 to 2'rowCount
hoursTotal = Browser("XYZ").Page
("XYZ_8").WebTable("Employee #").GetCellData(rowCount, 6)

If Trim(hours)= Trim(hoursTotal) Then
Reporter.ReportEvent 0, "Verifying
AssociateSummaryForODhours and eTimeSummaryhours
Total", "Summary Total Passed."
'msgbox "testpassed"
Else
Reporter.ReportEvent 1, "Verifying
AssociateSummaryForODhours and eTimeSummaryhours
Total", "Summary Total Failed."
End If
Next

End If

Browser("XYZ").Back
Browser("XYZ").Page("XYZ_4").Sync
End Function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a script to verify the image path(src property) of the images which are in web pages.

1809


what is run-time data?

1699


Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1418


Explain the differences between table and db checkpoints?

583


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

4697






What are the advantages of Object Repository?

590


How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is

6307


How you are developing the script? Using record and play back or manual?

633


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3596


what is object and child object.. explain ..if possible give some example for better understanding ..

1531


How to save your test using quicktest professional (qtp)?

599


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1965


How do know the number of browsers opened?

627


How qtp identifies objects?

570


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1429