[Vugen] save param/ response

web_reg_save_param("RunStatus",
   "LB=HTTP/1.1 ",
   "RB=\n",
   "Ord=1",
   "NotFound=WARNING",
   "Search=Headers",
  LAST);

using {RunStatus} to get the value.  It will return an array object.

-------------------

web_reg_find("Search=Headers",
   "SaveCount=SuccessCount",
   "Text=200 OK",
   LAST);

using {SuccessCount} to value.  It will return integer.
atoi(lr_eval_string("{SuccessCount}"))


Reference
[1] https://www.perfmatrix.com/web_reg_save_param/

==========================
Set Timeout

Syntax:
web_set_timeout("STEP","20");
now the timeout is 20 Seconds...
you need add this before the transaction


However, wininet doesn't accept any setting on vugen.  It needs to set ReceiveTimeout in registry to update timeout for IE and wininet.

Reference
[1] https://stackoverflow.com/questions/44962690/setting-timeout-for-wininet-in-loadrunner
[2] http://kktechkaizen.blogspot.com/2012/06/default-timeoutsettings-for-browsers.html

Comments

Popular posts from this blog

M5Stack ESP32

Express connect to mysql

How to debug msbuild