# Executing a First Load Test

You can now execute a first try of the load test if your recorded Web surfing session **does not contain** [**dynamically exchanged session parameters**](https://apica-kb.atlassian.net/wiki/spaces/DAZT/pages/28147864/Dynamic+Session+Parameters+Var+Handler). What follows is only a short overview.

| **Step**                                                                                                                                                                                                                                                                                                                                                                                                          | **Screenshot**                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| <h4 id="executingafirstloadtest-converttherecordedwebsurfingsessionintoaloadtestprogram">Convert the recorded Web surfing session into a load test program</h4><ul><li>Click the Generate Script Icon which generates the Load Test program</li></ul>                                                                                                                                                             |                                                                   |
| <h4 id="executingafirstloadtest-fillinscriptparameters">Fill in Script Parameters</h4><ul><li>Enter the name of the load test program with an (optional) annotation or description of what the program does</li><li>The <a href="https://apica-kb.atlassian.net/wiki/spaces/DAZT/pages/953876489">Apica Table Server</a> can be used, if checked.</li><li>Choose or modify any other options as needed.</li></ul> |                                                                   |
| <h4 id="executingafirstloadtest-save-generatethescript">Save/Generate the Script</h4><ul><li>Save the the Java script in a subdirectory.</li><li>Review the Steps</li><li><p></p><p>Optionally, Sace the Recorded Session with the Save Icon</p></li><li>Generate the Script. <em>Note the Overwrite and Compile option.</em></li></ul>                                                                           |                                                                   |
| Now, the load test program can be started. Apica recommends choosing only a few numbers of simulated users and a short execution time for the first test run                                                                                                                                                                                                                                                      |                                                                   |
| <h4 id="executingafirstloadtest-compiledclassfilecreated">Compiled CLASS File Created</h4><p></p><p>Note the banner that the class file has been created. There will be an icon to Execute the Load Test to the right of it.</p>                                                                                                                                                                                  |                                                                   |
| <h4 id="executingafirstloadtest-fillinltparameters">Fill in LT Parameters</h4><p>Among other fields, note the values for LT Duration, and the loop limitations per user and pacing options.</p><p>Increasing the Sampling Rate to 100% more is recommended for short runs. Additional data can be captured.</p><p>Set Browser Emulation desired and any Caching Options.</p>                                      | <p></p><p>Press Continue to go to the final Confirmation page</p> |
| <h4 id="executingafirstloadtest-starttheloadtestjob">Start the Load Test Job</h4><p>This dialog summarizes all the LT selections and allows starting it immediately or schedulting for later.</p>                                                                                                                                                                                                                 |                                                                   |
| <h4 id="executingafirstloadtest-runningloadtest">Running Load Test</h4><p>This screen is an LT in progress and has the Detailed Statistics enabled while executing. You can Disable this as needed.</p>                                                                                                                                                                                                           |                                                                   |
| <h4 id="executingafirstloadtest-testended">Test Ended</h4><p>The Job will show completed and there will be a button to Aquire the detailed Test Results.</p>                                                                                                                                                                                                                                                      |                                                                   |
| <h4 id="executingafirstloadtest-selectresultsanddisplay">Select Results and display</h4><p>The results of an LT is a PRXRES file format. Select it and note that the options to load it into the Analysis Menu and close the window.</p>                                                                                                                                                                          |                                                                   |
| <h4 id="executingafirstloadtest-clickintotheresults">Click Into the Results</h4><p>This screen has other options to compare with other LTs, but here we want to see the results of what we just ran.</p>                                                                                                                                                                                                          |                                                                   |
| <h4 id="executingafirstloadtest-statisticsanddiagrams-1">Statistics and Diagrams-1</h4><p>This page is actually a summary in green at the top as well as a selection grid of what data results to see. Here, The Results per Page/URL is displayed.</p>                                                                                                                                                           |                                                                   |
| <h4 id="executingafirstloadtest-statisticsanddiagrams-2">Statistics and Diagrams-2</h4><p>This is one of the Response Time diagram pages for each Page.</p><ol start="1"><li>Response time for each page.</li><li>Response Percentile for each page.</li></ol>                                                                                                                                                    |                                                                   |
| <h4 id="executingafirstloadtest-resultsinprojectnavigator">Results in Project Navigator</h4><p>You can filter for Load Test Results with to filter for .prxres</p><p>Click the Analyze Load Test Result to open the Select and Compare Screen we saw above. This time, we can select two test results to compare them.</p>                                                                                        |                                                                   |

### Example Analysis <a href="#executingafirstloadtest-exampleanalysis" id="executingafirstloadtest-exampleanalysis"></a>

We are seeing the same failed URL errors during the load tests, on the same page and on the same URL.

|   |
| - |
|   |

&#x20;**Tip:** Likewise: If your **load test fails** **and a permanent error occurs at the same URL** **and** this is a **variable**, you should call the **Var Finder menu –** and verify if the handling for dynamically exchanged session parameters must be applied.

**In these cases, we strongly rec**om**mend reading the installed ZT manual about Handling "Dynamically-Exchanged Session Parameters"** (Attached)
