Current time: 01-24-2021, 12:26 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting - How to increase timeout for a specific step
12-29-2015, 04:13 PM
Post: #6
RE: Scripting - How to increase timeout for a specific step
I recently submitted a post to the Perf Planet blog about authentication that I think is relevant here. See http://calendar.perfplanet.com/2015/usin...tication/.

You appear to be using the DOM manipulation approach with a single navigation command. Besides the brokenness you described, this will also result in polluting the results with the overhead of signing in. The way to exclude this kind of bootstrapping is to use `logData 0` to ignore requests as you do some scripting, then enable logging before navigating to the actual test page. Relying on the redirection instead of explicitly navigating is likely to be your issue.

Alternatively, you should consider the other approach mentioned in the post which is to set an auth cookie directly. This enables you to test the page without any login bootstrapping. You just pass in the preauthenticated session cookie so you can hit the test page without getting bounced. The script to do that is simply:

setCookie http://www.example.com session=286755fad04869ca523320acce0dc6a4
navigate http://www.example.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Scripting - How to increase timeout for a specific step - rviscomi - 12-29-2015 04:13 PM

Forum Jump:


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