From: sujata j. <suj...@gm...> - 2005-11-30 09:49:14
|
Hi Timothy, Thanks a lot for the response. I am using jdk1.3 compiler. I tried giving the path as [Explorer [Presentation], Portlets, testcat1] ,[Portlets, testcat1] and also tried [testcat1], I get Error: java.lang.IllegalArgumentException: No matching method actionSelectRow with return type void and 3 arguments found in class abbot.tester.JTreeTester any idea? On 11/30/05, Timothy Wall <tw...@us...> wrote: > > > On Nov 29, 2005, at 5:58 AM, sujata jakate wrote: > > > Hi all, > > The application which I am testing has a JTree containg a list of > > portlets. Abbot is recording these portlets by taking their index > > into consideration , but I want to check if a particular portlet > > exists or not by using its name and not by its index. > > > > My script contains something like this : > > > > <action args=3D"JTree Instance,10" class=3D"javax.swing.JTree" > > method=3D"actionClickRow" /> > > means its clicking on 10 th portlet. > > > > I tried the following: > > <action args=3D"JTree Instance," testcat1 "" > > class=3D"javax.swing.JTree" method=3D"actionSelectRow" /> > > > > where testcat1 is my portlet name, by I get an exception saying > > "can't convert "testcat1" to int. > > Anybody have any idea? please help. > > When specifying "values" for trees, you need to provide the tree > path, which looks like this: > "[root, node, leaf]". The root may be omitted if it is not visible. > So in your case, you need, at a minimum, "[testcat1]". Usually > recording will prefer a string value over a numeric index. > > Timothy Wall > http://abbot.sf.net > > > |