ContributionsMost RecentMost LikesSolutionsRe: Get Current Thread reference in Load TestNevermind, I found the context.ThreadIndex. Perhaps if I'd paid attention to the posting by nreimertz about the Source Forge boards being the main reference in the first place....... Get Current Thread reference in Load TestHi, Just wondering if there's a way to reference the currently executing Thread in a load test step? I'm trying to write some log messages to a file while doing a LoadTest and I don't really want to wrestle with the hassle of multiple threads trying to write to the same file. My solution was to create a separate log file for each executing Thread but am not sure how to figure out which Thread is currently executing. If anyone has any ideas on that one or if a better method of logging details from a LoadTest that would be much appreciated. Cheers PeterRe: How to call 'Format XML' programmaticallyAwesome, it worked! Thanks for your help again Ole How to call 'Format XML' programmaticallyHi again Does anyone know how to call 'Format XML' (as in the function available from the right-click menu when in a Request) programmatically? I had to populate some elements in a request using the XMLParser method defined in the user docs. Usually I would use the much simpler methods on the XmlHolder class e.g.holder["//path"] = value but because I have a complex type that has 2 same named elements in them I couldn't get work out how to write to the second element. e.g. Anyway, I successfully managed to update the values but the new XML generated puts each tag or end tag on a new line and appears to add whitespace to some of the existing values. When I 'Format XML' this is remedied but I need to be able to call 'Format XML' from within my script. If anyone can let me in on how to do this that'd be great. Cheers PeterRe: Get the current endpoint programmaticallyThanks Ole, it worked a charm!!Get the current endpoint programmaticallyHi there Does anyone know how to get the current endpoint URL programmatically? I have some scripts in a test case that are grabbing data from a database, if I modify the current endpoint for the requests in that test case obviously I also need to point to a different DB. I can easily point to another DB if I know the current endpoint but am unsure how to grab the endpoint from the code. Any help would be appreciated. Cheers PeterRe: Using user-defined java (or groovy) class in scriptHi Ole Actually I did that and while I could see in the command window that it was picking up the .jar file it still didn't recognise the object I was trying to create. Perhaps I screwed up creating my .jar, will give it another go. Thanks for your help again. Cheers PeterUsing user-defined java (or groovy) class in scriptHi there So, I'm finally getting a bit of a handle on SoapUI and Groovy. One thing (at the moment) that I'm having trouble with is using a user-defined java class in my Groovy Script. I've made a very basic class, Test.java, which just returns a string. I've compiled it and put both the .java and .class file in the \soapUI-2.0.2\bin\ext folder and imported the package in my script. When I try to run the script however it cannot resolve the new object that I created (e.g. def t = new Test()). I know that this should be doable and I'm sure I just haven't put the .class file in the right location or something like that. Can anyone shed any light on this? Cheers PeterRe: Unexpected Response from operationHey Ole Thanks for the reply. I did base my request on a "real" client-request example that I was given, but I will see if I can run the service that is being posted to in debug to see what exactly is lacking. Will keep you posted :-) PeterUnexpected Response from operationHi I am finally able to post SoapUI requests to a web service. The response returned however do not seem to be consistent with what I know should be returned. Looking at the general responses (see below) they don't appear to be expanding on the complex types that are specified in the linked schema. The operations used have been used and implemented a lot in live business applications so I'm confident they are working and returning valid data. Any ideas what the cause of this could be? Sample Response: 3ed1ff78-d30d-4a1c-827c-ec58c3e5921f 2008-02-27T04:21:49.274Z 2008-02-27T04:26:49.274Z Any help would be awesome. Cheers Peter