11-18-2009, 10:46 PM
Hi all!
I'm using QTP with Java plugin to test Java applications. The problem is that in one JTable I have Combo box-es (one Combo Box in every cell of one column) and they were not learned in Object Repository. I solved part of that problem by adding table toolkit under "Controls to identify as separate test object". By adding that I could record on Combo Boxes, but it wouldn't be any difference between them and I would still get error that object cannot be identified when running the test...
I've also tried this:
But although there is no error, item in combo doesn't change.
Thanks for your help!
I'm using QTP with Java plugin to test Java applications. The problem is that in one JTable I have Combo box-es (one Combo Box in every cell of one column) and they were not learned in Object Repository. I solved part of that problem by adding table toolkit under "Controls to identify as separate test object". By adding that I could record on Combo Boxes, but it wouldn't be any difference between them and I would still get error that object cannot be identified when running the test...
I've also tried this:
Code:
Set table = JavaWindow("Element").JavaTable("BoardsTable").Object
Set JTableCS = table.mic_get_supp_class()
Set comp = JTableCS.getComponentAt(table, 7, 2)
comp.setSelectedIndex(1)
comp.setSelectedItem("4")
Thanks for your help!