parameterization

View: New views
3 Messages — Rating Filter:   Alert me  

parameterization

by Vithala_Sruthi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Is there a procedure to parameterize the values in a script like more number of login ids or passwords from a file or any toher to perform the parameterization .

 

Thanks & Regards,

 

V M Sandhya Sruthi



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Re: parameterization

by Philip Aston-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vithala_Sruthi wrote:

>
> Hi,
>
>  
>
> Is there a procedure to parameterize the values in a script like more
> number of login ids or passwords from a file or any toher to perform
> the parameterization .
>
>  
>

No procedure as such, but you might like to check out the following FAQ
http://grinder.sourceforge.net/faq.html#simulating-users

- Phil


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Parent Message unknown Re: parameterization

by anil_jacob :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I did something similar recently. I needed 200 users but I didn't want to use an external file.
So I used the random module and selected numbers using randint function or randrange function then appended that to a string

self.user = test + str(randint.random(100, 300)) + '@domain.com'

Each thread gets it's own username to login with.

alternate option:

The above idea had issues because the same random number can be selected by 2 threads, hence chances of duplicate login.

So I used this

self.user = 'test' +  str(grinder.threadID) + @domain.com'

Since grinder.threadID is unique, there won't be duplicate logins.

Anil
 -------------- Original message ----------------------
From: Philip Aston <philip.aston@...>

> Vithala_Sruthi wrote:
> >
> > Hi,
> >
> >  
> >
> > Is there a procedure to parameterize the values in a script like more
> > number of login ids or passwords from a file or any toher to perform
> > the parameterization .
> >
> >  
> >
>
> No procedure as such, but you might like to check out the following FAQ
> http://grinder.sourceforge.net/faq.html#simulating-users
>
> - Phil
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> grinder-use mailing list
> grinder-use@...
> https://lists.sourceforge.net/lists/listinfo/grinder-use


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use
LightInTheBox - Buy quality products at wholesale price