You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by seraphim3200 <se...@gmail.com> on 2011/07/04 18:36:12 UTC

Facebook login using Jmeter

Hi, I'm here again. We have this login feature using facebook in our website.
I'm trying use the http request sample and set it on method post. However
when i tried to put the name and value (it's a popup login feature of
facebook). The Jmeter can no longer read the test. I put in the server name
the link of the popup login of facebook.

Any idea how to make this work or maybe my approach is wrong? Even i tried
to write a script using HTMLUNIT and drive the test (plain script test using
Htmlunit), still it didn't work.

Any help is very much appreciated! Thank you so muchh!

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550589.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by Zubair Aslam <zu...@gmail.com>.
by build your own little app i meant that you can build your own application
that would require a uses to login via giving login name and password
instead of using fb as application

this way you would know how a application does the authentication and added
learning and will help in testing as well

i never meant to make a application to use fb and stuff like that

plus i guess it would not be a legal thing to use fb this way

i hope i have explained my view

On Tue, Jul 5, 2011 at 4:23 AM, seraphim3200 <se...@gmail.com> wrote:

> And actually it's an api from FB.. I dont know if its legal to post link
> here.. But you can see what I mean if you check friendseat.com
>
> thanks a lot.. Have a nice day..
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551582.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Facebook login using Jmeter

Posted by seraphim3200 <se...@gmail.com>.
And actually it's an api from FB.. I dont know if its legal to post link
here.. But you can see what I mean if you check friendseat.com

thanks a lot.. Have a nice day..

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551582.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by seraphim3200 <se...@gmail.com>.
Yikes! But my point is, I need to test if that api is working properly.
Though I understand that jmeter is specifically for load testing.. (even in
selenium ide it doesnt work.. Lol)  Thanks for the warning though.. I
appreciate it... I guess i'll stick on testing normal login.. Thank you so
much!

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551569.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by Tony Anecito <ad...@yahoo.com>.
Oliver is right. I knew someone who tested an in-house app that had google maps 
embedded and within a very short period of time all access to google
was shut down for several days by google. They treated it as a DOS and had every 
right to do that.
Every vendor or third party service has the right to shut off access the minute 
you run your test especially against their production system with whom customers 
are using it.

Oh yes Oliver is very right and you may get sued.

Have a happy short career.
-Tony



----- Original Message ----
From: Oliver Lloyd <ol...@hotmail.com>
To: jmeter-user@jakarta.apache.org
Sent: Mon, July 4, 2011 4:04:30 PM
Subject: Re: Facebook login using Jmeter

Facebook App huh, thought so. You do not need to test Facebook to test your
App, you don't want to and actually won't be able to. 

You can record the requests using FB but then you should remove them and
only keep those against your own host, you might need to spoof things like
facebook_id or some json strings with user data in but on the whole it's
very unlikely your code will depend on dynamic responses. There's really no
point testing 3rd-party sites, you won't gain from it and they won't
appreciate it. And, arguably, it's bordering on illegal. It's certainly
outside their terms of service.

If you really feel you need FaceBook (I have never known this to be true)
but if it makes you feel better there's a some companies around that will
work with you to 'pretend' to be Facebook. Just google it, you'll find them.

--
View this message in context: 
http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551421.html

Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by Oliver Lloyd <ol...@hotmail.com>.
Facebook App huh, thought so. You do not need to test Facebook to test your
App, you don't want to and actually won't be able to. 

You can record the requests using FB but then you should remove them and
only keep those against your own host, you might need to spoof things like
facebook_id or some json strings with user data in but on the whole it's
very unlikely your code will depend on dynamic responses. There's really no
point testing 3rd-party sites, you won't gain from it and they won't
appreciate it. And, arguably, it's bordering on illegal. It's certainly
outside their terms of service.

If you really feel you need FaceBook (I have never known this to be true)
but if it makes you feel better there's a some companies around that will
work with you to 'pretend' to be Facebook. Just google it, you'll find them.

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551421.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by seraphim3200 <se...@gmail.com>.
Yah Actually it's a facebook apps that is hook in our website. We have this
option, you can login to our website using facebook or just normal login.
I'm having problem testing the log-in in facebook. Recording the test is
really complicated, there's a bunch of output and i don't know where to look
on the facebook login.

By the way, thank you guys for your quick response.. 

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4551023.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by Zubair Aslam <zu...@gmail.com>.
it would be better to develop your own little application that authenticates
users by login name and password

