Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Couldnt make QTP to generate a script when recording a specific column

Status
Not open for further replies.

Rad999

Technical User
Nov 15, 2006
22
CA
Hi
I am having a problem in making the script work for ONE COLUMN its a dropdown list where the tool has to go and make a selection but no script is generated when I perform action in that Column.The rest of the columns and edit fields are working fine.Can anybody pleaseee help me why I am having ths problem.Using QTP 8.2 with JavaADDIN.

Thanks
 
First add the object to your Object Repository (u can do this by ObjRep-->Add Objects button) and then manually write a step in the expert view to select a value in that object.
 
Thanks A Lot for your reply.

The object does exists in the Repository. But still the test is failing.I dont know why it is happening only to that specific column.I checked the properties of the object as well.I am getting an error message "Test could not run...."
 
Did u get a solution for this? If not could you be more descriptive about the problem and error message. I think I had the same problem and might be able to help you, if you give me more info.
 
Hi,
I was able to solve the problem by using SelectColumnHeader to set focus to that column.Below is the script.

JavaWindow("Allocation").JavaTable("Quantity:").SelectColumnHeader "COM." + vbCr + "METHOD"

JavaWindow("Allocation").JavaTable("Quantity:").SetCellData EnterRow, "COM." + vbCr + "METHOD", DataTable("p_Method", dtLocalSheet)

What was your situation and how did you solve it?Please let me know.

Thankyou.


 
The application that I was testing had many objects(lists,tables etc etc) without names, and any other conventional properties. So I had to use the Index property to uniquely identify the table and BTW using Index makes your script run faster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top