Current time: 08-25-2019, 01:49 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test app hosted in salesforce
01-11-2012, 05:43 AM
Post: #1
Test app hosted in salesforce
Hi,
I'm coding an app running under salesforce infrastructure.
Users can reach this app by login into salesforce (login.salesforce.com).
The question is: is it possible (and how) could I use webpagetest to test my app performance.

Thanks in advance.
Find all posts by this user
Quote this message in a reply
01-11-2012, 05:57 AM
Post: #2
RE: Test app hosted in salesforce
Yes, but it gets considerably harder than testing a straight-up web page. You will need to create a script to log into salesforce and navigate to the page you want to measure: https://sites.google.com/a/webpagetest.o.../scripting

I can help out with the script if you provide a basic flow (and send me some test credentials offline).
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2012, 09:43 PM (This post was last modified: 01-11-2012 09:54 PM by AlvaroOlivencia.)
Post: #3
RE: Test app hosted in salesforce
(01-11-2012 05:57 AM)pmeenan Wrote:  Yes, but it gets considerably harder than testing a straight-up web page. You will need to create a script to log into salesforce and navigate to the page you want to measure: https://sites.google.com/a/webpagetest.o.../scripting

I can help out with the script if you provide a basic flow (and send me some test credentials offline).

Thank you for you help !
I have read the link you sent me but still, there is something I don't understand: could I use online page test to accomplish this or should I download a desktop version (if so provide me the installer link please) ?

In the online version I have seen a scripting tab, may I fulfill this tab also ?

The url I want to test performance is: https://na10.salesforce.com/home/home.jsp OR https://c.na10.visual.force.com/apex/Sta...000000QVXA
This url is the landing page once you login. Now I will send you by PM the credentials.
Thanks again.
Find all posts by this user
Quote this message in a reply
01-11-2012, 09:54 PM
Post: #4
RE: Test app hosted in salesforce
Yes, you can use the online WebPagetest. You can paste a script into the script tab and it will execute it (debugging is trial and error that way though).
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2012, 10:27 PM
Post: #5
RE: Test app hosted in salesforce
I have tried this:


PHP Code:
logData    0

// bring up the login screen
navigate    https://login.salesforce.com/

logData    0

// log in
setValue    name=username    MYEMAIL
setValue    name
=pw    MYPASSWORD
submitForm    name
=login

logData    1

navigate    https
://c.na10.visual.force.com/apex/Start_Here?sfdc.tabName=01rA0000000QVXA 


... but it's failing on login process, the script is not login in.
Thanks in advance.
Find all posts by this user
Quote this message in a reply
01-13-2012, 05:28 AM
Post: #6
RE: Test app hosted in salesforce
FWIW, your second logData should have a "1" instead of "0". That said, it doesn't look like "submitForm" works for the salesforce login. They may have javascript logic attached to the submit button.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-13-2012, 05:29 AM
Post: #7
RE: Test app hosted in salesforce
btw, other alternatives that I usually use in that kind of case is click or sendClick to send a click event to the button itself.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-13-2012, 06:26 AM
Post: #8
RE: Test app hosted in salesforce
FWIW, this gets passed the login:

Code:
logData    0

// bring up the login screen
navigate    https://login.salesforce.com/

logData    1

// log in
setValue    id=username    [email]
setValue    id=password    [password]
click    className=loginButton

That said, they have a device-specific (browser?) verification path that still prevents you from getting to the app. You might be able to scrape a session cookie and use that with the setCookie script command but if they tie an IP address or user agent string to the session cookie then you might be SOL.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-13-2012, 09:49 PM
Post: #9
RE: Test app hosted in salesforce
(01-13-2012 06:26 AM)pmeenan Wrote:  FWIW, this gets passed the login:

Code:
logData    0

// bring up the login screen
navigate    https://login.salesforce.com/

logData    1

// log in
setValue    id=username    [email]
setValue    id=password    [password]
click    className=loginButton

That said, they have a device-specific (browser?) verification path that still prevents you from getting to the app. You might be able to scrape a session cookie and use that with the setCookie script command but if they tie an IP address or user agent string to the session cookie then you might be SOL.

Thank you.
Anyway I will post on the public thread one more question because I guess it could help some one else.
Find all posts by this user
Quote this message in a reply
01-13-2012, 11:14 PM (This post was last modified: 01-13-2012 11:15 PM by AlvaroOlivencia.)
Post: #10
RE: Test app hosted in salesforce
Now I could make it work with some trick.
The problem is that first, by using this approach, I'm first loggin in and the get redirected to https://na10.salesforce.com/home/home.jsp (my goal).
I think the problem with this is that in the final report I'm getting useless login page and redirecting times but what I actually need is timings/performance testing only for home.jsp.

So my question is: if I subtract redirecting/login page data from report totals I get the remaining : home.jsp data.
If home.js is a public page, would I get similar data as the remaining ?


report: http://www.webpagetest.org/result/120113_2X_2VHND/
If you want to testo try this

Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)