Current time: 11-16-2019, 03:57 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Timeoust With JavaScript Polling
11-23-2013, 12:18 AM
Post: #1
Test Timeoust With JavaScript Polling
Hi

I have just setup a private instance of WebPageTest and I have been trying out the scripting.

The problem I have is some of the pages I'm testing use javascript polling. This means WebPageTest doesn't know when the page has finished loading and the test times out and no data is returned.

Does anyone who or a way to get around this?

The script I have written is as follows

Code:
logData    0
navigate    https://www.somesite/login

setValue    name=UserName    user
setValue    name=Password    letmein

logData    1
click    id=loginSubmit
sleep    2

logData    0
sendClickAndWait    id=LogOutButton

Luke
Find all posts by this user
Quote this message in a reply
11-23-2013, 02:31 AM (This post was last modified: 11-23-2013 02:34 AM by andydavies.)
Post: #2
RE: Test Timeoust With JavaScript Polling
Have you tried using setActivityTimeout to increase the timeout value?

https://sites.google.com/a/webpagetest.o...ityTimeout

Or if it's just for one step setTimeout might do the trick for you:

https://sites.google.com/a/webpagetest.o...setTimeout

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
12-06-2013, 02:09 AM (This post was last modified: 12-06-2013 02:13 AM by thelukemccarthy.)
Post: #3
RE: Test Timeoust With JavaScript Polling
Hi Andy

Thanks for the answer but that doesn't seem to work.
The setActivityTimeout doesn't work because the page is always active due to the polling.
The setTimeout does make the page timeout, like I want it to, however I don't get and data back. Instead I get and error message where the waterfall diagram should be
"First View: Test Data Missing"

any other ideas?

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


Forum Jump:


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