Gettting Context.ThreadIndex
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007
04:48 PM
08-09-2007
04:48 PM
Gettting Context.ThreadIndex
Hello,
When I type context.ThreadIndex in the soapUI groovy console and run it, I get 0.
However, If I have a external groovy file with the following function
void test()
{
context.ThreadIndex;
}
soapui throws an error
groovy.lang.missingPropertyException: No such property: context for class: GlobalFunctions
Can you please help.
Thanks
When I type context.ThreadIndex in the soapUI groovy console and run it, I get 0.
However, If I have a external groovy file with the following function
void test()
{
context.ThreadIndex;
}
soapui throws an error
groovy.lang.missingPropertyException: No such property: context for class: GlobalFunctions
Can you please help.
Thanks
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2007
05:24 PM
08-09-2007
05:24 PM
Hi,
you'll either need to pass the context as argument to your method,ie replace
void test()
{
context.ThreadIndex;
}
with
void test( context )
{
context.ThreadIndex;
}
pr you could also provide the context when constructing the above object, and save it as a class variable..
Hope this helps!
regards,
/Ole
eviware.com
you'll either need to pass the context as argument to your method,ie replace
void test()
{
context.ThreadIndex;
}
with
void test( context )
{
context.ThreadIndex;
}
pr you could also provide the context when constructing the above object, and save it as a class variable..
Hope this helps!
regards,
/Ole
eviware.com