this way one will also have more knowledge of how applications work and this
would result in better testing



On Mon, Jul 4, 2011 at 11:32 PM, Oliver Lloyd <ol...@hotmail.com>wrote:

> Unless you work for Facebook you should not be using load scripts against
> their systems. Yet, a surprisingly large number of non Facebook employees
> continue to try and do this nonetheless. For that reason you will quickly
> find out it is difficult and, ultimately, doesn't work - once FB suspect
> you
> of using automation (as they quickly will) they will ensure that it fails
> by
> not only using a captcha but question verification as well.
>
> So, you should not only avoid doing this because it is irresponsible but
> also because you just plain can't.
>
> Just remove requests to Facebook and other 3rd parties from your tests and
> spoof any required responses - this will work for FB Apps and the like.
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550822.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Facebook login using Jmeter

Posted by "Konstantin S." <mk...@gmail.com>.
Unless you work for Facebook you should not be using load scripts against
> their systems. Yet, a surprisingly large number of non Facebook employees
> continue to try and do this nonetheless. For that reason you will quickly
> find out it is difficult and, ultimately, doesn't work - once FB suspect
> you
> of using automation (as they quickly will) they will ensure that it fails
> by
> not only using a captcha but question verification as well.
>

You say it as if there is one option - to hammer facebook every sec :))
I am logging to FB for the last couple of monthes. Yes they suspended some
unverified accounts, but others are working just fine as well as 500 test
users for app.
What you don't need is to load test FB :) but if you want to login to FB
(for whatever reason you need) use some reasonable ramp-up. in my case 500
works just fine. less than 500 will cause some users not to be processed.
And if your scripts are correct and you send requests with reasonable
tamp-up they do not show you captchas. you can even confirm/allow app via
test scripts in jmeter.

Re: Facebook login using Jmeter

Posted by Oliver Lloyd <ol...@hotmail.com>.
Unless you work for Facebook you should not be using load scripts against
their systems. Yet, a surprisingly large number of non Facebook employees
continue to try and do this nonetheless. For that reason you will quickly
find out it is difficult and, ultimately, doesn't work - once FB suspect you
of using automation (as they quickly will) they will ensure that it fails by
not only using a captcha but question verification as well.

So, you should not only avoid doing this because it is irresponsible but
also because you just plain can't.

Just remove requests to Facebook and other 3rd parties from your tests and
spoof any required responses - this will work for FB Apps and the like.


--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550822.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by "Konstantin S." <mk...@gmail.com>.
I sent you example that shall log you in (create fbusers.txt with email,
password that you need to log in, host.txt and etc. you will get it)
But it depends on what you need to get eventually, I guess you are not
loging in just for the sake of it. Also login could be a bit different if
you use FB test users. And so on and so forth.

On Mon, Jul 4, 2011 at 7:45 PM, seraphim3200 <se...@gmail.com> wrote:

> Yeah I tried using that. But when i tried to copy the output.. and put it
> on
> Test Plan, when i tried to start the Jmeter, it didn't start. The
> /login.php
> (other part of login interface without using FB login) is working. But the
> Facebook login is really a problem. Thank you by the way for your quick
> reply..
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550611.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Facebook login using Jmeter

Posted by seraphim3200 <se...@gmail.com>.
Yeah I tried using that. But when i tried to copy the output.. and put it on
Test Plan, when i tried to start the Jmeter, it didn't start. The /login.php
(other part of login interface without using FB login) is working. But the
Facebook login is really a problem. Thank you by the way for your quick
reply.. 

--
View this message in context: http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550611.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Facebook login using Jmeter

Posted by "Konstantin S." <mk...@gmail.com>.
Record your login with Jmeter HTTP proxy. There is much more than
login/password to post.

On Mon, Jul 4, 2011 at 7:36 PM, seraphim3200 <se...@gmail.com> wrote:

> Hi, I'm here again. We have this login feature using facebook in our
> website.
> I'm trying use the http request sample and set it on method post. However
> when i tried to put the name and value (it's a popup login feature of
> facebook). The Jmeter can no longer read the test. I put in the server name
> the link of the popup login of facebook.
>
> Any idea how to make this work or maybe my approach is wrong? Even i tried
> to write a script using HTMLUNIT and drive the test (plain script test
> using
> Htmlunit), still it didn't work.
>
> Any help is very much appreciated! Thank you so muchh!
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Facebook-login-using-Jmeter-tp4550589p4550589.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>