I am facing problem in simulating a scenario where in all concurrent virtual clients performing the same action with a constraint that the server used to have a unique session id for every client request.
The only problem I am facing is to associate the session id with the 'ThreadNum' (which has the control over the virtual client) and to make sure all the threads(vc) perform the same action at the same time.
Re: Concurrent users
You can assign a unique session id to every thread by parsing it out of the page that sets it. It is supposed to be handled automatically with the AAT tool but if its not, the steps to parse are below. Also, you can contact radview's support (who walked me through it really well)
1. save all the log files of a test by setting the enable log report option in the console, session control, current session options, diagnostic tab. These html log files will be found at C:\Program Files\Radview\Webload\log and there will be an html file that corresponds to each Get or Post.
2. locate the first HTML log file that contains the session id value. This is most likely set after the login (if there is one)
3. In the agenda set the savesource property to yes. This will save the html source for the next Get or Post as one long continuous string. After the Get or Post that first sets the value, use a regular expression to parse through that string to dynamically find the value.
4. set the value to a variable and set that variable throughout the rest of the script. For example:
wlHttp.SaveSource = "Yes"
pageSource = document.wlSource
//document.wlSource is the source as a string
pattern = /reg exp that finds value/
result = pageSource.match(pattern)
Re: Concurrent users
I am also experiencing the same problem.
I tried with another anology too.
I'll make all the threads to hit the server and capture all the session id's and then i'll make a post string with different session id's threads and snchronizing all the threads to hit at once.
Though it looks convinient, capturing individual session id while all the threads running seems to be impossible.
appreaciate ur help.