1) I think there might be a problem with that particular config element - it does not seem to handle any functions, not even __machineName() (which is about the simplest there is!). And I could not find the element in the menus for JMeter 1.9.1, yet it does not appear to be new.
Looks as though Java config defaults works with functions; I've not tried the rest of the config elements. Try the Pre-Processor User Parameters instead - there is no need to use more than 1 User column. 2) Don't know. S. ----- Original Message ----- From: "Sonam Chauhan" <[EMAIL PROTECTED]> To: "'JMeter Users List'" <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004 4:28 AM Subject: Experience using __counter I am using the 'SOAP/XML-RPC Request' sampler to test a B2B server that must see a unique XML purchase order number each time. A snippet of the XML looks like this: ------------------------------------------- <Order> <OrderHeader> <OrderNumber> <BuyerOrderNumber>UNIQUE_PO_NUMBER... ------------------------------------------- I tried to use the __counter function to generate a unique PO number. The user manual says a Config element field can be used for this: ------------------------------------------- "Built-in functions can be written into any field of non-controller test components. This includes Samplers, Timers, Listeners, Modifiers, Assertions, and Config Elements." http://jakarta.apache.org/jmeter/usermanual/functions.html ------------------------------------------- My first attempts were to use Config elements (e.g.: 'User Defined Variables') to initialize a counter. Creating entries with name and/or values set to: ${__counter(FALSE,ctr)} did not work - ${ctr} stayed unsubstituted. It finally worked when I used the __counter function directly in the XML-RPC sampler's data section like below: ------------------------------------------- <Order> <OrderHeader> <OrderNumber> <BuyerOrderNumber>${__counter(FALSE,ctr)}... ------------------------------------------- Once the XML-RPC sampler got executed, I could then refer to ${ctr} elsewhere in the testplan. I had a couple of questions and would love some feedback: 1. Can __counter be initialized in a config element? 2. Can the XML I submitted in the 'SOAP/XML-RPC Request' sampler be loaded up from a file? (ReadStringFromFile would With regards, Sonam Chauhan -- Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Fax: 9335-0753, Email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]