1.)
OK but counter dosnt work with file upload
"java.io.FileNotFoundException: C:\${userId}.XML"
2)
2.) JMeter doesn't evaluate the Javascript expressions in this field
why???
> OK but counter dosnt work with file upload
> "java.io.FileNotFoundException: C:\${userid}.XML"
> do you know, how it works??
I haven't used the file upload functionality of an HTTP Request yet but
it seems to me that your expression "${userid}" has not been evaluated
by JMeter.
I think
1.) either you misspelled the variable name (respect the case since in
my example I used ${userId} and not ${userid})
2.) or JMeter doesn't evaluate the Javascript expressions in this field
(which I don't think is true).
André
mara666 schrieb:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> for me the following works pretty well:
>
> 1.) Create n users within the application with name and password in
> 0..n. You may use a prefix like "user_" such that with n=1000 you
> have "user_0" to "user_1000"
> 2.) Add a Pre-Processor->Counter to the root of your Test Plan which is
> configured as follows:
> Start: 0
> Increment: 1
> Maximum: n
> Reference Name: user_id
> Do not check "Track counter independently for each user"
> 3.) In your HTTP Request you now simply use the variable ${userId} as
> your userName and password fields (with leading prefix if desired):
> userName: ${userId}
> password: ${userId}
>
> Now the threads are using the n credentials sequentially in a "modulo
> n+1 fashion".
>
> Of course, this is solely a solution for a controlled test environment
> and not for systems in productional use! The "CSV solution" would be
> most appropriate in those cases.
>
>
> André
- --
André van Hoorn
Birkenweg 21
D-26725 Emden
Telefon: +49 (4921) 954231
E-Mail: [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGpzxOLKwmE5jzZmkRAnjjAJ0bFA+M+egaTfvpzO5FEYcKHCUSOACggckX
wIXBRCec2FMaZTNU7uP1Eyo=
=0SaN
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Test-for-many-user-login-tf4136258.html#a11859421
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]