2
votes

How to check Multiuser and single user Autologin Load test in my website..

I have studied the tutorial but I don't understand it. Below are the steps that I follow..

Test->Add->Theard Group ->Recording Controller
Test->Add->Config Element->HTTP Request Default
Test->Add->Config Element->HttpCookie Manager
Workbench->Add->NonTestElement->Http(s)Test Script Recorder

I set Httpdomain name->adda52.org, http sampler settings and add exclude patterns in Step 4 and then start. After that I set the browser setting proxy server and run login our site..

Everything is going fine.

Then I add view result and see that the result of each request is fine. Then I pass a dynamic session value by using the following steps:

under Recording controller->login page->add->Post Processer->Regular expression extractor add under reference

name salt (This is my session id) Regular Expression name="salt" value="(.*?)" /> Match No 1 Default value = session Not found

and then set this session value is my after login page like this : ${salt} and run our script session value is showing on my post data.

My question is

Is my script is correct? if yes then
    After login I cannot see on profile page in Response data in View Result trees they are showng blank page ?
How can I make my script to auto login on multiple users and single user?
How can I check load on my site and where

please provide me step and how to check.?

1

1 Answers

2
votes

Follow these steps carefully:

  1. List item

       test plan->Add->Thread(user)->Thread group
       thread group->Add->config element->HTTP Request Defaults
       thread group->logic controller->recording controller
    

    Workspace->Add->non-test element->http test script recorder

  2. start your plan & record it.after successful creating of test plan do the following steps: add the csv data set config in your test plan Thread group->add->config element->csv data set config

  3. in csv data set config file give the parameter values like : in filename:-give your csv file path & in variable name pass the variable as:username,password

  4. in your test plan check the login file in that file change the static values username as "${username}" & password "${password}"

  5. pass the different values in csv file & before start the test plan change the number of thread you want run