You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by karthikeyan T <tk...@gmail.com> on 2016/10/07 14:37:50 UTC

Jmeter test for OTP enter process

Hello Everyone,

We have a webapplication that have two authentications, one is with normal
username and password, second one is with OTP enter process. For this user
has to register their mobile phone numbers, so that they can receive OTP
via TEXT or VOICE.

1. May i know, how to do jmeter test for this kind of scenarios?
2. I have no idea, how to automate the OTP enter process via Jmeter
(because the OTP will be received in mobile devices). Does anyone come
across with same scenario and any idea of how to do it?

Thanks in Advance :)

Re: Jmeter test for OTP enter process

Posted by karthikeyan T <tk...@gmail.com>.
Thank you very much :)

On Sun, Oct 9, 2016 at 1:26 PM, Sergio Boso <se...@bosoconsulting.it>
wrote:

> I can see two other workaround.
> The simplest is asking your software people to skip OTP checking in Q&A
> environment. This way you enter a fixed OTP.
> The second one is use email instead of SMS, that is an option that many SW
> have. The cost here is that you have to setup a mailbox for each user,
> which can be an heavy task to perform.
> The good side is that it is quite easy to use the Jmeter POP /IMAP sampler
> and get the data.
> Regards
>
> Sergio Boso
>
> Il 08/Ott/2016 10:33, "karthikeyan T" <tk...@gmail.com> ha
> scritto:
>
> Thank you so much for your reply.
>
>
> On Fri, Oct 7, 2016 at 11:59 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
> > You are effectively asking the question - How do I receive an SMS message
> > using java (Atleast for the text  part) ?
> >
> > There are some commercial and some free code out there (e.g.
> > https://sourceforge.net/projects/asimplesmssende/?cm_mc_uid=
> > 50810133125414708629625&cm_mc_sid_50200000=1475864721)
> > but it will need setup - you can search on Google
> > Once you have a working java program , you should be able to change your
> > script to poll for the SMS and then use it
> >
> > Usually however the developers have to put in a backdoor for your test
> > (i.e. there is someway for the test program to determine what the code is
> > and use it) to avoid the kind of setup that you need
> >
> > regards
> > dee[al
> >
> >
> >
> > On Fri, Oct 7, 2016 at 7:37 AM, karthikeyan T <tk...@gmail.com>
> > wrote:
> >
> > > Hello Everyone,
> > >
> > > We have a webapplication that have two authentications, one is with
> > normal
> > > username and password, second one is with OTP enter process. For this
> > user
> > > has to register their mobile phone numbers, so that they can receive
> OTP
> > > via TEXT or VOICE.
> > >
> > > 1. May i know, how to do jmeter test for this kind of scenarios?
> > > 2. I have no idea, how to automate the OTP enter process via Jmeter
> > > (because the OTP will be received in mobile devices). Does anyone come
> > > across with same scenario and any idea of how to do it?
> > >
> > > Thanks in Advance :)
> > >
> >
>

Re: Jmeter test for OTP enter process

Posted by Sergio Boso <se...@bosoconsulting.it>.
I can see two other workaround.
The simplest is asking your software people to skip OTP checking in Q&A
environment. This way you enter a fixed OTP.
The second one is use email instead of SMS, that is an option that many SW
have. The cost here is that you have to setup a mailbox for each user,
which can be an heavy task to perform.
The good side is that it is quite easy to use the Jmeter POP /IMAP sampler
and get the data.
Regards

Sergio Boso

Il 08/Ott/2016 10:33, "karthikeyan T" <tk...@gmail.com> ha scritto:

Thank you so much for your reply.


On Fri, Oct 7, 2016 at 11:59 PM, Deepak Shetty <sh...@gmail.com> wrote:

