Multiple logins with 1 thread jmeter in multiple loops












0















I have a scenario in which I need to test 1 user(thread) with 10 different users logins in 10 loops. For example in the first login attempt(loop) jmeter is picking username1 and executing whole test plan,in the second loop it will pick username 2 and excute the test plan.










share|improve this question























  • I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

    – Sadia Kashif
    Nov 21 '18 at 16:49











  • Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

    – Adnan
    Nov 22 '18 at 3:09
















0















I have a scenario in which I need to test 1 user(thread) with 10 different users logins in 10 loops. For example in the first login attempt(loop) jmeter is picking username1 and executing whole test plan,in the second loop it will pick username 2 and excute the test plan.










share|improve this question























  • I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

    – Sadia Kashif
    Nov 21 '18 at 16:49











  • Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

    – Adnan
    Nov 22 '18 at 3:09














0












0








0








I have a scenario in which I need to test 1 user(thread) with 10 different users logins in 10 loops. For example in the first login attempt(loop) jmeter is picking username1 and executing whole test plan,in the second loop it will pick username 2 and excute the test plan.










share|improve this question














I have a scenario in which I need to test 1 user(thread) with 10 different users logins in 10 loops. For example in the first login attempt(loop) jmeter is picking username1 and executing whole test plan,in the second loop it will pick username 2 and excute the test plan.







loops csv login jmeter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 '18 at 16:20









Sadia KashifSadia Kashif

1




1













  • I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

    – Sadia Kashif
    Nov 21 '18 at 16:49











  • Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

    – Adnan
    Nov 22 '18 at 3:09



















  • I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

    – Sadia Kashif
    Nov 21 '18 at 16:49











  • Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

    – Adnan
    Nov 22 '18 at 3:09

















I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

– Sadia Kashif
Nov 21 '18 at 16:49





I have added csv file with username and password and change the loop count to 10, is it a right way of doing it ?

– Sadia Kashif
Nov 21 '18 at 16:49













Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

– Adnan
Nov 22 '18 at 3:09





Just play with the configuration and this is pretty much basic scenario. You will figure it out and that is effective learning. BTW, your approach is correct

– Adnan
Nov 22 '18 at 3:09












1 Answer
1






active

oldest

votes


















0















  1. Add Thread Group to your Test Plan


  2. Configure it as follows:



    enter image description here




  3. Create credentials.csv file in "bin" folder of your JMeter installation and place your username/password combinations there like



    username,password
    user1,pass1
    user2,pass2
    user3,pass3
    user4,pass4
    user5,pass5
    user6,pass6
    user7,pass7
    user8,pass8
    user9,pass9
    user10,pass10



  4. Add CSV Data Set Config to your Test Plan and set it up like:



    enter image description here




  5. Replace hard-coded (recorded?) username and password with the JMeter Variables from the CSV file, the syntax is ${username} and ${password} correspondingly



    enter image description here




  6. You can add View Results Tree listener in order to see request and response details and ensure that your test is doing what it is supposed to be doing.



    enter image description here



    As you can see JMeter Variables have been replaced with their respective values from the CSV file in the runtime.








share|improve this answer
























  • Thank you Dmitri T.

    – Sadia Kashif
    Nov 26 '18 at 13:35











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416363%2fmultiple-logins-with-1-thread-jmeter-in-multiple-loops%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















  1. Add Thread Group to your Test Plan


  2. Configure it as follows:



    enter image description here




  3. Create credentials.csv file in "bin" folder of your JMeter installation and place your username/password combinations there like



    username,password
    user1,pass1
    user2,pass2
    user3,pass3
    user4,pass4
    user5,pass5
    user6,pass6
    user7,pass7
    user8,pass8
    user9,pass9
    user10,pass10



  4. Add CSV Data Set Config to your Test Plan and set it up like:



    enter image description here




  5. Replace hard-coded (recorded?) username and password with the JMeter Variables from the CSV file, the syntax is ${username} and ${password} correspondingly



    enter image description here




  6. You can add View Results Tree listener in order to see request and response details and ensure that your test is doing what it is supposed to be doing.



    enter image description here



    As you can see JMeter Variables have been replaced with their respective values from the CSV file in the runtime.








share|improve this answer
























  • Thank you Dmitri T.

    – Sadia Kashif
    Nov 26 '18 at 13:35
















0















  1. Add Thread Group to your Test Plan


  2. Configure it as follows:



    enter image description here




  3. Create credentials.csv file in "bin" folder of your JMeter installation and place your username/password combinations there like



    username,password
    user1,pass1
    user2,pass2
    user3,pass3
    user4,pass4
    user5,pass5
    user6,pass6
    user7,pass7
    user8,pass8
    user9,pass9
    user10,pass10



  4. Add CSV Data Set Config to your Test Plan and set it up like:



    enter image description here




  5. Replace hard-coded (recorded?) username and password with the JMeter Variables from the CSV file, the syntax is ${username} and ${password} correspondingly



    enter image description here




  6. You can add View Results Tree listener in order to see request and response details and ensure that your test is doing what it is supposed to be doing.



    enter image description here



    As you can see JMeter Variables have been replaced with their respective values from the CSV file in the runtime.








share|improve this answer
























  • Thank you Dmitri T.

    – Sadia Kashif
    Nov 26 '18 at 13:35














0












0








0








  1. Add Thread Group to your Test Plan


  2. Configure it as follows:



    enter image description here




  3. Create credentials.csv file in "bin" folder of your JMeter installation and place your username/password combinations there like



    username,password
    user1,pass1
    user2,pass2
    user3,pass3
    user4,pass4
    user5,pass5
    user6,pass6
    user7,pass7
    user8,pass8
    user9,pass9
    user10,pass10



  4. Add CSV Data Set Config to your Test Plan and set it up like:



    enter image description here




  5. Replace hard-coded (recorded?) username and password with the JMeter Variables from the CSV file, the syntax is ${username} and ${password} correspondingly



    enter image description here




  6. You can add View Results Tree listener in order to see request and response details and ensure that your test is doing what it is supposed to be doing.



    enter image description here



    As you can see JMeter Variables have been replaced with their respective values from the CSV file in the runtime.








share|improve this answer














  1. Add Thread Group to your Test Plan


  2. Configure it as follows:



    enter image description here




  3. Create credentials.csv file in "bin" folder of your JMeter installation and place your username/password combinations there like



    username,password
    user1,pass1
    user2,pass2
    user3,pass3
    user4,pass4
    user5,pass5
    user6,pass6
    user7,pass7
    user8,pass8
    user9,pass9
    user10,pass10



  4. Add CSV Data Set Config to your Test Plan and set it up like:



    enter image description here




  5. Replace hard-coded (recorded?) username and password with the JMeter Variables from the CSV file, the syntax is ${username} and ${password} correspondingly



    enter image description here




  6. You can add View Results Tree listener in order to see request and response details and ensure that your test is doing what it is supposed to be doing.



    enter image description here



    As you can see JMeter Variables have been replaced with their respective values from the CSV file in the runtime.









share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 '18 at 6:48









Dmitri TDmitri T

71.9k33661




71.9k33661













  • Thank you Dmitri T.

    – Sadia Kashif
    Nov 26 '18 at 13:35



















  • Thank you Dmitri T.

    – Sadia Kashif
    Nov 26 '18 at 13:35

















Thank you Dmitri T.

– Sadia Kashif
Nov 26 '18 at 13:35





Thank you Dmitri T.

– Sadia Kashif
Nov 26 '18 at 13:35




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416363%2fmultiple-logins-with-1-thread-jmeter-in-multiple-loops%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith