Thanks Charles - this looks like just what I need. I'll give it a try. Don Morrison
Charles P Wright/Watson/IBM To 07/06/2007 11:14 Don Morrison/Rochester/[EMAIL PROTECTED] AM cc sipp-users <sipp-users@lists.sourceforge.net>, [EMAIL PROTECTED] e.net Subject Re: [Sipp-users] How to code variable length pause range (Document link: Don Morrison) Don, I have committed some changes that allow you to achieve this functionality. The basic flow is that the [field0] is read into a newly string variable type ($1). $1 is then converted to a double value ($2) [new functionality]. To perform the random sampling, the existing sample action is used with a uniform distribution from zero to one into $3. Finally, $3 is multiplied by $2 [previously you could only add, subtract, multiply, and divide by constants], so you have a double value that is uniformly distributed between zero and [field0]. You can then use this value as the input to a pause command. Sample XML, with some additional logging so that you can track what is going on is below. <nop> <action> <log message="[call_id]: Started at [clock_tick]" /> <assignstr assign_to="1" value="[field0]" /> <todouble assign_to="2" variable="1" /> <sample assign_to="3" distribution="uniform" min="0" max="1" /> <log message="[call_id]: Uniform (0, 1): [$3] * [field0]" /> <multiply assign_to="3" variable="2" /> </action> </nop> <pause variable="3" /> <nop> <action> <log message="[call_id]: Paused until [clock_tick]" /> </action> </nop> Charles -- Dr. Charles P. Wright Research Staff Member Network Server Systems Software IBM T.J. Watson Research Center [EMAIL PROTECTED] wrote on 07/05/2007 12:32:44 PM: > > I'd like to program a pause that has a variable range. My problem is that I > can't figure out how to get the variable into the pause statement. I can > set the value of [field0] from a csv file (I verified it by echoing it > out). So here is the most obvious way to set the pause range > > <pause distribution="uniform" min="0000" max="[field0]"/> > > But I get a "Scenario command not implemented" error message. So I try to > assign it to a numbered variable first: > > <nop><action><assign assign_to="1" value="[field0]"/></action></nop> > <pause distribution="uniform" min="0000" max="$1"/> > > This throws the same error. What is the right way to accomplish this? > Thanks > > Don Morrison > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Sipp-users mailing list > Sipp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sipp-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users