Sunday 23 February 2014

QTP Runtime Error

1) subscript out of range   - max array val specified, not specified value in drop down for object

2) Object required


3) Variable is undefined  - if we not defined the variable


4) Object doesnot support this property or method

 worksheetobj.cells(2,2).font.interiorcolor=vbred

Here The object does not support the interiorcolor property.

The Correct format is : worksheetobj.cells(3,3).interior.color=vbred


5) unknown run time error


6) That commant cannot be used on multiple selections

worksheetobj.range("F2,H3").select  -  we shouldnot give more than cells address here.

The correct format is - worksheetobj.range("F2").select
we should give only one address as above



7) select method of range class failed

worksheetobj.range("F2").select


8)wrong number of arguments or invalid property assignment

-> a= Browser("Traceability matrix -").Page("Traceability matrix -").WebTable("Requirement Identifiers").getcelldata

missed the row and column number in above details.correct format is

a= Browser("Traceability matrix -").Page("Traceability matrix -").WebTable("Requirement Identifiers").RowCount(row,col)

No comments:

Post a Comment