Installation
- SourceMicro Focus Community Edition
- VUGenScript development
- ControllerTest execution
- AnalysisResults analysis
Web Functions
- web_reg_find()Match string on web response
- web_reg_save_param()Capture string from response
- web_custom_request()Post web detailed request
- web_link()Mouse click on a web link
- web_add_header()Add web header
- web_concurrent_start()Start parallel execution block
- web_concurrent_end()End parallel execution block
- web_url()HTTP GET web request
- web_convert_param()Convert HTML to URL/plain text
LR Functions
- lr_start_transaction()Start transaction
- lr_end_transaction()End transaction
- lr_exit()Exit vuser with status
- lr_vuser_status_message()Send status messages
- lr_output_message()Output message
- lr_error_message()Output error
Citrix Functions
- ctrx_connect_server()Start Citrix connection
- ctrx_disconnect_server()End Citrix connection
- ctrx_set_window()Wait for window
- ctrx_mouse_click()Send mouse click
- ctrx_key()Send Citrix key
- ctrx_sync_on_bitmap()Bitmap sync
VUGen Shortcuts
F5
RunF10
Step throughCTRL+F5
StopF4
Runtime SettingsF9
BreakpointCTRL+R
Record
VUGen Common
CTRL+F
FindCTRL+G
Go toCTRL+L
Parameter ListCTRL+K
Create ParamCTRL+T
Start Transaction
Common Protocols
Web HTTP/HTML
Citrix ICA
Web Services
Java Record Replay
Siebel Web
Oracle NCA
TruClient Web
TruClient Mobile
RTE
SAP Web
ANSI C Functions
- strstrFind sub string
- strcmpCompare string
- strcatConcat strings
- strlenString length
- atoiConvert ASCII to Int
- fopen/fcloseFile operations
Web Checks Example
web_reg_find("Text=Welcome", "SaveCount=Welcome_Count", LAST);
web_submit_form("login.pl", "Snapshot=t2.inf", ITEMDATA,
"Name=username", "Value=jojo", ENDITEM,
"Name=password", "Value=bean", ENDITEM, LAST);
if (atoi(lr_eval_string("{Welcome_Count}")) > 0) {
lr_output_message("Log on successful.");
} else {
lr_error_message("Log on failed");
return(0);
}
Tips & Best Practices
Extended Logging
Enable full extended logging in VUGen to identify items to correlate
Transaction Progress
Show progress with lr_vuser_status_message
Expert Mode
Enable Expert mode in Controller for further configuration
Log Size
Set VUGen logging to 100k to capture max data
- Leaving LoadRunner?LoadRunner to JMeter and k6 — every construct on this sheet and what it becomes, plus what does not carry across