> You are effectively asking the question - How do I receive an SMS message
> using java (Atleast for the text  part) ?
>
> There are some commercial and some free code out there (e.g.
> https://sourceforge.net/projects/asimplesmssende/?cm_mc_uid=
> 50810133125414708629625&cm_mc_sid_50200000=1475864721)
> but it will need setup - you can search on Google
> Once you have a working java program , you should be able to change your
> script to poll for the SMS and then use it
>
> Usually however the developers have to put in a backdoor for your test
> (i.e. there is someway for the test program to determine what the code is
> and use it) to avoid the kind of setup that you need
>
> regards
> dee[al
>
>
>
> On Fri, Oct 7, 2016 at 7:37 AM, karthikeyan T <tk...@gmail.com>
> wrote:
>
> > Hello Everyone,
> >
> > We have a webapplication that have two authentications, one is with
> normal
> > username and password, second one is with OTP enter process. For this
> user
> > has to register their mobile phone numbers, so that they can receive OTP
> > via TEXT or VOICE.
> >
> > 1. May i know, how to do jmeter test for this kind of scenarios?
> > 2. I have no idea, how to automate the OTP enter process via Jmeter
> > (because the OTP will be received in mobile devices). Does anyone come
> > across with same scenario and any idea of how to do it?
> >
> > Thanks in Advance :)
> >
>

Re: Jmeter test for OTP enter process

Posted by karthikeyan T <tk...@gmail.com>.
Thank you so much for your reply.


On Fri, Oct 7, 2016 at 11:59 PM, Deepak Shetty <sh...@gmail.com> wrote:

> You are effectively asking the question - How do I receive an SMS message
> using java (Atleast for the text  part) ?
>
> There are some commercial and some free code out there (e.g.
> https://sourceforge.net/projects/asimplesmssende/?cm_mc_uid=
> 50810133125414708629625&cm_mc_sid_50200000=1475864721)
> but it will need setup - you can search on Google
> Once you have a working java program , you should be able to change your
> script to poll for the SMS and then use it
>
> Usually however the developers have to put in a backdoor for your test
> (i.e. there is someway for the test program to determine what the code is
> and use it) to avoid the kind of setup that you need
>
> regards
> dee[al
>
>
>
> On Fri, Oct 7, 2016 at 7:37 AM, karthikeyan T <tk...@gmail.com>
> wrote:
>
> > Hello Everyone,
> >
> > We have a webapplication that have two authentications, one is with
> normal
> > username and password, second one is with OTP enter process. For this
> user
> > has to register their mobile phone numbers, so that they can receive OTP
> > via TEXT or VOICE.
> >
> > 1. May i know, how to do jmeter test for this kind of scenarios?
> > 2. I have no idea, how to automate the OTP enter process via Jmeter
> > (because the OTP will be received in mobile devices). Does anyone come
> > across with same scenario and any idea of how to do it?
> >
> > Thanks in Advance :)
> >
>

Re: Jmeter test for OTP enter process

Posted by Deepak Shetty <sh...@gmail.com>.
You are effectively asking the question - How do I receive an SMS message
using java (Atleast for the text  part) ?

There are some commercial and some free code out there (e.g.
https://sourceforge.net/projects/asimplesmssende/?cm_mc_uid=50810133125414708629625&cm_mc_sid_50200000=1475864721)
but it will need setup - you can search on Google
Once you have a working java program , you should be able to change your
script to poll for the SMS and then use it

Usually however the developers have to put in a backdoor for your test
(i.e. there is someway for the test program to determine what the code is
and use it) to avoid the kind of setup that you need

regards
dee[al



On Fri, Oct 7, 2016 at 7:37 AM, karthikeyan T <tk...@gmail.com>
wrote:

> Hello Everyone,
>
> We have a webapplication that have two authentications, one is with normal
> username and password, second one is with OTP enter process. For this user
> has to register their mobile phone numbers, so that they can receive OTP
> via TEXT or VOICE.
>
> 1. May i know, how to do jmeter test for this kind of scenarios?
> 2. I have no idea, how to automate the OTP enter process via Jmeter
> (because the OTP will be received in mobile devices). Does anyone come
> across with same scenario and any idea of how to do it?
>
> Thanks in Advance :)
>