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
write a script to verify the image path(src property) of the images which are in web pages.
what is run-time data?
Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com
Explain the differences between table and db checkpoints?
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?
What are the advantages of Object Repository?
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
How you are developing the script? Using record and play back or manual?
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?
what is object and child object.. explain ..if possible give some example for better understanding ..
How to save your test using quicktest professional (qtp)?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
How do know the number of browsers opened?
How qtp identifies objects?
Thanks....But can u tell me how i use the QTP for GIS with one Example...