scenario : there is some pages [ example home ,about us ,contact us etc] , but to visit those pages user have to first login to the system and if user enter wrong username and password then system will thorow alert. so test this condition i have used the csv config so that i can test this scenario for more than 1 user lets say 4. in the user details csv i have listed 4 users credentials [ ie username ,password] out of which 1 credential is wrong. i deliberately put the wrong credential to verify weather system is returning proper alert or not.
my test case like -
test case - thread group [ i added csv config directly uder the thread group + aggregate report listner ] -----
login controller - http login sampler [ i added assertion under login sampler and 2 listerns under login sampler , view result tree , assertion result] +
browse controller - http about us sampler-[ i added 1 listerns under login sampler , view result tree ]
After running the test case
In the thread group i have set no of thread=4 and run the test case.
i found that system has detected the wrong username +password attempt by indicating it in the red colour in the view result tree listner which was under the login sampler.but in the result tree of about us listner number of thread is showing 4 and also in the aggregate controller in the http about us sampler page no of thread is showing 4
so what i want to know that . out of the 4 threads one thread has already stopped in the login page because its credentials was wrong and without login one can not proceed to inner pages like about us ,contact us etc,then why 4 threads are showing in the about us sampler view result tree and in aggregate result . it should show 3 as 3 threads provided the valid credentials to proceed