Thanks to all of you giving such valuable suggestions, will give a try case by case thanks.
-----Original Message----- From: Deepak Shetty [mailto:[email protected]] Sent: Wednesday, September 12, 2012 10:25 PM To: JMeter Users List Subject: Re: Performance testing - For diffrent user roles Hi you have two options (Im not considering how you structure your test case itself since other people have already responded to you) a) Let the website drive your test. i.e. when you login as user X , if the HTML returned contains function A(using regex extractor or equivalent) , then perform test for action A The major drawback of this approach is that you cannot easily use the same script for functional testing. If your website has a bug where user X does not have a role and is not supposed to be able to perform Action A , but the website still allows him to do it , then you wont be able to detect it via an assertion . b) In your CSV file where you specify username, password add additional flags that indicate whether or not the user can perform specific actions and your test script uses these fields to either execute that area of the test or not. Something like Username,Password,CanPerformActionA,CanPerformActionB,.... user1, password1,true, false,... If you want to use the same script for functional testing , then you actually need to do something like step a) as well to assert that those who can perform action A do indeed get a link/button whatever for Action A and those who cant dont get that. c. You specify the role in your data set and the intelligence of what the role can do is within your test Username,Password,Role user1, password1,admin The drawback of this approach is if the application role definitions change, your script has to be rewritten so you have unneccessary coupling between your script and your application. In the other two options you would either not have any issue or you would just modify your data file. regards deepak On Wed, Sep 12, 2012 at 3:28 AM, Samaraweera, Ravinda < [email protected]> wrote: > Dear Experts, > > Lets say I have 20 users (20 roles) with different menu functions > visible according to the user role. > > I need to load 20 different users at once to the system and access > particular menu functions in the system for a given time. > > Assume that 'Dash board' page is common to all 20 users and other > functions can see be seen only according to the use role. > > My Q is how do I control 20 users not accessing all functions (i.e. > Which is not under their role)..... > > What is the best practice to follow. > > Thanks > Chi. > > > *********************************************************************** > Disclaimer > > The information contained in this communication is confidential and may be > legally privileged. > It is intended solely for the use of the individual or entity to whom it > is addressed and others authorised to receive it. > If you are not the intended recipient you are hereby notified that any > disclosure, copying, > distribution or taking action in reliance of the contents of this > information is strictly prohibited and may be unlawful. > KPMG is neither liable for the proper, > complete transmission of the information contained in this communication > nor any delay in its receipt. > *********************************************************************** > > *********************************************************************** Disclaimer The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. KPMG is neither liable for the proper, complete transmission of the information contained in this communication nor any delay in its receipt. *********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
