Skip to main content

How to Download Jar Files for Flex, Java and Java Over HTTP Protocols

How to get jar files of an application to use with Loadrunner specially for following loadrnner protocols

Flex, Web(HTTP/HTML)
Java Over HTTP
Java Protocols

If your application uses any jar files, you need to find the relevant .jar  files and enable  them in the classpath. To locate the relevant .jar files:Clear the JAR cache by selecting Control Panel > Java > General Tab >Temporary Internet Files > Settings > Delete Files.

Open your application and perform a few business processes to repopulate the JAR cache with .jar files from your application. When you are finished, close your application

Select Control Panel > Java > General Tab > Temporary Internet Files > View. This lists the JAR cache and should only contain the .jar files used by your application.

Download the files. Try the options in the order in which they appear. When you succeed, proceed to the next step to Add the .jar files to the classpath.

Option 1: For each .jar file, go to the listed URL and download the file. If you cannot download one or all of the .jar files, continue with the next option.

Option 2: Clear the cache again by selecting Control Panel > Java > General Tab > Temporary Internet Files > Settings > Delete Files. Open your application again and perform a few business processes. Do not close your application. Open the Java Console . There should be a message for each .jar file telling you the location it is stored in a temporary file on your computer. The files are usually hashed and don’t have .jar extensions. Change the name (including changing each extension to .jar) and copy the file to a known location.

Option 3: If the files don’t show up in the Java console, locate the  temporary directory as listed in Control Panel > Java > General Tab >Temporary Internet Files > Settings > Location. Open the specified  location and rename all the files in the sub-folders to .jar. Do not rename all the files in the main folder.

Add the .jar files to the classpath in the Recording Options > Java Environment Settings > Classpath node.

Comments

  1. hi I just did what you said but the cache has file in .idx format.. How can I get .jar format files from .idx file as Loadrunner will not accept .idx files.

    ReplyDelete

Post a Comment

Popular posts from this blog

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad:
What is NeoLoad?
NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications.
What is the difference between Loadrunner, JMeter and NeoLoad?
Click here for differences
What are the different counters you monitor in NeoLoad?
Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc.
What are the different type of tools you can integrate with NeoLoad?
App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration.
What are the different type of Operating systems you can monitor?
Linux Monitor, Solaris Monitor, AIX …

File operations in loadrunner with examples

In this post I will explain how to capture a value from server response and save to a text file using vugen.
How to capture and save to text file using loadrunner:
First I have recorded the script using bing.com and then i searched for IBM. We will get 10 results. I have captured all the 10 values and saved to a file.
Here is the code for that.

LR Functions with Examples | Loadrunner Functions with Examples

LR Functions in Loadrunner with Examples.

lr_abort Stops the script execution.lr_advance_param It will take the next value in the parameter list.lr_continue_on_error Continue on error even if the request is failed.lr_convert_string_encoding Converts a string to a UTF 8 or Unicode.lr_db_dataset_action Validates database contents by setting checkpoints.lr_db_connect Connects to a database.lr_db_dataset_action Performs an action on a dataset.lr_db_disconnect Disconnects from a database.lr_db_executeSQLStatement Submits an SQL statement to a database.lr_checkpoint Validates the value of a parameter against an expected value (checkpoint).lr_db_getValue Retrieves a value from a dataset.lr_debug_message Sends a debug message to the LoadRunner output or Application Management agent log file.lr_decrypt Decrypts an encoded string.lr_disable_ip_spoofing Disables IP Spoofing.lr_enable_ip_spoofing Enables IP Spoofing.lr_end_sub_transaction Marks the end of a sub-transaction.lr_end_transaction Mark…