Current time: 12-09-2019, 09:44 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
logData 0 in script doesn't seem to work
08-12-2014, 12:45 AM (This post was last modified: 08-12-2014 12:46 AM by ep16.)
Post: #1
logData 0 in script doesn't seem to work
I have a script that I'm running on a private instance:

Code:
logData    0

navigate    loginpage.com

sleep    3

setValue    name=username    email@email.com

setValue    name=password    *******

submitForm    id=hs-login

logData    1

navigate    loggedinurl.com

The test succeeds, but when I look at the results, I always see the login page in my waterfall and filmstrip view despite having the logData 0. This is running on IE9. Any thoughts?
Find all posts by this user
Quote this message in a reply
08-12-2014, 05:41 AM
Post: #2
RE: logData 0 in script doesn't seem to work
What's the purpose of the second navigate - I'd normally put the logData 1 before the submit?

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
08-12-2014, 05:52 AM (This post was last modified: 08-12-2014 09:27 AM by ep16.)
Post: #3
RE: logData 0 in script doesn't seem to work
(08-12-2014 05:41 AM)andydavies Wrote:  What's the purpose of the second navigate - I'd normally put the logData 1 before the submit?

So you mean:

Code:
logData    0

navigate    loggedinurl.com

sleep    3

setValue    name=username    email@email.com

setValue    name=password    *******

logData    1

submitForm    id=hs-login

There was no good reason, I just wanted to separate login from the actual page I wanted to end up at.

Edit: This seems to have worked, with the caveat though that I'm now also measuring the delay in time when I click submit until the page returns. I'd prefer to start measuring right from the point I 'enter' the URL into my URL bar, which I know recall the previous script was trying to replicate.
Find all posts by this user
Quote this message in a reply
08-14-2014, 01:22 AM
Post: #4
RE: logData 0 in script doesn't seem to work
urlblast or wptdriver? The only thing that comes to mind as a possibility is that it isn't waiting for the login page to fully load before moving on. Seeing a waterfall or filmstrip would really help, even if it's just a screen shot. The agent code shouldn't be recording any results while in a logdata 0 state so something has to be pulling it out of that state too early somehow.

I'm pretty sure the submitForm command has an implicit "andWait", that's the only thing that came to mind.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-14-2014, 01:35 AM
Post: #5
RE: logData 0 in script doesn't seem to work
wptdriver. I've changed my script since, but let me change it back and replicate it and send you a sample result.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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