Current time: 10-17-2019, 06:14 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripted tests not ending?
01-25-2016, 01:52 AM
Post: #1
Scripted tests not ending?
Whenever I try to run a test with scripts, the scripts never seem to end.
In this test, I had the following script:
Quote:logData 0
navigate http://www.webpagetest.org/
logData 1
setValue id=url someText
click title=Forums
All I get is, The test completed but there were no successful results.

I have a private instance of WPT 2.18 running on a 32-bit Windows 7 VM and have the same problem. I have no problems running tests through the Python batch tool without scripts. When I try using a similar simple script to the one above, I get a similar result.

The browser and seems to run through the actions successfully. When it's done though it just stays on the page without closing the browser. Eventually WPTDriver seems to time out and then the test fails. I've tried this using IE 11, Firefox 42, and Chrome 48 (all 32 bit).

Does anybody know what I'm doing wrong?
Find all posts by this user
Quote this message in a reply
01-26-2016, 12:26 AM
Post: #2
RE: Scripted tests not ending?
click should be "clickAndWait" so it knows it is now waiting for an action to finish.

For debugging it is usually easier to leave off the logData commands and put a "combineSteps" command at the top so you can see the full sequence that was tested and then when it is working use the logData commands to clip out the areas you don't want to record.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-27-2016, 02:15 PM
Post: #3
RE: Scripted tests not ending?
(01-26-2016 12:26 AM)pmeenan Wrote:  click should be "clickAndWait" so it knows it is now waiting for an action to finish.

For debugging it is usually easier to leave off the logData commands and put a "combineSteps" command at the top so you can see the full sequence that was tested and then when it is working use the logData commands to clip out the areas you don't want to record.

Ah, that did it. Thank you very much.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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