On Tue, Mar 15, 2016 at 4:32 AM, Deepak Shetty <[email protected]> wrote:

> >My Application allows only one user to login/perform any operation at a
> time
> You have to determine what this actually means.
> If say you and I both access your application and we login - does this mean
> one of us gets an error ? If so , the question would be does the
> application show an error message / response code ? Then you can change the
> JMeter script to add assertions.
>
It might be that the state of the application is checked differently (like
> a separate AJAX call that disables login button when it detects that
> someone is logged in) - in which case that is what needs to be done in your
> script
>

Adding to what Deepak said, sometimes you'll get an "error message" sent
with a 200 status response. You'd see it in a browser window but unless you
had response assertions in your test plan, JMeter would tell you it's all
good.


>
> I'll also add that quite a few of these implementations do not actually
> work correctly when there are actual concurrent requests -
>

Agreed. There's a difference between something being "supported" by the app
and something not actually working at all. It could be a simple case of the
site's developers saying "we aren't going to support multiple users being
logged in to the same account at the same time" without actually knowing
what would break if it happened.


>
> regards
> deepak
>
>
> On Mon, Mar 14, 2016 at 7:57 AM, Vikash kumar <
> [email protected]>
> wrote:
>
> > Hi All,
> >
> > I m having a critical doubt/issue in Jmeter, can you help me with the
> same.
> > "My Application allows only one user to login/perform any operation at a
> > time but jmeter is able to do the same process/request multiple times
> > without throwing any error using same user credential simultaneously
>

Does your test plan try to mimic the workflow of a real user (e.g. do you
use response data extractors so that data in the response of one sampler is
sent as a parameter to a later sampler)?


> . I've
> > used record and play function of Jmeter and it is able to do the same
> > request multiple times without throwing any error which is an issue i
> > guess. I have used multiple users in my thread group that's why it is
> doing
> > same request multiple time but this opeartion using jmeter should have
> > shown in red or failed  as my application support  one user can user can
> > perform any operation at one time not simultaneoulsly"
>
>
>
> >
> > I will be really thankful if you can reply me asap.
> >
> > Thanks,
> > Vikash
> >
>

Reply via email to