Current time: 02-22-2020, 05:58 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script works locally, not on agent
09-25-2014, 08:19 AM
Post: #1
Script works locally, not on agent
I am struggling with a script that works in the local desktop plugin (as downloaded from https://webpagetest.googlecode.com/files...st_325.msi) but fails when i submit it through our private instance UI (it doesn't get through the login part). I'm manually testing the script on one of our agents! So running it manually on the agent works, but running it through UI doesn't ... whatup?

Script:


logData 0
navigate https://www.godaddy.com
clickAndWait innerText=Sign In
setValue id=loginname <masked>
setValue id=password <masked>
submitForm id=loginForm
logData 1
navigate https://app7.websitetonight.com/designer...etid=en-US


Notes:
- The part before logData 1 is just to login and set a session cookie, auth token, etc.
- i took pagetest.dll from the latest agent (v2.14.0.378) and copied it over the 325 version that came with the above mentioned download
- I have tried 'exec' and 'execAndWait' in place of the 'setValue' and 'submitForm' commands but all fail

Could this have anything to do with the format of the script? TABs vs. spaces? What am i missing?

Any help would be much appreciated!
Find all posts by this user
Quote this message in a reply
09-26-2014, 06:59 AM
Post: #2
RE: Script works locally, not on agent
Greetings

You're missing a little bit of info, such as what browser you're using, but, regardless, a couple of things to try:

Yes, the delimiters should be Tabs not Spaces.

I entered a slightly modified version of your script (as written) on my local instance:


logData 0
navigate https://www.godaddy.com
click innerHTML=Sign In
sleep 5
setValue id=loginname <masked>
setValue id=password <masked>
submitForm id=loginForm
logData 1


Under IE9, 10 and 11. On IE9 and 10, it brought me to the invalid name/password prompt (which was expected). Under IE11 I'm getting some sort of popup that closes too fast for me to read. That might just be an issue unique to my system, though.

Anyway, play with the script this way just to see if you can get it to proceed to your page. Then you can fine-tune it a bit after that.

Hope it helps a little.

Robert
Find all posts by this user
Quote this message in a reply
09-27-2014, 04:02 AM
Post: #3
RE: Script works locally, not on agent
Hey RLilly! Thx for your response!
You're right, i should mentioned that i have been testing this with both IE11 and Chrome. On the local agent, i tested it in IE11 using pagetest plugin and it completes without any issues ...

Your script is a no-go for me ... it just gets stuck. Here is the log:

2014/09/26 17:00:17 - Test Created
2014/09/26 17:00:17 - Starting test (initiated by tester <agent>)
2014/09/26 17:08:53 - Test Run Complete. Run: 1, Cached: 0, Done: , Tester: <agent>

Notice the 8 minutes of ... nothing ...

i tried your script locally on one of my agents, using the pagetest plugin in IE and it worked perfectly!

That's the part that i don't get - why does it work locally using pagetest but not when submitted via wpt?

thanks for the help!
Find all posts by this user
Quote this message in a reply
09-29-2014, 11:53 PM (This post was last modified: 10-02-2014 12:20 AM by RLilly.)
Post: #4
RE: Script works locally, not on agent
(09-27-2014 04:02 AM)mverkerk Wrote:  Hey RLilly! Thx for your response!
You're right, i should mentioned that i have been testing this with both IE11 and Chrome. On the local agent, i tested it in IE11 using pagetest plugin and it completes without any issues ...

Your script is a no-go for me ... it just gets stuck. Here is the log:

2014/09/26 17:00:17 - Test Created
2014/09/26 17:00:17 - Starting test (initiated by tester <agent>)
2014/09/26 17:08:53 - Test Run Complete. Run: 1, Cached: 0, Done: , Tester: <agent>

Notice the 8 minutes of ... nothing ...

i tried your script locally on one of my agents, using the pagetest plugin in IE and it worked perfectly!

That's the part that i don't get - why does it work locally using pagetest but not when submitted via wpt?

thanks for the help!


Huh... odd. Are you using a private/local instance of WPT or the public one? I was testing against a private instance. If you're using the public one, just to try something that will get a result, change the top logData parm to a '1'. ie:

logData 1
navigate https://www.godaddy.com
click innerHTML=Sign In
sleep 5
setValue id=loginname <masked>
setValue id=password <masked>
submitForm id=loginForm

When I did that on the public site, I ended up with this:

http://www.webpagetest.org/result/140929_XE_R00/

Give it a try with the correct info loaded. Following the filmstrip might help track down what's going on. It might also be worth noting that on a few of the tests, the login screen presented a Captcha challenge. Any chance you're bumping up against that when running the wpt version test? If it's not completing the login, that would explain the 8min timeout with no data reporting. Changing the logData value should let you see that.

Update: Actually, looks like I overlooked the fact that you were testing with IE11. In testing with that, I'm also experiencing a fail condition. In watching what happens, the script pulls down the login panel but doesn't seem to be able to populate the name and pw boxes. Haven't had time to try and figure out what's going on just yet.

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


Forum Jump:


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