Hi Paul, I've no idea if the problem comes from file names. I tried as you suggested removing the "./" and with the -user_inf (the command for provisioning users to the scenario) I had no problems, it works fine because I use it with pools. The problem is with the other file injection, the one with "-inf", in the scenario file i can't load data fields in any way even if I try with the filename or path/filename or other combinations (ex [field1 file="10location.csv"]).
At this point, I think there is a difference from loading external data in SIPp and in SIPp used in IMS Bench: - in the SIPp documentation it doesn't mention anything about the "-user_inf" command and about users preloaded before scenario starts, the only file injection is the one with "-inf" http://sipp.sourceforge.net/doc/reference.html#inffile - in the IMS Bench documentation the only file injection explained is the one with the "-user_inf" command, BUT in the command list it mentions "-inf" without any explanation about how the read file fields http://sipp.sourceforge.net/ims_bench/reference.html#Online+help+%28-h%29 In my opinion, in IMS Bench, you can load data only from a file per scenario.. but I hope to be wrong on this. Thanks, Francesco 2010/7/8 Paul D.Smith <paul.d.sm...@metaswitch.com>: > Francesco, > > Are you having trouble because of the filename? I suggest you try removing > the "./" from your filenames. > > Let me try and explain. Let's say you have a directory structure > > ./a/scripts > ./b/csvfiles > > and you try to run from the scripts directory doing... > > sipp ... -inf ./b/csvfile/csvfile1.csv > > then in your script you write... > > [field0 file="csvfile1.csv"] > > WRONG: There is a table of "inf" filenames and "./b/csvfile/csvfile1.csv" and > "csvfile1.csv" are different so you can't read this file in your script. > > Also, > > sipp ... -info ~/csvfile1.csv > > and > > [field0 file="~/csvfile1.csv"] > > won't work either because the shell will expand the tilda but sipp won't so > again, the filenames won't match! > > I suspect the shell expands the "./" to a directory name, but sipp doesn't! > > I can be quite tricky to get this right and the documentation is woeful - I > had to read the code to figure this out but once I realised what was going > on, it wasn't too bad. > > Paul D Smith > > -----Original Message----- > From: francesco [mailto:francesco.fi...@gmail.com] > Sent: 07 July 2010 17:28 > To: sipp-users@lists.sourceforge.net > Subject: [Sipp-users] problems injecting values from an external CSV > > Hi there! > > I'm using IMS Bench with some custom scenarios loading my users from a > CSV file with the command "-user_inf" and everything works fine. > My problem is that I can't load some other values from a second CSV > file with the command "-inf" specifying fields like this [field0 > file="10location.csv"], I can get only values from the user_inf file, > in my case from pool="2". Any idea of how to inject values from > different files? > > this is my sipp command: > ../sipp 127.0.0.1:4060 -id 1 -i 127.0.0.1 -user_inf ./10user -inf > ./10location.csv -rmctrl 127.0.0.1:5000 -trace_msg -trace_err > -trace_cpumem -trace_scen -trace_retrans -aa > > this is the scenario: > ... > <!-- *** STEP 1 *** --> > <!-- This is a scenario preparation step. It involves: > --> > <!-- * Selecting a local user from a suitable pool > --> > <nop> > <action> > <assign_user pool="2" scheme="rand_uni"/> <!-- Select user from > 'Registered' pool --> > </action> > </nop> > > <!-- *** STEP 2 *** --> > <!-- Now that our preparation steps are done, we wait for the time > when the call must --> > <!-- actually start, according to the scenario arrival distribution. > --> > <sync crlf="true"> > <action> > <exec int_cmd="set_start_time"/> <!-- We remember our actual > start time --> > </action> > </sync> > > <!-- *** STEP 3 *** --> > <!-- Now the SIP scenario really starts --> > <!-- pubblico un'altra presenza --> > > <send retrans="500" start_rtd="1" clen_random="uniform:0,140"> > <![CDATA[ > > PUBLISH sip:[fiel...@[field1] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch] > Route: [$u1] > To: "[field0]" <sip:[fiel...@[field1]> > From: <sip:[fiel...@[field1]>;tag=[call_number] > Call-ID: [call_id] > CSeq: 20 PUBLISH > Max-Forwards: 70 > User-Agent: messaggioloc > Content-Disposition: render;handling=required > Expires: 3600 > Event: presence > Content-Type: application/pidf+xml > Content-Length: 466 > > <?xml version="1.0" encoding="UTF-8"?><presence > xmlns="urn:ietf:params:xml:ns:pidf" > xmlns:im="urn:ietf:params:xml:ns:pidf:im" > entity="sip:[fiel...@[field1]"><tuple > id="messaggioloc"><status><basic>open</basic></status><note>Available</note></tuple><device > id="[field0]"><timestamp>101010</timestamp><captured>9</captured><status>On</status><deviceID>[field0]</deviceID><nord>[field0 > file="10location.csv"]</nord><est>[field1 > file="10location.csv"]</est></device></presence> > > ]]> > </send> > ... > > Thanks, > Francesco > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Sipp-users mailing list > Sipp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sipp-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users