On 11 June 2011 08:49, Bruce Ide <flyingrhenqu...@gmail.com> wrote: > I have to test a web resource that has a "feature" of only allowing one > log-in at a time. If someone else logs in with the same user ID, the first > session will get kicked out. > > Can't think of a good way to do this in jmeter, since any number of tests > could access the resource.
Do you really mean tests? If so, don't run multiple JMeter instances, or ensure they use different user ids. If you mean multiple threads can access the resource, then the same applies - ensure each thread uses its own user ID. This is easy to do - search the archives. > So I rolled a quick and dirty proof of concept > webapp to hide the actual resource behind a mutex semaphore. It uses Ruby, > Sinatra and haml to render a form. If you're interested in the code, you can > find it at > https://github.com/FlyingRhenquest/WebMutex. > > It's not very pretty but initial testing looks promising. I'll have to throw > together a jmeter test to exercise it in the morning. > > -- > Bruce Ide > flyingrhenqu...@gmail.com > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org