Migrating from LoadRunner (LR) to ALT and ZebraTester
This page is for those coming from LR and Converting their scripts to ZebraTester to be used in Apica Load Test (ALT).
All LR conversions are via ZebraTester.
To do so, please follow this step-by-step LoadRunner to ZebraTester conversion page.
Conceptual Differences
This table includes some of the conceptual differences between creating Scripts using LR and ZT.
LoadRunner (LR) | ZebraTester (ZT) |
---|---|
Scripts | |
|
|
Script Structure | |
|
|
Script Recording | |
|
|
Scripting Features/Functions | |
|
|
Modular Scripting | |
Example |
|
Commonly used functions in LR Scripts
Here is a list of some of the most used LR methods used in web scripts.
LR Method | Example |
---|---|
web_global_verification()
|
Several parameters can be used as if the search should be in the Header or the Body part of the response. The “Fail” parameter can be set to Found or NotFound depending on if the text should or not should be found in the server response. |
lr_get_attrib_string()Returns a string type value of an argument passed to the script run. lr_get_attrib_long()Returns a long integer type value of an argument passed to the script run. lr_get_attrib_double()Returns a double type value of an argument passed to the script run.
|
This method call fetched a String parameter from the Controller when the Script starts. |
Work in Progress Below | |
web_set_sockets_option()The web_set_sockets_option function configures options for sockets on the client machine. This function supports socket-level replay. In the Web HTML protocol, it supports both HTML-based scripts (Mode=HTML) and URL-based scripts(Mode=HTTP modes). web_set_sockets_option has no effect on replay using WinInet. SSL_VERSION: The SSL version preference: 2, 3, 2&3, TLS, TLS1.1, TLS1.2, TLS1.3, or AUTO SHUTDOWN_MODE: Controls how ports are shut down and disconnected from the TCPIP connection: GRACEFUL (default), FAST, or ABRUPT. MAX_CONNECTIONS_PER_HOST: Specifies the maximum number of concurrent connections per host. CLOSE_KEEPALIVE_CONNECTIONS: Closes all open connections. |
|
web_reg_save_param()Registers a request to save dynamic data information to a parameter with a defined boundary-based match. web_reg_save_param_regexp()Registers a request to save dynamic data information to a parameter with a RegEx-based match. |
|
web_reg_find()The web_reg_find function registers a request to search for a text string on a web page retrieved by the next action function. The search does not apply to values returned as a result of calls to asynchronous or cross-step functions. This function helps you verify whether or not the page you received is the desired page by searching for an expected text string. |
|
lr_start_transaction()Marks the beginning of a transaction. lr_end_transaction()Marks the end of a transaction. |
|
lr_think_time()Pauses execution between commands in a script. |
|
web_add_auto_header()Adds the specified header to all subsequent HTTP requests. web_revert_auto_header()Stops scripts from adding a specific header to subsequent HTTP requests. |
|
lr_error_message()Sends an error message with location details to the output windows, log files, and other test report summaries. |
|
lr_eval_string()Returns the string argument after evaluating embedded parameters. |
|
lr_save_string()Saves a null-terminated string to a parameter. |
|
Cannot find what you're looking for? Send an E-mail to support@apica.io.