|
From: Christian <chr...@bl...> - 2006-03-21 17:40:22
|
Hi
Can somebody answer this question?
Christian
=2D--------- Weitergeleitete Nachricht ----------
Subject: Would you please help me for jtestcase?
Date: Donnerstag 09 M=E4rz 2006 13:43
=46rom: "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=3D"userVector" type=3D"java.util.Vector">
<java.util.Vector class-type=3D"java.util.Vector"
value-type=3D"java.util.String">
<item><value>test</value></item>
</java.util.Vector>
</param>
and in Java :
Vector userVector =3D
(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?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
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=3D"VTest1" type=3D"java.util.Vector">
<java.util.Vector class-type=3D"java.util.Vector"
value-type=3D"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?
=2D-
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=3D1471766
=2D------------------------------------------------------
=2D-=20
=2D-
Dr. Christian Koelle
Lerchenberg 19 CH-8046 Zuerich
http://mypage.bluewin.ch/ckoelle
|