Cannot get scripted test to run
|
07-06-2016, 01:03 PM
Post: #1
|
|||
|
|||
Cannot get scripted test to run
Hello,
I have been trying for several days to test a page that is behind an authentication wall. I've tried various scripted test, all on a Private Instance. First I was using scripts similar to the examples: Code: // turn off logging However, I could not get the login to work. The test would always show the login page. The closest I've got is the following script, which kind of works in IE, but doesn't work in Chrome. The following script actually loads the slowpage.html I'd like to test in IE, but only partially; also, I need to emulate mobile devices so I need to use Chrome. In Chrome I always get "The testing completed but failed. Skipped repeat view, first view failed: Test run failed with result code -1". Code: combineSteps Any other tips or tricks? Suggestions on how to debug? Any advice is appreciated. Thanks, |
|||
07-17-2016, 06:17 PM
Post: #2
|
|||
|
|||
RE: Cannot get scripted test to run
Try logging in manually and saving the authentication cookie. Then use WPT scripting to set the auth cookie and navigate directly to the page you want to test. The script is two lines and you don't have to worry about a warm cache.
See this post for more info: http://calendar.perfplanet.com/2015/usin...ntication/ |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)