0% found this document useful (1 vote)
311 views1 page

Loadrunner Testing Cheat Sheet v1.0 PDF

Uploaded by

Dihena Paul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
311 views1 page

Loadrunner Testing Cheat Sheet v1.0 PDF

Uploaded by

Dihena Paul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Install Loadrunner Functions (Common)

Source - Download Community Edition from Microfocus Web


URL - https://www.microfocus.com/en-us/products/loadrunner-professional/download Match string on web response - web_reg_find();
Capture string from web response - web_reg_save_param();
Post web detailed request - web_custom_request();
Mouse click on a web link - web_link();
Add web header - web_add_header();
Protocols (Common) ANSI C Functions (Common)
Start the parallel execution block - web_concurrent_start();
Web HTTP/HTML Find sub string - strstr
End the parallel execution block - web_concurrent_end();
Citrix ICA Compare string - strcmp
HTTP Get web request - web_url();
Web Services Contact strings - strcat
Converts HTML to a URL or plain text - web_convert_param();
JAVA Record Replay String Length - strlen
Max length HTML string retrieved/saved as a param - set_max_html_param_len();
Siebel Web Return token from string - strtok
Oracle NCA Convert Asc to Int - atoi
Web services
TruClient – Web Opens file - fopen
Performs SOAP request - soap_request():
TruClient – Mobile Web Close file - fclose
Performs Web Service Call - web_service_call();
TruClient – Native Mobile Write formatted output - fprintf
WSDL Validation - wsdl_wsi_validation();
RTE Allocate memory block - malloc
Windows Sockets Free memory block - free
Citrix
SAP Web Get Random Int - rand
Start Citrix Connection - ctrx_connect_server();
End Citrix Connection - ctrx_disconnect_server();
Shortcut keys (VUGen Common) Shortcut keys (VUGen Common) Get name of Active window - ctrx_activate_window();
Find - CTRL + F Increase Indent - TAB Send Citrix Key - ctrx_key();
Find Next - F3 Decrease Indent - SHIFT + TAB Get text in area - ctrx_get_text();
Go to - CTRL + G Complete Word - CTRL + SPACE Get Window name - ctrx_get_window_name();
Cut - CTRL + X Next Window - CTRL + TAB Send Mouse click - ctrx_mouse_click();
Paste - CTRL + V Previous Window- CTRL + SHIFT + TAB Waits for Window to appear - ctrx_set_window();
Copy - CTRL + C Start Transaction - CTRL + T Capture bitmap and sync - ctrx_sync_on_bitmap();
Delete - DEL End Transaction - CTRL + SHIFT + T Wait for text before sync - ctrx_sync_on_text();
Parameter List - CTRL + L Comment - CTRL + ALT + C Execute on window appearance - ctrx_execute_on_window();
Create Param - CTRL + K Check if Window visible on screen - ctrx_win_exist();
Unset Window on close - ctrx_unset_window();
Shortcut keys (VUGen Execute) Shortcut keys (VUGen Record) Loadrunner
Run - F5 Record - CTRL + R Add a start transaction point - lr_start_transaction();
Step through - F10 Record Options - CTRL + F7 Add an end transaction point - lr_end_transaction();
Stop - CTRL + F5 Exit the vuser with defined status - lr_exit();
Runtime Settings - F4 Shortcut keys (Controller Execute) Send status messages - lr_vuser_status_message();
Breakpoint - F9 Start - F5

Web Checks (Use web_reg_find with SaveCount and if statements to validate) Tips
Enable full extended logging in vugen to help identify items to correlate.
web_reg_find("Text=Welcome", "SaveCount=Welcome_Count", LAST ); Show progress of transactions with lr_vuser_status_message
Enable Expert mode in Controller to allow further configuration
web_submit_form("login.pl", "Snapshot=t2.inf", ITEMDATA, "Name=username", Set VUGen logging to Log on error and set it to 100k to capture max data
Value=jojo", ENDITEM, "Name=password", "Value=bean", ENDITEM, Consider enabling Extended logging and capturing parameter data during scenario execution.
"Name=login.x", "Value=35", ENDITEM, "Name=login.y", "Value=14", ENDITEM, Create separate uniquely named actions in scripts for init and end actions to avoid aggregation.
LAST ); Name Actions, Transactions, Scenario, Results and Analysis to match test case for traceability.

if (atoi(lr_eval_string("{Welcome_Count}")) > 0){ lr_output_message("Log on successful.");


} else{ lr_error_message("Log on failed"); return(0); } LOADRUNNER TESTING CHEAT SHEET (version 1.0 - 26/02/2020)
Written by Mark Lilley @ www.martkos-it.co.uk Contact: [email protected]

You might also like