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
How to handle the exceptions using the recovery scenario manager in qtp?
explain abt dyanamic changing object with example?
How do you know the location Id of an object if you know its index id?
How to recognise the webelement and verifying that webelement is enabled?
How can get count of list box?
What is an object repository?
What are test settings and global settings?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
When Recovery scenario actually starts while testing the application?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
What is quick test pro?
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
How does qtp identify the object in the application?
Explain how Selenium is different from UFT?