|
From: Fausto L. <fau...@ho...> - 2006-03-22 12:05:29
|
Hi Christian how are you ? I think this question has been answered here: http://groups.google.com/group/jtestcase/browse_frm/thread/27db08958b43066d/090f2971e849243d#090f2971e849243d Cheers, Fausto >From: Christian Kölle <chr...@bl...> >To: Jte...@li... >Subject: [Jtestcase-devel] Fwd: Would you please help me for jtestcase? >Date: Tue, 21 Mar 2006 18:38:42 +0100 > >Hi > >Can somebody answer this question? > >Christian > >---------- Weitergeleitete Nachricht ---------- > >Subject: Would you please help me for jtestcase? >Date: Donnerstag 09 März 2006 13:43 >From: "konzert" <ko...@us...> >To: ck...@us... > >Message body follows: > > >Hi, >I have the problem for using vector in jtestcase. >Do you have the solution for using vector in jtestcase? >thanks a lot. > >I set the following in test-data.xml ><param name="userVector" type="java.util.Vector"> > <java.util.Vector class-type="java.util.Vector" >value-type="java.util.String"> > <item><value>test</value></item> > </java.util.Vector> > </param> > >and in Java : > Vector userVector = >(Vector)_jtestcase.getTestCaseParameter(method, testCase, >"userVector"); > System.out.println("Is the Vector empty" + >userVector.isEmpty()); > > >But it seems that the vector is empty. >Do you know why? >================================= > Complex datatypes >2004-03-12 14:05 >The workaround for the HashTable worked fine. > >I have tried the Vector datatype and this is working fine as >well: ><param name="VTest1" type="java.util.Vector"> ><java.util.Vector class-type="java.util.Vector" >value-type="java.lang.String"> ><item>item1</item> ><item>item2</item> ></java.util.Vector> ></param> > >However, I have some questions related to the complex >datatypes: >Q1) I looked into the retrieved data for the example above >by the getTestCaseParamTypes function but I couldn't find >the information that the 'item' was a String type. >Is this information used internally only? > >Q2) I tried to change the item type to int, but in this case >nothing was returned. Does this mean that the complex >datatypes as Vector only can contain items with the datatype >String? > >Q3) Does it exist more information about complex datatypes >for JTestCase? I have seen the XType documents, but it looks >like some adjustments are needed for JTestCase. > >Q4) Is it in principle possible to nest any complex >datastructures into any depth? > > >-- >This message has been sent to you, a registered SourceForge.net user, >by another site user, through the SourceForge.net site. This message >has been delivered to your SourceForge.net mail alias. You may reply >to this message using the "Reply" feature of your email client, or >using the messaging facility of SourceForge.net at: >https://sourceforge.net/sendmessage.php?touser=1471766 > >------------------------------------------------------- > >-- >-- >Dr. Christian Koelle >Lerchenberg 19 CH-8046 Zuerich >http://mypage.bluewin.ch/ckoelle > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 >_______________________________________________ >Jtestcase-devel mailing list >Jte...@li... >https://lists.sourceforge.net/lists/listinfo/jtestcase-devel _________________________________________________________________ Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/ |