WAPT Forum: Authentication - WAPT Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Authentication

#1 User is offline   venkat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 04-March 08
  • Gender:Male
  • Location:india

Posted 04 March 2008 - 09:37 AM

Hi,

In my application user should be allowed to access using the user name and passward. Using WAPT 5.0 i have opted for 20 users and for 20 iteration.

My doubt is whether all the 20 users having the same username and password?????

Thanks in advance

Regards
0

#2 User is offline   angela 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 373
  • Joined: 12-February 08
  • Gender:Female
  • Location:Novosibirsk

Posted 04 March 2008 - 10:20 AM

Hello,

In order to provide an individual login for each user you can use the function "Ordered list" which enables to set different login values\passwords for different users. This function returns the first element of the list (for instance, username) for the first virtual user, the second element for the second user and so on.

For example, this function can be used to provide each virtual user with the individual user name and password.

Syntax:

$LOrder(0|1,{file_name}|value1[,{value2},…])

0 stands for iterations, 1 stands for users.

Example:

$LOrder(1,John,Mike,Bob)

It results in sending the following HTTP requests:

First virtual user:
POST /login.do
username=John&...

Second virtual user:
POST /login.do
username=Mike&...

Third virtual user:
POST /login.do
username=Bob&...

Also, you can create files with logins\passwords and use them with the above function.

You can also use "User number" function ($clid(prefix,postfix)) for this purpose. This function returns the concatenation of prefix string, the ordinal number of the current virtual user and postfix string. So you can use it if usernames and passwords have uniform structure like TestUser1, TestUser2 and so on.

For more information on using certain functions, see "Parameter Value Dynamic Calculation" topic in built-in Help.

You can add login page to Initial test sequence to set WAPT perform this operation once at the beginning of the test (Main test sequence is repeated several times equal to the number of iterations). Do not forget to remove login page from the Main test sequence.

P.S. In the attachment please see some examples of using functions and variables, and of setting different names and passwords for different users.

Attached File(s)


Angela Samsonova
Customer Support Manager
SoftLogica LLC.

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com
0

#3 User is offline   vinger 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 02-January 09

Posted 05 January 2009 - 04:30 AM

Hi,

Learn a lot here, thanks a lot first.

I've download the "DifferentUsernames_PasswordSample.zip" and "Functions_VariablesUsageExample.zip".
and I can open the "DifferentUsernames&PasswordSample.wpp",

but I can't open the 'Functions&VariablesUsageExample.wps' used the current WAPT 5.0.

would you please give any suggestion? thanks.
0

#4 User is offline   angela 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 373
  • Joined: 12-February 08
  • Gender:Female
  • Location:Novosibirsk

Posted 05 January 2009 - 01:47 PM


Hello,

Thank you! Please try the one attached.

Attached File  Functions_VariablesUsageExample.rar (588bytes)
Number of downloads: 77[
Angela Samsonova
Customer Support Manager
SoftLogica LLC.

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com
0

#5 User is offline   vinger 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 02-January 09

Posted 06 January 2009 - 03:13 AM

Thanks Angela,
It's so kind of you!
0

#6 User is offline   testing 

  • Member
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 06-May 09

Posted 07 May 2009 - 03:54 PM

QUOTE (angela @ Jan 5 2009, 01:47 PM) <{POST_SNAPBACK}>
Hello,

Thank you! Please try the one attached.

Attached File  Functions_VariablesUsageExample.rar (588bytes)
Number of downloads: 77[


still cannot open the scenario sample file.


0

#7 User is offline   alec whittington 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 21-January 11

Posted 21 January 2011 - 09:24 PM

QUOTE (testing @ May 7 2009, 08:54 AM) <{POST_SNAPBACK}>
still cannot open the scenario sample file.


Would it be too much to ask to get these files updated for WAPT Pro? None of the ones listed can be opened with WAPT Pro

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users