h.manjunatha


{ City } bangalore
< Country > india
* Profession * software testing engineer
User No # 98463
Total Questions Posted # 0
Total Answers Posted # 2

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

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Questions / { h.manjunatha }
Questions Answers Category Views Company eMail




Answers / { h.manjunatha }

Question { IBM, 8596 }


in my database haveing 3X3 (manas having 3 rows 3 colums) i
want to test only (2nd row 3colum) bit how to test either
script or any automation plz explain? (Chandana)


Answer

ple try this.

set c=createobject("ADODB.connection")
c.open "name of DB"
set r=a.execute("select * from emp(table name))
for i=0 to r.fields.count-1
print r(i).value 'r(6) for 3x3 matrix hard coded value
next
c.close
Name:Manjunatha.H
My no:8970870702

Is This Answer Correct ?    0 Yes 0 No

Question { Wipro, 4550 }

How to perform action on objects, If two objects have the
almost the same name ?

example :
Object 1 : "Entry of Items"
Object 2 : "Items"

Whenever I ask QTP to perform an action on Object 2 it
performs action on Object 1.

Note: The two objects are present in an Oracle Application
tree.


Answer

Just u can use Location or Index ordinal identifier. Then
QTP easily identified the object.
EX: B().P().webbutton("name:=Entry of
items","Location:=0").click
OR
B().P().webbutton("name:=Entry of items","index:=0").click

Is This Answer Correct ?    0 Yes 0 No