Advertisement
easternnl

LoadRunner: TruClient Initialisation Phase

Aug 10th, 2016
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Developed in 12.53, also tested on 12.02 but did not work on that version.
  2. TC.log("Message from TruClient to logfile", "Standard")
  3.  
  4. if (TC.userId == -1)
  5. {
  6.   // running in VUgen
  7.   TC.log("TruClient running in VUgen", "Standard")
  8.    
  9.   // set waiting time to 2 seconds
  10.   TC.setParam("TT", "2")
  11.   TC.setParam("ScriptTest", "Yes")
  12. }
  13. else
  14. {
  15.    TC.log("TruClient running in LoadMode", "Standard")
  16.    
  17.    // set waiting time to
  18.    TC.setParam("TT", "20")
  19. }
  20.  
  21. TC.log("TT configured as " + TC.getParam("TT"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement