component_reference.html 637 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!-- start the processing -->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../docs/css/style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>Apache JMeter - User's Manual: Component Reference</title>
<style>
  .code { font-weight: bold; }
</style>
</head>

<body bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" cellspacing="0">
<tr>
<td align="left">
<a href="http://www.apache.org"><img style="margin: 0px 30px 0px 0px" title="Apache Software Foundation" width="261" height="106" src="../../docs/images/asf-logo.png" border="0"/></a>
</td>
<td align="right">
<a href="http://jmeter.apache.org/"><img width="259" height="88" src="../../docs/images/jmeter.png" alt="Apache JMeter" title="Apache JMeter" border="0"/></a>
</td>
</tr>
</table>
<table border="0" cellspacing="4">
<tr><td>
<hr noshade size="1"/>
</td></tr>
<tr>
<td align="left" valign="top">
<table>
<tr>
<td bgcolor="#525D76">
<div align="right"><a href="index.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Index</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="properties_reference.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Next</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="boss.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Prev</font></a></div>
</td>
</tr>
</table>
<br>
<table width="100%">
<tr><td valign="top">
<ul>
<li><a href="#introduction">19 Introduction</a></li>
<ul>
</ul>
<li><a href="#samplers">19.1 Samplers</a></li>
<ul>
<li>
<a href="#FTP_Request">FTP Request</a></li>
<li>
<a href="#HTTP_Request">HTTP Request</a></li>
<li>
<a href="#JDBC_Request">JDBC Request</a></li>
<li>
<a href="#Java_Request">Java Request</a></li>
<li>
<a href="#LDAP_Request">LDAP Request</a></li>
<li>
<a href="#LDAP_Extended_Request">LDAP Extended Request</a></li>
<li>
<a href="#Access_Log_Sampler">Access Log Sampler</a></li>
<li>
<a href="#BeanShell_Sampler">BeanShell Sampler</a></li>
<li>
<a href="#BSF_Sampler_(DEPRECATED)">BSF Sampler (DEPRECATED)</a></li>
<li>
<a href="#JSR223_Sampler">JSR223 Sampler</a></li>
<li>
<a href="#TCP_Sampler">TCP Sampler</a></li>
<li>
<a href="#JMS_Publisher">JMS Publisher</a></li>
<li>
<a href="#JMS_Subscriber">JMS Subscriber</a></li>
<li>
<a href="#JMS_Point-to-Point">JMS Point-to-Point</a></li>
<li>
<a href="#JUnit_Request">JUnit Request</a></li>
<li>
<a href="#Mail_Reader_Sampler">Mail Reader Sampler</a></li>
<li>
<a href="#Test_Action">Test Action</a></li>
<li>
<a href="#SMTP_Sampler">SMTP Sampler</a></li>
<li>
<a href="#OS_Process_Sampler">OS Process Sampler</a></li>
<li>
<a href="#MongoDB_Script_(DEPRECATED)">MongoDB Script (DEPRECATED)</a></li>
</ul>
<li><a href="#logic_controllers">19.2 Logic Controllers</a></li>
<ul>
<li>
<a href="#Simple_Controller">Simple Controller</a></li>
<li>
<a href="#Loop_Controller">Loop Controller</a></li>
<li>
<a href="#Once_Only_Controller">Once Only Controller</a></li>
<li>
<a href="#Interleave_Controller">Interleave Controller</a></li>
<li>
<a href="#Random_Controller">Random Controller</a></li>
<li>
<a href="#Random_Order_Controller">Random Order Controller</a></li>
<li>
<a href="#Throughput_Controller">Throughput Controller</a></li>
<li>
<a href="#Runtime_Controller">Runtime Controller</a></li>
<li>
<a href="#If_Controller">If Controller</a></li>
<li>
<a href="#While_Controller">While Controller</a></li>
<li>
<a href="#Switch_Controller">Switch Controller</a></li>
<li>
<a href="#ForEach_Controller">ForEach Controller</a></li>
<li>
<a href="#Module_Controller">Module Controller</a></li>
<li>
<a href="#Include_Controller">Include Controller</a></li>
<li>
<a href="#Transaction_Controller">Transaction Controller</a></li>
<li>
<a href="#Recording_Controller">Recording Controller</a></li>
<li>
<a href="#Critical_Section_Controller">Critical Section Controller</a></li>
</ul>
<li><a href="#listeners">19.3 Listeners</a></li>
<ul>
<li>
<a href="#Sample_Result_Save_Configuration">Sample Result Save Configuration</a></li>
<li>
<a href="#Graph_Results">Graph Results</a></li>
<li>
<a href="#Assertion_Results">Assertion Results</a></li>
<li>
<a href="#View_Results_Tree">View Results Tree</a></li>
<li>
<a href="#Aggregate_Report">Aggregate Report</a></li>
<li>
<a href="#View_Results_in_Table">View Results in Table</a></li>
<li>
<a href="#Simple_Data_Writer">Simple Data Writer</a></li>
<li>
<a href="#Aggregate_Graph">Aggregate Graph</a></li>
<li>
<a href="#Response_Time_Graph">Response Time Graph</a></li>
<li>
<a href="#Mailer_Visualizer">Mailer Visualizer</a></li>
<li>
<a href="#BeanShell_Listener">BeanShell Listener</a></li>
<li>
<a href="#Summary_Report">Summary Report</a></li>
<li>
<a href="#Save_Responses_to_a_file">Save Responses to a file</a></li>
<li>
<a href="#BSF_Listener_(DEPRECATED)">BSF Listener (DEPRECATED)</a></li>
<li>
<a href="#JSR223_Listener">JSR223 Listener</a></li>
<li>
<a href="#Generate_Summary_Results">Generate Summary Results</a></li>
<li>
<a href="#Comparison_Assertion_Visualizer">Comparison Assertion Visualizer</a></li>
<li>
<a href="#Backend_Listener">Backend Listener</a></li>
</ul>
</ul></td><td valign="top"><ul>
<li><a href="#config_elements">19.4 Configuration Elements</a></li>
<ul>
<li>
<a href="#CSV_Data_Set_Config">CSV Data Set Config</a></li>
<li>
<a href="#FTP_Request_Defaults">FTP Request Defaults</a></li>
<li>
<a href="#DNS_Cache_Manager">DNS Cache Manager</a></li>
<li>
<a href="#HTTP_Authorization_Manager">HTTP Authorization Manager</a></li>
<li>
<a href="#HTTP_Cache_Manager">HTTP Cache Manager</a></li>
<li>
<a href="#HTTP_Cookie_Manager">HTTP Cookie Manager</a></li>
<li>
<a href="#HTTP_Request_Defaults">HTTP Request Defaults</a></li>
<li>
<a href="#HTTP_Header_Manager">HTTP Header Manager</a></li>
<li>
<a href="#Java_Request_Defaults">Java Request Defaults</a></li>
<li>
<a href="#JDBC_Connection_Configuration">JDBC Connection Configuration</a></li>
<li>
<a href="#Keystore_Configuration">Keystore Configuration</a></li>
<li>
<a href="#Login_Config_Element">Login Config Element</a></li>
<li>
<a href="#LDAP_Request_Defaults">LDAP Request Defaults</a></li>
<li>
<a href="#LDAP_Extended_Request_Defaults">LDAP Extended Request Defaults</a></li>
<li>
<a href="#TCP_Sampler_Config">TCP Sampler Config</a></li>
<li>
<a href="#User_Defined_Variables">User Defined Variables</a></li>
<li>
<a href="#Random_Variable">Random Variable</a></li>
<li>
<a href="#Counter">Counter</a></li>
<li>
<a href="#Simple_Config_Element">Simple Config Element</a></li>
<li>
<a href="#MongoDB_Source_Config_(DEPRECATED)">MongoDB Source Config (DEPRECATED)</a></li>
</ul>
<li><a href="#assertions">19.5 Assertions</a></li>
<ul>
<li>
<a href="#Response_Assertion">Response Assertion</a></li>
<li>
<a href="#Duration_Assertion">Duration Assertion</a></li>
<li>
<a href="#Size_Assertion">Size Assertion</a></li>
<li>
<a href="#XML_Assertion">XML Assertion</a></li>
<li>
<a href="#BeanShell_Assertion">BeanShell Assertion</a></li>
<li>
<a href="#MD5Hex_Assertion">MD5Hex Assertion</a></li>
<li>
<a href="#HTML_Assertion">HTML Assertion</a></li>
<li>
<a href="#XPath_Assertion">XPath Assertion</a></li>
<li>
<a href="#XML_Schema_Assertion">XML Schema Assertion</a></li>
<li>
<a href="#BSF_Assertion_(DEPRECATED)">BSF Assertion (DEPRECATED)</a></li>
<li>
<a href="#JSR223_Assertion">JSR223 Assertion</a></li>
<li>
<a href="#Compare_Assertion">Compare Assertion</a></li>
<li>
<a href="#SMIME_Assertion">SMIME Assertion</a></li>
</ul>
<li><a href="#timers">19.6 Timers</a></li>
<ul>
<li>
<a href="#Constant_Timer">Constant Timer</a></li>
<li>
<a href="#Gaussian_Random_Timer">Gaussian Random Timer</a></li>
<li>
<a href="#Uniform_Random_Timer">Uniform Random Timer</a></li>
<li>
<a href="#Constant_Throughput_Timer">Constant Throughput Timer</a></li>
<li>
<a href="#Synchronizing_Timer">Synchronizing Timer</a></li>
<li>
<a href="#BeanShell_Timer">BeanShell Timer</a></li>
<li>
<a href="#BSF_Timer_(DEPRECATED)">BSF Timer (DEPRECATED)</a></li>
<li>
<a href="#JSR223_Timer">JSR223 Timer</a></li>
<li>
<a href="#Poisson_Random_Timer">Poisson Random Timer</a></li>
</ul>
<li><a href="#preprocessors">19.7 Pre Processors</a></li>
<ul>
<li>
<a href="#HTML_Link_Parser">HTML Link Parser</a></li>
<li>
<a href="#HTTP_URL_Re-writing_Modifier">HTTP URL Re-writing Modifier</a></li>
<li>
<a href="#User_Parameters">User Parameters</a></li>
<li>
<a href="#BeanShell_PreProcessor">BeanShell PreProcessor</a></li>
<li>
<a href="#BSF_PreProcessor_(DEPRECATED)">BSF PreProcessor (DEPRECATED)</a></li>
<li>
<a href="#JSR223_PreProcessor">JSR223 PreProcessor</a></li>
<li>
<a href="#JDBC_PreProcessor">JDBC PreProcessor</a></li>
<li>
<a href="#RegEx_User_Parameters">RegEx User Parameters</a></li>
<li>
<a href="#Sample_Timeout">Sample Timeout</a></li>
</ul>
<li><a href="#postprocessors">19.8 Post-Processors</a></li>
<ul>
<li>
<a href="#Regular_Expression_Extractor">Regular Expression Extractor</a></li>
<li>
<a href="#CSS/JQuery_Extractor">CSS/JQuery Extractor</a></li>
<li>
<a href="#XPath_Extractor">XPath Extractor</a></li>
<li>
<a href="#Result_Status_Action_Handler">Result Status Action Handler</a></li>
<li>
<a href="#BeanShell_PostProcessor">BeanShell PostProcessor</a></li>
<li>
<a href="#BSF_PostProcessor_(DEPRECATED)">BSF PostProcessor (DEPRECATED)</a></li>
<li>
<a href="#JSR223_PostProcessor">JSR223 PostProcessor</a></li>
<li>
<a href="#JDBC_PostProcessor">JDBC PostProcessor</a></li>
<li>
<a href="#JSON_Extractor">JSON Extractor</a></li>
</ul>
<li><a href="#Miscellaneous_Features">19.9 Miscellaneous Features</a></li>
<ul>
<li>
<a href="#Test_Plan">Test Plan</a></li>
<li>
<a href="#Thread_Group">Thread Group</a></li>
<li>
<a href="#WorkBench">WorkBench</a></li>
<li>
<a href="#SSL_Manager">SSL Manager</a></li>
<li>
<a href="#HTTP(S)_Test_Script_Recorder">HTTP(S) Test Script Recorder (was: HTTP Proxy Server)</a></li>
<li>
<a href="#HTTP_Mirror_Server">HTTP Mirror Server</a></li>
<li>
<a href="#Property_Display">Property Display</a></li>
<li>
<a href="#Debug_Sampler">Debug Sampler</a></li>
<li>
<a href="#Debug_PostProcessor">Debug PostProcessor</a></li>
<li>
<a href="#Test_Fragment">Test Fragment</a></li>
<li>
<a href="#setUp_Thread_Group">setUp Thread Group</a></li>
<li>
<a href="#tearDown_Thread_Group">tearDown Thread Group</a></li>
</ul>
</ul>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="introduction"><strong>19 Introduction</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
<p>

</p>
 <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
 Several test elements use JMeter properties to control their behaviour.
 These properties are normally resolved when the class is loaded.
 This generally occurs before the test plan starts, so it's not possible to change the settings by using the <tt class="code">__setProperty()</tt> function.
</td></tr>
</table>
</p>

<p>
</p>
</div>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="samplers"><strong>19.1 Samplers</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <p>
    Samplers perform the actual work of JMeter.
    Each sampler (except <a href="../usermanual/component_reference.html#Test_Action">Test Action</a>) generates one or more sample results.
    The sample results have various attributes (success/fail, elapsed time, data size etc.) and can be viewed in the various listeners.
    </p>
</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="FTP_Request">19.1.1 FTP Request</a>
</h3>
</font>
</td></tr>
<tr><td>

This controller lets you send an FTP &quot;retrieve file&quot; or &quot;upload file&quot; request to an FTP server.
If you are going to send multiple requests to the same FTP server, consider
using a <a href="../usermanual/component_reference.html#FTP_Request_Defaults">FTP Request Defaults</a> Configuration
Element so you do not have to enter the same information for each FTP Request Generative
Controller. When downloading a file, it can be stored on disk (Local File) or in the Response Data, or both.
<p>
Latency is set to the time it takes to login.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='911' height='274' src="../../docs/images/screenshots/ftptest/ftp-request.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server Name or IP</td>
<td>Domain name or IP address of the FTP server.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port</td>
<td>Port to use. If this is <tt class="code">&gt;0</tt>, then this specific port is used,
           otherwise JMeter uses the default FTP port.</td>
<td>
No
</td>
</tr>
<tr>
<td>Remote File:</td>
<td>File to retrieve or name of destination file to upload.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Local File:</td>
<td>File to upload, or destination for downloads (defaults to remote file name).</td>
<td>
Yes, if uploading (*)
</td>
</tr>
<tr>
<td>Local File Contents:</td>
<td>Provides the contents for the upload, overrides the Local File property.</td>
<td>
Yes, if uploading (*)
</td>
</tr>
<tr>
<td>get(RETR) / put(STOR)</td>
<td>Whether to retrieve or upload a file.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use Binary mode?</td>
<td>Check this to use Binary mode (default ASCII)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Save File in Response?</td>
<td>
        Whether to store contents of retrieved file in response data.
        If the mode is ASCII, then the contents will be visible in the <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a>.
        </td>
<td>
Yes, if downloading
</td>
</tr>
<tr>
<td>Username</td>
<td>FTP account username.</td>
<td>
Usually
</td>
</tr>
<tr>
<td>Password</td>
<td>FTP account password. N.B. This will be visible in the test plan.</td>
<td>
Usually
</td>
</tr>
</table>
<p><b>See Also:</b></p>
<ul>
<li><a href="test_plan.html#assertions">Assertions</a></li>
<li><a href="../usermanual/component_reference.html#FTP_Request_Defaults">FTP Request Defaults</a></li>
<li><a href="build-ftp-test-plan.html">Building an FTP Test Plan</a></li>
</ul>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Request">19.1.2 HTTP Request</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>This sampler lets you send an HTTP/HTTPS request to a web server.  It
        also lets you control whether or not JMeter parses HTML files for images and
        other embedded resources and sends HTTP requests to retrieve them.
        The following types of embedded resource are retrieved:</p>
        <ul>
        <li>images</li>
        <li>applets</li>
        <li>stylesheets (CSS) and resources referenced from those files</li>
        <li>external scripts</li>
        <li>frames, iframes</li>
        <li>background images (body, table, TD, TR)</li>
        <li>background sound</li>
        </ul>
        <p>
        The default parser is <tt class="code">org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser</tt>.
        This can be changed by using the property &quot;<tt class="code">htmlparser.className</tt>&quot; - see <tt class="code">jmeter.properties</tt> for details.
        </p>
        <p>If you are going to send multiple requests to the same web server, consider
        using an <a href="../usermanual/component_reference.html#HTTP_Request_Defaults">HTTP Request Defaults</a>
        Configuration Element so you do not have to enter the same information for each
        HTTP Request.</p>

        <p>Or, instead of manually adding HTTP Requests, you may want to use
        JMeter's <a href="../usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder">HTTP(S) Test Script Recorder</a> to create
        them.  This can save you time if you have a lot of HTTP requests or requests with many
        parameters.</p>

        <p><b>There are two different test elements used to define the samplers:</b></p>
        <dl>
        <dt>AJP/1.3 Sampler</dt><dd>uses the Tomcat mod_jk protocol (allows testing of Tomcat in AJP mode without needing Apache httpd)
        The AJP Sampler does not support multiple file upload; only the first file will be used.
        </dd>
        <dt>HTTP Request</dt><dd>this has an implementation drop-down box, which selects the HTTP protocol implementation to be used:
          <dl>
            <dt><tt class="code">Java</tt></dt><dd>uses the HTTP implementation provided by the JVM.
            This has some limitations in comparison with the HttpClient implementations - see below.</dd>
            <dt><tt class="code">HTTPClient4</tt></dt><dd>uses Apache HttpComponents HttpClient 4.x.</dd>
            <dt>Blank Value</dt><dd>does not set implementation on HTTP Samplers, so relies on HTTP Request Defaults if present or on <tt class="code">jmeter.httpsampler</tt> property defined in <tt class="code">jmeter.properties</tt></dd>
          </dl>
        </dd>
        </dl>
         <p>The Java HTTP implementation has some limitations:</p>
         <ul>
         <li>There is no control over how connections are re-used.
         When a connection is released by JMeter, it may or may not be re-used by the same thread.</li>
         <li>The API is best suited to single-threaded usage - various settings
         are defined via system properties, and therefore apply to all connections.</li>
         <li>There is a bug in the handling of HTTPS via a Proxy (the <tt class="code">CONNECT</tt> is not handled correctly).
         See Java bugs 6226610 and 6208335.
         </li>
         <li>It does not support virtual hosts.</li>
         <li>It supports only the following methods: <tt class="code">GET</tt>, <tt class="code">POST</tt>, <tt class="code">HEAD</tt>, <tt class="code">OPTIONS</tt>, <tt class="code">PUT</tt>, <tt class="code">DELETE</tt> and <tt class="code">TRACE</tt></li>
         <li>It does not support client based certificate testing with Keystore Config.</li>
         </ul>
         <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note: the <tt class="code">FILE</tt> protocol is intended for testing purposes only.
         It is handled by the same code regardless of which HTTP Sampler is used.</td></tr>
</table>
</p>

        <p>If the request requires server or proxy login authorization (i.e. where a browser would create a pop-up dialog box),
         you will also have to add an <a href="../usermanual/component_reference.html#HTTP_Authorization_Manager">HTTP Authorization Manager</a> Configuration Element.
         For normal logins (i.e. where the user enters login information in a form), you will need to work out what the form submit button does,
         and create an HTTP request with the appropriate method (usually <tt class="code">POST</tt>) 
         and the appropriate parameters from the form definition.
         If the page uses HTTP, you can use the JMeter Proxy to capture the login sequence.
        </p>
        <p>
        A separate SSL context is used for each thread.
        If you want to use a single SSL context (not the standard behaviour of browsers), set the JMeter property:</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
https.sessioncontext.shared=true
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        By default, the SSL context is retained for the duration of the test.
        The SSL session can be optionally reset for each test iteration.
        To enable this, set the JMeter property:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
https.use.cached.ssl.context=false
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
         Note: this does not apply to the Java HTTP implementation.
        </td></tr>
</table>
</p>

        JMeter defaults to the SSL protocol level TLS.
        If the server needs a different level, e.g. <tt class="code">SSLv3</tt>, change the JMeter property, for example:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
https.default.protocol=SSLv3
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        <p>
        JMeter also allows one to enable additional protocols, by changing the property <tt class="code">https.socket.protocols</tt>.
        </p>
        <p>If the request uses cookies, then you will also need an
        <a href="../usermanual/component_reference.html#HTTP_Cookie_Manager">HTTP Cookie Manager</a>.  You can
        add either of these elements to the Thread Group or the HTTP Request. If you have
        more than one HTTP Request that needs authorizations or cookies, then add the
        elements to the Thread Group. That way, all HTTP Request controllers will share the
        same Authorization Manager and Cookie Manager elements.</p>

        <p>If the request uses a technique called &quot;URL Rewriting&quot; to maintain sessions,
        then see section
        <a href="build-adv-web-test-plan.html#session_url_rewriting">6.1 Handling User Sessions With URL Rewriting</a>
        for additional configuration steps.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='953' height='611' src="../../docs/images/screenshots/http-request.png"/></div>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='951' height='284' src="../../docs/images/screenshots/http-request-advanced-tab.png"/><br>
<font size="-1">HTTP Request Advanced config fields</font></td></tr></table>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server</td>
<td>
            Domain name or IP address of the web server, e.g. <tt class="code">www.example.com</tt>. [Do not include the <tt class="code">http://</tt> prefix.]
            Note: If the &quot;<tt class="code">Host</tt>&quot; header is defined in a Header Manager, then this will be used
            as the virtual host name.
        </td>
<td>
Yes, unless provided by HTTP Request Defaults
</td>
</tr>
<tr>
<td>Port</td>
<td>Port the web server is listening to. Default: <tt class="code">80</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Connect Timeout</td>
<td>Connection Timeout. Number of milliseconds to wait for a connection to open.</td>
<td>
No
</td>
</tr>
<tr>
<td>Response Timeout</td>
<td>Response Timeout. Number of milliseconds to wait for a response.
        Note that this applies to each wait for a response. If the server response is sent in several chunks, the overall
        elapsed time may be longer than the timeout.
        <p>A <a href="../usermanual/component_reference.html#Duration_Assertion">Duration Assertion</a> can be used to detect responses that take too long to complete.</p>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Server (proxy)</td>
<td>Hostname or IP address of a proxy server to perform request. [Do not include the <tt class="code">http://</tt> prefix.]</td>
<td>
No
</td>
</tr>
<tr>
<td>Port</td>
<td>Port the proxy server is listening to.</td>
<td>
No, unless proxy hostname is specified
</td>
</tr>
<tr>
<td>Username</td>
<td>(Optional) username for proxy server.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>(Optional) password for proxy server. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Implementation</td>
<td><tt class="code">Java</tt>, <tt class="code">HttpClient4</tt>.
        If not specified (and not defined by HTTP Request Defaults), the default depends on the value of the JMeter property
        <tt class="code">jmeter.httpsampler</tt>, failing that, the HttpClient4 implementation is used.</td>
<td>
No
</td>
</tr>
<tr>
<td>Protocol</td>
<td><tt class="code">HTTP</tt>, <tt class="code">HTTPS</tt> or <tt class="code">FILE</tt>. Default: <tt class="code">HTTP</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Method</td>
<td><tt class="code">GET</tt>, <tt class="code">POST</tt>, <tt class="code">HEAD</tt>, <tt class="code">TRACE</tt>,
          <tt class="code">OPTIONS</tt>, <tt class="code">PUT</tt>, <tt class="code">DELETE</tt>, <tt class="code">PATCH</tt> (not supported for
          <tt class="code">JAVA</tt> implementation). With <tt class="code">HttpClient4</tt>, the following methods related to WebDav are
          also allowed: <tt class="code">COPY</tt>, <tt class="code">LOCK</tt>, <tt class="code">MKCOL</tt>, <tt class="code">MOVE</tt>,
          <tt class="code">PROPFIND</tt>, <tt class="code">PROPPATCH</tt>, <tt class="code">UNLOCK</tt>, <tt class="code">REPORT</tt>, <tt class="code">MKCALENDAR</tt>,
          <tt class="code">SEARCH</tt>.
          <p>More methods can be pre-defined for the HttpClient4 by using the JMeter property
            <tt class="code">httpsampler.user_defined_methods</tt>.</p>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Content Encoding</td>
<td>
        Content encoding to be used (for <tt class="code">POST</tt>, <tt class="code">PUT</tt>, <tt class="code">PATCH</tt> and <tt class="code">FILE</tt>).
        This is the character encoding to be used, and is not related to the Content-Encoding HTTP header.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Redirect Automatically</td>
<td>
        Sets the underlying http protocol handler to automatically follow redirects,
        so they are not seen by JMeter, and thus will not appear as samples.
        Should only be used for <tt class="code">GET</tt> and <tt class="code">HEAD</tt> requests.
        The HttpClient sampler will reject attempts to use it for <tt class="code">POST</tt> or <tt class="code">PUT</tt>.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Warning: see below for information on cookie and header handling.</td></tr>
</table>
</p>

        </td>
<td>
No
</td>
</tr>
<tr>
<td>Follow Redirects</td>
<td>
        This only has any effect if &quot;<tt class="code">Redirect Automatically</tt>&quot; is not enabled.
        If set, the JMeter sampler will check if the response is a redirect and follow it if so.
        The initial redirect and further responses will appear as additional samples.
        The URL and data fields of the parent sample will be taken from the final (non-redirected)
        sample, but the parent byte count and elapsed time include all samples.
        The latency is taken from the initial response.
        Note that the HttpClient sampler may log the following message:
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>&quot;Redirect requested but followRedirects is disabled&quot;</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        This can be ignored.
        <br>
        JMeter will collapse paths of the form '<tt class="code">/../segment</tt>' in
        both absolute and relative redirect URLs. For example <tt class="code">http://host/one/../two</tt> will be collapsed into <tt class="code">http://host/two</tt>.
        If necessary, this behaviour can be suppressed by setting the JMeter property
        <tt class="code">httpsampler.redirect.removeslashdotdot=false</tt>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Use KeepAlive</td>
<td>JMeter sets the Connection: <tt class="code">keep-alive</tt> header. This does not work properly with the default HTTP implementation, as connection re-use is not under user-control.
                  It does work with the Apache HttpComponents HttpClient implementations.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use multipart/form-data for HTTP POST</td>
<td>
        Use a <tt class="code">multipart/form-data</tt> or <tt class="code">application/x-www-form-urlencoded</tt> post request
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Browser-compatible headers</td>
<td>
        When using <tt class="code">multipart/form-data</tt>, this suppresses the <tt class="code">Content-Type</tt> and
        <tt class="code">Content-Transfer-Encoding</tt> headers; only the <tt class="code">Content-Disposition</tt> header is sent.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Path</td>
<td>The path to resource (for example, <tt class="code">/servlets/myServlet</tt>). If the
resource requires query string parameters, add them below in the
&quot;Send Parameters With the Request&quot; section.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
As a special case, if the path starts with &quot;<tt class="code">http://</tt>&quot; or &quot;<tt class="code">https://</tt>&quot; then this is used as the full URL.
</td></tr>
</table>
</p>

In this case, the server, port and protocol fields are ignored; parameters are also ignored for <tt class="code">GET</tt> and <tt class="code">DELETE</tt> methods.
Also please note that the path is not encoded - apart from replacing spaces with <tt class="code">%20</tt> -
so unsafe characters may need to be encoded to avoid errors such as <tt class="code">URISyntaxException</tt>.
</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Send Parameters With the Request</td>
<td>The query string will
        be generated from the list of parameters you provide.  Each parameter has a <tt class="code">name</tt> and
        <tt class="code">value</tt>, the options to encode the parameter, and an option to include or exclude an equals sign (some applications
        don't expect an equals sign when the value is the empty string).  The query string will be generated in the correct fashion, depending on
        the choice of &quot;Method&quot; you made (i.e. if you chose <tt class="code">GET</tt> or <tt class="code">DELETE</tt>, the query string will be
        appended to the URL, if <tt class="code">POST</tt> or <tt class="code">PUT</tt>, then it will be sent separately).  Also, if you are
        sending a file using a multipart form, the query string will be created using the
        multipart form specifications.
        <b>See below for some further information on parameter handling.</b>
        <p>
        Additionally, you can specify whether each parameter should be URL encoded.  If you are not sure what this
        means, it is probably best to select it.  If your values contain characters such as the following then encoding is usually required.:
        </p>
        <ul>
            <li>ASCII Control Chars</li>
            <li>Non-ASCII characters</li>
            <li>Reserved characters:URLs use some characters for special use in defining their syntax. When these characters are not used in their special role inside a URL, they need to be encoded, example : '<tt class="code">$</tt>', '<tt class="code">&amp;</tt>', '<tt class="code">+</tt>', '<tt class="code">,</tt>' , '<tt class="code">/</tt>', '<tt class="code">:</tt>', '<tt class="code">;</tt>', '<tt class="code">=</tt>', '<tt class="code">?</tt>', '<tt class="code">@</tt>'</li>
            <li>Unsafe characters: Some characters present the possibility of being misunderstood within URLs for various reasons. These characters should also always be encoded, example : '<tt class="code"> </tt>', '<tt class="code">&lt;</tt>', '<tt class="code">&gt;</tt>', '<tt class="code">#</tt>', '<tt class="code">%</tt>', …</li>
        </ul>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>File Path:</td>
<td>Name of the file to send.  If left blank, JMeter
        does not send a file, if filled in, JMeter automatically sends the request as
        a multipart form request.
        <p>
        If it is a <tt class="code">POST</tt> or <tt class="code">PUT</tt> or <tt class="code">PATCH</tt> request and there is a single file whose 'Parameter name' attribute (below) is omitted, 
        then the file is sent as the entire body
        of the request, i.e. no wrappers are added. This allows arbitrary bodies to be sent. This functionality is present for <tt class="code">POST</tt> requests, 
        and also for <tt class="code">PUT</tt> requests.
        <b>See below for some further information on parameter handling.</b>
        </p>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Parameter name:</td>
<td>Value of the &quot;<tt class="code">name</tt>&quot; web request parameter.</td>
<td>
No
</td>
</tr>
<tr>
<td>MIME Type</td>
<td>MIME type (for example, <tt class="code">text/plain</tt>).
        If it is a <tt class="code">POST</tt> or <tt class="code">PUT</tt> or <tt class="code">PATCH</tt> request and either the '<tt class="code">name</tt>' attribute (below) are omitted or the request body is
        constructed from parameter values only, then the value of this field is used as the value of the
        <tt class="code">content-type</tt> request header.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Retrieve All Embedded Resources from HTML Files</td>
<td>Tell JMeter to parse the HTML file
and send HTTP/HTTPS requests for all images, Java applets, JavaScript files, CSSs, etc. referenced in the file.
        See below for more details.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Save response as MD5 hash?</td>
<td>
       If this is selected, then the response is not stored in the sample result.
       Instead, the 32 character MD5 hash of the data is calculated and stored instead.
       This is intended for testing large amounts of data.
       </td>
<td>
No
</td>
</tr>
<tr>
<td>Embedded URLs must match:</td>
<td>
        If present, this must be a regular expression that is used to match against any embedded URLs found.
        So if you only want to download embedded resources from <tt class="code">http://example.com/</tt>, use the expression:
        <tt class="code">http://example\.com/.*</tt>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Use concurrent pool</td>
<td>Use a pool of concurrent connections to get embedded resources.</td>
<td>
No
</td>
</tr>
<tr>
<td>Size</td>
<td>Pool size for concurrent connections used to get embedded resources.</td>
<td>
No
</td>
</tr>
<tr>
<td>Source address type</td>
<td>
        <i>[Only for HTTP Request with HTTPClient implementation]</i> <br>
        To distinguish the source address value, select the type of these:
        <ul>
        <li>Select <i>IP/Hostname</i> to use a specific IP address or a (local) hostname</li>
        <li>Select <i>Device</i> to pick the first available address for that interface which
        this may be either IPv4 or IPv6</li>
        <li>Select <i>Device IPv4</i> to select the IPv4 address of the device name (like <tt class="code">eth0</tt>, <tt class="code">lo</tt>, <tt class="code">em0</tt>, etc.)</li>
        <li>Select <i>Device IPv6</i> to select the IPv6 address of the device name (like <tt class="code">eth0</tt>, <tt class="code">lo</tt>, <tt class="code">em0</tt>, etc.)</li>
        </ul>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Source address field</td>
<td>
        <i>[Only for HTTP Request with HTTPClient implementation]</i> <br>
        This property is used to enable IP Spoofing.
        It overrides the default local IP address for this sample.
        The JMeter host must have multiple IP addresses (i.e. IP aliases, network interfaces, devices).
        The value can be a host name, IP address, or a network interface device such as &quot;<tt class="code">eth0</tt>&quot; or &quot;<tt class="code">lo</tt>&quot; or &quot;<tt class="code">wlan0</tt>&quot;.<br>
        If the property <tt class="code">httpclient.localaddress</tt> is defined, that is used for all HttpClient requests.
        </td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
When using Automatic Redirection, cookies are only sent for the initial URL.
This can cause unexpected behaviour for web-sites that redirect to a local server.
E.g. if <tt class="code">www.example.com</tt> redirects to <tt class="code">www.example.co.uk</tt>.
In this case the server will probably return cookies for both URLs, but JMeter will only see the cookies for the last
host, i.e. <tt class="code">www.example.co.uk</tt>. If the next request in the test plan uses <tt class="code">www.example.com</tt>,
rather than <tt class="code">www.example.co.uk</tt>, it will not get the correct cookies.
Likewise, Headers are sent for the initial request, and won't be sent for the redirect.
This is generally only a problem for manually created test plans,
as a test plan created using a recorder would continue from the redirected URL.
</td></tr>
</table>
</p>
<p>
<b>Parameter Handling:</b><br>
For the <tt class="code">POST</tt> and <tt class="code">PUT</tt> method, if there is no file to send, and the name(s) of the parameter(s) are omitted,
then the body is created by concatenating all the value(s) of the parameters.
Note that the values are concatenated without adding any end-of-line characters.
These can be added by using the <tt class="code">__char()</tt> function in the value fields.
This allows arbitrary bodies to be sent.
The values are encoded if the encoding flag is set.
See also the MIME Type above how you can control the <tt class="code">content-type</tt> request header that is sent.
<br>
For other methods, if the name of the parameter is missing,
then the parameter is ignored. This allows the use of optional parameters defined by variables.
</p><br><p>You have the option to switch to <tt class="code">Body Data</tt> tab when a request has only unnamed parameters
(or no parameters at all).
This option is useful in the following cases (amongst others):</p><ul>
<li>GWT RPC HTTP Request</li>
<li>JSON REST HTTP Request</li>
<li>XML REST HTTP Request</li>
<li>SOAP HTTP Request</li>
</ul><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that once you leave the Tree node, you cannot switch back to the parameter tab unless you clear the <tt class="code">Body Data</tt> tab from its data.
</td></tr>
</table>
</p>
<p>
In <tt class="code">Body Data</tt> mode, each line will be sent with <tt class="code">CRLF</tt> appended, apart from the last line.
To send a <tt class="code">CRLF</tt> after the last line of data, just ensure that there is an empty line following it.
(This cannot be seen, except by noting whether the cursor can be placed on the subsequent line.)
</p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='902' height='421' src="../../docs/images/screenshots/http-request-raw-single-parameter.png"/><br>
<font size="-1">Figure 1 - HTTP Request with one unnamed parameter</font></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='908' height='212' src="../../docs/images/screenshots/http-request-confirm-raw-body.png"/><br>
<font size="-1">Figure 2 - Confirm dialog to switch</font></td></tr></table>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='905' height='423' src="../../docs/images/screenshots/http-request-raw-body.png"/><br>
<font size="-1">Figure 3 - HTTP Request using Body Data</font></td></tr></table>
<p>
<b>Method Handling:</b><br>
The <tt class="code">GET</tt>, <tt class="code">DELETE</tt>, <tt class="code">POST</tt>, <tt class="code">PUT</tt> and <tt class="code">PATCH</tt> request methods work similarly, except that as of 3.1, only <tt class="code">POST</tt> method supports multipart requests
or file upload.
The <tt class="code">PUT</tt> and <tt class="code">PATCH</tt> method body must be provided as one of the following:</p><ul>
<li>define the body as a file with empty Parameter name field; in which case the MIME Type is used as the Content-Type</li>
<li>define the body as parameter value(s) with no name</li>
<li>use the <tt class="code">Body Data</tt> tab</li>
</ul><p>
The <tt class="code">GET</tt>, <tt class="code">DELETE</tt> and <tt class="code">POST</tt> methods have an additional way of passing parameters by using the <tt class="code">Parameters</tt> tab.
<tt class="code">GET</tt>, <tt class="code">DELETE</tt>, <tt class="code">PUT</tt> and <tt class="code">PATCH</tt> require a Content-Type.
If not using a file, attach a Header Manager to the sampler and define the Content-Type there.
</p><p>JMeter scan responses from embedded resources. It uses the property <tt class="code">HTTPResponse.parsers</tt>, which is a list of parser ids,
 e.g. <tt class="code">htmlParser</tt>, <tt class="code">cssParser</tt> and <tt class="code">wmlParser</tt>. For each id found, JMeter checks two further properties:</p><ul>
 <li><tt class="code">id.types</tt> - a list of content types</li>
 <li><tt class="code">id.className</tt> - the parser to be used to extract the embedded resources</li>
 </ul><p>See <tt class="code">jmeter.properties</tt> file for the details of the settings.
 If the <tt class="code">HTTPResponse.parser</tt> property is not set, JMeter reverts to the previous behaviour,
 i.e. only <tt class="code">text/html</tt> responses will be scanned</p><b>Emulating slow connections:</b><br><p>
<tt class="code">HttpClient4</tt> and <tt class="code">Java</tt> Sampler support emulation of slow connections; see the following entries in <tt class="code">jmeter.properties</tt>:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
# Define characters per second &gt; 0 to emulate slow connections
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

However the <tt class="code">Java</tt> sampler only supports slow HTTPS connections.
</p><p><b>Response size calculation</b><br>
Optional properties to allow change the method to get response size:<br></p><ul><li>Gets the real network size in bytes for the body response
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>sampleresult.getbytes.body_real_size=true</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li>Add HTTP headers to full response size
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>sampleresult.getbytes.headers_size=true</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li></ul><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The <tt class="code">Java</tt> and <tt class="code">HttpClient3</tt> implementations do not include transport overhead such as
chunk headers in the response body size.<br>
The <tt class="code">HttpClient4</tt> implementation does include the overhead in the response body size,
so the value may be greater than the number of bytes in the response content.
</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When those two properties are set  <tt class="code">false</tt>, JMeter returns only data response size (uncompressed if request uses gzip/deflate mode).</td></tr>
</table>
</p>
<p>
<b>Retry handling</b><br>
For HttpClient4 the retry count has been set to <tt class="code">0</tt>, meaning not retry is attempted. 
Note that the Java implementation appears to retry 1 time.
The retry count can be overridden by setting the relevant JMeter property, for example:
</p><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
httpclient4.retrycount=3
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
httpclient4.request_sent_retry_enabled=true
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<p>
<b>Note: Certificates does not conform to algorithm constraints</b><br>
You may encounter the following error: <tt class="code">java.security.cert.CertificateException: Certificates does not conform to algorithm constraints</tt>
 if you run a HTTPS request on a web site with a SSL certificate (itself or one of SSL certificates in its chain of trust) with a signature
 algorithm using MD2 (like <tt class="code">md2WithRSAEncryption</tt>) or with a SSL certificate with a size lower than 1024 bits.
</p><p>
This error is related to increased security in Java 8.
</p><p>
To allow you to perform your HTTPS request, you can downgrade the security of your Java installation by editing
the Java <tt class="code">jdk.certpath.disabledAlgorithms</tt> property. Remove the MD2 value or the constraint on size, depending on your case.
</p><p>
This property is in this file:</p><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>JAVA_HOME/jre/lib/security/java.security</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<p>See  <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56357">Bug 56357</a>
 for details.
</p><p><b>See Also:</b></p>
<ul>
<li><a href="test_plan.html#assertions">Assertion</a></li>
<li><a href="build-web-test-plan.html">Building a Web Test Plan</a></li>
<li><a href="build-adv-web-test-plan.html">Building an Advanced Web Test Plan</a></li>
<li><a href="../usermanual/component_reference.html#HTTP_Authorization_Manager">HTTP Authorization Manager</a></li>
<li><a href="../usermanual/component_reference.html#HTTP_Cookie_Manager">HTTP Cookie Manager</a></li>
<li><a href="../usermanual/component_reference.html#HTTP_Header_Manager">HTTP Header Manager</a></li>
<li><a href="../usermanual/component_reference.html#HTML_Link_Parser">HTML Link Parser</a></li>
<li><a href="../usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder">HTTP(S) Test Script Recorder</a></li>
<li><a href="../usermanual/component_reference.html#HTTP_Request_Defaults">HTTP Request Defaults</a></li>
<li><a href="build-adv-web-test-plan.html#session_url_rewriting">HTTP Requests and Session ID's: URL Rewriting</a></li>
</ul>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JDBC_Request">19.1.3 JDBC Request</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This sampler lets you send a JDBC Request (an SQL query) to a database.</p>
<p>Before using this you need to set up a
<a href="../usermanual/component_reference.html#JDBC_Connection_Configuration">JDBC Connection Configuration</a> Configuration element
</p>
<p>
If the Variable Names list is provided, then for each row returned by a Select statement, the variables are set up
with the value of the corresponding column (if a variable name is provided), and the count of rows is also set up.
For example, if the Select statement returns 2 rows of 3 columns, and the variable list is <tt class="code">A,,C</tt>,
then the following variables will be set up:</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
A_#=2 (number of rows)
A_1=column 1, row 1
A_2=column 1, row 2
C_#=2 (number of rows)
C_1=column 3, row 1
C_2=column 3, row 2
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<p>
If the Select statement returns zero rows, then the <tt class="code">A_#</tt> and <tt class="code">C_#</tt> variables would be set to <tt class="code">0</tt>, and no other variables would be set.
</p>
<p>
Old variables are cleared if necessary - e.g. if the first select retrieves six rows and a second select returns only three rows,
the additional variables for rows four, five and six will be removed.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The latency time is set from the time it took to acquire a connection.</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='710' height='629' src="../../docs/images/screenshots/jdbctest/jdbc-request.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Variable Name</td>
<td>
        Name of the JMeter variable that the connection pool is bound to.
        This must agree with the '<tt class="code">Variable Name</tt>' field of a <a href="../usermanual/component_reference.html#JDBC_Connection_Configuration">JDBC Connection Configuration</a>.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Query Type</td>
<td>Set this according to the statement type:
            <ul>
            <li>Select Statement</li>
            <li>Update Statement - use this for Inserts and Deletes as well</li>
            <li>Callable Statement</li>
            <li>Prepared Select Statement</li>
            <li>Prepared Update Statement - use this for Inserts and Deletes as well</li>
            <li>Commit</li>
            <li>Rollback</li>
            <li>Autocommit(false)</li>
            <li>Autocommit(true)</li>
            <li>Edit - this should be a variable reference that evaluates to one of the above</li>
            </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>SQL Query</td>
<td>
        SQL query.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Do not enter a trailing semi-colon.</td></tr>
</table>
</p>

        There is generally no need to use <tt class="code">{</tt> and <tt class="code">}</tt> to enclose Callable statements;
        however they may be used if the database uses a non-standard syntax.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The JDBC driver automatically converts the statement if necessary when it is enclosed in <tt class="code">{}</tt>.</td></tr>
</table>
</p>

        For example:
        <ul>
        <li><tt class="code">select * from t_customers where id=23</tt></li>
        <li><tt class="code">CALL SYSCS_UTIL.SYSCS_EXPORT_TABLE (null, ?, ?, null, null, null)</tt>
        <ul>
        <li>Parameter values: <tt class="code">tablename</tt>,<tt class="code">filename</tt></li>
        <li>Parameter types:  <tt class="code">VARCHAR</tt>,<tt class="code">VARCHAR</tt></li>
        </ul>
        </li>
        </ul>
        The second example assumes you are using Apache Derby.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameter values</td>
<td>
        Comma-separated list of parameter values. Use <tt class="code">]NULL[</tt> to indicate a <tt class="code">NULL</tt> parameter.
        (If required, the null string can be changed by defining the property &quot;<tt class="code">jdbcsampler.nullmarker</tt>&quot;.)
        <br>
        The list must be enclosed in double-quotes if any of the values contain a comma or double-quote,
        and any embedded double-quotes must be doubled-up, for example:
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>&quot;Dbl-Quote: &quot;&quot; and Comma: ,&quot;</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>There must be as many values as there are placeholders in the statement even if your parameters are <tt class="code">OUT</tt> ones.
        Be sure to set a value even if the value will not be used (for example in a CallableStatement).</td></tr>
</table>
</p>

        </td>
<td>
Yes, if a prepared or callable statement has parameters
</td>
</tr>
<tr>
<td>Parameter types</td>
<td>
        Comma-separated list of SQL parameter types (e.g. <tt class="code">INTEGER</tt>, <tt class="code">DATE</tt>, <tt class="code">VARCHAR</tt>, <tt class="code">DOUBLE</tt>) or integer values of Constants. Those integer values can be used, when you use custom database types proposed by driver (For example <tt class="code">OracleTypes.CURSOR</tt> could be represented by its integer value <tt class="code">-10</tt>).<br>
        These are defined as fields in the class <tt class="code">java.sql.Types</tt>, see for example:<br>
        <a href="http://docs.oracle.com/javase/8/docs/api/java/sql/Types.html">Javadoc for java.sql.Types</a>.<br>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note: JMeter will use whatever types are defined by the runtime JVM,
        so if you are running on a different JVM, be sure to check the appropriate documentation</td></tr>
</table>
</p>

        <b>If the callable statement has <tt class="code">INOUT</tt> or <tt class="code">OUT</tt> parameters, then these must be indicated by prefixing the
        appropriate parameter types, e.g. instead of &quot;<tt class="code">INTEGER</tt>&quot;, use &quot;<tt class="code">INOUT INTEGER</tt>&quot;.</b> <br>
        If not specified, &quot;<tt class="code">IN</tt>&quot; is assumed, i.e. &quot;<tt class="code">DATE</tt>&quot; is the same as &quot;<tt class="code">IN DATE</tt>&quot;.
        <br>
        If the type is not one of the fields found in <tt class="code">java.sql.Types</tt>, JMeter also
        accepts the corresponding integer number, e.g. since <tt class="code">OracleTypes.CURSOR == -10</tt>, you can use &quot;<tt class="code">INOUT -10</tt>&quot;.
        <br>
        There must be as many types as there are placeholders in the statement.
        </td>
<td>
Yes, if a prepared or callable statement has parameters
</td>
</tr>
<tr>
<td>Variable Names</td>
<td>Comma-separated list of variable names to hold values returned by Select statements, Prepared Select Statements or CallableStatement. 
        Note that when used with CallableStatement, list of variables must be in the same sequence as the <tt class="code">OUT</tt> parameters returned by the call.
        If there are less variable names than <tt class="code">OUT</tt> parameters only as many results shall be stored in the thread-context variables as variable names were supplied.
        If more variable names than <tt class="code">OUT</tt> parameters exist, the additional variables will be ignored</td>
<td>
No
</td>
</tr>
<tr>
<td>Result Variable Name</td>
<td>
        If specified, this will create an Object variable containing a list of row maps.
        Each map contains the column name as the key and the column data as the value. Usage:<br>
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>columnValue = vars.getObject(&quot;resultObject&quot;).get(0).get(&quot;Column Name&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        </td>
<td>
No
</td>
</tr>
<tr>
<td>Handle ResultSet</td>
<td>Defines how ResultSet returned from callable statements be handled:
            <ul>
                <li><tt class="code">Store As String</tt> (default) - All variables on Variable Names list are stored as strings, will not iterate through a <tt class="code">ResultSet</tt> when present on the list. <tt class="code">CLOB</tt>s will be converted to Strings. <tt class="code">BLOB</tt>s will be converted to Strings as if they were an UTF-8 encoded byte-array. Both <tt class="code">CLOB</tt>s and <tt class="code">BLOB</tt>s will be cut off after <tt class="code">jdbcsampler.max_retain_result_size</tt> bytes.</li>
                <li><tt class="code">Store As Object</tt> - Variables of <tt class="code">ResultSet</tt> type on Variables Names list will be stored as Object and can be accessed in subsequent tests/scripts and iterated, will not iterate through the <tt class="code">ResultSet</tt>. <tt class="code">CLOB</tt>s will be handled as if <tt class="code">Store As String</tt> was selected. <tt class="code">BLOBs</tt> will be stored as a byte array. Both <tt class="code">CLOB</tt>s and <tt class="code">BLOB</tt>s will be cut off after <tt class="code">jdbcsampler.max_retain_result_size</tt> bytes.</li>
                <li><tt class="code">Count Records</tt> - Variables of <tt class="code">ResultSet</tt> types will be iterated through showing the count of records as result. Variables will be stored as Strings. For <tt class="code">BLOB</tt>s the size of the object will be stored.</li>
            </ul>
        </td>
<td>
No
</td>
</tr>
</table>
<p><b>See Also:</b></p>
<ul>
<li><a href="build-db-test-plan.html">Building a Database Test Plan</a></li>
<li><a href="../usermanual/component_reference.html#JDBC_Connection_Configuration">JDBC Connection Configuration</a></li>
</ul>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Current Versions of JMeter use UTF-8 as the character encoding. Previously the platform default was used.</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Ensure Variable Name is unique across Test Plan.</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Java_Request">19.1.4 Java Request</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This sampler lets you control a java class that implements the
<tt class="code">org.apache.jmeter.protocol.java.sampler.JavaSamplerClient</tt> interface.
By writing your own implementation of this interface,
you can use JMeter to harness multiple threads, input parameter control, and
data collection.</p>
<p>The pull-down menu provides the list of all such implementations found by
JMeter in its classpath.  The parameters can then be specified in the
table below - as defined by your implementation.  Two simple examples (<tt class="code">JavaTest</tt> and <tt class="code">SleepTest</tt>) are provided.
</p>
<p>
The <tt class="code">JavaTest</tt> example sampler can be useful for checking test plans, because it allows one to set
values in almost all the fields. These can then be used by Assertions, etc.
The fields allow variables to be used, so the values of these can readily be seen.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='628' height='365' src="../../docs/images/screenshots/java_request.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>If the method <tt class="code">teardownTest</tt> is not overridden by a subclass of <tt class="code"><a href="../api/org/apache/jmeter/protocol/java/sampler/AbstractJavaSamplerClient.html">AbstractJavaSamplerClient</a></tt>, its <tt class="code">teardownTest</tt> method will not be called.
This reduces JMeter memory requirements.
This will not have any impact on existing Test plans.
</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The Add/Delete buttons don't serve any purpose at present.</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler
         that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Classname</td>
<td>The specific implementation of
        the JavaSamplerClient interface to be sampled.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Send Parameters with Request</td>
<td>A list of
        arguments that will be passed to the sampled class.  All arguments
        are sent as Strings. See below for specific settings.</td>
<td>
No
</td>
</tr>
</table>
<p>The following parameters apply to the <tt class="code">SleepTest</tt> and <tt class="code">JavaTest</tt> implementations:</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Sleep_time</td>
<td>How long to sleep for (ms)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Sleep_mask</td>
<td>How much &quot;randomness&quot; to add:<br>
            The sleep time is calculated as follows:
            <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>totalSleepTime = SleepTime + (System.currentTimeMillis() % SleepMask)</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        </td>
<td>
Yes
</td>
</tr>
</table>
<p>The following parameters apply additionally to the <tt class="code">JavaTest</tt> implementation:</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Label</td>
<td>The label to use. If provided, overrides <tt class="code">Name</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>ResponseCode</td>
<td>If provided, sets the SampleResult ResponseCode.</td>
<td>
No
</td>
</tr>
<tr>
<td>ResponseMessage</td>
<td>If provided, sets the SampleResult ResponseMessage.</td>
<td>
No
</td>
</tr>
<tr>
<td>Status</td>
<td>If provided, sets the SampleResult Status. If this equals &quot;<tt class="code">OK</tt>&quot; (ignoring case) then the status is set to success, otherwise the sample is marked as failed.</td>
<td>
No
</td>
</tr>
<tr>
<td>SamplerData</td>
<td>If provided, sets the SampleResult SamplerData.</td>
<td>
No
</td>
</tr>
<tr>
<td>ResultData</td>
<td>If provided, sets the SampleResult ResultData.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="LDAP_Request">19.1.7 LDAP Request</a>
</h3>
</font>
</td></tr>
<tr><td>
This Sampler lets you send a different Ldap request(<tt class="code">Add</tt>, <tt class="code">Modify</tt>, <tt class="code">Delete</tt> and <tt class="code">Search</tt>) to an LDAP server.
    <p>If you are going to send multiple requests to the same LDAP server, consider
      using an <a href="../usermanual/component_reference.html#LDAP_Request_Defaults">LDAP Request Defaults</a>
      Configuration Element so you do not have to enter the same information for each
      LDAP Request.</p> The same way the <a href="../usermanual/component_reference.html#Login_Config_Element">Login Config Element</a> also using for Login and password.
  <p><b>Control Panel</b></p>
<div align="center"><img width='621' height='462' src="../../docs/images/screenshots/ldap_request.png"/></div>
<p>There are two ways to create test cases for testing an LDAP Server.</p><ol>
    <li>Inbuilt Test cases.</li>
    <li>User defined Test cases.</li>
  </ol><p>There are four test scenarios of testing LDAP. The tests are given below:</p><ol>
    <li>Add Test
      <ol>
        <li>Inbuilt test:
          <p>This will add a pre-defined entry in the LDAP Server and calculate
          the execution time. After execution of the test, the created entry will be
          deleted from the LDAP
          Server.</p>
        </li>
        <li>User defined test:
          <p>This will add the entry in the LDAP Server. User has to enter all the
          attributes in the table.The entries are collected from the table to add. The
          execution time is calculated. The created entry will not be deleted after the
          test.</p>
        </li>
      </ol>
    </li>
    <li>Modify Test
      <ol>
        <li>Inbuilt test:
          <p>This will create a pre-defined entry first, then will modify the
          created entry in the LDAP Server.And calculate the execution time. After
          execution
          of the test, the created entry will be deleted from the LDAP Server.</p>
        </li>
        <li>User defined test:
          <p>This will modify the entry in the LDAP Server. User has to enter all the
          attributes in the table. The entries are collected from the table to modify.
          The execution time is calculated. The entry will not be deleted from the LDAP
          Server.</p>
        </li>
      </ol>
    </li>
    <li>Search Test
      <ol>
        <li>Inbuilt test:
          <p>This will create the entry first, then will search if the attributes
          are available. It calculates the execution time of the search query. At the
          end of  the execution,created entry will be deleted from the LDAP Server.</p>
        </li>
        <li>User defined test:
          <p>This will search the user defined entry(Search filter) in the Search
          base (again, defined by the user). The entries should be available in the LDAP
          Server. The execution time is  calculated.</p>
        </li>
      </ol>
    </li>
    <li>Delete Test
      <ol>
        <li>Inbuilt test:
          <p>This will create a pre-defined entry first, then it will be deleted
          from the LDAP Server. The execution time is calculated.</p>
        </li>
        <li>User defined test:
          <p>This will delete the user-defined entry in the LDAP Server. The entries
          should be available in the LDAP Server. The execution time is calculated.</p>
        </li>
      </ol>
    </li>
  </ol><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server Name or IP</td>
<td>Domain name or IP address of the LDAP server.
      JMeter assumes the LDAP server is listening on the default port (<tt class="code">389</tt>).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port</td>
<td>Port to connect to (default is <tt class="code">389</tt>).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>root DN</td>
<td>Base DN to use for ldap operations</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Username</td>
<td>LDAP server username.</td>
<td>
Usually
</td>
</tr>
<tr>
<td>Password</td>
<td>LDAP server password. (N.B. this is stored unencrypted in the test plan)</td>
<td>
Usually
</td>
</tr>
<tr>
<td>Entry DN</td>
<td>the name of the context to create or Modify; may not be empty.
     <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>You have to set the right attributes of the object yourself. So if you want to add <tt class="code">cn=apache,ou=test</tt>
      you have to add in the table <tt class="code">name</tt> and <tt class="code">value</tt> to <tt class="code">cn</tt> and <tt class="code">apache</tt>.
     </td></tr>
</table>
</p>

    </td>
<td>
Yes, if User Defined Test and Add Test or Modify Test is selected
</td>
</tr>
<tr>
<td>Delete</td>
<td>the name of the context to Delete; may not be empty</td>
<td>
Yes, if User Defined Test and Delete Test is selected
</td>
</tr>
<tr>
<td>Search base</td>
<td>the name of the context or object to search</td>
<td>
Yes, if User Defined Test and Search Test is selected
</td>
</tr>
<tr>
<td>Search filter</td>
<td> the filter expression to use for the search; may not be null</td>
<td>
Yes, if User Defined Test and Search Test is selected
</td>
</tr>
<tr>
<td>add test</td>
<td>Use these <tt class="code">name</tt>, <tt class="code">value</tt> pairs for creation of the new object in the given context</td>
<td>
Yes, if User Defined Test and add Test is selected
</td>
</tr>
<tr>
<td>modify test</td>
<td>Use these <tt class="code">name</tt>, <tt class="code">value</tt> pairs for modification of the given context object</td>
<td>
Yes, if User Defined Test and Modify Test is selected
</td>
</tr>
</table>
<p><b>See Also:</b></p>
<ul>
<li><a href="build-ldap-test-plan.html">Building an Ldap Test Plan</a></li>
<li><a href="../usermanual/component_reference.html#LDAP_Request_Defaults">LDAP Request Defaults</a></li>
</ul>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="LDAP_Extended_Request">19.1.8 LDAP Extended Request</a>
</h3>
</font>
</td></tr>
<tr><td>
This Sampler can send all 8 different LDAP requests to an LDAP server. It is an extended version of the LDAP sampler,
  therefore it is harder to configure, but can be made much closer resembling a real LDAP session.
    <p>If you are going to send multiple requests to the same LDAP server, consider
      using an <a href="../usermanual/component_reference.html#LDAP_Extended_Request_Defaults">LDAP Extended Request Defaults</a>
      Configuration Element so you do not have to enter the same information for each
      LDAP Request.</p> <p><b>Control Panel</b></p>
<div align="center"><img width='619' height='371' src="../../docs/images/screenshots/ldapext_request.png"/></div>
<p>There are nine test operations defined. These operations are given below:</p><dl>
      <dt><b>Thread bind</b></dt>
      <dd>
        <p>Any LDAP request is part of an LDAP session, so the first thing that should be done is starting a session to the LDAP server.
        For starting this session a thread bind is used, which is equal to the LDAP &quot;<tt class="code">bind</tt>&quot; operation.
        The user is requested to give a <tt class="code">username</tt> (Distinguished name) and <tt class="code">password</tt>,
        which will be used to initiate a session.
        When no password, or the wrong password is specified, an anonymous session is started. Take care,
        omitting the password will not fail this test, a wrong password will.
        (N.B. this is stored unencrypted in the test plan)</p>
        <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Servername</td>
<td>The name (or IP-address) of the LDAP server.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port</td>
<td>The port number that the LDAP server is listening to. If this is omitted
            JMeter assumes the LDAP server is listening on the default port(389).</td>
<td>
No
</td>
</tr>
<tr>
<td>DN</td>
<td>The distinguished name of the base object that will be used for any subsequent operation.
            It can be used as a starting point for all operations. You cannot start any operation on a higher level than this DN!</td>
<td>
No
</td>
</tr>
<tr>
<td>Username</td>
<td>Full distinguished name of the user as which you want to bind.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password for the above user. If omitted it will result in an anonymous bind.
            If it is incorrect, the sampler will return an error and revert to an anonymous bind. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
</table>

      </dd>
      <dt><b>Thread unbind</b></dt>
      <dd>
        <p>This is simply the operation to end a session.
        It is equal to the LDAP &quot;<tt class="code">unbind</tt>&quot; operation.</p>
        <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>

      </dd>
      <dt><b>Single bind/unbind</b></dt>
      <dd>
        <p> This is a combination of the LDAP &quot;<tt class="code">bind</tt>&quot; and &quot;<tt class="code">unbind</tt>&quot; operations.
        It can be used for an authentication request/password check for any user. It will open a new session, just to
        check the validity of the user/password combination, and end the session again.</p>
        <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Username</td>
<td>Full distinguished name of the user as which you want to bind.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Password</td>
<td>Password for the above user. If omitted it will result in an anonymous bind.
            If it is incorrect, the sampler will return an error. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
</table>

      </dd>
      <dt><b>Rename entry</b></dt>
      <dd>
       <p>This is the LDAP &quot;<tt class="code">moddn</tt>&quot; operation. It can be used to rename an entry, but
       also for moving an entry or a complete subtree to a different place in
       the LDAP tree.</p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Old entry name</td>
<td>The current distinguished name of the object you want to rename or move,
           relative to the given DN in the thread bind operation.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>New distinguished name</td>
<td>The new distinguished name of the object you want to rename or move,
           relative to the given DN in the thread bind operation.</td>
<td>
Yes
</td>
</tr>
</table>

     </dd>
     <dt><b>Add test</b></dt>
     <dd>
       <p>This is the ldap &quot;<tt class="code">add</tt>&quot; operation. It can be used to add any kind of
       object to the LDAP server.</p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Entry DN</td>
<td>Distinguished name of the object you want to add, relative to the given DN in the thread bind operation.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Add test</td>
<td>A list of attributes and their values you want to use for the object.
           If you need to add a multiple value attribute, you need to add the same attribute with their respective
           values several times to the list.</td>
<td>
Yes
</td>
</tr>
</table>

     </dd>
     <dt><b>Delete test</b></dt>
     <dd>
       <p> This is the LDAP &quot;<tt class="code">delete</tt>&quot; operation, it can be used to delete an
       object from the LDAP tree</p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Delete</td>
<td>Distinguished name of the object you want to delete, relative to the given DN in the thread bind operation.</td>
<td>
Yes
</td>
</tr>
</table>

     </dd>
     <dt><b>Search test</b></dt>
     <dd>
       <p>This is the LDAP &quot;<tt class="code">search</tt>&quot; operation, and will be used for defining searches.</p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Search base</td>
<td>Distinguished name of the subtree you want your
           search to look in, relative to the given DN in the thread bind operation.</td>
<td>
No
</td>
</tr>
<tr>
<td>Search Filter</td>
<td>searchfilter, must be specified in LDAP syntax.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Scope</td>
<td>Use <tt class="code">0</tt> for baseobject-, <tt class="code">1</tt> for onelevel- and <tt class="code">2</tt> for a subtree search. (Default=<tt class="code">0</tt>)</td>
<td>
No
</td>
</tr>
<tr>
<td>Size Limit</td>
<td>Specify the maximum number of results you want back from the server. (default=<tt class="code">0</tt>, which means no limit.) When the sampler hits the maximum number of results, it will fail with errorcode <tt class="code">4</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Time Limit</td>
<td>Specify the maximum amount of (cpu)time (in milliseconds) that the server can spend on your search. Take care, this does not say anything about the response time. (default is <tt class="code">0</tt>, which means no limit)</td>
<td>
No
</td>
</tr>
<tr>
<td>Attributes</td>
<td>Specify the attributes you want to have returned, separated by a semicolon. An empty field will return all attributes</td>
<td>
No
</td>
</tr>
<tr>
<td>Return object</td>
<td>Whether the object will be returned (<tt class="code">true</tt>) or not (<tt class="code">false</tt>). Default=<tt class="code">false</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Dereference aliases</td>
<td>If <tt class="code">true</tt>, it will dereference aliases, if <tt class="code">false</tt>, it will not follow them (default=<tt class="code">false</tt>)</td>
<td>
No
</td>
</tr>
<tr>
<td>Parse the search results?</td>
<td>If <tt class="code">true</tt>, the search results will be added to the response data. If <tt class="code">false</tt>, a marker - whether results where found or not - will be added to the response data.</td>
<td>
No
</td>
</tr>
</table>

     </dd>
     <dt><b>Modification test</b></dt>
     <dd>
       <p>This is the LDAP &quot;<tt class="code">modify</tt>&quot; operation. It can be used to modify an object. It
       can be used to add, delete or replace values of an attribute. </p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Entry name</td>
<td>Distinguished name of the object you want to modify, relative 
           to the given DN in the thread bind operation</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Modification test</td>
<td>The attribute-value-opCode triples. The opCode can be any
           valid LDAP operationCode (<tt class="code">add</tt>, <tt class="code">delete</tt>/<tt class="code">remove</tt> or <tt class="code">replace</tt>).
           If you don't specify a value with a <tt class="code">delete</tt> operation,
           all values of the given attribute will be deleted. If you do specify a value in a <tt class="code">delete</tt> operation, only
           the given value will be deleted. If this value is non-existent, the sampler will fail the test.</td>
<td>
Yes
</td>
</tr>
</table>

     </dd>
     <dt><b>Compare</b></dt>
     <dd>
       <p>This is the LDAP &quot;<tt class="code">compare</tt>&quot; operation. It can be used to compare the value
       of a given attribute with some already known value. In reality this is mostly
       used to check whether a given person is a member of some group. In such a case
       you can compare the DN of the user as a given value, with the values in the
       attribute &quot;<tt class="code">member</tt>&quot; of an object of the type <tt class="code">groupOfNames</tt>.
       If the compare operation fails, this test fails with errorcode <tt class="code">49</tt>.</p>
       <p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Entry DN</td>
<td>The current distinguished name of the object of
           which you want  to compare an attribute, relative to the given DN in the thread bind operation.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Compare filter</td>
<td>In the form &quot;<tt class="code">attribute=value</tt>&quot;</td>
<td>
Yes
</td>
</tr>
</table>

     </dd>
   </dl><p><b>See Also:</b></p>
<ul>
<li><a href="build-ldapext-test-plan.html">Building an LDAP Test Plan</a></li>
<li><a href="../usermanual/component_reference.html#LDAP_Extended_Request_Defaults">LDAP Extended Request Defaults</a></li>
</ul>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Access_Log_Sampler">19.1.9 Access Log Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>
<center><h2>(Beta Code)</h2></center><p>AccessLogSampler was designed to read access logs and generate http requests.
For those not familiar with the access log, it is the log the webserver maintains of every
request it accepted. This means every image, css file, javascript file, html file, …
The current implementation is complete, but some features have not been enabled. 
There is a filter for the access log parser, but I haven't figured out how to link to the pre-processor. 
Once I do, changes to the sampler will be made to enable that functionality.</p>
<p>Tomcat uses the common format for access logs. This means any webserver that uses the
common log format can use the AccessLogSampler. Server that use common log format include:
Tomcat, Resin, Weblogic, and SunOne. Common log format looks
like this:</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>127.0.0.1 - - [21/Oct/2003:05:37:21 -0500] &quot;GET /index.jsp?%2Findex.jsp= HTTP/1.1&quot; 200 8343</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The current implementation of the parser only looks at the text within the quotes that contains one of the HTTP protocol methods (<tt class="code">GET</tt>, <tt class="code">PUT</tt>, <tt class="code">POST</tt>, <tt class="code">DELETE</tt>, …).
Everything else is stripped out and ignored. For example, the response code is completely
ignored by the parser. </td></tr>
</table>
</p>

<p>For the future, it might be nice to filter out entries that
do not have a response code of <tt class="code">200</tt>. Extending the sampler should be fairly simple. There
are two interfaces you have to implement:</p>
<ul>
<li><tt class="code">org.apache.jmeter.protocol.http.util.accesslog.LogParser</tt></li>
<li><tt class="code">org.apache.jmeter.protocol.http.util.accesslog.Generator</tt></li>
</ul>
<p>The current implementation of AccessLogSampler uses the generator to create a new
HTTPSampler. The servername, port and get images are set by AccessLogSampler. Next,
the parser is called with integer <tt class="code">1</tt>, telling it to parse one entry. After that,
<tt class="code">HTTPSampler.sample()</tt> is called to make the request.</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
samp = (HTTPSampler) GENERATOR.generateRequest();
samp.setDomain(this.getDomain());
samp.setPort(this.getPort());
samp.setImageParser(this.isImageParser());
PARSER.parse(1);
res = samp.sample();
res.setSampleLabel(samp.toString());
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

The required methods in <tt class="code">LogParser</tt> are:
<ul>
<li><tt class="code">setGenerator(Generator)</tt></li>
<li><tt class="code">parse(int)</tt></li> 
</ul>
<p>
Classes implementing <tt class="code">Generator</tt> interface should provide concrete implementation
for all the methods. For an example of how to implement either interface, refer to
<tt class="code">StandardGenerator</tt> and <tt class="code">TCLogParser</tt>.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='702' height='305' src="../../docs/images/screenshots/accesslogsampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server</td>
<td>Domain name or IP address of the web server.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Protocol</td>
<td>Scheme</td>
<td>
No (defaults to http
</td>
</tr>
<tr>
<td>Port</td>
<td>Port the web server is listening to.</td>
<td>
No (defaults to 80)
</td>
</tr>
<tr>
<td>Log parser class</td>
<td>The log parser class is responsible for parsing the logs.</td>
<td>
Yes (default provided)
</td>
</tr>
<tr>
<td>Filter</td>
<td>The filter class is used to filter out certain lines.</td>
<td>
No
</td>
</tr>
<tr>
<td>Location of log file</td>
<td>The location of the access log file.</td>
<td>
Yes
</td>
</tr>
</table>
<p>
The <tt class="code">TCLogParser</tt> processes the access log independently for each thread.
The <tt class="code">SharedTCLogParser</tt> and <tt class="code">OrderPreservingLogParser</tt> share access to the file, 
i.e. each thread gets the next entry in the log.
</p><p>
The <tt class="code">SessionFilter</tt> is intended to handle Cookies across threads. 
It does not filter out any entries, but modifies the cookie manager so that the cookies for a given IP are
processed by a single thread at a time. If two threads try to process samples from the same client IP address,
then one will be forced to wait until the other has completed.
</p><p>
The <tt class="code">LogFilter</tt> is intended to allow access log entries to be filtered by filename and regex,
as well as allowing for the replacement of file extensions. However, it is not currently possible
to configure this via the GUI, so it cannot really be used.
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_Sampler">19.1.10 BeanShell Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This sampler allows you to write a sampler using the BeanShell scripting language.
</p><p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> interface methods.
These must be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p>
The BeanShell sampler also supports the <tt class="code">Interruptible</tt> interface.
The <tt class="code">interrupt()</tt> method can be defined in the script or the init file.
</p>
    <p><b>Control Panel</b></p>
<div align="center"><img width='848' height='566' src="../../docs/images/screenshots/beanshellsampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.
    The name is stored in the script variable Label</td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    This is intended for use with script files; for scripts defined in the GUI, you can use whatever
    variable and function references you need within the script itself.
    The parameters are stored in the following variables:
    <dl>
        <dt><tt class="code">Parameters</tt></dt><dd>string containing the parameters as a single variable</dd>
        <dt><tt class="code">bsh.args</tt></dt><dd>String array containing parameters, split on white-space</dd>
    </dl></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the BeanShell script to run.
    The file name is stored in the script variable <tt class="code">FileName</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The BeanShell script to run. 
    The return value (if not <tt class="code">null</tt>) is stored as the sampler result.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
N.B. Each Sampler instance has its own BeanShell interpreter,
and Samplers are only called from a single thread
</td></tr>
</table>
</p>
<p>
If the property &quot;<tt class="code">beanshell.sampler.init</tt>&quot; is defined, it is passed to the Interpreter
as the name of a sourced file.
This can be used to define common methods and variables. 
There is a sample init file in the bin directory: <tt class="code">BeanShellSampler.bshrc</tt>.
</p><p>
If a script file is supplied, that will be used, otherwise the script will be used.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
JMeter processes function and variable references before passing the script field to the interpreter,
so the references will only be resolved once.
Variable and function references in script files will be passed
verbatim to the interpreter, which is likely to cause a syntax error.
In order to use runtime variables, please use the appropriate props methods,
e.g.<tt class="code">props.get(&quot;START.HMS&quot;); props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt>
<br>
BeanShell does not currently support Java 5 syntax such as generics and the enhanced for loop.
</td></tr>
</table>
</p>
<p>Before invoking the script, some variables are set up in the BeanShell interpreter:</p><p>The contents of the Parameters field is put into the variable &quot;<tt class="code">Parameters</tt>&quot;.
            The string is also split into separate tokens using a single space as the separator, and the resulting list
            is stored in the String array <tt class="code">bsh.args</tt>.</p><p>The full list of BeanShell variables that is set up is as follows:</p><ul>
        <li><tt class="code">log</tt> - the <a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a></li>
        <li><tt class="code">Label</tt> - the Sampler label</li>
        <li><tt class="code">FileName</tt> - the file name, if any</li>
        <li><tt class="code">Parameters</tt> - text from the Parameters field</li>
        <li><tt class="code">bsh.args</tt> - the parameters, split as described above</li>
        <li><tt class="code">SampleResult</tt> - pointer to the current <a href="../api/org/apache/jmeter/samplers/SampleResult.html"><tt class="code">SampleResult</tt></a></li>
            <li><tt class="code">ResponseCode</tt> defaults to <tt class="code">200</tt></li>
            <li><tt class="code">ResponseMessage</tt> defaults to &quot;<tt class="code">OK</tt>&quot;</li>
            <li><tt class="code">IsSuccess</tt> defaults to <tt class="code">true</tt></li>
            <li><tt class="code">ctx</tt> - <a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a></li>
            <li><tt class="code">vars</tt> - <a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>  - e.g. 
               <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(&quot;VAR1&quot;);
vars.put(&quot;VAR2&quot;,&quot;value&quot;);
vars.remove(&quot;VAR3&quot;);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
            <li><tt class="code">props</tt> - JMeterProperties (class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g.
                <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
        </ul><p>When the script completes, control is returned to the Sampler, and it copies the contents
            of the following script variables into the corresponding variables in the <a href="../api/org/apache/jmeter/samplers/SampleResult.html"><tt class="code">SampleResult</tt></a>:</p><ul>
            <li><tt class="code">ResponseCode</tt> - for example <tt class="code">200</tt></li>
            <li><tt class="code">ResponseMessage</tt> - for example &quot;<tt class="code">OK</tt>&quot;</li>
            <li><tt class="code">IsSuccess</tt> - <tt class="code">true</tt> or <tt class="code">false</tt></li>
            </ul><p>The SampleResult ResponseData is set from the return value of the script.
            If the script returns null, it can set the response directly, by using the method 
            <tt class="code">SampleResult.setResponseData(data)</tt>, where data is either a String or a byte array.
            The data type defaults to &quot;<tt class="code">text</tt>&quot;, but can be set to binary by using the method
            <tt class="code">SampleResult.setDataType(SampleResult.BINARY)</tt>.
            </p><p>The <tt class="code">SampleResult</tt> variable gives the script full access to all the fields and
                methods in the <tt class="code">SampleResult</tt>. For example, the script has access to the methods
                <tt class="code">setStopThread(boolean)</tt> and <tt class="code">setStopTest(boolean)</tt>.

                Here is a simple (not very useful!) example script:</p><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
if (bsh.args[0].equalsIgnoreCase(&quot;StopThread&quot;)) {
    log.info(&quot;Stop Thread detected!&quot;);
    SampleResult.setStopThread(true);
}
return &quot;Data from sample with Label &quot;+Label;
//or
SampleResult.setResponseData(&quot;My data&quot;);
return null;
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<p>Another example:<br> ensure that the property <tt class="code">beanshell.sampler.init=BeanShellSampler.bshrc</tt> is defined in <tt class="code">jmeter.properties</tt>. 
The following script will show the values of all the variables in the <tt class="code">ResponseData</tt> field:
</p><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
return getVariables();
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<p>
For details on the methods available for the various classes (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html"><tt class="code">JMeterVariables</tt></a>, <a href="../api/org/apache/jmeter/samplers/SampleResult.html"><tt class="code">SampleResult</tt></a> etc.) please check the Javadoc or the source code.
Beware however that misuse of any methods can cause subtle faults that may be difficult to find.
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_Sampler_(DEPRECATED)">19.1.11 BSF Sampler (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This sampler allows you to write a sampler using a BSF scripting language.<br>
        See the <a href="http://commons.apache.org/bsf/index.html">Apache Bean Scripting Framework</a>
        website for details of the languages supported.
        You may need to download the appropriate jars for the language; they should be put in the JMeter <tt class="code">lib</tt> directory.
        </p>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
        The BSF API has been largely superseded by JSR-223, which is included in Java 6 onwards.
        Most scripting languages now include support for JSR-223; please use the JSR223 Sampler instead.
        The BSF Sampler should only be needed for supporting legacy languages/test scripts.
        </td></tr>
</table>
</p>

        <p>By default, JMeter supports the following languages:</p>
        <ul>
        <li>javascript</li>
        <li>xslt</li>
        </ul>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Unlike the BeanShell sampler, the interpreter is not saved between invocations.</td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='848' height='590' src="../../docs/images/screenshots/bsfsampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Scripting Language</td>
<td>Name of the BSF scripting language to be used.
      <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>N.B. Not all the languages in the drop-down list are supported by default.
        The following are supported: javascript, xslt.
        Others may be available if the appropriate jar is installed in the JMeter lib directory.
      </td></tr>
</table>
</p>

    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Script File</td>
<td>Name of a file to be used as a BSF script, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Parameters</td>
<td>List of parameters to be passed to the script file or the script.</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>Script to be passed to BSF language</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
If a script file is supplied, that will be used, otherwise the script will be used.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
JMeter processes function and variable references before passing the script field to the interpreter,
so the references will only be resolved once.
Variable and function references in script files will be passed
verbatim to the interpreter, which is likely to cause a syntax error.
In order to use runtime variables, please use the appropriate props methods,
e.g.<tt class="code">props.get(&quot;START.HMS&quot;); props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt> 
</td></tr>
</table>
</p>
<p>
Before invoking the script, some variables are set up.
Note that these are BSF variables - i.e. they can be used directly in the script.
</p><ul>
<li><tt class="code">log</tt> - the <a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a></li>
<li><tt class="code">Label</tt> - the Sampler label</li>
<li><tt class="code">FileName</tt> - the file name, if any</li>
<li><tt class="code">Parameters</tt> - text from the Parameters field</li>
<li><tt class="code">args</tt> - the parameters, split as described above</li>
<li><tt class="code">SampleResult</tt> - pointer to the current <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a></li>
<li><tt class="code">sampler</tt> - <a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a> - pointer to current Sampler</li>
<li><tt class="code">ctx</tt> - <a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a></li>
<li><tt class="code">vars</tt> - <a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>  - e.g. 
  <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(&quot;VAR1&quot;);
vars.put(&quot;VAR2&quot;,&quot;value&quot;);
vars.remove(&quot;VAR3&quot;);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - JMeterProperties  (class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g. 
  <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>
The <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a> ResponseData is set from the return value of the script.
If the script returns <tt class="code">null</tt>, it can set the response directly, by using the method 
<tt class="code">SampleResult.setResponseData(data)</tt>, where data is either a String or a byte array.
The data type defaults to &quot;<tt class="code">text</tt>&quot;, but can be set to binary by using the method
<tt class="code">SampleResult.setDataType(SampleResult.BINARY)</tt>.
</p><p>
The SampleResult variable gives the script full access to all the fields and
methods in the SampleResult. For example, the script has access to the methods
<tt class="code">setStopThread(boolean)</tt> and <tt class="code">setStopTest(boolean)</tt>.
</p><p>
Unlike the BeanShell Sampler, the BSF Sampler does not set the <tt class="code">ResponseCode</tt>, <tt class="code">ResponseMessage</tt> and sample status via script variables.
Currently the only way to change these is via the <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a> methods:
</p><ul>
<li><tt class="code">SampleResult.setSuccessful(true/false)</tt></li>
<li><tt class="code">SampleResult.setResponseCode(&quot;code&quot;)</tt></li>
<li><tt class="code">SampleResult.setResponseMessage(&quot;message&quot;)</tt></li>
</ul></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_Sampler">19.1.11.1 JSR223 Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 Sampler allows JSR223 script code to be used to perform a sample.
</p>
<p>
The JSR223 test elements have a feature (compilation) that can significantly increase performance.
To benefit from this feature:
</p>
<ul>
    <li>Use Script files instead of inlining them. This will make JMeter compile them if this feature is available on ScriptEngine and cache them.</li>
    <li>Or Use Script Text and check <tt class="code">Cache compiled script if available</tt> property.
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When using this feature, ensure your script code does not use JMeter variables directly in script code as caching would only cache first replacement. Instead use script parameters.</td></tr>
</table>
</p>

    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>To benefit from caching and compilation, the language engine used for scripting must implement JSR223 <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not)</td></tr>
</table>
</p>

    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When using Groovy as scripting language and not checking <tt class="code">Cache compiled script if available</tt> (while caching is recommended), you should set this JVM Property <tt class="code">-Dgroovy.use.classvalue=true</tt>
        due to a Groovy Memory leak as of version 2.4.6, see:
        <ul>
            <li><a href="https://issues.apache.org/jira/browse/GROOVY-7683">GROOVY-7683</a></li>
            <li><a href="https://issues.apache.org/jira/browse/GROOVY-7591">GROOVY-7591</a></li>
            <li><a href="https://bugs.openjdk.java.net/browse/JDK-8136353">JDK-8136353</a></li>
        </ul> 
    </td></tr>
</table>
</p>

    </li>
</ul>
Cache size is controlled by the following jmeter property (<tt class="code">jmeter.properties</tt>):
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>jsr223.compiled_scripts_cache_size=100</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Unlike the <a href="../usermanual/component_reference.html#BeanShell_Sampler">BeanShell Sampler</a>, the interpreter is not saved between invocations.</td></tr>
</table>
</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
JSR223 Test Elements using Script file or Script text + checked <tt class="code">Cache compiled script if available</tt> are now compiled if ScriptEngine supports this feature, this enables great performance enhancements.
</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='861' height='502' src="../../docs/images/screenshots/jsr223-sampler.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
JMeter processes function and variable references before passing the script field to the interpreter,
so the references will only be resolved once.
Variable and function references in script files will be passed
verbatim to the interpreter, which is likely to cause a syntax error.
In order to use runtime variables, please use the appropriate props methods,
e.g. <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Scripting Language</td>
<td>Name of the JSR223 scripting language to be used.
      <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>There are other languages supported than those that appear in the drop-down list.
        Others may be available if the appropriate jar is installed in the JMeter lib directory.
      </td></tr>
</table>
</p>

    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Script File</td>
<td>Name of a file to be used as a JSR223 script, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Parameters</td>
<td>List of parameters to be passed to the script file or the script.</td>
<td>
No
</td>
</tr>
<tr>
<td>Cache compiled script if available</td>
<td>If checked (advised) and the language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not), JMeter will compile the Script and cache it using it's MD5 hash as unique cache key</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>Script to be passed to JSR223 language</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
If a script file is supplied, that will be used, otherwise the script will be used.</p><p>
Before invoking the script, some variables are set up.
Note that these are JSR223 variables - i.e. they can be used directly in the script.
</p><ul>
<li><tt class="code">log</tt> - the <a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a></li>
<li><tt class="code">Label</tt> - the Sampler label</li>
<li><tt class="code">FileName</tt> - the file name, if any</li>
<li><tt class="code">Parameters</tt> - text from the Parameters field</li>
<li><tt class="code">args</tt> - the parameters, split as described above</li>
<li><tt class="code">SampleResult</tt> - pointer to the current <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a></li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>) - pointer to current Sampler</li>
<li><tt class="code">ctx</tt> - <a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a></li>
<li><tt class="code">vars</tt> - <a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>  - e.g. 
  <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(&quot;VAR1&quot;);
vars.put(&quot;VAR2&quot;,&quot;value&quot;);
vars.remove(&quot;VAR3&quot;);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - JMeterProperties  (class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g. 
  <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>
The <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a> ResponseData is set from the return value of the script.
If the script returns <tt class="code">null</tt>, it can set the response directly, by using the method 
<tt class="code">SampleResult.setResponseData(data)</tt>, where data is either a String or a byte array.
The data type defaults to &quot;<tt class="code">text</tt>&quot;, but can be set to binary by using the method
<tt class="code">SampleResult.setDataType(SampleResult.BINARY)</tt>.
</p><p>
The SampleResult variable gives the script full access to all the fields and
methods in the SampleResult. For example, the script has access to the methods
<tt class="code">setStopThread(boolean)</tt> and <tt class="code">setStopTest(boolean)</tt>.
</p><p>
Unlike the BeanShell Sampler, the JSR223 Sampler does not set the <tt class="code">ResponseCode</tt>, <tt class="code">ResponseMessage</tt> and sample status via script variables.
Currently the only way to changes these is via the <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a> methods:
</p><ul>
<li><tt class="code">SampleResult.setSuccessful(true/false)</tt></li>
<li><tt class="code">SampleResult.setResponseCode(&quot;code&quot;)</tt></li>
<li><tt class="code">SampleResult.setResponseMessage(&quot;message&quot;)</tt></li>
</ul></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="TCP_Sampler">19.1.12 TCP Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        The TCP Sampler opens a TCP/IP connection to the specified server.
        It then sends the text, and waits for a response.
        </p><p>
        If &quot;<tt class="code">Re-use connection</tt>&quot; is selected, connections are shared between Samplers in the same thread,
        provided that the exact same host name string and port are used. 
        Different hosts/port combinations will use different connections, as will different threads. 
        If both of &quot;<tt class="code">Re-use connection</tt>&quot; and &quot;<tt class="code">Close connection</tt>&quot; are selected, the socket will be closed after running the sampler. 
        On the next sampler, another socket will be created. You may want to close a socket at the end of each thread loop.
        </p><p>
        If an error is detected - or &quot;<tt class="code">Re-use connection</tt>&quot; is not selected - the socket is closed.
        Another socket will be reopened on the next sample.
        </p><p>
        The following properties can be used to control its operation:
        </p>
        <dl>
            <dt><tt class="code">tcp.status.prefix</tt></dt><dd>text that precedes a status number</dd>
            <dt><tt class="code">tcp.status.suffix</tt></dt><dd>text that follows a status number</dd>
            <dt><tt class="code">tcp.status.properties</tt></dt><dd>name of property file to convert status codes to messages</dd>
            <dt><tt class="code">tcp.handler</tt></dt><dd>Name of TCP Handler class (default <tt class="code">TCPClientImpl</tt>) - only used if not specified on the GUI</dd>
        </dl>
        The class that handles the connection is defined by the GUI, failing that the property <tt class="code">tcp.handler</tt>.
        If not found, the class is then searched for in the package <tt class="code">org.apache.jmeter.protocol.tcp.sampler</tt>.
        <p>
        Users can provide their own implementation.
        The class must extend <tt class="code">org.apache.jmeter.protocol.tcp.sampler.TCPClient</tt>.
        </p>
        <p>
        The following implementations are currently provided.
        </p>
        <ul>
        <li><tt class="code">TCPClientImpl</tt></li>
        <li><tt class="code">BinaryTCPClientImpl</tt></li>
        <li><tt class="code">LengthPrefixedBinaryTCPClientImpl</tt></li>
        </ul>
        The implementations behave as follows:
        <dl>
        <dt><tt class="code">TCPClientImpl</tt></dt>
        <dd>
        This implementation is fairly basic.
        When reading the response, it reads until the end of line byte, if this is defined
        by setting the property <tt class="code">tcp.eolByte</tt>, otherwise until the end of the input stream.
        You can control charset encoding by setting <tt class="code">tcp.charset</tt>, which will default to Platform default encoding.
        </dd>
        <dt><tt class="code">BinaryTCPClientImpl</tt></dt>
        <dd>
        This implementation converts the GUI input, which must be a hex-encoded string, into binary,
        and performs the reverse when reading the response.
        When reading the response, it reads until the end of message byte, if this is defined
        by setting the property <tt class="code">tcp.BinaryTCPClient.eomByte</tt>, otherwise until the end of the input stream.
        </dd>
        <dt><tt class="code">LengthPrefixedBinaryTCPClientImpl</tt></dt>
        <dd>
        This implementation extends BinaryTCPClientImpl by prefixing the binary message data with a binary length byte.
        The length prefix defaults to 2 bytes.
        This can be changed by setting the property <tt class="code">tcp.binarylength.prefix.length</tt>.
        </dd>
        <dt><b>Timeout handling</b></dt>
        <dd>
        If the timeout is set, the read will be terminated when this expires. 
        So if you are using an <tt class="code">eolByte</tt>/<tt class="code">eomByte</tt>, make sure the timeout is sufficiently long,
        otherwise the read will be terminated early.
        </dd>
        <dt><b>Response handling</b></dt>
        <dd>
        If <tt class="code">tcp.status.prefix</tt> is defined, then the response message is searched for the text following
        that up to the suffix. If any such text is found, it is used to set the response code.
        The response message is then fetched from the properties file (if provided).
        <a name="tcp-prefix-example"/>
<p><b>Usage of pre- and suffix</b></p>

        For example, if the prefix = &quot;<tt class="code">[</tt>&quot; and the suffix = &quot;<tt class="code">]</tt>&quot;, then the following response:
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>[J28] XI123,23,GBP,CR</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        would have the response code <tt class="code">J28</tt>.
        
        Response codes in the range &quot;<tt class="code">400</tt>&quot;-&quot;<tt class="code">499</tt>&quot; and &quot;<tt class="code">500</tt>&quot;-&quot;<tt class="code">599</tt>&quot; are currently regarded as failures;
        all others are successful. [This needs to be made configurable!]
        </dd>
        </dl>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The login name/password are not used by the supplied TCP implementations.</td></tr>
</table>
</p>

        <br>
        Sockets are disconnected at the end of a test run.
<p><b>Control Panel</b></p>
<div align="center"><img width='827' height='521' src="../../docs/images/screenshots/tcpsampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>TCPClient classname</td>
<td>Name of the TCPClient class. Defaults to the property <tt class="code">tcp.handler</tt>, failing that <tt class="code">TCPClientImpl</tt>.</td>
<td>
No
</td>
</tr>
<tr>
<td>ServerName or IP</td>
<td>Name or IP of TCP server</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port Number</td>
<td>Port to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Re-use connection</td>
<td>If selected, the connection is kept open. Otherwise it is closed when the data has been read.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Close connection</td>
<td>If selected, the connection will be closed after running the sampler.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>SO_LINGER</td>
<td>Enable/disable <tt class="code">SO_LINGER</tt> with the specified linger time in seconds when a socket is created. If you set &quot;<tt class="code">SO_LINGER</tt>&quot; value as <tt class="code">0</tt>, you may prevent large numbers of sockets sitting around with a <tt class="code">TIME_WAIT</tt> status.</td>
<td>
No
</td>
</tr>
<tr>
<td>End of line(EOL) byte value</td>
<td>Byte value for end of line, set this to a value outside the range <tt class="code">-128</tt> to <tt class="code">+127</tt> to skip <tt class="code">eol</tt> checking. You may set this in <tt class="code">jmeter.properties</tt> file as well with <tt class="code">eolByte</tt> property. If you set this in TCP Sampler Config and in <tt class="code">jmeter.properties</tt> file at the same time, the setting value in the TCP Sampler Config will be used.</td>
<td>
No
</td>
</tr>
<tr>
<td>Connect Timeout</td>
<td>Connect Timeout (milliseconds, <tt class="code">0</tt> disables).</td>
<td>
No
</td>
</tr>
<tr>
<td>Response Timeout</td>
<td>Response Timeout (milliseconds, <tt class="code">0</tt> disables).</td>
<td>
No
</td>
</tr>
<tr>
<td>Set NoDelay</td>
<td>See <tt class="code">java.net.Socket.setTcpNoDelay()</tt>.
  If selected, this will disable Nagle's algorithm, otherwise Nagle's algorithm will be used.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Text to Send</td>
<td>Text to be sent</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Login User</td>
<td>User Name - not used by default implementation</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password - not used by default implementation (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JMS_Publisher">19.1.13 JMS Publisher</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        JMS Publisher will publish messages to a given destination (topic/queue). For those not
        familiar with JMS, it is the J2EE specification for messaging. There are
        numerous JMS servers on the market and several open source options.
        </p>
        <br>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>JMeter does not include any JMS implementation jar; this must be downloaded from the JMS provider and put in the lib directory</td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='854' height='796' src="../../docs/images/screenshots/jmspublisher.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>use JNDI properties file</td>
<td>use <tt class="code">jndi.properties</tt>. 
  Note that the file must be on the classpath - e.g. by updating the <tt class="code">user.classpath</tt> JMeter property.
  If this option is not selected, JMeter uses the &quot;<tt class="code">JNDI Initial Context Factory</tt>&quot; and &quot;<tt class="code">Provider URL</tt>&quot; fields
  to create the connection.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>JNDI Initial Context Factory</td>
<td>Name of the context factory</td>
<td>
No
</td>
</tr>
<tr>
<td>Provider URL</td>
<td>The URL for the jms provider</td>
<td>
Yes, unless using jndi.properties
</td>
</tr>
<tr>
<td>Destination</td>
<td>The message destination (topic or queue name)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Setup</td>
<td>The destination setup type. With <tt class="code">At startup</tt>, the destination name is static (i.e. always same name during the test), with <tt class="code">Each sample</tt>, the destination name is dynamic and is evaluate at each sample (i.e. the destination name may be a variable)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Authentication</td>
<td>Authentication requirement for the JMS provider</td>
<td>
Yes
</td>
</tr>
<tr>
<td>User</td>
<td>User Name</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Expiration</td>
<td>
      The expiration time (in milliseconds) of the message before it becomes obsolete.
      If you do not specify an expiration time, the default value is <tt class="code">0</tt> (never expires). 
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Priority</td>
<td>
      The priority level of the message. There are ten priority levels from <tt class="code">0</tt> (lowest) to <tt class="code">9</tt> (highest). 
      If you do not specify a priority level, the default level is <tt class="code">4</tt>. 
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Reconnect on error codes (regex)</td>
<td>Regular expression for JMSException error codes which force reconnection. If empty no reconnection will be done</td>
<td>
No
</td>
</tr>
<tr>
<td>Number of samples to aggregate</td>
<td>Number of samples to aggregate</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Message source</td>
<td>Where to obtain the message:
  <dl>
    <dt><tt class="code">From File</tt></dt><dd>means the referenced file will be read and reused by all samples. If file name changes it is reloaded since JMeter 3.0</dd>
    <dt><tt class="code">Random File from folder specified below</tt></dt><dd>means a random file will be selected from folder specified below, this folder must contain either files with extension <tt class="code">.dat</tt> for Bytes Messages, or files with extension <tt class="code">.txt</tt> or <tt class="code">.obj</tt> for Object or Text messages</dd>
    <dt><tt class="code">Text area</tt></dt><dd>The Message to use either for Text or Object message</dd>
  </dl>
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Message type</td>
<td>Text, Map, Object message or Bytes Message</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Content encoding</td>
<td>Specify the encoding for reading the message source file:
  <dl> 
    <dt><tt class="code">RAW</tt>:</dt><dd>No variable support from the file and load it with default system charset.</dd>
    <dt><tt class="code">DEFAULT</tt>:</dt><dd>Load file with default system encoding, except for XML which relies on XML prolog. If the file contain variables, they will be processed.</dd>
    <dt><tt class="code">Standard charsets</tt>:</dt><dd>The specified encoding (valid or not) is used for reading the file and processing variables</dd>
  </dl>
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use non-persistent delivery mode?</td>
<td>
      Whether to set <tt class="code">DeliveryMode.NON_PERSISTENT</tt> (defaults to <tt class="code">false</tt>)
  </td>
<td>
No
</td>
</tr>
<tr>
<td>JMS Properties</td>
<td>
      The JMS Properties are properties specific for the underlying messaging system.
      You can setup the name, the value and the class (type) of value. Default type is <tt class="code">String</tt>.
      For example: for WebSphere 5.1 web services you will need to set the JMS Property targetService to test
      webservices through JMS.
  </td>
<td>
No
</td>
</tr>
</table>
<p>
For the MapMessage type, JMeter reads the source as lines of text.
Each line must have 3 fields, delimited by commas.
The fields are:</p><ul>
<li>Name of entry</li>
<li>Object class name, e.g. &quot;<tt class="code">String</tt>&quot; (assumes <tt class="code">java.lang</tt> package if not specified)</li>
<li>Object string value</li>
</ul><tt class="code">valueOf(String)</tt><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
name,String,Example
size,Integer,1234
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td> 
The Object message is implemented and works as follow:
<ul>
<li>Put the JAR that contains your object and its dependencies in <tt class="code">jmeter_home/lib/</tt> folder</li>
<li>Serialize your object as XML using XStream</li>
<li>Either put result in a file suffixed with <tt class="code">.txt</tt> or <tt class="code">.obj</tt> or put XML content directly in Text Area</li>  
</ul>
Note that if message is in a file, replacement of properties will not occur while it will if you use Text Area.
</td></tr>
</table>
</p>
<p>
The following table shows some values which may be useful when configuring JMS:
</p><table>
<tr>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Apache <a href="http://activemq.apache.org/">ActiveMQ</a>
</font>
</td>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Value(s)
</font>
</td>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Comment
</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Context Factory</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">org.apache.activemq.jndi.ActiveMQInitialContextFactory</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
.</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Provider URL</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">vm://localhost</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
&nbsp;
</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Provider URL</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">vm:(broker:(vm://localhost)?persistent=false)</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Disable persistence</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Queue Reference</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">dynamicQueues/QUEUENAME</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<a href="http://activemq.apache.org/jndi-support.html#JNDISupport-Dynamicallycreatingdestinations">Dynamically define</a> the QUEUENAME to JNDI</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Topic Reference</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">dynamicTopics/TOPICNAME</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<a href="http://activemq.apache.org/jndi-support.html#JNDISupport-Dynamicallycreatingdestinations">Dynamically define</a> the TOPICNAME to JNDI</font>
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JMS_Subscriber">19.1.14 JMS Subscriber</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        JMS Publisher will subscribe to messages in a given destination (topic or queue). For those not
        familiar with JMS, it is the J2EE specification for messaging. There are
        numerous JMS servers on the market and several open source options.
        </p>
        <br>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>JMeter does not include any JMS implementation jar; this must be downloaded from the JMS provider and put in the lib directory</td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='739' height='607' src="../../docs/images/screenshots/jmssubscriber.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>use JNDI properties file</td>
<td>use <tt class="code">jndi.properties</tt>. 
  Note that the file must be on the classpath - e.g. by updating the <tt class="code">user.classpath</tt> JMeter property.
  If this option is not selected, JMeter uses the &quot;<tt class="code">JNDI Initial Context Factory</tt>&quot; and &quot;<tt class="code">Provider URL</tt>&quot; fields
  to create the connection.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>JNDI Initial Context Factory</td>
<td>Name of the context factory</td>
<td>
No
</td>
</tr>
<tr>
<td>Provider URL</td>
<td>The URL for the jms provider</td>
<td>
No
</td>
</tr>
<tr>
<td>Destination</td>
<td>the message destination (topic or queue name)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Durable Subscription ID</td>
<td>The ID to use for a durable subscription. On first 
  use the respective queue will automatically be generated by the JMS provider if it does not exist yet.</td>
<td>
No
</td>
</tr>
<tr>
<td>Client ID</td>
<td>The Client ID to use when you use a durable subscription. 
  Be sure to add a variable like <tt class="code">${__threadNum}</tt> when you have more than one Thread.</td>
<td>
No
</td>
</tr>
<tr>
<td>JMS Selector</td>
<td>Message Selector as defined by JMS specification to extract only 
  messages that respect the Selector condition. Syntax uses subpart of SQL 92.</td>
<td>
No
</td>
</tr>
<tr>
<td>Setup</td>
<td>The destination setup type. With <tt class="code">At startup</tt>, the destination name is static (i.e. always same name during the test), with <tt class="code">Each sample</tt>, the destination name is dynamic and is evaluate at each sample (i.e. the destination name may be a variable)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Authentication</td>
<td>Authentication requirement for the JMS provider</td>
<td>
Yes
</td>
</tr>
<tr>
<td>User</td>
<td>User Name</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Number of samples to aggregate</td>
<td>number of samples to aggregate</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Save response</td>
<td>should the sampler store the response. If not, only the response length is returned.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Timeout</td>
<td>Specify the timeout to be applied, in milliseconds. <tt class="code">0</tt>=none. 
  This is the overall aggregate timeout, not per sample.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Client</td>
<td>Which client implementation to use.
  Both of them create connections which can read messages. However they use a different strategy, as described below:
  <dl>
  <dt><tt class="code">MessageConsumer.receive()</tt></dt><dd>calls <tt class="code">receive()</tt> for every requested message. 
  Retains the connection between samples, but does not fetch messages unless the sampler is active.
  This is best suited to Queue subscriptions. 
  </dd>
  <dt><tt class="code">MessageListener.onMessage()</tt></dt><dd>establishes a Listener that stores all incoming messages on a queue. 
  The listener remains active after the sampler completes.
  This is best suited to Topic subscriptions.</dd>
  </dl>
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Stop between samples?</td>
<td>
  If selected, then JMeter calls <tt class="code">Connection.stop()</tt> at the end of each sample (and calls <tt class="code">start()</tt> before each sample).
  This may be useful in some cases where multiple samples/threads have connections to the same queue.
  If not selected, JMeter calls <tt class="code">Connection.start()</tt> at the start of the thread, and does not call <tt class="code">stop()</tt> until the end of the thread.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Separator</td>
<td>
  Separator used to separate messages when there is more than one (related to setting Number of samples to aggregate).
  Note that <tt class="code">\n</tt>, <tt class="code">\r</tt>, <tt class="code">\t</tt> are accepted.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Reconnect on error codes (regex)</td>
<td>Regular expression for JMSException error codes which force reconnection. If empty no reconnection will be done</td>
<td>
No
</td>
</tr>
<tr>
<td>Pause between errors (ms)</td>
<td>Pause in milliseconds that Subscriber will make when an error occurs</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JMS_Point-to-Point">19.1.15 JMS Point-to-Point</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        This sampler sends and optionally receives JMS Messages through point-to-point connections (queues).
        It is different from pub/sub messages and is generally used for handling transactions.
        </p>
        <p>
        <tt class="code">Request Only</tt> will typically be used to put load on a JMS System.<br>
        <tt class="code">Request Response</tt> will be used when you want to test response time of a JMS service that processes messages sent to the Request Queue as this mode will wait for the response on the Reply queue sent by this service.<br>
        </p>
        <p>
        JMeter use the properties <tt class="code">java.naming.security.[principal|credentials]</tt> - if present -
        when creating the Queue Connection. If this behaviour is not desired, set the JMeter property
        <tt class="code">JMSSampler.useSecurity.properties=false</tt>
        </p>
        <br>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>JMeter does not include any JMS implementation jar; this must be downloaded from the JMS provider and put in the lib directory</td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='882' height='804' src="../../docs/images/screenshots/jms/JMS_Point-to-Point.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>QueueConnection Factory</td>
<td>
    The JNDI name of the queue connection factory to use for connecting to the messaging system.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>JNDI Name Request queue</td>
<td>
    This is the JNDI name of the queue to which the messages are sent.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>JNDI Name Reply queue</td>
<td>
    The JNDI name of the receiving queue. If a value is provided here and the communication style is <tt class="code">Request Response</tt>
    this queue will be monitored for responses to the requests sent.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>JMS Selector</td>
<td>
    Message Selector as defined by JMS specification to extract only 
    messages that respect the Selector condition. Syntax uses subpart of SQL 92.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Communication style</td>
<td>
    The Communication style can be <tt class="code">Request Only</tt> (also known as Fire and Forget) or <tt class="code">Request Response</tt>:
    <dl>
    <dt><tt class="code">Request Only</tt></dt><dd> will only send messages and will not monitor replies. As such it can be used to put load on a system.</dd>
    <dt><tt class="code">Request Response</tt></dt><dd> will send messages and monitor the replies it receives. Behaviour depends on the value of the JNDI Name Reply Queue.
    If JNDI Name Reply Queue has a value, this queue is used to monitor the results. Matching of request and reply is done with
    the message id of the request and the correlation id of the reply. If the JNDI Name Reply Queue is empty, then
    temporary queues will be used for the communication between the requestor and the server.
    This is very different from the fixed reply queue. With temporary queues the sending thread will block until the reply message has been received.
    With <tt class="code">Request Response</tt> mode, you need to have a Server that listens to messages sent to Request Queue and sends replies to 
    queue referenced by <tt class="code">message.getJMSReplyTo()</tt>.</dd>
    </dl>
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use alternate fields for message correlation</td>
<td>
    These check-boxes select the fields which will be used for matching the response message with the original request.
    <dl>
    <dt><tt class="code">Use Request Message Id</tt></dt><dd>if selected, the request JMSMessageID will be used, 
    otherwise the request JMSCorrelationID will be used. 
    In the latter case the correlation id must be specified in the request.</dd>
    <dt><tt class="code">Use Response Message Id</tt></dt><dd>if selected, the response JMSMessageID will be used, 
    otherwise the response JMSCorrelationID will be used.
    </dd>
    </dl>
    There are two frequently used JMS Correlation patterns:
    <dl>
    <dt>JMS Correlation ID Pattern</dt>
    <dd> i.e. match request and response on their correlation Ids
    =&gt; deselect both checkboxes, and provide a correlation id.</dd>
    <dt>JMS Message ID Pattern</dt>
    <dd>i.e. match request message id with response correlation id
    =&gt; select &quot;Use Request Message Id&quot; only.
    </dd>
    </dl>
    In both cases the JMS application is responsible for populating the correlation ID as necessary.
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>if the same queue is used to send and receive messages, 
    then the response message will be the same as the request message.
    In which case, either provide a correlation id and clear both checkboxes;
    or select both checkboxes to use the message Id for correlation.
    This can be useful for checking raw JMS throughput.</td></tr>
</table>
</p>

  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Timeout</td>
<td>
      The timeout in milliseconds for the reply-messages. If a reply has not been received within the specified
      time, the specific testcase fails and the specific reply message received after the timeout is discarded.
      Default value is <tt class="code">2000</tt> ms.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Expiration</td>
<td>
      The expiration time (in milliseconds) of the message before it becomes obsolete.
      If you do not specify an expiration time, the default value is <tt class="code">0</tt> (never expires). 
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Priority</td>
<td>
      The priority level of the message. There are ten priority levels from <tt class="code">0</tt> (lowest) to <tt class="code">9</tt> (highest). 
      If you do not specify a priority level, the default level is <tt class="code">4</tt>. 
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Use non-persistent delivery mode?</td>
<td>
      Whether to set <tt class="code">DeliveryMode.NON_PERSISTENT</tt>.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Content</td>
<td>
      The content of the message.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>JMS Properties</td>
<td>
      The JMS Properties are properties specific for the underlying messaging system.
      You can setup the name, the value and the class (type) of value. Default type is <tt class="code">String</tt>.
      For example: for WebSphere 5.1 web services you will need to set the JMS Property targetService to test
      webservices through JMS.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Initial Context Factory</td>
<td>
    The Initial Context Factory is the factory to be used to look up the JMS Resources.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>JNDI properties</td>
<td>
     The JNDI Properties are the specific properties for the underlying JNDI implementation.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Provider URL</td>
<td>
    The URL for the jms provider.
  </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JUnit_Request">19.1.16 JUnit Request</a>
</h3>
</font>
</td></tr>
<tr><td>

The current implementation supports standard JUnit convention and extensions. It also
includes extensions like <tt class="code">oneTimeSetUp</tt> and <tt class="code">oneTimeTearDown</tt>. The sampler works like the
<a href="../usermanual/component_reference.html#Java_Request">Java Request</a> with some differences.
<ul>
<li>rather than use Jmeter's test interface, it scans the jar files for classes extending JUnit's <tt class="code">TestCase</tt> class. That includes any class or subclass.</li>
<li>JUnit test jar files should be placed in <tt class="code">jmeter/lib/junit</tt> instead of <tt class="code">/lib</tt> directory.
You can also use the &quot;<tt class="code">user.classpath</tt>&quot; property to specify where to look for <tt class="code">TestCase</tt> classes.</li>
<li>JUnit sampler does not use name/value pairs for configuration like the <a href="../usermanual/component_reference.html#Java_Request">Java Request</a>. The sampler assumes <tt class="code">setUp</tt> and <tt class="code">tearDown</tt> will configure the test correctly.</li>
<li>The sampler measures the elapsed time only for the test method and does not include <tt class="code">setUp</tt> and <tt class="code">tearDown</tt>.</li>
<li>Each time the test method is called, Jmeter will pass the result to the listeners.</li>
<li>Support for <tt class="code">oneTimeSetUp</tt> and <tt class="code">oneTimeTearDown</tt> is done as a method. Since Jmeter is multi-threaded, we cannot call <tt class="code">oneTimeSetUp</tt>/<tt class="code">oneTimeTearDown</tt> the same way Maven does it.</li>
<li>The sampler reports unexpected exceptions as errors.
There are some important differences between standard JUnit test runners and JMeter's
implementation. Rather than make a new instance of the class for each test, JMeter
creates 1 instance per sampler and reuses it.
This can be changed with checkbox &quot;<tt class="code">Create a new instance per sample</tt>&quot;.</li>
</ul>
The current implementation of the sampler will try to create an instance using the string constructor first. If the test class does not declare a string constructor, the sampler will look for an empty constructor. Example below:
<a name="junit_constructor_example"/>
<p><b>JUnit Constructors</b></p>

Empty Constructor:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
public class myTestCase {
  public myTestCase() {}
}
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

String Constructor:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
public class myTestCase {
  public myTestCase(String text) {
    super(text);
  }
}
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>


By default, Jmeter will provide some default values for the success/failure code and message. Users should define a set of unique success and failure codes and use them uniformly across all tests.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
<h3>General Guidelines</h3>
If you use <tt class="code">setUp</tt> and <tt class="code">tearDown</tt>, make sure the methods are declared public. If you do not, the test may not run properly.
<br>
Here are some general guidelines for writing JUnit tests so they work well with Jmeter. Since Jmeter runs multi-threaded, it is important to keep certain things in mind.
<ul>
<li>Write the <tt class="code">setUp</tt> and <tt class="code">tearDown</tt> methods so they are thread safe. This generally means avoid using static members.</li>
<li>Make the test methods discrete units of work and not long sequences of actions. By keeping the test method to a discrete operation, it makes it easier to combine test methods to create new test plans.</li>
<li>Avoid making test methods depend on each other. Since Jmeter allows arbitrary sequencing of test methods, the runtime behavior is different than the default JUnit behavior.</li>
<li>If a test method is configurable, be careful about where the properties are stored. Reading the properties from the Jar file is recommended.</li>
<li>Each sampler creates an instance of the test class, so write your test so the setup happens in <tt class="code">oneTimeSetUp</tt> and <tt class="code">oneTimeTearDown</tt>.</li>
</ul>
</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='397' height='536' src="../../docs/images/screenshots/junit_sampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Search for JUnit4 annotations</td>
<td>Select this to search for JUnit4 tests (<tt class="code">@Test</tt> annotations)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Package filter</td>
<td>Comma separated list of packages to show. Example, <tt class="code">org.apache.jmeter</tt>,<tt class="code">junit.framework</tt>.</td>
<td>
No
</td>
</tr>
<tr>
<td>Class name</td>
<td>Fully qualified name of the JUnit test class.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Constructor string</td>
<td>String pass to the string constructor. If a string is set, the sampler will use the
   string constructor instead of the empty constructor.</td>
<td>
No
</td>
</tr>
<tr>
<td>Test method</td>
<td>The method to test.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Success message</td>
<td>A descriptive message indicating what success means.</td>
<td>
No
</td>
</tr>
<tr>
<td>Success code</td>
<td>An unique code indicating the test was successful.</td>
<td>
No
</td>
</tr>
<tr>
<td>Failure message</td>
<td>A descriptive message indicating what failure means.</td>
<td>
No
</td>
</tr>
<tr>
<td>Failure code</td>
<td>An unique code indicating the test failed.</td>
<td>
No
</td>
</tr>
<tr>
<td>Error message</td>
<td>A description for errors.</td>
<td>
No
</td>
</tr>
<tr>
<td>Error code</td>
<td>Some code for errors. Does not need to be unique.</td>
<td>
No
</td>
</tr>
<tr>
<td>Do not call setUp and tearDown</td>
<td>Set the sampler not to call <tt class="code">setUp</tt> and <tt class="code">tearDown</tt>.
   By default, <tt class="code">setUp</tt> and <tt class="code">tearDown</tt> should be called. Not calling those methods could affect the test and make it inaccurate.
    This option should only be used with calling <tt class="code">oneTimeSetUp</tt> and <tt class="code">oneTimeTearDown</tt>. If the selected method is <tt class="code">oneTimeSetUp</tt> or <tt class="code">oneTimeTearDown</tt>,
     this option should be checked.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Append assertion errors</td>
<td>Whether or not to append assertion errors to the response message.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Append runtime exceptions</td>
<td>Whether or not to append runtime exceptions to the response message. Only applies if &quot;<tt class="code">Append assertion errors</tt>&quot; is not selected.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Create a new Instance per sample</td>
<td>Whether or not to create a new JUnit instance for each sample. Defaults to false, meaning JUnit <tt class="code">TestCase</tt> is created one and reused.</td>
<td>
Yes
</td>
</tr>
</table>
<p>
The following JUnit4 annotations are recognised:
</p><dl>
<dt><tt class="code">@Test</tt></dt><dd>used to find test methods and classes. The &quot;<tt class="code">expected</tt>&quot; and &quot;<tt class="code">timeout</tt>&quot; attributes are supported.</dd>
<dt><tt class="code">@Before</tt></dt><dd>treated the same as <tt class="code">setUp()</tt> in JUnit3</dd>
<dt><tt class="code">@After</tt></dt><dd>treated the same as <tt class="code">tearDown()</tt> in JUnit3</dd>
<dt><tt class="code">@BeforeClass</tt>, <tt class="code">@AfterClass</tt></dt><dd>treated as test methods so they can be run independently as required</dd>
</dl><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that JMeter currently runs the test methods directly, rather than leaving it to JUnit.
This is to allow the <tt class="code">setUp</tt>/<tt class="code">tearDown</tt> methods to be excluded from the sample time.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Mail_Reader_Sampler">19.1.17 Mail Reader Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Mail Reader Sampler can read (and optionally delete) mail messages using POP3(S) or IMAP(S) protocols.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='595' height='413' src="../../docs/images/screenshots/mailreader_sampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server Type</td>
<td>The protocol used by the provider: e.g. <tt class="code">pop3</tt>, <tt class="code">pop3s</tt>, <tt class="code">imap</tt>, <tt class="code">imaps</tt>.
or another string representing the server protocol.
For example <tt class="code">file</tt> for use with the read-only mail file provider.
The actual provider names for POP3 and IMAP are <tt class="code">pop3</tt> and <tt class="code">imap</tt>
</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Server</td>
<td>Hostname or IP address of the server. See below for use with <tt class="code">file</tt> protocol.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port</td>
<td>Port to be used to connect to the server (optional)</td>
<td>
No
</td>
</tr>
<tr>
<td>Username</td>
<td>User login name</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>User login password (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Folder</td>
<td>The IMAP(S) folder to use. See below for use with <tt class="code">file</tt> protocol.</td>
<td>
Yes, if using IMAP(S)
</td>
</tr>
<tr>
<td>Number of messages to retrieve</td>
<td>Set this to retrieve all or some messages</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Fetch headers only</td>
<td>If selected, only the message headers will be retrieved.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Delete messages from the server</td>
<td>If set, messages will be deleted after retrieval</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Store the message using MIME</td>
<td>Whether to store the message as MIME. 
If so, then the entire raw message is stored in the Response Data; the headers are not stored as they are available in the data. 
If not, the message headers are stored as Response Headers. 
A few headers are stored (<tt class="code">Date</tt>, <tt class="code">To</tt>, <tt class="code">From</tt>, <tt class="code">Subject</tt>) in the body.
</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use no security features</td>
<td>Indicates that the connection to the server does not use any security protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use SSL</td>
<td>Indicates that the connection to the server must use the SSL protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use StartTLS</td>
<td>Indicates that the connection to the server should attempt to start the TLS protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Enforce StartTLS</td>
<td>If the server does not start the TLS protocol the connection will be terminated.</td>
<td>
No
</td>
</tr>
<tr>
<td>Trust All Certificates</td>
<td>When selected it will accept all certificates independent of the CA.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use local truststore</td>
<td>When selected it will only accept certificates that are locally trusted.</td>
<td>
No
</td>
</tr>
<tr>
<td>Local truststore</td>
<td>Path to file containing the trusted certificates.
Relative paths are resolved against the current directory.
<br>Failing that, against the directory containing the test script (JMX file).
</td>
<td>
No
</td>
</tr>
</table>
<p>
Messages are stored as subsamples of the main sampler.
Multipart message parts are stored as subsamples of the message.
</p><p>
<b>Special handling for &quot;<tt class="code">file</tt>&quot; protocol:</b><br>
The <tt class="code">file</tt> JavaMail provider can be used to read raw messages from files.
The <tt class="code">server</tt> field is used to specify the path to the parent of the <tt class="code">folder</tt>.
Individual message files should be stored with the name <tt class="code">n.msg</tt>,
where <tt class="code">n</tt> is the message number.
Alternatively, the <tt class="code">server</tt> field can be the name of a file which contains a single message.
The current implementation is quite basic, and is mainly intended for debugging purposes. 
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Test_Action">19.1.18 Test Action</a>
</h3>
</font>
</td></tr>
<tr><td>

The Test Action sampler is a sampler that is intended for use in a conditional controller.
Rather than generate a sample, the test element either pauses or stops the selected target.
<p>This sampler can also be useful in conjunction with the Transaction Controller, as it allows
pauses to be included without needing to generate a sample. 
For variable delays, set the pause time to zero, and add a Timer as a child.</p>
<p>
The &quot;<tt class="code">Stop</tt>&quot; action stops the thread or test after completing any samples that are in progress.
The &quot;<tt class="code">Stop Now</tt>&quot; action stops the test without waiting for samples to complete; it will interrupt any active samples.
If some threads fail to stop within the 5 second time-limit, a message will be displayed in GUI mode.
You can try using the <tt class="code">Stop</tt> command to see if this will stop the threads, but if not, you should exit JMeter.
In non-GUI mode, JMeter will exit if some threads fail to stop within the 5 second time limit.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The time to wait can be changed using the JMeter property <tt class="code">jmeterengine.threadstop.wait</tt>. The time is given in milliseconds.</td></tr>
</table>
</p>

</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='467' height='184' src="../../docs/images/screenshots/test_action.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Target</td>
<td><tt class="code">Current Thread</tt> / <tt class="code">All Threads</tt> (ignored for Pause)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Action</td>
<td><tt class="code">Pause</tt> / <tt class="code">Stop</tt> / <tt class="code">Stop Now</tt> / <tt class="code">Go to next loop iteration</tt></td>
<td>
Yes
</td>
</tr>
<tr>
<td>Duration</td>
<td>How long to pause for (milliseconds)</td>
<td>
Yes, if Pause is selected
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="SMTP_Sampler">19.1.19 SMTP Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The SMTP Sampler can send mail messages using SMTP/SMTPS protocol. 
It is possible to set security protocols for the connection (SSL and TLS), as well as user authentication. 
If a security protocol is used a verification on the server certificate will occur. <br>
Two alternatives to handle this verification are available:<br>
</p>
<dl>
<dt><tt class="code">Trust all certificates</tt></dt><dd>This will ignore certificate chain verification</dd>
<dt><tt class="code">Use a local truststore</tt></dt><dd>With this option the certificate chain will be validated against the local truststore file.</dd>
</dl>
<p><b>Control Panel</b></p>
<div align="center"><img width='825' height='728' src="../../docs/images/screenshots/smtp_sampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Server</td>
<td>Hostname or IP address of the server. See below for use with <tt class="code">file</tt> protocol.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Port</td>
<td>Port to be used to connect to the server.
Defaults are: SMTP=25, SSL=465, StartTLS=587
</td>
<td>
No
</td>
</tr>
<tr>
<td>Connection timeout</td>
<td>Connection timeout value in milliseconds (socket level). Default is infinite timeout.</td>
<td>
No
</td>
</tr>
<tr>
<td>Read timeout</td>
<td>Read timeout value in milliseconds (socket level). Default is infinite timeout.</td>
<td>
No
</td>
</tr>
<tr>
<td>Address From</td>
<td>The from address that will appear in the e-mail</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Address To</td>
<td>The destination e-mail address (multiple values separated by &quot;<tt class="code">;</tt>&quot;)</td>
<td>
Yes, unless CC or BCC is specified
</td>
</tr>
<tr>
<td>Address To CC</td>
<td>Carbon copy destinations e-mail address (multiple values separated by &quot;<tt class="code">;</tt>&quot;)</td>
<td>
No
</td>
</tr>
<tr>
<td>Address To BCC</td>
<td>Blind carbon copy destinations e-mail address (multiple values separated by &quot;<tt class="code">;</tt>&quot;)</td>
<td>
No
</td>
</tr>
<tr>
<td>Address Reply-To</td>
<td>Alternate Reply-To address (multiple values separated by &quot;<tt class="code">;</tt>&quot;)</td>
<td>
No
</td>
</tr>
<tr>
<td>Use Auth</td>
<td>Indicates if the SMTP server requires user authentication</td>
<td>
No
</td>
</tr>
<tr>
<td>Username</td>
<td>User login name</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>User login password (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Use no security features</td>
<td>Indicates that the connection to the SMTP server does not use any security protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use SSL</td>
<td>Indicates that the connection to the SMTP server must use the SSL protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use StartTLS</td>
<td>Indicates that the connection to the SMTP server should attempt to start the TLS protocol.</td>
<td>
No
</td>
</tr>
<tr>
<td>Enforce StartTLS</td>
<td>If the server does not start the TLS protocol the connection will be terminated.</td>
<td>
No
</td>
</tr>
<tr>
<td>Trust All Certificates</td>
<td>When selected it will accept all certificates independent of the CA.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use local truststore</td>
<td>When selected it will only accept certificates that are locally trusted.</td>
<td>
No
</td>
</tr>
<tr>
<td>Local truststore</td>
<td>Path to file containing the trusted certificates.
Relative paths are resolved against the current directory.
<br>Failing that, against the directory containing the test script (JMX file).
</td>
<td>
No
</td>
</tr>
<tr>
<td>Subject</td>
<td>The e-mail message subject.</td>
<td>
No
</td>
</tr>
<tr>
<td>Suppress Subject Header</td>
<td>If selected, the &quot;<tt class="code">Subject:</tt>&quot; header is omitted from the mail that is sent. 
This is different from sending an empty &quot;<tt class="code">Subject:</tt>&quot; header, though some e-mail clients may display it identically.</td>
<td>
No
</td>
</tr>
<tr>
<td>Include timestamp in subject</td>
<td>Includes the <tt class="code">System.currentTimemillis()</tt> in the subject line.</td>
<td>
No
</td>
</tr>
<tr>
<td>Add Header</td>
<td>Additional headers can be defined using this button.</td>
<td>
No
</td>
</tr>
<tr>
<td>Message</td>
<td>The message body.</td>
<td>
No
</td>
</tr>
<tr>
<td>Send plain body (i.e. not multipart/mixed)</td>
<td>
If selected, then send the body as a plain message, i.e. not <tt class="code">multipart/mixed</tt>, if possible.
If the message body is empty and there is a single file, then send the file contents as the message body.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note: If the message body is not empty, and there is at least one attached file, then the body is sent as <tt class="code">multipart/mixed</tt>.
</td></tr>
</table>
</p>

</td>
<td>
No
</td>
</tr>
<tr>
<td>Attach files</td>
<td>Files to be attached to the message.</td>
<td>
No
</td>
</tr>
<tr>
<td>Send .eml</td>
<td>If set, the <tt class="code">.eml</tt> file will be sent instead of the entries in the <tt class="code">Subject</tt>, <tt class="code">Message</tt>, and <tt class="code">Attach file(s)</tt> fields</td>
<td>
No
</td>
</tr>
<tr>
<td>Calculate message size</td>
<td>Calculates the message size and stores it in the sample result.</td>
<td>
No
</td>
</tr>
<tr>
<td>Enable debug logging?</td>
<td>If set, then the &quot;<tt class="code">mail.debug</tt>&quot; property is set to &quot;<tt class="code">true</tt>&quot;</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="OS_Process_Sampler">19.1.20 OS Process Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The OS Process Sampler is a sampler that can be used to execute commands on the local machine.<br>
It should allow execution of any command that can be run from the command line.<br>
Validation of the return code can be enabled, and the expected return code can be specified.<br>
</p>
<p>
Note that OS shells generally provide command-line parsing. 
This varies between OSes, but generally the shell will split parameters on white-space.
Some shells expand wild-card file names; some don't.
The quoting mechanism also varies between OSes.
The sampler deliberately does not do any parsing or quote handling.
The command and its parameters must be provided in the form expected by the executable.
This means that the sampler settings will not be portable between OSes.
</p>
<p>
Many OSes have some built-in commands which are not provided as separate executables. 
For example the Windows <tt class="code">DIR</tt> command is part of the command interpreter (<tt class="code">CMD.EXE</tt>).
These built-ins cannot be run as independent programs, but have to be provided as arguments to the appropriate command interpreter.
</p>
<p>
For example, the Windows command-line: <tt class="code">DIR C:\TEMP</tt> needs to be specified as follows:
</p>
<dl>
<dt>Command:</dt><dd><tt class="code">CMD</tt></dd>
<dt>Param 1:</dt><dd><tt class="code">/C</tt></dd>
<dt>Param 2:</dt><dd><tt class="code">DIR</tt></dd>
<dt>Param 3:</dt><dd><tt class="code">C:\TEMP</tt></dd>
</dl>
<p><b>Control Panel</b></p>
<div align="center"><img width='683' height='582' src="../../docs/images/screenshots/os_process_sampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Command</td>
<td>The program name to execute.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Working directory</td>
<td>Directory from which command will be executed, defaults to folder referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Command Parameters</td>
<td>Parameters passed to the program name.</td>
<td>
No
</td>
</tr>
<tr>
<td>Environment Parameters</td>
<td>Key/Value pairs added to environment when running command.</td>
<td>
No
</td>
</tr>
<tr>
<td>Standard input (stdin)</td>
<td>Name of file from which input is to be taken (<tt class="code">STDIN</tt>).</td>
<td>
No
</td>
</tr>
<tr>
<td>Standard output (stdout</td>
<td>Name of output file for standard output (<tt class="code">STDOUT</tt>). 
If omitted, output is captured and returned as the response data.</td>
<td>
No
</td>
</tr>
<tr>
<td>Standard error (stderr)</td>
<td>Name of output file for standard error (<tt class="code">STDERR</tt>). 
If omitted, output is captured and returned as the response data.</td>
<td>
No
</td>
</tr>
<tr>
<td>Check Return Code</td>
<td>If checked, sampler will compare return code with <tt class="code">Expected Return Code</tt>.</td>
<td>
No
</td>
</tr>
<tr>
<td>Expected Return Code</td>
<td>Expected return code for System Call, required if &quot;<tt class="code">Check Return Code</tt>&quot; is checked. Note 500 is used as an error indicator in JMeter so you should not use it.</td>
<td>
No
</td>
</tr>
<tr>
<td>Timeout</td>
<td>Timeout for command in milliseconds, defaults to <tt class="code">0</tt>, which means <em>no</em> timeout.
If the timeout expires before the command finishes, JMeter will attempt to kill the OS process.
</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="MongoDB_Script_(DEPRECATED)">19.1.21 MongoDB Script (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This sampler lets you send a Request to a MongoDB.</p>
<p>Before using this you need to set up a
<a href="../usermanual/component_reference.html#MongoDB_Source_Config">MongoDB Source Config</a> Configuration element
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>This Element currently uses <tt class="code">com.mongodb.DB#eval</tt> which takes a global write lock causing a performance impact on the database, see <a href="http://docs.mongodb.org/manual/reference/method/db.eval/"><tt class="code">db.eval()</tt></a>.
So it is better to avoid using this element for load testing and use JSR223+Groovy scripting using <a href="../api/org/apache/jmeter/protocol/mongodb/config/MongoDBHolder.html">MongoDBHolder</a> instead.
MongoDB Script is more suitable for functional testing or test setup (setup/teardown threads)</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='847' height='635' src="../../docs/images/screenshots/mongodb-script.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this sampler that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>MongoDB Source</td>
<td>
        Name of the JMeter variable that the MongoDB connection is bound to.
        This must agree with the '<tt class="code">MongoDB Source</tt>' field of a MongoDB Source Config.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Database Name</td>
<td>Database Name, will be used in your script
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Username</td>
<td>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>
        Mongo script as it would be used in MongoDB shell
        </td>
<td>
Yes
</td>
</tr>
</table>
<p><b>See Also:</b></p>
<ul>
<li><a href="../usermanual/component_reference.html#MongoDB_Source_Config">MongoDB Source Config</a></li>
</ul>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Ensure Variable Name is unique across Test Plan.</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="logic_controllers"><strong>19.2 Logic Controllers</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <br>Logic Controllers determine the order in which Samplers are processed.
</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Simple_Controller">19.2.1 Simple Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Simple Logic Controller lets  you organize your Samplers and other
Logic Controllers.  Unlike other Logic Controllers, this controller provides no functionality beyond that of a
storage device.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='330' height='77' src="../../docs/images/screenshots/logic-controller/simple-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
<a name="simple_controller_example"/>
<p><b>Using the Simple Controller</b></p>

<p><a href="../demos/SimpleTestPlan.jmx">Download</a> this example (see Figure 6).
In this example, we created a Test Plan that sends two Ant HTTP requests and two
Log4J HTTP requests.  We grouped the Ant and Log4J requests by placing them inside
Simple Logic Controllers.  Remember, the Simple Logic Controller has no effect on how JMeter
processes the controller(s) you add to it.  So, in this example, JMeter sends the requests in the
following order: Ant Home Page, Ant News Page, Log4J Home Page, Log4J History Page.</p>
<p>
Note, the File Reporter
is configured to store the results in a file named &quot;<tt class="code">simple-test.dat</tt>&quot; in the current directory.</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='585' height='213' src="../../docs/images/screenshots/logic-controller/simple-example.png"/><br>
<font size="-1">Figure 6 Simple Controller Example</font></td></tr></table>


</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Loop_Controller">19.2.2 Loop Controller</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>If you add Generative or Logic Controllers to a Loop Controller, JMeter will
loop through them a certain number of times, in addition to the loop value you
specified for the Thread Group.  For example, if you add one HTTP Request to a
Loop Controller with a loop count of two, and configure the Thread Group loop
count to three, JMeter will send a total of <tt class="code">2 * 3 = 6</tt> HTTP Requests.
</p><p><b>Control Panel</b></p>
<div align="center"><img width='326' height='114' src="../../docs/images/screenshots/logic-controller/loop-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Loop Count</td>
<td>
                The number of times the subelements of this controller will be iterated each time
                through a test run.
                <p>The value <tt class="code">-1</tt> is equivalent to checking the <tt class="code">Forever</tt> toggle.</p>
                <p><b>Special Case:</b> The Loop Controller embedded in the <a href="test_plan.html#thread_group">Thread Group</a>
                element behaves slightly different.  Unless set to forever, it stops the test after
                the given number of iterations have been done.</p>
                <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When using a function in this field, be aware it may be evaluated multiple times.
                Example using <tt class="code">__Random</tt> will evaluate it to a different value for each child samplers of Loop Controller and result into unwanted behaviour.</td></tr>
</table>
</p>
</td>
<td>
Yes, unless "Forever" is checked
</td>
</tr>
</table>
<a name="loop_example"/>
<p><b>Looping Example</b></p>


<p><a href="../demos/LoopTestPlan.jmx">Download</a> this example (see Figure 4).
In this example, we created a Test Plan that sends a particular HTTP Request
only once and sends another HTTP Request five times.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='506' height='158' src="../../docs/images/screenshots/logic-controller/loop-example.png"/><br>
<font size="-1">Figure 4 - Loop Controller Example</font></td></tr></table>


<p>We configured the Thread Group for a single thread and a loop count value of
one. Instead of letting the Thread Group control the looping, we used a Loop
Controller.  You can see that we added one HTTP Request to the Thread Group and
another HTTP Request to a Loop Controller.  We configured the Loop Controller
with a loop count value of five.</p>
<p>JMeter will send the requests in the following order: Home Page, News Page,
News Page, News Page, News Page, and News Page.</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note, the File Reporter
is configured to store the results in a file named &quot;<tt class="code">loop-test.dat</tt>&quot; in the current directory.</td></tr>
</table>
</p>


</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Once_Only_Controller">19.2.3 Once Only Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Once Only Logic Controller tells JMeter to process the controller(s) inside it only once per Thread, and pass over any requests under it
during further iterations through the test plan.</p>

<p>The Once Only Controller will now execute always during the first iteration of any looping parent controller.  
Thus, if the Once Only Controller is placed under a Loop Controller specified to loop 5 times, then the Once Only Controller will execute only on the first iteration through the Loop Controller 
(i.e. every 5 times).</p>
<p>
Note this means the Once Only Controller will still behave as previously expected if put under a Thread Group (runs only once per test per Thread), 
but now the user has more flexibility in the use of the Once Only Controller.</p>

<p>For testing that requires a login, consider placing the login request in this controller since each thread only needs
to login once to establish a session.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='330' height='78' src="../../docs/images/screenshots/logic-controller/once-only-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
<a name="once_only_example"/>
<p><b>Once Only Example</b></p>

<p><a href="../demos/OnceOnlyTestPlan.jmx">Download</a> this example (see Figure 5).
In this example, we created a Test Plan that has two threads that send HTTP request.
Each thread sends one request to the Home Page, followed by three requests to the Bug Page.
Although we configured the Thread Group to iterate three times, each JMeter thread only
sends one request to the Home Page because this request lives inside a Once Only Controller.</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='233' height='138' src="../../docs/images/screenshots/logic-controller/once-only-example.png"/><br>
<font size="-1">Figure 5. Once Only Controller Example</font></td></tr></table>

<p>Each JMeter thread will send the requests in the following order: Home Page, Bug Page,
Bug Page, Bug Page.</p>
<p>Note, the File Reporter is configured to store the results in a file named &quot;<tt class="code">loop-test.dat</tt>&quot; in the current directory.</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The behaviour of the Once Only controller under anything other than the
Thread Group or a Loop Controller is not currently defined. Odd things may happen.</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Interleave_Controller">19.2.4 Interleave Controller</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>If you add Generative or Logic Controllers to an Interleave Controller, JMeter will alternate among each of the
other controllers for each loop iteration. </p>
<p><b>Control Panel</b></p>
<div align="center"><img width='626' height='127' src="../../docs/images/screenshots/logic-controller/interleave-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>ignore sub-controller blocks</td>
<td>If checked, the interleave controller will treat sub-controllers like single request elements and only allow one request per controller at a time.  </td>
<td>
No
</td>
</tr>
<tr>
<td>Interleave accross threads</td>
<td>If checked, the interleave controller will alternate among each of its children controllers for each loop iteration but accross all threads, for example in a 
        configuration with 4 threads and 3 child controllers, on first iteration
        thread 1 will run first child, thread 2 second child, thread 3 third child, thread 4 first child, on next iteration each thread will run the following child controller</td>
<td>
No
</td>
</tr>
</table>
<a name="simple_interleave_example"/>
<p><b>Simple Interleave Example</b></p>


<p><a href="../demos/InterleaveTestPlan.jmx">Download</a> this example (see Figure 1).  In this example,
we configured the Thread Group to have two threads and a loop count of five, for a total of ten
requests per thread. See the table below for the sequence JMeter sends the HTTP Requests.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='231' height='153' src="../../docs/images/screenshots/logic-controller/interleave.png"/><br>
<font size="-1">Figure 1 - Interleave Controller Example 1</font></td></tr></table>


<table>
<tr>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Loop Iteration
</font>
</td>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Each JMeter Thread Sends These HTTP Requests
</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
1</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
News Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
1</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Log Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
2</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
FAQ Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
2</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Log Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
3</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Gump Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
3</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Log Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
4</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Because there are no more requests in the controller,<br>  JMeter starts over and sends the first HTTP Request, which is the News Page.</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
4</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Log Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
5</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
FAQ Page</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
5</font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
Log Page</font>
</td>
</tr>
</table>



<a name="useful_interleave_example"/>
<p><b>Useful Interleave Example</b></p>


<p><a href="../demos/InterleaveTestPlan2.jmx">Download</a> another example (see Figure 2).  In this
example, we configured the Thread Group
to have a single thread and a loop count of eight.  Notice that the Test Plan has an outer Interleave Controller with
two Interleave Controllers inside of it.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='251' height='250' src="../../docs/images/screenshots/logic-controller/interleave2.png"/><br>
<font size="-1">
        Figure 2 - Interleave Controller Example 2
</font></td></tr></table>


<p>The outer Interleave Controller alternates between the
two inner ones.  Then, each inner Interleave Controller alternates between each of the HTTP Requests.  Each JMeter
thread will send the requests in the following order: Home Page, Interleaved, Bug Page, Interleaved, CVS Page, Interleaved, and FAQ Page, Interleaved.</p>
<p>Note, the File Reporter is configured to store the results in a file named &quot;<tt class="code">interleave-test2.dat</tt>&quot; in the current directory.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='257' height='253' src="../../docs/images/screenshots/logic-controller/interleave3.png"/><br>
<font size="-1">
        Figure 3 - Interleave Controller Example 3
</font></td></tr></table>

<p>If the two interleave controllers under the main interleave controller were instead simple controllers, then the order would be: Home Page, CVS Page, Interleaved, Bug Page, FAQ Page, Interleaved.</p>
<p>However, if &quot;<tt class="code">ignore sub-controller blocks</tt>&quot; was checked on the main interleave controller, then the order would be: Home Page, Interleaved, Bug Page, Interleaved, CVS Page, Interleaved, and FAQ Page, Interleaved.</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Random_Controller">19.2.5 Random Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Random Logic Controller acts similarly to the Interleave Controller, except that
instead of going in order through its sub-controllers and samplers, it picks one
at random at each pass.</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Interactions between multiple controllers can yield complex behavior.
This is particularly true of the Random Controller.  Experiment before you assume
what results any given interaction will give</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='328' height='100' src="../../docs/images/screenshots/logic-controller/random-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>ignore sub-controller blocks</td>
<td>If checked, the interleave controller will treat sub-controllers like single request elements and only allow one request per controller at a time.  </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Random_Order_Controller">19.2.6 Random Order Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>The Random Order Controller is much like a Simple Controller in that it will execute each child
         element at most once, but the order of execution of the nodes will be random.</p>
    <p><b>Control Panel</b></p>
<div align="center"><img width='328' height='76' src="../../docs/images/screenshots/randomordercontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Throughput_Controller">19.2.7 Throughput Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Throughput Controller allows the user to control how often it is executed.  
There are two modes:
<ul>
<li>percent execution</li>
<li>total executions</li>
</ul>
<dl>
  <dt><tt class="code">Percent executions</tt></dt><dd>causes the controller to execute a certain percentage of the iterations through the test plan.</dd>
  <dt><tt class="code">Total executions</tt></dt><dd>causes the controller to stop executing after a certain number of executions have occurred.</dd>
</dl>
Like the Once Only Controller, this setting is reset when a parent Loop Controller restarts.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>This controller is badly named, as it does not control throughput.
Please refer to the <a href="../usermanual/component_reference.html#Constant_Throughput_Timer">Constant Throughput Timer</a> for an element that can be used to adjust the throughput.
</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='329' height='167' src="../../docs/images/screenshots/throughput_controller.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The Throughput Controller can yield very complex behavior when combined with other controllers - in particular with interleave or random controllers as parents (also very useful).</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Execution Style</td>
<td>Whether the controller will run in percent executions or total executions mode.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Throughput</td>
<td>A number.  For percent execution mode, a number from <tt class="code">0</tt>-<tt class="code">100</tt> that indicates the percentage of times the controller will execute.  &quot;<tt class="code">50</tt>&quot; means the controller will execute during half the iterations through the test plan.  For total execution mode, the number indicates the total number of times the controller will execute.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Per User</td>
<td>If checked, per user will cause the controller to calculate whether it should execute on a per user (per thread) basis.  If unchecked, then the calculation will be global for all users.  For example, if using total execution mode, and uncheck &quot;<tt class="code">per user</tt>&quot;, then the number given for throughput will be the total number of executions made.  If &quot;<tt class="code">per user</tt>&quot; is checked, then the total number of executions would be the number of users times the number given for throughput.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Runtime_Controller">19.2.8 Runtime Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>The Runtime Controller controls how long its children are allowed to run.
        </p>
    <p><b>Control Panel</b></p>
<div align="center"><img width='328' height='100' src="../../docs/images/screenshots/runtimecontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree, and used to name the transaction.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Runtime (seconds)</td>
<td>Desired runtime in seconds</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="If_Controller">19.2.9 If Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>The If Controller allows the user to control whether the test elements below it (its children) are run or not.</p>
        <p>
        By default, the condition is evaluated only once on initial entry, but you have the option to have it evaluated for every runnable element contained in the controller.
        </p>
        <p>
        The script can be processed as a variable expression, rather than requiring Javascript.
        It was always possible to use functions and variables in the Javascript condition, so long as they evaluated to &quot;<tt class="code">true</tt>&quot; or &quot;<tt class="code">false</tt>&quot;;
        now this can be done without the overhead of using Javascript as well. For example, previously one could use the condition:
        <tt class="code">${__jexl3(${VAR} == 23)}</tt> and this would be evaluated as <tt class="code">true</tt>/<tt class="code">false</tt>, the result would then be passed to Javascript
        which would then return <tt class="code">true</tt>/<tt class="code">false</tt>. If the Variable Expression option is selected, then the expression is evaluated
        and compared with &quot;<tt class="code">true</tt>&quot;, without needing to use Javascript.
        Also, variable expressions can return any value, whereas the
        Javascript condition must return &quot;<tt class="code">true</tt>&quot;/&quot;<tt class="code">false</tt>&quot; or an error is logged.
        </p>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
        No variables are made available to the script when the condition is interpreted as Javascript.
        If you need access to such variables, then select &quot;<tt class="code">Interpret Condition as Variable Expression?</tt>&quot; and use
        a <tt class="code">__jexl3</tt>, <tt class="code">__groovy</tt> or <tt class="code">__javaScript()</tt> (discouraged for performance) function call. You can then use the objects &quot;<tt class="code">vars</tt>&quot;, &quot;<tt class="code">log</tt>&quot;, &quot;<tt class="code">ctx</tt>&quot; etc. in the script.
        </td></tr>
</table>
</p>

        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
        To test if a variable is undefined (or null) do the following, suppose var is named <tt class="code">myVar</tt>, expression will be:
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>&quot;${myVar}&quot; == &quot;\${myVar}&quot;</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        Or use:
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>&quot;${myVar}&quot; != &quot;\${myVar}&quot;</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        to test if a variable is defined and is not null.
        </td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='497' height='131' src="../../docs/images/screenshots/ifcontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Condition (default Javascript)</td>
<td>By default the condition is interpreted as <b>Javascript</b> code that returns &quot;<tt class="code">true</tt>&quot; or &quot;<tt class="code">false</tt>&quot;,
    but this can be overridden (see below)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Interpret Condition as Variable Expression?</td>
<td>If this is selected, then the condition must be an expression that evaluates to &quot;<tt class="code">true</tt>&quot; (case is ignored).
    For example, <tt class="code">${FOUND}</tt> or <tt class="code">${__jexl3(${VAR} &gt; 100)}</tt>.
    Unlike the Javascript case, the condition is only checked to see if it matches &quot;<tt class="code">true</tt>&quot; (case is ignored).
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Checking this and using <tt class="code">__jexl3</tt> or <tt class="code">__groovy</tt> function in Condition is advised for performances</td></tr>
</table>
</p>

    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Evaluate for all children</td>
<td>
    Should condition be evaluated for all children?
    If not checked, then the condition is only evaluated on entry.
    </td>
<td>
Yes
</td>
</tr>
</table>
<a name="example_if_javascript"/>
<p><b>Examples (Javascript)</b></p>

        <ul>
            <li><tt class="code">${COUNT} &lt; 10</tt></li>
            <li><tt class="code">&quot;${VAR}&quot; == &quot;abcd&quot;</tt></li>
        </ul>
        If there is an error interpreting the code, the condition is assumed to be <tt class="code">false</tt>, and a message is logged in <tt class="code">jmeter.log</tt>.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note it is advised to avoid using Javascript mode for performances</td></tr>
</table>
</p>

    <a name="example_if_variable"/>
<p><b>Examples (Variable Expression)</b></p>

        <ul>
            <li><tt class="code">${__jexl3(${COUNT} &lt; 10)}</tt></li>
            <li><tt class="code">${RESULT}</tt></li>
            <li><tt class="code">${JMeterThread.last_sample_ok}</tt> (check if the last sample succeeded)</li>
        </ul>
    </td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="While_Controller">19.2.10 While Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The While Controller runs its children until the condition is &quot;<tt class="code">false</tt>&quot;.
</p>

<p>Possible condition values:</p>
<ul>
<li>blank - exit loop when last sample in loop fails</li>
<li><tt class="code">LAST</tt> - exit loop when last sample in loop fails.
If the last sample just before the loop failed, don't enter loop.</li>
<li>Otherwise - exit (or don't enter) the loop when the condition is equal to the string &quot;<tt class="code">false</tt>&quot;</li>
</ul>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The condition can be any variable or function that eventually evaluates to the string &quot;<tt class="code">false</tt>&quot;.
This allows the use of JavaScript, BeanShell, properties or variables as needed.
</td></tr>
</table>
</p>

<br>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that the condition is evaluated twice, once before starting sampling children and once at end of children sampling, so putting
non idempotent functions in Condition (like <tt class="code">__counter</tt>) can introduce issues.
</td></tr>
</table>
</p>

<br>
For example:
<ul>
    <li><tt class="code">${VAR}</tt> - where <tt class="code">VAR</tt> is set to false by some other test element</li>
    <li><tt class="code">${__javaScript(${C}==10)}</tt></li>
    <li><tt class="code">${__javaScript(&quot;${VAR2}&quot;==&quot;abcd&quot;)}</tt></li>
    <li><tt class="code">${_P(property)}</tt> - where property is set to &quot;<tt class="code">false</tt>&quot; somewhere else</li>
</ul>
    <p><b>Control Panel</b></p>
<div align="center"><img width='362' height='102' src="../../docs/images/screenshots/whilecontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree, and used to name the transaction.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Condition</td>
<td>blank, <tt class="code">LAST</tt>, or variable/function</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Switch_Controller">19.2.11 Switch Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Switch Controller acts like the <a href="../usermanual/component_reference.html#Interleave_Controller">Interleave Controller</a> 
in that it runs one of the subordinate elements on each iteration, but rather than
run them in sequence, the controller runs the element defined by the switch value.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The switch value can also be a name.
</td></tr>
</table>
</p>

<p>If the switch value is out of range, it will run the zeroth element, 
which therefore acts as the default for the numeric case.
It also runs the zeroth element if the value is the empty string.</p>
<p>
If the value is non-numeric (and non-empty), then the Switch Controller looks for the
element with the same name (case is significant).
If none of the names match, then the element named &quot;<tt class="code">default</tt>&quot; (case not significant) is selected.
If there is no default, then no element is selected, and the controller will not run anything.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='361' height='106' src="../../docs/images/screenshots/switchcontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree, and used to name the transaction.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Switch Value</td>
<td>The number (or name) of the subordinate element to be invoked. Elements are numbered from 0.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="ForEach_Controller">19.2.12 ForEach Controller</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>A ForEach controller loops through the values of a set of related variables. 
When you add samplers (or controllers) to a ForEach controller, every sample (or controller)
is executed one or more times, where during every loop the variable has a new value.
The input should consist of several variables, each extended with an underscore and a number.
Each such variable must have a value.
So for example when the input variable has the name <tt class="code">inputVar</tt>, the following variables should have been defined:</p>
        <ul>
        <li><tt class="code">inputVar_1 = wendy</tt></li>
        <li><tt class="code">inputVar_2 = charles</tt></li>
        <li><tt class="code">inputVar_3 = peter</tt></li>
        <li><tt class="code">inputVar_4 = john</tt></li>
        </ul>
        <p>Note: the &quot;<tt class="code">_</tt>&quot; separator is now optional.</p>
<p>
When the return variable is given as &quot;<tt class="code">returnVar</tt>&quot;, the collection of samplers and controllers under the ForEach controller will be executed <tt class="code">4</tt> consecutive times,
with the return variable having the respective above values, which can then be used in the samplers.
</p>
<p>
It is especially suited for running with the regular expression post-processor. 
This can &quot;create&quot; the necessary input variables out of the result data of a previous request.
By omitting the &quot;<tt class="code">_</tt>&quot; separator, the ForEach Controller can be used to loop through the groups by using
the input variable <tt class="code">refName_g</tt>, and can also loop through all the groups in all the matches
by using an input variable of the form <tt class="code">refName_${C}_g</tt>, where <tt class="code">C</tt> is a counter variable.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The ForEach Controller does not run any samples if <tt class="code">inputVar_1</tt> is <tt class="code">null</tt>.
This would be the case if the Regular Expression returned no matches.</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='342' height='193' src="../../docs/images/screenshots/logic-controller/foreach-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Input variable prefix</td>
<td>Prefix for the variable names to be used as input.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Start index for loop</td>
<td>Start index (exclusive) for loop over variables (first element is at start index + 1)</td>
<td>
No
</td>
</tr>
<tr>
<td>End index for loop</td>
<td>End index (inclusive) for loop over variables</td>
<td>
No
</td>
</tr>
<tr>
<td>Output variable</td>
<td>
                The name of the variable which can be used in the loop for replacement in the samplers</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use Separator</td>
<td>If not checked, the &quot;<tt class="code">_</tt>&quot; separator is omitted.</td>
<td>
Yes
</td>
</tr>
</table>
<a name="foreach_example"/>
<p><b>ForEach Example</b></p>


<p><a href="../demos/forEachTestPlan.jmx">Download</a> this example (see Figure 7).
In this example, we created a Test Plan that sends a particular HTTP Request
only once and sends another HTTP Request to every link that can be found on the page.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='300' height='158' src="../../docs/images/screenshots/logic-controller/foreach-example.png"/><br>
<font size="-1">Figure 7 - ForEach Controller Example</font></td></tr></table>


<p>We configured the Thread Group for a single thread and a loop count value of
one. You can see that we added one HTTP Request to the Thread Group and
another HTTP Request to the ForEach Controller.</p>
<p>After the first HTTP request, a regular expression extractor is added, which extracts all the html links
out of the return page and puts them in the <tt class="code">inputVar</tt> variable</p>
<p>In the ForEach loop, a HTTP sampler is added which requests all the links that were extracted from the first returned HTML page.
</p><a name="foreach_example2"/>
<p><b>ForEach Example</b></p>

<p>Here is <a href="../demos/ForEachTest2.jmx">another example</a> you can download. 
This has two Regular Expressions and ForEach Controllers.
The first RE matches, but the second does not match, 
so no samples are run by the second ForEach Controller</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='237' height='249' src="../../docs/images/screenshots/logic-controller/foreach-example2.png"/><br>
<font size="-1">Figure 8 - ForEach Controller Example 2</font></td></tr></table>

<p>The Thread Group has a single thread and a loop count of two.
</p><p>
Sample 1 uses the JavaTest Sampler to return the string &quot;<tt class="code">a b c d</tt>&quot;.
</p><p>The Regex Extractor uses the expression <tt class="code">(\w)\s</tt> which matches a letter followed by a space,
and returns the letter (not the space). Any matches are prefixed with the string &quot;<tt class="code">inputVar</tt>&quot;.
</p><p>The ForEach Controller extracts all variables with the prefix &quot;<tt class="code">inputVar_</tt>&quot;, and executes its
sample, passing the value in the variable &quot;<tt class="code">returnVar</tt>&quot;. In this case it will set the variable to the values &quot;<tt class="code">a</tt>&quot; &quot;<tt class="code">b</tt>&quot; and &quot;<tt class="code">c</tt>&quot; in turn.
</p><p>The <tt class="code">For 1</tt> Sampler is another Java Sampler which uses the return variable &quot;<tt class="code">returnVar</tt>&quot; as part of the sample Label
and as the sampler Data.
</p><p><tt class="code">Sample 2</tt>, <tt class="code">Regex 2</tt> and <tt class="code">For 2</tt> are almost identical, except that the Regex has been changed to &quot;<tt class="code">(\w)\sx</tt>&quot;,
which clearly won't match. Thus the <tt class="code">For 2</tt> Sampler will not be run.
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Module_Controller">19.2.13 Module Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Module Controller provides a mechanism for substituting test plan fragments into the current test plan at run-time.
</p>
<p>
A test plan fragment consists of a Controller and all the test elements (samplers etc.) contained in it. 
The fragment can be located in any Thread Group, or on the <a href="../usermanual/component_reference.html#WorkBench">WorkBench</a>.
If the fragment is located in a Thread Group, then its Controller can be disabled to prevent the fragment being run
except by the Module Controller. 
Or you can store the fragments in a dummy Thread Group, and disable the entire Thread Group. 
</p>
<p>
There can be multiple fragments, each with a different series of
samplers under them.  The module controller can then be used to easily switch between these multiple test cases simply by choosing
the appropriate controller in its drop down box.  This provides convenience for running many alternate test plans quickly and easily.
</p>
<p>
A fragment name is made up of the Controller name and all its parent names.
For example:
</p>
<pre>
Test Plan / Protocol: JDBC / Control / Interleave Controller (Module1)
</pre>
<p>
Any <b>fragments used by the Module Controller must have a unique name</b>,
as the name is used to find the target controller when a test plan is reloaded.
For this reason it is best to ensure that the Controller name is changed from the default
- as shown in the example above -
otherwise a duplicate may be accidentally created when new elements are added to the test plan. 
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='526' height='318' src="../../docs/images/screenshots/module_controller.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The Module Controller should not be used with remote testing or non-gui testing in conjunction with Workbench components since the Workbench test elements are not part of test plan <tt class="code">.jmx</tt> files.  Any such test will fail.</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Module to Run</td>
<td>The module controller provides a list of all controllers loaded into the gui.  Select
        the one you want to substitute in at runtime.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Include_Controller">19.2.14 Include Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The include controller is designed to use an external jmx file. To use it, create a Test Fragment 
underneath the Test Plan and add any desired samplers, controllers etc. below it.
Then save the Test Plan.  The file is now ready to be included as part of other Test Plans.
</p>
<p>
For convenience, a <a href="../usermanual/component_reference.html#Thread_Group">Thread Group</a> can also be added in the external JMX file for debugging purposes.
A <a href="../usermanual/component_reference.html#Module_Controller">Module Controller</a> can be used to reference the Test Fragment.  The <a href="../usermanual/component_reference.html#Thread_Group">Thread Group</a> will be ignored during the 
include process.
</p>
<p>
If the test uses a Cookie Manager or User Defined Variables, these should be placed in the top-level
test plan, not the included file, otherwise they are not guaranteed to work.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
This element does not support variables/functions in the filename field.<br>
However, if the property <tt class="code">includecontroller.prefix</tt> is defined, 
the contents are used to prefix the pathname.
</td></tr>
</table>
</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
When using Include Controller and including the same JMX file, ensure you name the Include Controller differently to avoid facing known issue <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=50898">Bug 50898</a>
.
</td></tr>
</table>
</p>

<p>
If the file cannot be found at the location given by <tt class="code">prefix</tt>+<tt class="code">Filename</tt>, then the controller
attempts to open the <tt class="code">Filename</tt> relative to the JMX launch directory.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='417' height='130' src="../../docs/images/screenshots/includecontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Filename</td>
<td>The file to include.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Transaction_Controller">19.2.15 Transaction Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        The Transaction Controller generates an additional
        sample which measures the overall time taken to perform the nested test elements.
        </p>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
        Note: when the check box &quot;<tt class="code">Include duration of timer and pre-post processors in generated sample</tt>&quot; is checked,
        the time includes all processing within the controller scope, not just the samples.
        </td></tr>
</table>
</p>

        <p>
        There are two modes of operation:
        </p>
        <ul>
        <li>additional sample is added after the nested samples</li>
        <li>additional sample is added as a parent of the nested samples</li>
        </ul>
        <p>
        The generated sample time includes all the times for the nested samplers excluding by default (since 2.11) timers and processing time of pre/post processors 
        unless checkbox &quot;<tt class="code">Include duration of timer and pre-post processors in generated sample</tt>&quot; is checked.
        Depending on the clock resolution, it may be slightly longer than the sum of the individual samplers plus timers.
        The clock might tick after the controller recorded the start time but before the first sample starts.
        Similarly at the end.
        </p>
        <p>The generated sample is only regarded as successful if all its sub-samples are successful.</p>
        <p>
        In parent mode, the individual samples can still be seen in the Tree View Listener,
        but no longer appear as separate entries in other Listeners.
        Also, the sub-samples do not appear in CSV log files, but they can be saved to XML files.
        </p>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
        In parent mode, Assertions (etc.) can be added to the Transaction Controller.
        However by default they will be applied to both the individual samples and the overall transaction sample.
        To limit the scope of the Assertions, use a Simple Controller to contain the samples, and add the Assertions
        to the Simple Controller.
        Parent mode controllers do not currently properly support nested transaction controllers of either type.
        </td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='622' height='140' src="../../docs/images/screenshots/transactioncontroller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree, and used to name the transaction.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Generate Parent Sample</td>
<td>
    If checked, then the sample is generated as a parent of the other samples,
    otherwise the sample is generated as an independent sample.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Include duration of timer and pre-post processors in generated sample</td>
<td>
    Whether to include timer, pre- and post-processing delays in the generated sample.
    Default is <tt class="code">false</tt>
    </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Recording_Controller">19.2.16 Recording Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Recording Controller is a place holder indicating where the proxy server should
record samples to.  During test run, it has no effect, similar to the Simple Controller.  But during
recording using the <a href="../usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder">HTTP(S) Test Script Recorder</a>, all recorded samples will by default
be saved under the Recording Controller.</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='420' height='79' src="../../docs/images/screenshots/logic-controller/recording-controller.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this controller that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Critical_Section_Controller">19.2.17 Critical Section Controller</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Critical Section Controller ensures that its children elements (samplers/controllers, etc.) will be executed
by only one thread as a named lock will be taken before executing children of controller.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='469' height='129' src="../../docs/images/screenshots/logic-controller/critical-section-controller.png"/></div>
<p>
    The figure below shows an example of using Critical Section Controller, in the figure below 2 Critical Section Controllers ensure
    that:
</p><ul>
        <li><tt class="code">DS2-${__threadNum}</tt> is executed only by one thread at a time</li>
        <li><tt class="code">DS4-${__threadNum}</tt> is executed only by one thread at a time</li>
    </ul><table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='276' height='237' src="../../docs/images/screenshots/logic-controller/critical-section-controller-tp.png"/><br>
<font size="-1">Test Plan using Critical Section Controller</font></td></tr></table>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Lock Name</td>
<td>Lock that will be taken by controller, ensure you use different lock names for unrelated sections</td>
<td>
Yes
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Critical Section Controller takes locks only within one JVM, so if using Distributed testing ensure your use case does not rely on all threads of all JVMs blocking.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="listeners"><strong>19.3 Listeners</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <br>
Most of the listeners perform several roles in addition to &quot;listening&quot;
to the test results.  
They also provide means to view, save, and read saved test results.
<p>Note that Listeners are processed at the end of the scope in which they are found.</p>
<p>
The saving and reading of test results is generic.  The various
listeners have a panel whereby one can specify the file to
which the results will be written (or read from).
By default, the results are stored as XML
files, typically with a &quot;<tt class="code">.jtl</tt>&quot; extension.
Storing as CSV is the most efficient option, but is less detailed than XML (the other available option).
</p>
<p>
<b>Listeners do <i>not</i> process sample data in non-GUI mode, but the raw data will be saved if an output
file has been configured.</b>
In order to analyse the data generated by a non-GUI test run, you need to load the file into the appropriate
Listener.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
To read existing results and display them, use the file panel Browse button to open the file.
</td></tr>
</table>
</p>

<p>
If you want to clear any current data before loading a new file, use the menu item
 <span class="menuchoice">
 <span class="guimenuitem">Run</span>&nbsp;&rarr;&nbsp;<span class="guimenuitem">Clear</span>    (<span class="keycombo"><span class="keysym">Ctrl</span>&nbsp;+&nbsp;<span class="keysym">Shift</span>&nbsp;+&nbsp;<span class="keysym">E</span></span>)
  </span>

or
 <span class="menuchoice">
 <span class="guimenuitem">Run</span>&nbsp;&rarr;&nbsp;<span class="guimenuitem">Clear All</span>    (<span class="keycombo"><span class="keysym">Ctrl</span>&nbsp;+&nbsp;<span class="keysym">E</span></span>)
  </span>

before loading the file.
</p>
<p>Results can be read from XML or CSV format files.
When reading from CSV results files, the header (if present) is used to determine which fields are present.
<b>In order to interpret a header-less CSV file correctly, the appropriate properties must be set in <tt class="code">jmeter.properties</tt>.</b>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
XML files written by JMeter have version 1.0 declared in header while actual file is serialized with 1.1 rules. 
(This is done for historical compatibility reasons; see <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=59973">Bug 59973</a>
 and <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=58679">Bug 58679</a>
) 
This causes strict XML parsers to fail. Consider using non-strict XML parsers to read JTL files.
</td></tr>
</table>
</p>

</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The file name can contain function and/or variable references.
However variable references do not work in client-server mode (functions work OK).
This is because the file is created on the client, and the client does not run the test locally so does not set up variables.
</td></tr>
</table>
</p>

<p><b>Listeners can use a lot of memory if there are a lot of samples.</b>
Most of the listeners currently keep a copy of every sample in their scope, apart from:
</p>
<ul>
<li>Simple Data Writer</li>
<li>BeanShell/JSR223 Listener</li>
<li>Mailer Visualizer</li>
<li>Summary Report</li>
</ul>
<p>
The following Listeners no longer need to keep copies of every single sample.
Instead, samples with the same elapsed time are aggregated.
Less memory is now needed, especially if most samples only take a second or two at most.
</p>
<ul>
<li>Aggregate Report</li>
<li>Aggregate Graph</li>
</ul>
<p>To minimise the amount of memory needed, use the Simple Data Writer, and use the CSV format.</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
JMeter variables can be saved to the output files.
This can only be specified using a property.
See the <a href="listeners.html#sample_variables">Listener Sample Variables</a> for details
</td></tr>
</table>
</p>

<p>
For full details on setting up the default items to be saved
see the <a href="listeners.html#defaults">Listener Default Configuration</a> documentation.
For details of the contents of the output files,
see the <a href="listeners.html#csvlogformat">CSV log</a> format or
the <a href="listeners.html#xmlformat2.1">XML log</a> format.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The entries in <tt class="code">jmeter.properties</tt> are used to define the defaults; 
these can be overridden for individual listeners by using the Configure button,
as shown below. 
The settings in <tt class="code">jmeter.properties</tt> also apply to the listener that is added
by using the <tt class="code">-l</tt> command-line flag.
</td></tr>
</table>
</p>

<p>
    The figure below shows an example of the result file configuration panel
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='741' height='141' src="../../docs/images/screenshots/simpledatawriter.png"/><br>
<font size="-1">Result file configuration panel</font></td></tr></table>

<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Filename</td>
<td>Name of the file containing sample results.
        The file name can be specified using either a relative or an absolute path name.
        Relative paths are resolved relative to the current working directory (which defaults to the <tt class="code">bin/</tt> directory).
        JMeter also support paths relative to the directory containing the current test plan (JMX file).
        If the path name begins with &quot;<tt class="code">~/</tt>&quot; (or whatever is in the <tt class="code">jmeter.save.saveservice.base_prefix</tt> JMeter property),
        then the path is assumed to be relative to the JMX file location. 
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Browse …</td>
<td>File Browse Button</td>
<td>
No
</td>
</tr>
<tr>
<td>Errors</td>
<td>Select this to write/read only results with errors</td>
<td>
No
</td>
</tr>
<tr>
<td>Successes</td>
<td>Select this to write/read only results without errors.
        If neither <tt class="code">Errors</tt> nor <tt class="code">Successes</tt> is selected, then all results are processed.</td>
<td>
No
</td>
</tr>
<tr>
<td>Configure</td>
<td>Configure Button, see below</td>
<td>
No
</td>
</tr>
</table>

</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Sample_Result_Save_Configuration">19.3.1 Sample Result Save Configuration</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
Listeners can be configured to save different items to the result log files (JTL) by using the Config popup as shown below.
The defaults are defined as described in  the <a href="listeners.html#defaults">Listener Default Configuration</a> documentation.
Items with (<tt class="code">CSV</tt>) after the name only apply to the CSV format; items with (<tt class="code">XML</tt>) only apply to XML format.
CSV format cannot currently be used to save any items that include line-breaks.
</p>
<p>
Note that cookies, method and the query string are saved as part of the &quot;<tt class="code">Sampler Data</tt>&quot; option.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='760' height='304' src="../../docs/images/screenshots/sample_result_config.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Graph_Results">19.3.3 Graph Results</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Graph Results MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or 
during Test Plan debugging and Validation.
</td></tr>
</table>
</p>

<p>The Graph Results listener generates a simple graph that plots all sample times.  Along
the bottom of the graph, the current sample (black), the current average of all samples (blue), the
current standard deviation (red), and the current throughput rate (green) are displayed in milliseconds.</p>
<p>The throughput number represents the actual number of requests/minute the server handled.  This calculation
includes any delays you added to your test and JMeter's own internal processing time.  The advantage
of doing the calculation like this is that this number represents something
real - your server in fact handled that many requests per minute, and you can increase the number of threads
and/or decrease the delays to discover your server's maximum throughput.  Whereas if you made calculations
that factored out delays and JMeter's processing, it would be unclear what you could conclude from that
number.</p><p><b>Control Panel</b></p>
<div align="center"><img width='915' height='686' src="../../docs/images/screenshots/graph_results.png"/></div>
<p>The following table briefly describes the items on the graph. 
Further details on the precise meaning of the statistical terms can be found on the web
 - e.g. Wikipedia - or by consulting a book on statistics.
 </p><ul>
 <li><tt class="code">Data</tt> - plot the actual data values</li>
 <li><tt class="code">Average</tt> - plot the Average</li>
 <li><tt class="code">Median</tt> - plot the <a href="glossary.html#Median">Median</a> (midway value)</li>
 <li><tt class="code">Deviation</tt> - plot the <a href="glossary.html#StandardDeviation">Standard Deviation</a> (a measure of the variation)</li>
 <li><tt class="code">Throughput</tt> - plot the number of samples per unit of time</li>
 </ul><p>The individual figures at the bottom of the display are the current values. 
 &quot;<tt class="code">Latest Sample</tt>&quot; is the current elapsed sample time, shown on the graph as &quot;<tt class="code">Data</tt>&quot;.</p><p>The value displayed on the top left of graph is the max of 90<sup>th</sup> percentile of response time.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Assertion_Results">19.3.5 Assertion Results</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Assertion Results MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or 
during Test Plan debugging and Validation.
</td></tr>
</table>
</p>

<p>The Assertion Results visualizer shows the Label of each sample taken.
It also reports failures of any <a href="test_plan.html#assertions">Assertions</a> that
are part of the test plan.</p><p><b>Control Panel</b></p>
<div align="center"><img width='954' height='365' src="../../docs/images/screenshots/assertion_results.png"/></div>
<p><b>See Also:</b></p>
<ul>
<li><a href="../usermanual/component_reference.html#Response_Assertion">Response Assertion</a></li>
</ul>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="View_Results_Tree">19.3.6 View Results Tree</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
View Results Tree MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or 
during Test Plan debugging and Validation.
</td></tr>
</table>
</p>

The View Results Tree shows a tree of all sample responses, allowing you to view the
response for any sample.  In addition to showing the response, you can see the time it took to get
this response, and some response codes.
Note that the Request panel only shows the headers added by JMeter.
It does not show any headers (such as <tt class="code">Host</tt>) that may be added by the HTTP protocol implementation.
<p>
There are several ways to view the response, selectable by a drop-down box at the bottom of the left hand panel.</p>

<table>
<tr>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<b>Renderer</b>
</font>
</td>
<td bgcolor="#039acc"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<b>Description</b>
</font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">CSS/JQuery Tester</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>CSS/JQuery Tester</i> only works for text responses. It shows the plain text in the upper panel.
The &quot;<tt class="code">Test</tt>&quot; button allows the user to apply the CSS/JQuery to the upper panel and the results
will be displayed in the lower panel.<br>
The CSS/JQuery expression engine can be JSoup or Jodd, syntax of these 2 implementation differs slightly.<br>
For example, the Selector <tt class="code">a[class=sectionlink]</tt> with attribute <tt class="code">href</tt> applied to the current JMeter functions page gives the following output:
<br>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
Match count: 74
Match[1]=#functions
Match[2]=#what_can_do
Match[3]=#where
Match[4]=#how
Match[5]=#function_helper
Match[6]=#functions
Match[7]=#__regexFunction
Match[8]=#__regexFunction_parms
Match[9]=#__counter
… and so on …
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">Document</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>Document view</i> will show the extract text from various type of documents like Microsoft Office
(Word, Excel, PowerPoint 97-2003, 2007-2010 (openxml), Apache OpenOffice (writer, calc, impress), HTML,
gzip, jar/zip files (list of content), and some meta-data on &quot;multimedia&quot; files like mp3, mp4, flv, etc. The complete list of 
support format is available on <a href="http://tika.apache.org/1.2/formats.html">Apache Tika format page.</a>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>A requirement to the <tt class="code">Document view</tt> is to download the <a href="http://tika.apache.org/download.html">
Apache Tika binary package</a> (<tt class="code">tika-app-x.x.jar</tt>) and put this in <tt class="code">JMETER_HOME/lib</tt> directory.
</td></tr>
</table>
</p>

If the document is larger than 10 MB, then it won't be displayed.
To change this limit, set the JMeter property <tt class="code">document.max_size</tt> (unit is byte) or set to <tt class="code">0</tt> to remove the limit.
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">HTML</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>HTML view</i> attempts to render the response as
HTML.  The rendered HTML is likely to compare poorly to the view one
would get in any web browser; however, it does provide a quick
approximation that is helpful for initial result evaluation.<br>
Images, style-sheets, etc. aren't downloaded. 
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">HTML (download resources)</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
If the <i>HTML (download resources) view</i> option is selected, the renderer
may download images, style-sheets, etc. referenced by the HTML code. 
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">HTML Source formatted</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
If the <em>HTML Source formatted view</em> option is selected, the renderer will display the HTML source code formatted and cleaned by <a href="https://jsoup.org/">Jsoup</a>. 
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">JSON</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>JSON view</i> will show the response in tree style (also handles JSON embedded in JavaScript).
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">JSON Path Tester</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>JSON Path Tester view</i> will let you test your JSON-PATH expressions and see the extracted data from a particular response.
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">Regexp Tester</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>Regexp Tester view</i> only works for text responses. It shows the plain text in the upper panel.
The &quot;<tt class="code">Test</tt>&quot; button allows the user to apply the Regular Expression to the upper panel and the results
will be displayed in the lower panel.<br>
The regular expression engine is the same as that used in the Regular Expression Extractor.<br>
For example, the RE <tt class="code">(JMeter\w*).*</tt> applied to the current JMeter home page gives the following output:
<br>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
Match count: 26
Match[1][0]=JMeter - Apache JMeter&lt;/title&gt;
Match[1][1]=JMeter
Match[2][0]=JMeter&quot; title=&quot;JMeter&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;
Match[2][1]=JMeter
Match[3][0]=JMeterCommitters&quot;&gt;Contributors&lt;/a&gt;
Match[3][1]=JMeterCommitters
… and so on …
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<br>
The first number in <tt class="code">[]</tt> is the match number; the second number is the group. 
Group <tt class="code">[0]</tt> is whatever matched the whole RE.
Group <tt class="code">[1]</tt> is whatever matched the 1<sup>st</sup> group, i.e. <tt class="code">(JMeter\w*)</tt> in this case.
See Figure 9b (below).
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">Text</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">

The default <i>Text view</i> shows all of the text contained in the response. 
Note that this will only work if the response <tt class="code">content-type</tt> is considered to be text.
If the <tt class="code">content-type</tt> begins with any of the following, it is considered as binary,
otherwise it is considered to be text.
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
image/
audio/
video/
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">XML</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>XML view</i> will show response in tree style. 
Any DTD nodes or Prolog nodes will not show up in tree; however, response may contain those nodes.
<br></font>
</td>
</tr>
<tr>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
<tt class="code">XPath Tester</tt></font>
</td>
<td bgcolor="#a0ddf0"   valign="top" align="left">
<font color="#000000" size="-1" face="arial,helvetica,sanserif">
The <i>XPath Tester</i> only works for text responses. It shows the plain text in the upper panel.
The &quot;<tt class="code">Test</tt>&quot; button allows the user to apply the XPath query to the upper panel and the results
will be displayed in the lower panel.<br>
</font>
</td>
</tr>
</table>

<p><tt class="code">Scroll automatically?</tt> option permit to have last node display in tree selection</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Starting with version 3.2 the number of entries in the View is restricted to the value of the
property <tt class="code">view.results.tree.max_results</tt> which defaults to <tt class="code">500</tt> entries. The old
behaviour can be restored by setting the property to <tt class="code">0</tt>. Beware, that this might consume
a lot of memory.</td></tr>
</table>
</p>

<p>
With <tt class="code">Search</tt> option, most of the views also allow the displayed data to be searched; the result of the search will be high-lighted
in the display above. For example the Control panel screenshot below shows one result of searching for &quot;<tt class="code">Java</tt>&quot;.
Note that the search operates on the visible text, so you may get different results when searching
the Text and HTML views.
<br>Note: The regular expression uses the Java engine (not ORO engine like the Regular Expression Extractor or Regexp Tester view).
</p>
<p>
If there is no <tt class="code">content-type</tt> provided, then the content
will not be displayed in the any of the Response Data panels.
You can use <a href="../usermanual/component_reference.html#Save_Responses_to_a_file">Save Responses to a file</a> to save the data in this case.
Note that the response data will still be available in the sample result,
so can still be accessed using Post-Processors.
</p>
<p>If the response data is larger than 200K, then it won't be displayed.
To change this limit, set the JMeter property <tt class="code">view.results.tree.max_size</tt>.
You can also use save the entire response to a file using
<a href="../usermanual/component_reference.html#Save_Responses_to_a_file">Save Responses to a file</a>.
</p>
<p>
Additional renderers can be created.
The class must implement the interface <tt class="code">org.apache.jmeter.visualizers.ResultRenderer</tt>
and/or extend the abstract class <tt class="code">org.apache.jmeter.visualizers.SamplerResultTab</tt>, and the
compiled code must be available to JMeter (e.g. by adding it to the <tt class="code">lib/ext</tt> directory).
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='910' height='659' src="../../docs/images/screenshots/view_results_tree.png"/></div>
<p>
    The Control Panel (above) shows an example of an HTML display.<br>
    Figure 9 (below) shows an example of an XML display.<br>
    Figure 9a (below) shows an example of a Regexp tester display.<br>
    Figure 9b (below) shows an example of a Document display.<br>
</p><div align="center">
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='903' height='657' src="../../docs/images/screenshots/view_results_tree_xml.png"/><br>
<font size="-1">Figure 9 Sample XML display</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='904' height='653' src="../../docs/images/screenshots/view_results_tree_regex.png"/><br>
<font size="-1">Figure 9a Sample Regexp Test display</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='849' height='655' src="../../docs/images/screenshots/view_results_tree_document.png"/><br>
<font size="-1">Figure 9b Sample Document (here PDF) display</font></td></tr></table>

</div></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Aggregate_Report">19.3.7 Aggregate Report</a>
</h3>
</font>
</td></tr>
<tr><td>
The aggregate report creates a table row for each differently named request in your
test.  For each request, it totals the response information and provides request count, min, max,
average, error rate, approximate throughput (request/second) and Kilobytes per second throughput.
Once the test is done, the throughput is the actual through for the duration of the entire test.
<p>
The throughput is calculated from the point of view of the sampler target 
(e.g. the remote server in the case of HTTP samples).
JMeter takes into account the total time over which the requests have been generated.
If other samplers and timers are in the same thread, these will increase the total time,
and therefore reduce the throughput value. 
So two identical samplers with different names will have half the throughput of two samplers with the same name.
It is important to choose the sampler names correctly to get the best results from
the Aggregate Report.
</p>
<p>
Calculation of the <a href="glossary.html#Median">Median</a> and 90% Line (90<sup>th</sup> <a href="glossary.html#Percentile">percentile</a>) values requires additional memory.
JMeter now combines samples with the same elapsed time, so far less memory is used.
However, for samples that take more than a few seconds, the probability is that fewer samples will have identical times,
in which case more memory will be needed.
Note you can use this listener afterwards to reload a CSV or XML results file which is the recommended way to avoid performance impacts.
See the <a href="../usermanual/component_reference.html#Summary_Report">Summary Report</a> for a similar Listener that does not store individual samples and so needs constant memory.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Starting with JMeter 2.12, you can configure the 3 percentile values you want to compute, this can be done by setting properties:
<ul>
    <li><tt class="code">aggregate_rpt_pct1</tt>: defaults to 90<sup>th</sup> <a href="glossary.html#Percentile">percentile</a></li>
    <li><tt class="code">aggregate_rpt_pct2</tt>: defaults to 95<sup>th</sup> <a href="glossary.html#Percentile">percentile</a></li>
    <li><tt class="code">aggregate_rpt_pct3</tt>: defaults to 99<sup>th</sup> <a href="glossary.html#Percentile">percentile</a></li>
</ul>
</td></tr>
</table>
</p>

<ul>
<li><tt class="code">Label</tt> - The label of the sample.
If &quot;<tt class="code">Include group name in label?</tt>&quot; is selected, then the name of the thread group is added as a prefix.
This allows identical labels from different thread groups to be collated separately if required.
</li>
<li><tt class="code"># Samples</tt> - The number of samples with the same label</li>
<li><tt class="code">Average</tt> - The average time of a set of results</li>
<li><tt class="code">Median</tt> - The <a href="glossary.html#Median">median</a> is the time in the middle of a set of results.
50% of the samples took no more than this time; the remainder took at least as long.</li>
<li><tt class="code">90% Line</tt> - 90% of the samples took no more than this time.
The remaining samples took at least as long as this. (90<sup>th</sup> <a href="glossary.html#Percentile">percentile</a>)</li>
<li><tt class="code">95% Line</tt> - 95% of the samples took no more than this time.
The remaining samples took at least as long as this. (95<sup>th</sup> <a href="glossary.html#Percentile">percentile</a>)</li>
<li><tt class="code">99% Line</tt> - 99% of the samples took no more than this time.
The remaining samples took at least as long as this. (99<sup>th</sup> <a href="glossary.html#Percentile">percentile</a>)</li>
<li><tt class="code">Min</tt> - The shortest time for the samples with the same label</li>
<li>Max - The longest time for the samples with the same label</li>
<li><tt class="code">Error %</tt> - Percent of requests with errors</li>
<li><tt class="code">Throughput</tt> - the <a href="glossary.html#Throughput">Throughput</a> is measured in requests per second/minute/hour.
The time unit is chosen so that the displayed rate is at least 1.0.
When the throughput is saved to a CSV file, it is expressed in requests/second,
i.e. 30.0 requests/minute is saved as 0.5.
</li>
<li><tt class="code">Received KB/sec</tt> - The throughput measured in received Kilobytes per second</li>
<li><tt class="code">Sent KB/sec</tt> - The throughput measured in sent Kilobytes per second</li>
</ul>
<p>Times are in milliseconds.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='1206' height='306' src="../../docs/images/screenshots/aggregate_report.png"/></div>
<div align="center">
<p>
    The figure below shows an example of selecting the &quot;<tt class="code">Include group name</tt>&quot; checkbox.
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1207' height='298' src="../../docs/images/screenshots/aggregate_report_grouped.png"/><br>
<font size="-1">Sample &quot;<tt class="code">Include group name</tt>&quot; display</font></td></tr></table>

</div></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="View_Results_in_Table">19.3.8 View Results in Table</a>
</h3>
</font>
</td></tr>
<tr><td>
This visualizer creates a row for every sample result.  
Like the <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a>, this visualizer uses a lot of memory.
<p>
By default, it only displays the main (parent) samples; it does not display the sub-samples (child samples).
JMeter has a &quot;<tt class="code">Child Samples?</tt>&quot; check-box.
If this is selected, then the sub-samples are displayed instead of the main samples.  
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='966' height='683' src="../../docs/images/screenshots/table_results.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Simple_Data_Writer">19.3.9 Simple Data Writer</a>
</h3>
</font>
</td></tr>
<tr><td>
This listener can record results to a file
but not to the UI.  It is meant to provide an efficient means of
recording data by eliminating GUI overhead.
When running in non-GUI mode, the <tt class="code">-l</tt> flag can be used to create a data file.
The fields to save are defined by JMeter properties.
See the <tt class="code">jmeter.properties</tt> file for details.
<p><b>Control Panel</b></p>
<div align="center"><img width='741' height='141' src="../../docs/images/screenshots/simpledatawriter.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Aggregate_Graph">19.3.12 Aggregate Graph</a>
</h3>
</font>
</td></tr>
<tr><td>
The aggregate graph is similar to the aggregate report. The primary
difference is the aggregate graph provides an easy way to generate bar graphs and save
the graph as a PNG file.<p><b>Control Panel</b></p>
<div align="center"><img width='1132' height='872' src="../../docs/images/screenshots/aggregate_graph.png"/></div>
<div align="center">
<p>
    The figure below shows an example of settings to draw this graph.
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1147' height='420' src="../../docs/images/screenshots/aggregate_graph_settings.png"/><br>
<font size="-1">Aggregate graph settings</font></td></tr></table>

</div><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Please note: All this parameters <em>aren't</em> saved in JMeter jmx script.</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Column settings</td>
<td>
        <ul>
        <li><tt class="code">Columns to display:</tt> Choose the column(s) to display in graph.</li>
        <li><tt class="code">Rectangles color:</tt> Click on right color rectangle open a popup dialog to choose a custom color for column.</li>
        <li><tt class="code">Foreground color</tt> Allow to change the value text color.</li>
        <li><tt class="code">Value font:</tt> Allow to define font settings for the text.</li>
        <li><tt class="code">Draw outlines bar?</tt> To draw or not the border line on bar chart</li>
        <li><tt class="code">Show number grouping?</tt> Show or not the number grouping in Y Axis labels.</li>
        <li><tt class="code">Value labels vertical?</tt> Change orientation for value label. (Default is horizontal)</li>
        <li><tt class="code">Column label selection:</tt> Filter by result label. A regular expression can be used, example: <tt class="code">.*Transaction.*</tt>
        <br>Before display the graph, click on <tt class="code">Apply filter</tt> button to refresh internal data.</li>
        </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Title</td>
<td>Define the graph's title on the head of chart. Empty value is the default value : &quot;<tt class="code">Aggregate Graph</tt>&quot;. 
        The button <tt class="code">Synchronize with name</tt> define the title with the label of the listener. And define font settings for graph title</td>
<td>
No
</td>
</tr>
<tr>
<td>Graph size</td>
<td>Compute the graph size by  the width and height depending of the current JMeter's window size.
        Use <tt class="code">Width</tt> and <tt class="code">Height</tt> fields to define a custom size. The unit is pixel. </td>
<td>
No
</td>
</tr>
<tr>
<td>X Axis settings</td>
<td>Define the max length of X Axis label (in pixel).</td>
<td>
No
</td>
</tr>
<tr>
<td>Y Axis settings</td>
<td>Define a custom maximum value for Y Axis.</td>
<td>
No
</td>
</tr>
<tr>
<td>Legend</td>
<td>Define the placement and font settings for chart legend</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Response_Time_Graph">19.3.13 Response Time Graph</a>
</h3>
</font>
</td></tr>
<tr><td>

The Response Time Graph draws a line chart showing the evolution of response time during the test, for each labelled request. 
If many samples exist for the same timestamp, the mean value is displayed.
<p><b>Control Panel</b></p>
<div align="center"><img width='921' height='616' src="../../docs/images/screenshots/response_time_graph.png"/></div>
<div align="center">
<p>
    The figure below shows an example of settings to draw this graph.
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='919' height='481' src="../../docs/images/screenshots/response_time_graph_settings.png"/><br>
<font size="-1">Response time graph settings</font></td></tr></table>

</div><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Please note: All this parameters are saved in JMeter <tt class="code">.jmx</tt> file.</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Interval (ms)</td>
<td>The time in milli-seconds for X axis interval. Samples are grouped according to this value.
        Before display the graph, click on <tt class="code">Apply interval</tt> button to refresh internal data.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Sampler label selection</td>
<td>Filter by result label. A regular expression can be used, ex. <tt class="code">.*Transaction.*</tt>. 
        Before display the graph, click on <tt class="code">Apply filter</tt> button to refresh internal data.</td>
<td>
No
</td>
</tr>
<tr>
<td>Title</td>
<td>Define the graph's title on the head of chart. Empty value is the default value : &quot;<tt class="code">Response Time Graph</tt>&quot;. 
        The button <tt class="code">Synchronize with name</tt> define the title with the label of the listener. And define font settings for graph title</td>
<td>
No
</td>
</tr>
<tr>
<td>Line settings</td>
<td>Define the width of the line. Define the type of each value point. Choose <tt class="code">none</tt> to have a line without mark</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Graph size</td>
<td>Compute the graph size by  the width and height depending of the current JMeter's window size.
        Use <tt class="code">Width</tt> and <tt class="code">Height</tt> fields to define a custom size. The unit is pixel. </td>
<td>
No
</td>
</tr>
<tr>
<td>X Axis settings</td>
<td>Customize the date format of  X axis label.
        The syntax is the Java <a href="http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat API</a>.</td>
<td>
No
</td>
</tr>
<tr>
<td>Y Axis settings</td>
<td>Define a custom maximum value for Y Axis in milli-seconds. Define the increment for the scale (in ms) Show or not the number grouping in Y Axis labels.</td>
<td>
No
</td>
</tr>
<tr>
<td>Legend</td>
<td>Define the placement and font settings for chart legend</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Mailer_Visualizer">19.3.14 Mailer Visualizer</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The mailer visualizer can be set up to send email if a test run receives too many
failed responses from the server.</p><p><b>Control Panel</b></p>
<div align="center"><img width='860' height='403' src="../../docs/images/screenshots/mailervisualizer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>From</td>
<td>Email address to send messages from.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Addressee(s)</td>
<td>Email address to send messages to, comma-separated.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Success Subject</td>
<td>Email subject line for success messages.</td>
<td>
No
</td>
</tr>
<tr>
<td>Success Limit</td>
<td>Once this number of successful responses is exceeded
        <strong>after previously reaching the failure limit</strong>, a success email
        is sent.  The mailer will thus only send out messages in a sequence of failed-succeeded-failed-succeeded, etc.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Failure Subject</td>
<td>Email subject line for fail messages.</td>
<td>
No
</td>
</tr>
<tr>
<td>Failure Limit</td>
<td>Once this number of failed responses is exceeded, a failure
        email is sent - i.e. set the count to <tt class="code">0</tt> to send an e-mail on the first failure.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Host</td>
<td>IP address or host name of SMTP server (email redirector)
        server.</td>
<td>
No
</td>
</tr>
<tr>
<td>Port</td>
<td>Port of SMTP server (defaults to <tt class="code">25</tt>).</td>
<td>
No
</td>
</tr>
<tr>
<td>Login</td>
<td>Login used to authenticate.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password used to authenticate.</td>
<td>
No
</td>
</tr>
<tr>
<td>Connection security</td>
<td>Type of encryption for SMTP authentication (SSL, TLS or none).</td>
<td>
No
</td>
</tr>
<tr>
<td>Test Mail</td>
<td>Press this button to send a test mail</td>
<td>
No
</td>
</tr>
<tr>
<td>Failures</td>
<td>A field that keeps a running total of number
        of failures so far received.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_Listener">19.3.15 BeanShell Listener</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BeanShell Listener allows the use of BeanShell for processing samples for saving etc.
</p>
<p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> methods.
These should be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='844' height='633' src="../../docs/images/screenshots/beanshell_listener.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
    The name is stored in the script variable Label</td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    The parameters are stored in the following variables:
    <dl>
        <dt><tt class="code">Parameters</tt></dt><dd>string containing the parameters as a single variable</dd>
        <dt><tt class="code">bsh.args</tt></dt><dd>String array containing parameters, split on white-space</dd>
    </dl></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the BeanShell script to run.
    The file name is stored in the script variable <tt class="code">FileName</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The BeanShell script to run. The return value is ignored.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>Before invoking the script, some variables are set up in the BeanShell interpreter:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">sampleResult</tt>, <tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a></li>
<li><tt class="code">sampleEvent</tt> (<a href="../api/org/apache/jmeter/samplers/SampleEvent.html">SampleEvent</a>) gives access to the current sample event</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p><p>If the property <tt class="code">beanshell.listener.init</tt> is defined, this is used to load an initialisation file, which can be used to define methods etc. for use in the BeanShell script.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Summary_Report">19.3.16 Summary Report</a>
</h3>
</font>
</td></tr>
<tr><td>
The summary report creates a table row for each differently named request in your
test. This is similar to the <a href="../usermanual/component_reference.html#Aggregate_Report">Aggregate Report</a> , except that it uses less memory.
<p>
The throughput is calculated from the point of view of the sampler target 
(e.g. the remote server in the case of HTTP samples).
JMeter takes into account the total time over which the requests have been generated.
If other samplers and timers are in the same thread, these will increase the total time,
and therefore reduce the throughput value. 
So two identical samplers with different names will have half the throughput of two samplers with the same name.
It is important to choose the sampler labels correctly to get the best results from
the Report.
</p>
<ul>
<li><tt class="code">Label</tt> - The label of the sample.
If &quot;<tt class="code">Include group name in label?</tt>&quot; is selected, then the name of the thread group is added as a prefix.
This allows identical labels from different thread groups to be collated separately if required.
</li>
<li><tt class="code"># Samples</tt> - The number of samples with the same label</li>
<li><tt class="code">Average</tt> - The average elapsed time of a set of results</li>
<li><tt class="code">Min</tt> - The lowest elapsed time for the samples with the same label</li>
<li><tt class="code">Max</tt> - The longest elapsed time for the samples with the same label</li>
<li><tt class="code">Std. Dev.</tt> - the <a href="glossary.html#StandardDeviation">Standard Deviation</a> of the sample elapsed time</li>
<li><tt class="code">Error %</tt> - Percent of requests with errors</li>
<li><tt class="code">Throughput</tt> - the <a href="glossary.html#Throughput">Throughput</a> is measured in requests per second/minute/hour.
The time unit is chosen so that the displayed rate is at least <tt class="code">1.0</tt>.
When the throughput is saved to a CSV file, it is expressed in requests/second,
i.e. 30.0 requests/minute is saved as <tt class="code">0.5</tt>.
</li>
<li><tt class="code">Received KB/sec</tt> - The throughput measured in Kilobytes per second</li>
<li><tt class="code">Sent KB/sec</tt> - The throughput measured in Kilobytes per second</li>
<li><tt class="code">Avg. Bytes</tt> - average size of the sample response in bytes.</li>
</ul>
<p>Times are in milliseconds.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='1204' height='300' src="../../docs/images/screenshots/summary_report.png"/></div>
<div align="center">
<p>
    The figure below shows an example of selecting the &quot;<tt class="code">Include group name</tt>&quot; checkbox.
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1208' height='302' src="../../docs/images/screenshots/summary_report_grouped.png"/><br>
<font size="-1">Sample &quot;<tt class="code">Include group name</tt>&quot; display</font></td></tr></table>

</div></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Save_Responses_to_a_file">19.3.17 Save Responses to a file</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
        This test element can be placed anywhere in the test plan.
        For each sample in its scope, it will create a file of the response Data.
        The primary use for this is in creating functional tests, but it can also
        be useful where the response is too large to be displayed in the 
        <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Listener.
        The file name is created from the specified prefix, plus a number (unless this is disabled, see below).
        The file extension is created from the document type, if known.
        If not known, the file extension is set to '<tt class="code">unknown</tt>'.
        If numbering is disabled, and adding a suffix is disabled, then the file prefix is
        taken as the entire file name. This allows a fixed file name to be generated if required.
        The generated file name is stored in the sample response, and can be saved
        in the test log output file if required.
        </p>
        <p>
        The current sample is saved first, followed by any sub-samples (child samples).
        If a variable name is provided, then the names of the files are saved in the order
        that the sub-samples appear. See below. 
        </p>
    <p><b>Control Panel</b></p>
<div align="center"><img width='488' height='251' src="../../docs/images/screenshots/savetofile.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Filename Prefix</td>
<td>Prefix for the generated file names; this can include a directory name.
        Relative paths are resolved relative to the current working directory (which defaults to the <tt class="code">bin/</tt> directory).
        JMeter also supports paths relative to the directory containing the current test plan (JMX file).
        If the path name begins with &quot;<tt class="code">~/</tt>&quot; (or whatever is in the <tt class="code">jmeter.save.saveservice.base_prefix</tt> JMeter property),
        then the path is assumed to be relative to the JMX file location. 
 </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Variable Name</td>
<td>
 Name of a variable in which to save the generated file name (so it can be used later in the test plan).
 If there are sub-samples then a numeric suffix is added to the variable name.
 E.g. if the variable name is <tt class="code">FILENAME</tt>, then the parent sample file name is saved in the variable <tt class="code">FILENAME</tt>, 
 and the filenames for the child samplers are saved in <tt class="code">FILENAME1</tt>, <tt class="code">FILENAME2</tt> etc.
 </td>
<td>
No
</td>
</tr>
<tr>
<td>Save Failed Responses only</td>
<td>If selected, then only failed responses are saved</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Save Successful Responses only</td>
<td>If selected, then only successful responses are saved</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Don't add number to prefix</td>
<td>If selected, then no number is added to the prefix. If you select this option, make sure that the prefix is unique or the file may be overwritten.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Don't add suffix</td>
<td>If selected, then no suffix is added. If you select this option, make sure that the prefix is unique or the file may be overwritten.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Minimum Length of sequence number</td>
<td>If &quot;<tt class="code">Don't add number to prefix</tt>&quot; is not checked, then numbers added to prefix will be padded by <tt class="code">0</tt> so that prefix is has size of this value. Defaults to <tt class="code">0</tt>.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_Listener_(DEPRECATED)">19.3.18 BSF Listener (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BSF Listener allows BSF script code to be applied to sample results.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='847' height='634' src="../../docs/images/screenshots/bsf_listener.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The BSF language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <dl>
        <dt><tt class="code">Parameters</tt></dt><dd>string containing the parameters as a single variable</dd>
        <dt><tt class="code">args</tt></dt><dd>String array containing parameters, split on white-space</dd>
    </dl></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
The script (or file) is processed using the <tt class="code">BSFEngine.exec()</tt> method, which does not return a value.
</p><p>
Before invoking the script, some variables are set up.
Note that these are BSF variables - i.e. they can be used directly in the script.
</p><dl>
<dt><tt class="code">log</tt></dt><dd>(<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</dd>
<dt><tt class="code">Label</tt></dt><dd>the String Label</dd>
<dt><tt class="code">FileName</tt></dt><dd>the script file name (if any)</dd>
<dt><tt class="code">Parameters</tt></dt><dd>the parameters (as a String)</dd>
<dt><tt class="code">args</tt></dt><dd>the parameters as a String array (split on whitespace)</dd>
<dt><tt class="code">ctx</tt></dt><dd>(<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</dd>
<dt><tt class="code">vars</tt></dt><dd>(<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</dd>
<dt><tt class="code">props</tt></dt><dd>(JMeterProperties - class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></dd>
<dt><tt class="code">sampleResult</tt>, <tt class="code">prev</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the SampleResult</dd>
<dt><tt class="code">sampleEvent</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/SampleEvent.html">SampleEvent</a>) - gives access to the SampleEvent</dd>
<dt><tt class="code">sampler</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the last sampler</dd>
<dt><tt class="code">OUT</tt></dt><dd><tt class="code">System.out</tt> - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></dd>
</dl><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_Listener">19.3.18.1 JSR223 Listener</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 Listener allows JSR223 script code to be applied to sample results.
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The JSR223 language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <dl>
        <dt><tt class="code">Parameters</tt></dt><dd>string containing the parameters as a single variable</dd>
        <dt><tt class="code">args</tt></dt><dd>String array containing parameters, split on white-space</dd>
    </dl></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script compilation caching</td>
<td>Unique String across Test Plan that JMeter will use to cache result of Script compilation if language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not).
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>See note in JSR223 Sampler Java System property if you're using Groovy without checking this option</td></tr>
</table>
</p>

    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
Before invoking the script, some variables are set up.
Note that these are JSR223 variables - i.e. they can be used directly in the script.
</p><dl>
<dt><tt class="code">log</tt></dt><dd>(<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</dd>
<dt><tt class="code">Label</tt></dt><dd>the String Label</dd>
<dt><tt class="code">FileName</tt></dt><dd>the script file name (if any)</dd>
<dt><tt class="code">Parameters</tt></dt><dd>the parameters (as a String)</dd>
<dt><tt class="code">args</tt></dt><dd>the parameters as a String array (split on whitespace)</dd>
<dt><tt class="code">ctx</tt></dt><dd>(<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</dd>
<dt><tt class="code">vars</tt></dt><dd>(<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</dd>
<dt><tt class="code">props</tt></dt><dd>(JMeterProperties - class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></dd>
<dt><tt class="code">sampleResult</tt>, <tt class="code">prev</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the SampleResult</dd>
<dt><tt class="code">sampleEvent</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/SampleEvent.html">SampleEvent</a>) - gives access to the SampleEvent</dd>
<dt><tt class="code">sampler</tt></dt><dd>(<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the last sampler</dd>
<dt><tt class="code">OUT</tt></dt><dd><tt class="code">System.out</tt> - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></dd>
</dl><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Generate_Summary_Results">19.3.19 Generate Summary Results</a>
</h3>
</font>
</td></tr>
<tr><td>
This test element can be placed anywhere in the test plan.
Generates a summary of the test run so far to the log file and/or 
standard output. Both running and differential totals are shown.
Output is generated every <tt class="code">n</tt> seconds (default 30 seconds) on the appropriate
time boundary, so that multiple test runs on the same time will be synchronised.
See <tt class="code">jmeter.properties</tt> file for the summariser configuration items:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
# Define the following property to automatically start a summariser with that name
# (applies to non-GUI mode only)
#summariser.name=summary
#
# interval between summaries (in seconds) default 3 minutes
#summariser.interval=30
#
# Write messages to log file
#summariser.log=true
#
# Write messages to System.out
#summariser.out=true
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

This element is mainly intended for batch (non-GUI) runs.
The output looks like the following:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
label +     16 in 0:00:12 =    1.3/s Avg:  1608 Min:  1163 Max:  2009 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label +     82 in 0:00:30 =    2.7/s Avg:  1518 Min:  1003 Max:  2020 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =     98 in 0:00:42 =    2.3/s Avg:  1533 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     85 in 0:00:30 =    2.8/s Avg:  1505 Min:  1008 Max:  2005 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    183 in 0:01:13 =    2.5/s Avg:  1520 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     79 in 0:00:30 =    2.7/s Avg:  1578 Min:  1089 Max:  2012 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    262 in 0:01:43 =    2.6/s Avg:  1538 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     80 in 0:00:30 =    2.7/s Avg:  1531 Min:  1013 Max:  2014 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    342 in 0:02:12 =    2.6/s Avg:  1536 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     83 in 0:00:31 =    2.7/s Avg:  1512 Min:  1003 Max:  1982 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    425 in 0:02:43 =    2.6/s Avg:  1531 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     83 in 0:00:29 =    2.8/s Avg:  1487 Min:  1023 Max:  2013 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    508 in 0:03:12 =    2.6/s Avg:  1524 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     78 in 0:00:30 =    2.6/s Avg:  1594 Min:  1013 Max:  2016 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    586 in 0:03:43 =    2.6/s Avg:  1533 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     80 in 0:00:30 =    2.7/s Avg:  1516 Min:  1013 Max:  2005 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    666 in 0:04:12 =    2.6/s Avg:  1531 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     86 in 0:00:30 =    2.9/s Avg:  1449 Min:  1004 Max:  2017 Err:     0 (0.00%) Active: 5 Started: 5 Finished: 0
label =    752 in 0:04:43 =    2.7/s Avg:  1522 Min:  1003 Max:  2020 Err:     0 (0.00%)
label +     65 in 0:00:24 =    2.7/s Avg:  1579 Min:  1007 Max:  2003 Err:     0 (0.00%) Active: 0 Started: 5 Finished: 5
label =    817 in 0:05:07 =    2.7/s Avg:  1526 Min:  1003 Max:  2020 Err:     0 (0.00%)
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

The &quot;<tt class="code">label</tt>&quot; is the name of the element.
The <tt class="code">&quot;+&quot;</tt> means that the line is a delta line, i.e. shows the changes since the last output.<br>
The <tt class="code">&quot;=&quot;</tt> means that the line is a total line, i.e. it shows the running total.<br>
Entries in the JMeter log file also include time-stamps.
The example &quot;<tt class="code">817 in 0:05:07 =    2.7/s</tt>&quot; means that there were 817 samples recorded in 5 minutes and 7 seconds,
and that works out at 2.7 samples per second.<br>
The <tt class="code">Avg</tt> (Average), <tt class="code">Min</tt> (Minimum) and <tt class="code">Max</tt> (Maximum) times are in milliseconds.<br>
&quot;<tt class="code">Err</tt>&quot; means number of errors (also shown as percentage).<br>
The last two lines will appear at the end of a test.
They will not be synchronised to the appropriate time boundary.
Note that the initial and final deltas may be for less than the interval (in the example above this is 30 seconds).
The first delta will generally be lower, as JMeter synchronizes to the interval boundary.
The last delta will be lower, as the test will generally not finish on an exact interval boundary.
<p>
The label is used to group sample results together. 
So if you have multiple Thread Groups and want to summarize across them all, then use the same label
 - or add the summariser to the Test Plan (so all thread groups are in scope).
Different summary groupings can be implemented
by using suitable labels and adding the summarisers to appropriate parts of the test plan.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
In Non-GUI mode by default a Generate Summary Results listener named &quot;<tt class="code">summariser</tt>&quot; is configured, if you have already added one to your Test Plan, ensure you name it differently 
otherwise results will be accumulated under this label (summary) leading to wrong results (sum of total samples + samples located under the Parent of Generate Summary Results listener).<br>
This is not a bug but a design choice allowing to summarize across thread groups.
</td></tr>
</table>
</p>

    <p><b>Control Panel</b></p>
<div align="center"><img width='364' height='76' src="../../docs/images/screenshots/summary.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
 It appears as the &quot;<tt class="code">label</tt>&quot; in the output. Details for all elements with the same label will be added together.
 </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Comparison_Assertion_Visualizer">19.3.20 Comparison Assertion Visualizer</a>
</h3>
</font>
</td></tr>
<tr><td>

The Comparison Assertion Visualizer shows the results of any <a href="../usermanual/component_reference.html#Compare_Assertion">Compare Assertion</a> elements.
<p><b>Control Panel</b></p>
<div align="center"><img width='718' height='454' src="../../docs/images/screenshots/comparison_assertion_visualizer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
 </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Backend_Listener">19.3.21 Backend Listener</a>
</h3>
</font>
</td></tr>
<tr><td>

The backend listener is an Asynchronous listener that enables you to plug custom implementations of <a href="../api/org/apache/jmeter/visualizers/backend/BackendListenerClient.html">BackendListenerClient</a>.
By default, a Graphite implementation is provided.
<p><b>Control Panel</b></p>
<div align="center"><img width='705' height='350' src="../../docs/images/screenshots/backend_listener.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Backend Listener implementation</td>
<td>Class of the <tt class="code">BackendListenerClient</tt> implementation.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Async Queue size</td>
<td>Size of the queue that holds the SampleResults while they are processed asynchronously.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters of the <tt class="code">BackendListenerClient</tt> implementation.</td>
<td>
Yes
</td>
</tr>
</table>
<p>The following parameters apply to the <a href="../api/org/apache/jmeter/visualizers/backend/graphite/GraphiteBackendListenerClient.html">GraphiteBackendListenerClient</a> implementation:</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>graphiteMetricsSender</td>
<td><tt class="code">org.apache.jmeter.visualizers.backend.graphite.TextGraphiteMetricsSender</tt> or <tt class="code">org.apache.jmeter.visualizers.backend.graphite.PickleGraphiteMetricsSender</tt></td>
<td>
Yes
</td>
</tr>
<tr>
<td>graphiteHost</td>
<td>Graphite or InfluxDB (with Graphite plugin enabled) server host</td>
<td>
Yes
</td>
</tr>
<tr>
<td>graphitePort</td>
<td>Graphite or InfluxDB (with Graphite plugin enabled) server port, defaults to <tt class="code">2003</tt>. Note <tt class="code">PickleGraphiteMetricsSender</tt> (port <tt class="code">2004</tt>) can only talk to Graphite server.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>rootMetricsPrefix</td>
<td>Prefix of metrics sent to backend. Defaults to &quot;<tt class="code">jmeter</tt>.&quot;
        Note that JMeter does not add a separator between the root prefix and the samplerName which is why the trailing dot is currently needed.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>summaryOnly</td>
<td>Only send a summary with no detail. Defaults to <tt class="code">true</tt>.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>samplersList</td>
<td>Defines the names (labels) of sample results to be sent to the back end. 
        If <tt class="code">useRegexpForSamplersList=false</tt> this is a list of semi-colon separated names.
        If <tt class="code">useRegexpForSamplersList=true</tt> this is a regular expression which will be matched against the names.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>useRegexpForSamplersList</td>
<td>Consider samplersList as a regular expression to select the samplers for which you want to report metrics to backend. Defaults to <tt class="code">false</tt>.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>percentiles</td>
<td>The percentiles you want to send to the backend.
        A percentile may contain a fractional part, for example <tt class="code">12.5</tt>.
        (The separator is always &quot;.&quot;)
        List must be semicolon separated. Generally 3 or 4 values should be sufficient.</td>
<td>
Yes
</td>
</tr>
</table>
<p>See also <a href="realtime-results.html">Real-time results</a> for more details.</p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1265' height='581' src="../../docs/images/screenshots/grafana_dashboard.png"/><br>
<font size="-1">Grafana dashboard</font></td></tr></table>
<p>Since JMeter 3.2, a new implementation (in Alpha state) has been added that allows writing directly in InfluxDB with a custom schema, it is called <tt class="code">InfluxdbBackendListenerClient</tt> 
      The following parameters apply to the <a href="../../docs/api/org/apache/jmeter/visualizers/backend/influxdb/InfluxdbBackendListenerClient.html">InfluxdbBackendListenerClient</a> implementation:</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>influxdbMetricsSender</td>
<td><tt class="code">org.apache.jmeter.visualizers.backend.influxdb.HttpMetricsSender</tt></td>
<td>
Yes
</td>
</tr>
<tr>
<td>influxdbUrl</td>
<td>Influx URL (example : http://influxHost:8086/write?db=jmeter)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>application</td>
<td>Name of tested application. This value is stored in the 'events' measurement as a tag named 'application' </td>
<td>
Yes
</td>
</tr>
<tr>
<td>measurement</td>
<td>Measurement as per <a href="https://docs.influxdata.com/influxdb/v1.1/write_protocols/line_protocol_reference/">Influx Line Protocol Reference</a>. Defaults to &quot;<tt class="code">jmeter</tt>.&quot;</td>
<td>
Yes
</td>
</tr>
<tr>
<td>summaryOnly</td>
<td>Only send a summary with no detail. Defaults to <tt class="code">true</tt>.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>samplersRegex</td>
<td>Regular expression which will be matched against the names of samples and sent to the back end.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>testTitle</td>
<td>Test name. Defaults to <tt class="code">Test name</tt>. This value is stored in the 'events' measurement as a field named 'text'. JMeter generate automaticaly at the start and the end of the test an annotation with this value ending with ' started' and ' ended'</td>
<td>
Yes
</td>
</tr>
<tr>
<td>eventTags</td>
<td>List of tags. This value is stored in the 'events' measurement as a tag named 'tags'.</td>
<td>
No
</td>
</tr>
<tr>
<td>percentiles</td>
<td>The percentiles you want to send to the backend.
        A percentile may contain a fractional part, for example <tt class="code">12.5</tt>.
        (The separator is always &quot;.&quot;)
        List must be semicolon separated. Generally 3 or 4 values should be sufficient.</td>
<td>
Yes
</td>
</tr>
</table>
<p>See also <a href="realtime-results.html">Real-time results</a> and <a href="http://docs.grafana.org/reference/annotations/#influxdb-annotations">Influxdb annotations in Grafana</a> for more details.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="config_elements"><strong>19.4 Configuration Elements</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <br>
    Configuration elements can be used to set up defaults and variables for later use by samplers.
    Note that these elements are processed at the start of the scope in which they are found, 
    i.e. before any samplers in the same scope.
    <br>
</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="CSV_Data_Set_Config">19.4.1 CSV Data Set Config</a>
</h3>
</font>
</td></tr>
<tr><td>

    <p>
    CSV Data Set Config is used to read lines from a file, and split them into variables.
    It is easier to use than the <tt class="code">__CSVRead()</tt> and <tt class="code">_StringFromFile()</tt> functions.
    It is well suited to handling large numbers of variables, and is also useful for testing with
    &quot;random&quot; and unique values.</p>
    <p>Generating unique random values at run-time is expensive in terms of CPU and memory, so just create the data
    in advance of the test. If necessary, the &quot;random&quot; data from the file can be used in conjunction with
    a run-time parameter to create different sets of values from each run - e.g. using concatenation - which is
    much cheaper than generating everything at run-time.
    </p>
    <p>
    JMeter allows values to be quoted; this allows the value to contain a delimiter.
    If &quot;<tt class="code">allow quoted data</tt>&quot; is enabled, a value may be enclosed in double-quotes.
    These are removed. To include double-quotes within a quoted field, use two double-quotes.
    For example:
    </p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
1,&quot;2,3&quot;,&quot;4&quot;&quot;5&quot; =&gt;
1
2,3
4&quot;5
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

    <p>
    JMeter supports CSV files which have a header line defining the column names.
    To enable this, leave the &quot;<tt class="code">Variable Names</tt>&quot; field empty. The correct delimiter must be provided.
    </p>
    <p>
    JMeter supports CSV files with quoted data that includes new-lines.
    </p>
    <p>
    By default, the file is only opened once, and each thread will use a different line from the file.
    However the order in which lines are passed to threads depends on the order in which they execute,
    which may vary between iterations.
    Lines are read at the start of each test iteration.
    The file name and mode are resolved in the first iteration.
    </p>
    <p>
    See the description of the Share mode below for additional options.
    If you want each thread to have its own set of values, then you will need to create a set of files,
    one for each thread. For example <tt class="code">test1.csv</tt>, <tt class="code">test2.csv</tt>, …, <tt class="code">test<em>n</em>.csv</tt>. Use the filename 
    <tt class="code">test${__threadNum}.csv</tt> and set the &quot;<tt class="code">Sharing mode</tt>&quot; to &quot;<tt class="code">Current thread</tt>&quot;.
    </p>
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>CSV Dataset variables are defined at the start of each test iteration.
    As this is after configuration processing is completed,
    they cannot be used for some configuration items - such as JDBC Config - 
    that process their contents at configuration time (see <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=40394">Bug 40394</a>
)
    However the variables do work in the HTTP Auth Manager, as the <tt class="code">username</tt> etc. are processed at run-time.
    </td></tr>
</table>
</p>

    <p>
    As a special case, the string &quot;<tt class="code">\t</tt>&quot; (without quotes) in the delimiter field is treated as a Tab.
    </p>
    <p>
    When the end of file (<tt class="code">EOF</tt>) is reached, and the recycle option is <tt class="code">true</tt>, reading starts again with the first line of the file.
    </p>
    <p>
    If the recycle option is <tt class="code">false</tt>, and stopThread is <tt class="code">false</tt>, then all the variables are set to <tt class="code">&lt;EOF&gt;</tt> when the end of file is reached.
    This value can be changed by setting the JMeter property <tt class="code">csvdataset.eofstring</tt>.
    </p>
    <p>
    If the Recycle option is <tt class="code">false</tt>, and Stop Thread is <tt class="code">true</tt>, then reaching <tt class="code">EOF</tt> will cause the thread to be stopped.
    </p>
<p><b>Control Panel</b></p>
<div align="center"><img width='433' height='281' src="../../docs/images/screenshots/csvdatasetconfig.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Filename</td>
<td>Name of the file to be read. 
  <b>Relative file names are resolved with respect to the path of the active test plan.</b>
  <b>For distributed testing, the CSV file must be stored on the server host system in the correct relative directory to where the jmeter server is started.</b>
  Absolute file names are also supported, but note that they are unlikely to work in remote mode, 
  unless the remote server has the same directory structure.
  If the same physical file is referenced in two different ways - e.g. <tt class="code">csvdata.txt</tt> and <tt class="code">./csvdata.txt</tt> -
  then these are treated as different files.
  If the OS does not distinguish between upper and lower case, <tt class="code">csvData.TXT</tt> would also be opened separately. 
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>File Encoding</td>
<td>The encoding to be used to read the file, if not the platform default.</td>
<td>
No
</td>
</tr>
<tr>
<td>Variable Names</td>
<td>List of variable names. The names must be separated by the delimiter character. They can be quoted using double-quotes.
  JMeter supports CSV header lines:
  if the variable name field empty, then the first line of the file is read and interpreted as the list of column names.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Ignore first line (only used if Variable Names is not empty)</td>
<td>
  Ignore first line of CSV file, it will only be used used if Variable Names is not empty, 
  if Variable Names is empty the first line must contain the headers.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Delimiter</td>
<td>Delimiter to be used to split the records in the file.
  If there are fewer values on the line than there are variables the remaining variables are not updated -
  so they will retain their previous value (if any).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Allow quoted data?</td>
<td>Should the CSV file allow values to be quoted?
  If enabled, then values can be enclosed in <tt class="code">&quot;</tt> - double-quote - allowing values to contain a delimiter.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Recycle on EOF?</td>
<td>Should the file be re-read from the beginning on reaching <tt class="code">EOF</tt>? (default is <tt class="code">true</tt>)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Stop thread on EOF?</td>
<td>Should the thread be stopped on <tt class="code">EOF</tt>, if Recycle is false? (default is <tt class="code">false</tt>)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Sharing mode</td>
<td>
  <ul>
  <li><tt class="code">All threads</tt> - (the default) the file is shared between all the threads.</li>
  <li><tt class="code">Current thread group</tt> - each file is opened once for each thread group in which the element appears</li>
  <li><tt class="code">Current thread</tt> - each file is opened separately for each thread</li>
  <li><tt class="code">Identifier</tt> - all threads sharing the same identifier share the same file.
  So for example if you have 4 thread groups, you could use a common id for two or more of the groups
  to share the file between them.
  Or you could use the thread number to share the file between the same thread numbers in different thread groups.
  </li>
  </ul>
  </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="FTP_Request_Defaults">19.4.2 FTP Request Defaults</a>
</h3>
</font>
</td></tr>
<tr><td>
<p><b>Control Panel</b></p>
<div align="center"><img width='520' height='202' src="../../docs/images/screenshots/ftp-config/ftp-request-defaults.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="DNS_Cache_Manager">19.4.3 DNS Cache Manager</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>DNS Cache Manager is designed for using in the root of Thread Group or Test Plan. Do not place it as child element of particular HTTP Sampler
    </td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>DNS Cache Manager works only with HTTP requests using HTTPClient4 implementation.</td></tr>
</table>
</p>
<p>The DNS Cache Manager element allows to test applications, which have several servers behind load balancers (CDN, etc.), 
    when user receives content from different IP's. By default JMeter uses JVM DNS cache. That's why
    only one server from the cluster receives load. DNS Cache Manager resolves names for each thread separately each iteration and
    saves results of resolving to its internal DNS Cache, which is independent from both JVM and OS DNS caches.
    </p>
    <p>
    A mapping for static hosts can be used to simulate something like <tt class="code">/etc/hosts</tt> file.
    These entries will be preferred over the custom resolver. <tt class="code">Use custom DNS resolver</tt> has to be enabled,
    if you want to use this mapping.
    </p>
    <a name="static_host_table"/>
<p><b>Usage of static host table</b></p>

    <p>Say, you have a test server, that you want to reach with a name, that is not (yet) set up in your dns servers.
    For our example, this would be <tt class="code">www.example.com</tt> for the server name, which you want to reach at the
    ip of the server <tt class="code">a123.another.example.org</tt>.
    </p>
    <p>You could change your workstation and add an entry to your <tt class="code">/etc/hosts</tt> file - or the equivalent for
    your OS, or add an entry to the Static Host Table of the DNS Cache Manager.
    </p>
    <p>You would type <tt class="code">www.example.com</tt> into the first column (<tt class="code">Host</tt>) and
    <tt class="code">a123.another.example.org</tt> into the second column (<tt class="code">Hostname or IP address</tt>).
    As the name of the second column implies, you could even use the ip address of your test server there.
    </p>
    <p>The ip address for the test server will be looked up by using the custom dns resolver. When none is given, the
    system dns resolver will be used.
    </p>
    <p>Now you can use <tt class="code">www.example.com</tt> in your HTTPClient4 samplers and the requests will be made against
    <tt class="code">a123.another.example.org</tt> with all headers set to <tt class="code">www.example.com</tt>.
    </p>
    
    <p><b>Control Panel</b></p>
<div align="center"><img width='712' height='387' src="../../docs/images/screenshots/dns-cache-manager.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Clear cache each Iteration</td>
<td>If selected, DNS cache of every  Thread is cleared each time new iteration is started.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use system DNS resolver</td>
<td>System DNS resolver will be used. For correct work edit
       <tt class="code">$JAVA_HOME/jre/lib/security/java.security</tt> and add <tt class="code">networkaddress.cache.ttl=0</tt> 
    </td>
<td>
N/A
</td>
</tr>
<tr>
<td>Use custom DNS resolver</td>
<td>Custom DNS resolver (from dnsjava library) will be used.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Hostname or IP address</td>
<td>List of DNS servers to use. If empty, network configuration DNS will used.</td>
<td>
No
</td>
</tr>
<tr>
<td>Add Button</td>
<td>Add an entry to the DNS servers table.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Delete Button</td>
<td>Delete the currently selected table entry.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Host and Hostname or IP address</td>
<td>Mapping of hostnames to a static host entry which will be resolved using the custom DNS resolver.</td>
<td>
No
</td>
</tr>
<tr>
<td>Add static host Button</td>
<td>Add an entry to the static hosts table.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Delete static host Button</td>
<td>Delete the currently selected static host in the table.</td>
<td>
N/A
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Authorization_Manager">19.4.4 HTTP Authorization Manager</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>If there is more than one Authorization Manager in the scope of a Sampler,
there is currently no way to specify which one is to be used.</td></tr>
</table>
</p>

<p>The Authorization Manager lets you specify one or more user logins for web pages that are
restricted using server authentication.  You see this type of authentication when you use
your browser to access a restricted page, and your browser displays a login dialog box.  JMeter
transmits the login information when it encounters this type of page.</p>
<p>
The Authorization headers may not be shown in the Tree View Listener &quot;<tt class="code">Request</tt>&quot; tab.
The Java implementation does pre-emptive authentication, but it does not
return the Authorization header when JMeter fetches the headers.
The HttpComponents (HC 4.5.X) implementation defaults to pre-emptive since 3.2 and the header will be shown.
To disable this, set the values as below, in which case authentication will only be performed in response to a challenge.
</p>
<p>
In the file <tt class="code">jmeter.properties</tt> set <tt class="code">httpclient4.auth.preemptive=false</tt>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note: the above settings only apply to the HttpClient sampler.
</td></tr>
</table>
</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
When looking for a match against a URL, JMeter checks each entry in turn, and stops when it finds the first match.
Thus the most specific URLs should appear first in the list, followed by less specific ones.
Duplicate URLs will be ignored.
If you want to use different usernames/passwords for different threads, you can use variables.
These can be set up using a <a href="../usermanual/component_reference.html#CSV_Data_Set_Config">CSV Data Set Config</a> Element (for example).
</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='538' height='340' src="../../docs/images/screenshots/http-config/http-auth-manager.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Clear auth on each iteration?</td>
<td>Used by Kerberos authentication. If checked, authentication will be done on each iteration of Main Thread Group loop even if it has already been done in a previous one.
        This is usually useful if each main thread group iteration represents behaviour of one Virtual User.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Base URL</td>
<td>A partial or complete URL that matches one or more HTTP Request URLs.  As an example,
say you specify a Base URL of &quot;<tt class="code">http://localhost/restricted/</tt>&quot; with a <tt class="code">Username</tt> of &quot;<tt class="code">jmeter</tt>&quot; and
a <tt class="code">Password</tt> of &quot;<tt class="code">jmeter</tt>&quot;.  If you send an HTTP request to the URL
&quot;<tt class="code">http://localhost/restricted/ant/myPage.html</tt>&quot;, the Authorization Manager sends the login
information for the user named, &quot;<tt class="code">jmeter</tt>&quot;.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Username</td>
<td>The username to authorize.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Password</td>
<td>The password for the user. (N.B. this is stored unencrypted in the test plan)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Domain</td>
<td>The domain to use for NTLM.</td>
<td>
No
</td>
</tr>
<tr>
<td>Realm</td>
<td>The realm to use for NTLM.</td>
<td>
No
</td>
</tr>
<tr>
<td>Mechanism</td>
<td>Type of authentication to perform. JMeter can perform different types of authentications based on used Http Samplers:
<dl>
<dt>Java</dt><dd><tt class="code">BASIC</tt></dd>
<dt>HttpClient 4</dt><dd><tt class="code">BASIC</tt>, <tt class="code">DIGEST</tt> and <tt class="code">Kerberos</tt></dd>
</dl>
</td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The Realm only applies to the HttpClient sampler.
</td></tr>
</table>
</p>
<br><b>Kerberos Configuration:</b><p>To configure Kerberos you need to setup at least two JVM system properties:</p><ul>
    <li><tt class="code">-Djava.security.krb5.conf=krb5.conf</tt></li>
    <li><tt class="code">-Djava.security.auth.login.config=jaas.conf</tt></li>
</ul><p>
You can also configure those two properties in the file <tt class="code">bin/system.properties</tt>.
Look at the two sample configuration files (<tt class="code">krb5.conf</tt> and <tt class="code">jaas.conf</tt>) located in the jmeter <tt class="code">bin</tt> folder
for references to more documentation, and tweak them to match your Kerberos configuration.
</p><p>
When generating a SPN for Kerberos SPNEGO authentication IE and Firefox will omit the port number
from the URL. Chrome has an option (<tt class="code">--enable-auth-negotiate-port</tt>) to include the port
number if it differs from the standard ones (<tt class="code">80</tt> and <tt class="code">443</tt>). That behavior
can be emulated by setting the following jmeter property as below.
</p><p>
In <tt class="code">jmeter.properties</tt> or <tt class="code">user.properties</tt>, set:
</p><ul>
<li><tt class="code">kerberos.spnego.strip_port=false</tt></li>
</ul><br><b>Controls:</b><ul>
  <li><tt class="code">Add</tt> Button - Add an entry to the authorization table.</li>
  <li><tt class="code">Delete</tt> Button - Delete the currently selected table entry.</li>
  <li><tt class="code">Load</tt> Button - Load a previously saved authorization table and add the entries to the existing
authorization table entries.</li>
  <li><tt class="code">Save As</tt> Button - Save the current authorization table to a file.</li>
</ul><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When you save the Test Plan, JMeter automatically saves all of the authorization
table entries - including any passwords, which are not encrypted.</td></tr>
</table>
</p>
<a name="authorization_example"/>
<p><b>Authorization Example</b></p>


<p><a href="../demos/AuthManagerTestPlan.jmx">Download</a> this example.  In this example, we created a Test Plan on a local server that sends three HTTP requests, two requiring a login and the
other is open to everyone.  See figure 10 to see the makeup of our Test Plan.  On our server, we have a restricted
directory named, &quot;<tt class="code">secret</tt>&quot;, which contains two files, &quot;<tt class="code">index.html</tt>&quot; and &quot;<tt class="code">index2.html</tt>&quot;.  We created a login id named, &quot;<tt class="code">kevin</tt>&quot;,
which has a password of &quot;<tt class="code">spot</tt>&quot;.  So, in our Authorization Manager, we created an entry for the restricted directory and
a username and password (see figure 11).  The two HTTP requests named &quot;<tt class="code">SecretPage1</tt>&quot; and &quot;<tt class="code">SecretPage2</tt>&quot; make requests
to &quot;<tt class="code">/secret/index.html</tt>&quot; and &quot;<tt class="code">/secret/index2.html</tt>&quot;.  The other HTTP request, named &quot;<tt class="code">NoSecretPage</tt>&quot; makes a request to
&quot;<tt class="code">/index.html</tt>&quot;.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='452' height='177' src="../../docs/images/screenshots/http-config/auth-manager-example1a.png"/><br>
<font size="-1">Figure 10 - Test Plan</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='641' height='329' src="../../docs/images/screenshots/http-config/auth-manager-example1b.png"/><br>
<font size="-1">Figure 11 - Authorization Manager Control Panel</font></td></tr></table>


<p>When we run the Test Plan, JMeter looks in the Authorization table for the URL it is requesting.  If the Base URL matches
the URL, then JMeter passes this information along with the request.</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>You can download the Test Plan, but since it is built as a test for our local server, you will not
be able to run it.  However, you can use it as a reference in constructing your own Test Plan.</td></tr>
</table>
</p>

</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Cache_Manager">19.4.5 HTTP Cache Manager</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The HTTP Cache Manager is used to add caching functionality to HTTP requests within its scope to simulate browser cache feature.
Each Virtual User thread has its own Cache. By default, Cache Manager will store up to 5000 items in cache per Virtual User thread, using LRU algorithm. 
Use property &quot;<tt class="code">maxSize</tt>&quot; to modify this value. Note that the more you increase this value the more HTTP Cache Manager will consume memory, so be sure to adapt the <tt class="code">-Xmx</tt> jvm option accordingly.
</p>
<p>
If a sample is successful (i.e. has response code <tt class="code">2xx</tt>) then the <tt class="code">Last-Modified</tt> and <tt class="code">Etag</tt> (and <tt class="code">Expired</tt> if relevant) values are saved for the URL.
Before executing the next sample, the sampler checks to see if there is an entry in the cache, 
and if so, the <tt class="code">If-Last-Modified</tt> and <tt class="code">If-None-Match</tt> conditional headers are set for the request.
</p>
<p>
Additionally, if the &quot;<tt class="code">Use Cache-Control/Expires header</tt>&quot; option is selected, then the <tt class="code">Cache-Control</tt>/<tt class="code">Expires</tt> value is checked against the current time.
If the request is a <tt class="code">GET</tt> request, and the timestamp is in the future, then the sampler returns immediately,
without requesting the URL from the remote server. This is intended to emulate browser behaviour.
Note that if <tt class="code">Cache-Control</tt> header is &quot;<tt class="code">no-cache</tt>&quot;, the response will be stored in cache as pre-expired,
so will generate a conditional <tt class="code">GET</tt> request.
If <tt class="code">Cache-Control</tt> has any other value, 
the &quot;<tt class="code">max-age</tt>&quot; expiry option is processed to compute entry lifetime, if missing then expire header will be used, if also missing entry will be cached 
as specified in <a href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a> section 13.2.4. using <tt class="code">Last-Modified</tt> time and response Date.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If the requested document has not changed since it was cached, then the response body will be empty.
Likewise if the <tt class="code">Expires</tt> date is in the future.
This may cause problems for Assertions.
</td></tr>
</table>
</p>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Responses with a <tt class="code">Vary</tt> header will not be cached.</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='511' height='196' src="../../docs/images/screenshots/http-config/http-cache-manager.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Clear cache each iteration</td>
<td>
  If selected, then the cache is cleared at the start of the thread.
  </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use Cache Control/Expires header when processing GET requests</td>
<td>See description above.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Max Number of elements in cache</td>
<td>See description above.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Cookie_Manager">19.4.6 HTTP Cookie Manager</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>If there is more than one Cookie Manager in the scope of a Sampler,
there is currently no way to specify which one is to be used.
Also, a cookie stored in one cookie manager is not available to any other manager,
so use multiple Cookie Managers with care.</td></tr>
</table>
</p>
<p>The Cookie Manager element has two functions:<br>
First, it stores and sends cookies just like a web browser. If you have an HTTP Request and
the response contains a cookie, the Cookie Manager automatically stores that cookie and will
use it for all future requests to that particular web site.  Each JMeter thread has its own
&quot;cookie storage area&quot;.  So, if you are testing a web site that uses a cookie for storing
session information, each JMeter thread will have its own session.
Note that such cookies do not appear on the Cookie Manager display, but they can be seen using
the <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Listener.
</p>
<p>
JMeter checks that received cookies are valid for the URL.
This means that cross-domain cookies are not stored.
If you have bugged behaviour or want Cross-Domain cookies to be used, define the JMeter property &quot;<tt class="code">CookieManager.check.cookies=false</tt>&quot;.
</p>
<p>
Received Cookies can be stored as JMeter thread variables.
To save cookies as variables, define the property &quot;<tt class="code">CookieManager.save.cookies=true</tt>&quot;.
Also, cookies names are prefixed with &quot;<tt class="code">COOKIE_</tt>&quot; before they are stored (this avoids accidental corruption of local variables)
To revert to the original behaviour, define the property &quot;<tt class="code">CookieManager.name.prefix= </tt>&quot; (one or more spaces).
If enabled, the value of a cookie with the name <tt class="code">TEST</tt> can be referred to as <tt class="code">${COOKIE_TEST}</tt>.
</p>
<p>Second, you can manually add a cookie to the Cookie Manager.  However, if you do this,
the cookie will be shared by all JMeter threads.</p>
<p>Note that such Cookies are created with an Expiration time far in the future</p>
<p>
Cookies with <tt class="code">null</tt> values are ignored by default.
This can be changed by setting the JMeter property: <tt class="code">CookieManager.delete_null_cookies=false</tt>.
Note that this also applies to manually defined cookies - any such cookies will be removed from the display when it is updated.
Note also that the cookie name must be unique - if a second cookie is defined with the same name, it will replace the first.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='653' height='373' src="../../docs/images/screenshots/http-config/http-cookie-manager.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Clear Cookies each Iteration</td>
<td>If selected, all server-defined cookies are cleared each time the main Thread Group loop is executed.
  Any cookie defined in the GUI are not cleared.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Cookie Policy</td>
<td>The cookie policy that will be used to manage the cookies. 
  &quot;<tt class="code">standard</tt>&quot; is the default since 3.0, and should work in most cases. 
  See <a href="https://hc.apache.org/httpcomponents-client-ga/tutorial/html/statemgmt.html#d5e515">Cookie specifications</a> and 
  <a href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/cookie/CookieSpec.html">CookieSpec implementations</a>
  [Note: &quot;<tt class="code">ignoreCookies</tt>&quot; is equivalent to omitting the CookieManager.]
 </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Implementation</td>
<td><tt class="code">HC4CookieHandler</tt> (HttpClient 4.5.X API). 
  Default is <tt class="code">HC4CookieHandler</tt> since 3.0.
  <br>
  <i>[Note: If you have a website to test with IPv6 address, choose <tt class="code">HC4CookieHandler</tt> (IPv6 compliant)]</i></td>
<td>
Yes
</td>
</tr>
<tr>
<td>User-Defined Cookies</td>
<td>This
  gives you the opportunity to use hardcoded cookies that will be used by all threads during the test execution.
  <br>
  The &quot;<tt class="code">domain</tt>&quot; is the hostname of the server (without <tt class="code">http://</tt>); the port is currently ignored.
  </td>
<td>
No (discouraged, unless you know what you're doing)
</td>
</tr>
<tr>
<td>Add Button</td>
<td>Add an entry to the cookie table.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Delete Button</td>
<td>Delete the currently selected table entry.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Load Button</td>
<td>Load a previously saved cookie table and add the entries to the existing
cookie table entries.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Save As Button</td>
<td>
  Save the current cookie table to a file (does not save any cookies extracted from HTTP Responses).
  </td>
<td>
N/A
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Request_Defaults">19.4.7 HTTP Request Defaults</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This element lets you set default values that your HTTP Request controllers use.  For example, if you are
creating a Test Plan with 25 HTTP Request controllers and all of the requests are being sent to the same server,
you could add a single HTTP Request Defaults element with the &quot;<tt class="code">Server Name or IP</tt>&quot; field filled in.  Then, when
you add the 25 HTTP Request controllers, leave the &quot;<tt class="code">Server Name or IP</tt>&quot; field empty.  The controllers will inherit
this field value from the HTTP Request Defaults element.</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
All port values are treated equally; a sampler that does not specify a port will use the HTTP Request Defaults port, if one is provided.
</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='879' height='469' src="../../docs/images/screenshots/http-config/http-request-defaults.png"/></div>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='881' height='256' src="../../docs/images/screenshots/http-config/http-request-defaults-advanced-tab.png"/><br>
<font size="-1">HTTP Request Advanced config fields</font></td></tr></table>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server</td>
<td>Domain name or IP address of the web server. e.g. <tt class="code">www.example.com</tt>. [Do not include the <tt class="code">http://</tt> prefix.</td>
<td>
No
</td>
</tr>
<tr>
<td>Port</td>
<td>Port the web server is listening to.</td>
<td>
No
</td>
</tr>
<tr>
<td>Connect Timeout</td>
<td>Connection Timeout. Number of milliseconds to wait for a connection to open.</td>
<td>
No
</td>
</tr>
<tr>
<td>Response Timeout</td>
<td>Response Timeout. Number of milliseconds to wait for a response.</td>
<td>
No
</td>
</tr>
<tr>
<td>Implementation</td>
<td><tt class="code">Java</tt>, <tt class="code">HttpClient4</tt>. 
        If not specified the default depends on the value of the JMeter property
        <tt class="code">jmeter.httpsampler</tt>, failing that, the <tt class="code">Java</tt> implementation is used.</td>
<td>
No
</td>
</tr>
<tr>
<td>Protocol</td>
<td><tt class="code">HTTP</tt> or <tt class="code">HTTPS</tt>.</td>
<td>
No
</td>
</tr>
<tr>
<td>Content encoding</td>
<td>The encoding to be used for the request.</td>
<td>
No
</td>
</tr>
<tr>
<td>Path</td>
<td>The path to resource (for example, <tt class="code">/servlets/myServlet</tt>). If the
        resource requires query string parameters, add them below in the &quot;<tt class="code">Send Parameters With the Request</tt>&quot; section.
        Note that the path is the default for the full path, not a prefix to be applied to paths
        specified on the HTTP Request screens.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Send Parameters With the Request</td>
<td>The query string will
        be generated from the list of parameters you provide.  Each parameter has a <i>name</i> and
        <i>value</i>.  The query string will be generated in the correct fashion, depending on
        the choice of &quot;<tt class="code">Method</tt>&quot; you made (i.e. if you chose <tt class="code">GET</tt>, the query string will be
        appended to the URL, if <tt class="code">POST</tt>, then it will be sent separately).  Also, if you are
        sending a file using a multipart form, the query string will be created using the
        multipart form specifications.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server (proxy)</td>
<td>Hostname or IP address of a proxy server to perform request. [Do not include the <tt class="code">http://</tt> prefix.]</td>
<td>
No
</td>
</tr>
<tr>
<td>Port</td>
<td>Port the proxy server is listening to.</td>
<td>
No, unless proxy hostname is specified
</td>
</tr>
<tr>
<td>Username</td>
<td>(Optional) username for proxy server.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>(Optional) password for proxy server. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
<tr>
<td>Retrieve All Embedded Resources from HTML Files</td>
<td>Tell JMeter to parse the HTML file
and send HTTP/HTTPS requests for all images, Java applets, JavaScript files, CSSs, etc. referenced in the file.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Use concurrent pool</td>
<td>Use a pool of concurrent connections to get embedded resources.</td>
<td>
No
</td>
</tr>
<tr>
<td>Size</td>
<td>Pool size for concurrent connections used to get embedded resources.</td>
<td>
No
</td>
</tr>
<tr>
<td>Embedded URLs must match:</td>
<td>
        If present, this must be a regular expression that is used to match against any embedded URLs found.
        So if you only want to download embedded resources from <tt class="code">http://example.com/</tt>, use the expression:
        <tt class="code">http://example\.com/.*</tt>
        </td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note: radio buttons only have two states - on or off.
This makes it impossible to override settings consistently
- does off mean off, or does it mean use the current default?
JMeter uses the latter (otherwise defaults would not work at all).
So if the button is off, then a later element can set it on,
but if the button is on, a later element cannot set it off.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Header_Manager">19.4.8 HTTP Header Manager</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The Header Manager lets you add or override HTTP request headers.</p>
<p>
<b>JMeter now supports multiple Header Managers</b>. The header entries are merged to form the list for the sampler.
If an entry to be merged matches an existing header name, it replaces the previous entry,
unless the entry value is empty, in which case any existing entry is removed.
This allows one to set up a default set of headers, and apply adjustments to particular samplers. 
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='767' height='239' src="../../docs/images/screenshots/http-config/http-header-manager.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Name (Header)</td>
<td>Name of the request header.
        Two common request headers you may want to experiment with
are &quot;<tt class="code">User-Agent</tt>&quot; and &quot;<tt class="code">Referer</tt>&quot;.</td>
<td>
No (You should have at least one, however)
</td>
</tr>
<tr>
<td>Value</td>
<td>Request header value.</td>
<td>
No (You should have at least one, however)
</td>
</tr>
<tr>
<td>Add Button</td>
<td>Add an entry to the header table.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Delete Button</td>
<td>Delete the currently selected table entry.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Load Button</td>
<td>Load a previously saved header table and add the entries to the existing
header table entries.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Save As Button</td>
<td>Save the current header table to a file.</td>
<td>
N/A
</td>
</tr>
</table>
<a name="header_manager_example"/>
<p><b>Header Manager example</b></p>


<p><a href="../demos/HeaderManagerTestPlan.jmx">Download</a> this example.  In this example, we created a Test Plan
that tells JMeter to override the default &quot;<tt class="code">User-Agent</tt>&quot; request header and use a particular Internet Explorer agent string
instead. (see figures 12 and 13).</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='247' height='121' src="../../docs/images/screenshots/http-config/header-manager-example1a.png"/><br>
<font size="-1">Figure 12 - Test Plan</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img  src="../../docs/images/screenshots/http-config/header-manager-example1b.png"/><br>
<font size="-1">Figure 13 - Header Manager Control Panel</font></td></tr></table>

</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Java_Request_Defaults">19.4.9 Java Request Defaults</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Java Request Defaults component lets you set default values for Java testing.  See the <a href="../usermanual/component_reference.html#Java_Request">Java Request</a>.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='685' height='373' src="../../docs/images/screenshots/java_defaults.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JDBC_Connection_Configuration">19.4.10 JDBC Connection Configuration</a>
</h3>
</font>
</td></tr>
<tr><td>
Creates a database connection (used by <a href="../usermanual/component_reference.html#JDBC_Request">JDBC Request</a>Sampler)
     from the supplied JDBC Connection settings. The connection may be optionally pooled between threads.
     Otherwise each thread gets its own connection.
     The connection configuration name is used by the JDBC Sampler to select the appropriate
     connection.
     The used pool is DBCP, see <a href="https://commons.apache.org/proper/commons-dbcp/configuration.html">BasicDataSource Configuration Parameters</a>
    <p><b>Control Panel</b></p>
<div align="center"><img width='474' height='458' src="../../docs/images/screenshots/jdbc-config/jdbc-conn-config.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for the connection configuration that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Variable Name</td>
<td>The name of the variable the connection is tied to.  
        Multiple connections can be used, each tied to a different variable, allowing JDBC Samplers
        to select the appropriate connection.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Each name must be different. If there are two configuration elements using the same name,
        only one will be saved. JMeter logs a message if a duplicate name is detected.</td></tr>
</table>
</p>

        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Max Number of Connections</td>
<td>
        Maximum number of connections allowed in the pool.
        In most cases, <b>set this to zero (0)</b>.
        This means that each thread will get its own pool with a single connection in it, i.e.
        the connections are not shared between threads.
        <br>
        If you really want to use shared pooling (why?), then set the max count to the same as the number of threads
        to ensure threads don't wait on each other.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Max Wait (ms)</td>
<td>Pool throws an error if the timeout period is exceeded in the 
        process of trying to retrieve a connection, see <a href="https://commons.apache.org/proper/commons-dbcp/api-2.1.1/org/apache/commons/dbcp2/BasicDataSource.html#getMaxWaitMillis--">BasicDataSource.html#getMaxWaitMillis</a></td>
<td>
Yes
</td>
</tr>
<tr>
<td>Time Between Eviction Runs (ms)</td>
<td>The number of milliseconds to sleep between runs of the idle object evictor thread. When non-positive, no idle object evictor thread will be run. (Defaults to &quot;<tt class="code">60000</tt>&quot;, 1 minute).
        See <a href="https://commons.apache.org/proper/commons-dbcp/api-2.1.1/org/apache/commons/dbcp2/BasicDataSource.html#getTimeBetweenEvictionRunsMillis--">BasicDataSource.html#getTimeBetweenEvictionRunsMillis</a></td>
<td>
Yes
</td>
</tr>
<tr>
<td>Auto Commit</td>
<td>Turn auto commit on or off for the connections.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Test While Idle</td>
<td>Test idle connections of the pool, see <a href="https://commons.apache.org/proper/commons-dbcp/api-2.1.1/org/apache/commons/dbcp2/BasicDataSource.html#getTestWhileIdle--">BasicDataSource.html#getTestWhileIdle</a>. 
        Validation Query will be used to test it.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Soft Min Evictable Idle Time(ms)</td>
<td>Minimum amount of time a connection may sit idle in the pool before it is eligible for eviction by the idle object evictor, with the extra condition that at least <tt class="code">minIdle</tt> connections remain in the pool.
        See <a href="https://commons.apache.org/proper/commons-dbcp/api-2.1.1/org/apache/commons/dbcp2/BasicDataSource.html#getSoftMinEvictableIdleTimeMillis--">BasicDataSource.html#getSoftMinEvictableIdleTimeMillis</a>.
        Defaults to 5000 (5 seconds)
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Validation Query</td>
<td>A simple query used to determine if the database is still responding.
        This defaults to the '<tt class="code">isValid()</tt>' method of the jdbc driver, which is suitable for many databases.
        However some may require a different query; for example Oracle something like '<tt class="code">SELECT 1 FROM DUAL</tt>' could be used.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note this validation query is used on pool creation to validate it even if &quot;<tt class="code">Test While Idle</tt>&quot; suggests query would only be used on idle connections.
        This is DBCP behaviour.</td></tr>
</table>
</p>

        </td>
<td>
No
</td>
</tr>
<tr>
<td>Database URL</td>
<td>JDBC Connection string for the database.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>JDBC Driver class</td>
<td>Fully qualified name of driver class. (Must be in
        JMeter's classpath - easiest to copy <tt class="code">.jar</tt> file into JMeter's <tt class="code">/lib</tt> directory).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Username</td>
<td>Name of user to connect as.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>Password to connect with. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
</table>
<p>Different databases and JDBC drivers require different JDBC settings. 
The Database URL and JDBC Driver class are defined by the provider of the JDBC implementation.</p><p>Some possible settings are shown below. Please check the exact details in the JDBC driver documentation.</p><p>
If JMeter reports <tt class="code">No suitable driver</tt>, then this could mean either:
</p><ul>
<li>The driver class was not found. In this case, there will be a log message such as <tt class="code">DataSourceElement: Could not load driver: {classname} java.lang.ClassNotFoundException: {classname}</tt></li>
<li>The driver class was found, but the class does not support the connection string. This could be because of a syntax error in the connection string, or because the wrong classname was used.</li>
</ul><p>
If the database server is not running or is not accessible, then JMeter will report a <tt class="code">java.net.ConnectException</tt>.
</p><p>Some examples for databases and their parameters are given below.</p><dl>
  <dt>MySQL</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">com.mysql.jdbc.Driver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:mysql://host[:port]/dbname</tt></dd>
    </dl>
  </dd>
  <dt>PostgreSQL</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">org.postgresql.Driver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:postgresql:{dbname}</tt></dd>
    </dl>
  </dd>
  <dt>Oracle</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">oracle.jdbc.OracleDriver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:oracle:thin:@//host:port/service</tt> OR <tt class="code">jdbc:oracle:thin:@(description=(address=(host={mc-name})(protocol=tcp)(port={port-no}))(connect_data=(sid={sid})))</tt></dd>
    </dl>
  </dd>
  <dt>Ingress (2006)</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">ingres.jdbc.IngresDriver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:ingres://host:port/db[;attr=value]</tt></dd>
    </dl>
  </dd>
  <dt>Microsoft SQL Server (MS JDBC driver)</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">com.microsoft.sqlserver.jdbc.SQLServerDriver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:sqlserver://host:port;DatabaseName=dbname</tt></dd>
    </dl>
  </dd>
  <dt>Apache Derby</dt>
  <dd>
    <dl>
      <dt>Driver class</dt>
      <dd><tt class="code">org.apache.derby.jdbc.ClientDriver</tt></dd>
      <dt>Database URL</dt>
      <dd><tt class="code">jdbc:derby://server[:port]/databaseName[;URLAttributes=value[;…]]</tt></dd>
    </dl>
  </dd>
</dl><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The above may not be correct - please check the relevant JDBC driver documentation.</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Keystore_Configuration">19.4.11 Keystore Configuration</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Keystore Config Element lets you configure how Keystore will be loaded and which keys it will use.
This component is typically used in HTTPS scenarios where you don't want to take into account keystore initialization into account in response time.</p>
<p>To use this element, you need to setup first a Java Key Store with the client certificates you want to test, to do that:
</p>
<ol>
<li>Create your certificates either with Java <tt class="code">keytool</tt> utility or through your PKI</li>
<li>If created by PKI, import your keys in Java Key Store by converting them to a format acceptable by JKS</li>
<li>Then reference the keystore file through the two JVM properties (or add them in <tt class="code">system.properties</tt>):
    <ul>
        <li><tt class="code">-Djavax.net.ssl.keyStore=path_to_keystore</tt></li>
        <li><tt class="code">-Djavax.net.ssl.keyStorePassword=password_of_keystore</tt></li>
    </ul>
</li>
</ol>
<p><b>Control Panel</b></p>
<div align="center"><img width='441' height='189' src="../../docs/images/screenshots/keystore_config.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Preload</td>
<td>Wether or not to preload Keystore. Setting it to <tt class="code">true</tt> is usually the best option.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Variable name holding certificate alias</td>
<td>Variable name that will contain the alias to use for authentication by client certificate. Variable value will be filled from CSV Data Set for example. In the screenshot, &quot;<tt class="code">certificat_ssl</tt>&quot; will also be a variable in CSV Data Set.</td>
<td>
False
</td>
</tr>
<tr>
<td>Alias Start Index</td>
<td>The index of the first key to use in Keystore, 0-based.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Alias End Index</td>
<td>The index of the last key to use in Keystore, 0-based. When using &quot;<tt class="code">Variable name holding certificate alias</tt>&quot; ensure it is large enough so that all keys are loaded at startup.</td>
<td>
Yes
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
To make JMeter use more than one certificate you need to ensure that:
<ul>
<li><tt class="code">https.use.cached.ssl.context=false</tt> is set in <tt class="code">jmeter.properties</tt> or <tt class="code">user.properties</tt></li>
<li>You use HTTPClient 4 implementation for HTTP Request</li>
</ul>
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Login_Config_Element">19.4.12 Login Config Element</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Login Config Element lets you add or override username and password settings in samplers that use username and password as part of their setup.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='459' height='126' src="../../docs/images/screenshots/login-config.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Username</td>
<td>The default username to use.</td>
<td>
No
</td>
</tr>
<tr>
<td>Password</td>
<td>The default password to use. (N.B. this is stored unencrypted in the test plan)</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="LDAP_Request_Defaults">19.4.13 LDAP Request Defaults</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The LDAP Request Defaults component lets you set default values for LDAP testing.  See the <a href="../usermanual/component_reference.html#LDAP_Request">LDAP Request</a>.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='689' height='232' src="../../docs/images/screenshots/ldap_defaults.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="LDAP_Extended_Request_Defaults">19.4.14 LDAP Extended Request Defaults</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The LDAP Extended Request Defaults component lets you set default values for extended LDAP testing.  See the <a href="../usermanual/component_reference.html#LDAP_Extended_Request">LDAP Extended Request</a>.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='686' height='184' src="../../docs/images/screenshots/ldapext_defaults.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="TCP_Sampler_Config">19.4.15 TCP Sampler Config</a>
</h3>
</font>
</td></tr>
<tr><td>

        <p>
    The TCP Sampler Config provides default data for the TCP Sampler
    </p>
<p><b>Control Panel</b></p>
<div align="center"><img width='826' height='450' src="../../docs/images/screenshots/tcpsamplerconfig.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>TCPClient classname</td>
<td>Name of the TCPClient class. Defaults to the property <tt class="code">tcp.handler</tt>, failing that <tt class="code">TCPClientImpl</tt>.</td>
<td>
No
</td>
</tr>
<tr>
<td>ServerName or IP</td>
<td>Name or IP of TCP server</td>
<td>
No
</td>
</tr>
<tr>
<td>Port Number</td>
<td>Port to be used</td>
<td>
No
</td>
</tr>
<tr>
<td>Re-use connection</td>
<td>If selected, the connection is kept open. Otherwise it is closed when the data has been read.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Close connection</td>
<td>If selected, the connection will be closed after running the sampler.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>SO_LINGER</td>
<td>Enable/disable <tt class="code">SO_LINGER</tt> with the specified linger time in seconds when a socket is created. If you set &quot;<tt class="code">SO_LINGER</tt>&quot; value as <tt class="code">0</tt>, you may prevent large numbers of sockets sitting around with a <tt class="code">TIME_WAIT</tt> status.</td>
<td>
No
</td>
</tr>
<tr>
<td>End of line(EOL) byte value</td>
<td>Byte value for end of line, set this to a value outside the range <tt class="code">-128</tt> to <tt class="code">+127</tt> to skip eol checking. You may set this in <tt class="code">jmeter.properties</tt> file as well with the <tt class="code">tcp.eolByte</tt> property. If you set this in TCP Sampler Config and in <tt class="code">jmeter.properties</tt> file at the same time, the setting value in the TCP Sampler Config will be used.</td>
<td>
No
</td>
</tr>
<tr>
<td>Connect Timeout</td>
<td>Connect Timeout (milliseconds, 0 disables).</td>
<td>
No
</td>
</tr>
<tr>
<td>Response Timeout</td>
<td>Response Timeout (milliseconds, 0 disables).</td>
<td>
No
</td>
</tr>
<tr>
<td>Set Nodelay</td>
<td>Should the nodelay property be set?</td>
<td>
No
</td>
</tr>
<tr>
<td>Text to Send</td>
<td>Text to be sent</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="User_Defined_Variables">19.4.16 User Defined Variables</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The User Defined Variables element lets you define an <b>initial set of variables</b>, just as in the <a href="../usermanual/component_reference.html#Test_Plan">Test Plan</a>.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that all the UDV elements in a test plan - no matter where they are - are processed at the start.
</td></tr>
</table>
</p>

So you cannot reference variables which are defined as part of a test run, e.g. in a Post-Processor.
</p>
<p>
<b>
UDVs should not be used with functions that generate different results each time they are called.
Only the result of the first function call will be saved in the variable. 
</b>
However, UDVs can be used with functions such as <tt class="code">__P()</tt>, for example:
</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
HOST      ${__P(host,localhost)} 
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

<p>
which would define the variable &quot;<tt class="code">HOST</tt>&quot; to have the value of the JMeter property &quot;<tt class="code">host</tt>&quot;, defaulting to &quot;<tt class="code">localhost</tt>&quot; if not defined.
</p>
<p>
For defining variables during a test run, see <a href="../usermanual/component_reference.html#User_Parameters">User Parameters</a>.
UDVs are processed in the order they appear in the Plan, from top to bottom.
</p>
<p>
For simplicity, it is suggested that UDVs are placed only at the start of a Thread Group
(or perhaps under the Test Plan itself).
</p>
<p>
Once the Test Plan and all UDVs have been processed, the resulting set of variables is
copied to each thread to provide the initial set of variables.
</p>
<p>
If a runtime element such as a User Parameters Pre-Processor or Regular Expression Extractor defines a variable
with the same name as one of the UDV variables, then this will replace the initial value, and all other test
elements in the thread will see the updated value.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='741' height='266' src="../../docs/images/screenshots/user_defined_variables.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If you have more than one Thread Group, make sure you use different names for different values, as UDVs are shared between Thread Groups.
Also, the variables are not available for use until after the element has been processed, 
so you cannot reference variables that are defined in the same element.
You can reference variables defined in earlier UDVs or on the Test Plan. 
</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>User Defined Variables</td>
<td>Variable name/value pairs. The string under the &quot;<tt class="code">Name</tt>&quot;
      column is what you'll need to place inside the brackets in <tt class="code">${…}</tt> constructs to use the variables later on. The
      whole <tt class="code">${…}</tt> will then be replaced by the string in the &quot;<tt class="code">Value</tt>&quot; column.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Random_Variable">19.4.17 Random Variable</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Random Variable Config Element is used to generate random numeric strings and store them in variable for use later.
It's simpler than using <a href="../usermanual/component_reference.html#User_Defined_Variables">User Defined Variables</a> together with the <tt class="code">__Random()</tt> function.
</p>
<p>
The output variable is constructed by using the random number generator,
and then the resulting number is formatted using the format string.
The number is calculated using the formula <tt class="code">minimum+Random.nextInt(maximum-minimum+1)</tt>.
<tt class="code">Random.nextInt()</tt> requires a positive integer.
This means that <tt class="code">maximum-minimum</tt> - i.e. the range - must be less than <tt class="code">2147483647</tt>,
however the <tt class="code">minimum</tt> and <tt class="code">maximum</tt> values can be any <tt class="code">long</tt> values so long as the range is OK.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='495' height='286' src="../../docs/images/screenshots/random_variable.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Variable Name</td>
<td>The name of the variable in which to store the random string.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Format String</td>
<td>The <tt class="code">java.text.DecimalFormat</tt> format string to be used. 
  For example &quot;<tt class="code">000</tt>&quot; which will generate numbers with at least 3 digits, 
  or &quot;<tt class="code">USER_000</tt>&quot; which will generate output of the form <tt class="code">USER_nnn</tt>. 
  If not specified, the default is to generate the number using <tt class="code">Long.toString()</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Minimum Value</td>
<td>The minimum value (<tt class="code">long</tt>) of the generated random number.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Maximum Value</td>
<td>The maximum value (<tt class="code">long</tt>) of the generated random number.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Random Seed</td>
<td>The seed for the random number generator. Default is the current time in milliseconds. 
  If you use the same seed value with Per Thread set to <tt class="code">true</tt>, you will get the same value for each Thread as per 
  <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Random.html">Random</a> class.
  </td>
<td>
No
</td>
</tr>
<tr>
<td>Per Thread(User)?</td>
<td>If <tt class="code">False</tt>, the generator is shared between all threads in the thread group.
  If <tt class="code">True</tt>, then each thread has its own random generator.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Counter">19.4.18 Counter</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>Allows the user to create a counter that can be referenced anywhere
in the Thread Group.  The counter config lets the user configure a starting point, a maximum,
and the increment.  The counter will loop from the start to the max, and then start over
with the start, continuing on like that until the test is ended.  </p>
<p>The counter uses a long to store the value, so the range is from <tt class="code">-2^63</tt> to <tt class="code">2^63-1</tt>.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='404' height='262' src="../../docs/images/screenshots/counter.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Start</td>
<td>The starting number for the counter.  The counter will equal this
        number during the first iteration.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Increment</td>
<td>How much to increment the counter by after each
        iteration.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Maximum</td>
<td>If the counter exceeds the maximum, then it is reset to the <tt class="code">Start</tt> value.
        Default is <tt class="code">Long.MAX_VALUE</tt>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Format</td>
<td>Optional format, e.g. <tt class="code">000</tt> will format as <tt class="code">001</tt>, <tt class="code">002</tt>, etc. 
        This is passed to <tt class="code">DecimalFormat</tt>, so any valid formats can be used.
        If there is a problem interpreting the format, then it is ignored.
    [The default format is generated using <tt class="code">Long.toString()</tt>]
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Reference Name</td>
<td>This controls how you refer to this value in other elements.  Syntax is
        as in <a href="functions.html">user-defined values</a>: <tt class="code">$(reference_name}</tt>.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Track Counter Independently for each User</td>
<td>In other words, is this a global counter, or does each user get their
        own counter?  If unchecked, the counter is global (i.e., user #1 will get value &quot;<tt class="code">1</tt>&quot;, and user #2 will get value &quot;<tt class="code">2</tt>&quot; on
        the first iteration).  If checked, each user has an independent counter.</td>
<td>
No
</td>
</tr>
<tr>
<td>Reset counter on each Thread Group Iteration</td>
<td>This option is only available when counter is tracked per User, if checked, 
        counter will be reset to <tt class="code">Start</tt> value on each Thread Group iteration. This can be useful when Counter is inside a Loop Controller.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Simple_Config_Element">19.4.19 Simple Config Element</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Simple Config Element lets you add or override arbitrary values in samplers.  You can choose the name of the value
and the value itself.  Although some adventurous users might find a use for this element, it's here primarily for developers as a basic
GUI that they can use while developing new JMeter components.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='627' height='282' src="../../docs/images/screenshots/simple_config_element.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree. </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameter Name</td>
<td>The name of each parameter.  These values are internal to JMeter's workings and
  are not generally documented.  Only those familiar with the code will know these values.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameter Value</td>
<td>The value to apply to that parameter.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="MongoDB_Source_Config_(DEPRECATED)">19.4.20 MongoDB Source Config (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>
Creates a MongoDB connection (used by <a href="../usermanual/component_reference.html#MongoDB_Script">MongoDB Script</a>Sampler)
     from the supplied Connection settings. Each thread gets its own connection.
     The connection configuration name is used by the JDBC Sampler to select the appropriate
     connection.
     <p>
     You can then access <tt class="code">com.mongodb.DB</tt> object in Beanshell or JSR223 Test Elements through the element <a href="../api/org/apache/jmeter/protocol/mongodb/config/MongoDBHolder.html">MongoDBHolder</a> 
     using this code</p>
     
    <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
import com.mongodb.DB;
import org.apache.jmeter.protocol.mongodb.config.MongoDBHolder;
DB db = MongoDBHolder.getDBFromSource(&quot;value of property MongoDB Source&quot;,
            &quot;value of property Database Name&quot;);

    </pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

    <p><b>Control Panel</b></p>
<div align="center"><img width='1233' height='618' src="../../docs/images/screenshots/mongodb-source-config.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for the connection configuration that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Server Address List</td>
<td>Mongo DB Servers</td>
<td>
Yes
</td>
</tr>
<tr>
<td>MongoDB Source</td>
<td>The name of the variable the connection is tied to.  
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Each name must be different. If there are two configuration elements using the same name, only one will be saved.</td></tr>
</table>
</p>

        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Keep Trying</td>
<td>
            If <tt class="code">true</tt>, the driver will keep trying to connect to the same server in case that the socket cannot be established.<br>
            There is maximum amount of time to keep retrying, which is 15s by default.<br>This can be useful to avoid some exceptions being thrown when a server is down temporarily by blocking the operations.
            <br>It can also be useful to smooth the transition to a new master (so that a new master is elected within the retry time).<br>
            <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that when using this flag
              <ul>
                <li>for a replica set, the driver will try to connect to the old master for that time, instead of failing over to the new one right away </li>
                <li>this does not prevent exception from being thrown in read/write operations on the socket, which must be handled by application.</li>
              </ul>
              Even if this flag is false, the driver already has mechanisms to automatically recreate broken connections and retry the read operations.
            </td></tr>
</table>
</p>

            Default is <tt class="code">false</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Maximum connections per host</td>
<td></td>
<td>
No
</td>
</tr>
<tr>
<td>Connection timeout</td>
<td>
            The connection timeout in milliseconds.<br>It is used solely when establishing a new connection <tt class="code">Socket.connect(java.net.SocketAddress, int)</tt><br>Default is <tt class="code">0</tt> and means no timeout.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Maximum retry time</td>
<td>
            The maximum amount of time in milliseconds to spend retrying to open connection to the same server.<br>Default is <tt class="code">0</tt>, which means to use the default 15s if <tt class="code">autoConnectRetry</tt> is on.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Maximum wait time</td>
<td>
            The maximum wait time in milliseconds that a thread may wait for a connection to become available.<br>Default is <tt class="code">120,000</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Socket timeout</td>
<td>
            The socket timeout in milliseconds It is used for I/O socket read and write operations <tt class="code">Socket.setSoTimeout(int)</tt><br>Default is <tt class="code">0</tt> and means no timeout.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Socket keep alive</td>
<td>
            This flag controls the socket keep alive feature that keeps a connection alive through firewalls <tt class="code">Socket.setKeepAlive(boolean)</tt><br>
            Default is <tt class="code">false</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>ThreadsAllowedToBlockForConnectionMultiplier</td>
<td>
        This multiplier, multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a connection to become available from the pool.<br>
        All further threads will get an exception right away.<br>
        For example if <tt class="code">connectionsPerHost</tt> is <tt class="code">10</tt> and <tt class="code">threadsAllowedToBlockForConnectionMultiplier</tt> is <tt class="code">5</tt>, then up to 50 threads can wait for a connection.<br>
        Default is <tt class="code">5</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Safe</td>
<td>
            If <tt class="code">true</tt> the driver will use a <tt class="code">WriteConcern</tt> of <tt class="code">WriteConcern.SAFE</tt> for all operations.<br>
            If <tt class="code">w</tt>, <tt class="code">wtimeout</tt>, <tt class="code">fsync</tt> or <tt class="code">j</tt> are specified, this setting is ignored.<br>
            Default is <tt class="code">false</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Fsync</td>
<td>
            The <tt class="code">fsync</tt> value of the global <tt class="code">WriteConcern</tt>.<br>
            Default is <tt class="code">false</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Wait for Journal</td>
<td>
            The <tt class="code">j</tt> value of the global <tt class="code">WriteConcern</tt>.<br>
            Default is <tt class="code">false</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Wait for servers</td>
<td>
            The <tt class="code">w</tt> value of the global <tt class="code">WriteConcern</tt>.<br>Default is <tt class="code">0</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Wait timeout</td>
<td>
            The <tt class="code">wtimeout</tt> value of the global <tt class="code">WriteConcern</tt>.<br>Default is <tt class="code">0</tt>.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Write Concern : Continue on error</td>
<td>
            If batch inserts should continue after the first error
        </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="assertions"><strong>19.5 Assertions</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <p>
    Assertions are used to perform additional checks on samplers, and are processed after <b>every sampler</b>
    in the same scope.
    To ensure that an Assertion is applied only to a particular sampler, add it as a child of the sampler.
    </p>
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
    Note: Unless documented otherwise, Assertions are not applied to sub-samples (child samples) -
    only to the parent sample.
    In the case of JSR223 and BeanShell Assertions, the script can retrieve sub-samples using the method
    <tt class="code">prev.getSubResults()</tt> which returns an array of SampleResults.
    The array will be empty if there are none.
    </td></tr>
</table>
</p>

    <p>
    Assertions can be applied to either the main sample, the sub-samples or both. 
    The default is to apply the assertion to the main sample only.
    If the Assertion supports this option, then there will be an entry on the GUI which looks like the following:
    </p>
    <table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='658' height='54' src="../../docs/images/screenshots/assertion/assertionscope.png"/><br>
<font size="-1">Assertion Scope</font></td></tr></table>

    or the following
    <table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='841' height='55' src="../../docs/images/screenshots/assertion/assertionscopevar.png"/><br>
<font size="-1">Assertion Scope</font></td></tr></table>

    <p>
    If a sub-sampler fails and the main sample is successful,
    then the main sample will be set to failed status and an Assertion Result will be added.
    If the JMeter variable option is used, it is assumed to relate to the main sample, and
    any failure will be applied to the main sample only.
    </p>
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
    The variable <tt class="code">JMeterThread.last_sample_ok</tt> is updated to
    &quot;<tt class="code">true</tt>&quot; or &quot;<tt class="code">false</tt>&quot; after all assertions for a sampler have been run.
     </td></tr>
</table>
</p>

</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Response_Assertion">19.5.1 Response Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The response assertion control panel lets you add pattern strings to be compared against various
    fields of the request or response.
    The pattern strings are:
    </p>
    <ul>
    <li><tt class="code">Contains</tt>, <tt class="code">Matches</tt>: Perl5-style regular expressions</li>
    <li><tt class="code">Equals</tt>, <tt class="code">Substring</tt>: plain text, case-sensitive</li>
    </ul>
    <p>
    A summary of the pattern matching characters can be found at <a href="http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html">ORO Perl5 regular expressions.</a>
    </p>
    <p>You can also choose whether the strings will be expected
to <b>match</b> the entire response, or if the response is only expected to <b>contain</b> the
pattern. You can attach multiple assertions to any controller for additional flexibility.</p>
<p>Note that the pattern string should not include the enclosing delimiters, 
    i.e. use <tt class="code">Price: \d+</tt> not <tt class="code">/Price: \d+/</tt>.
    </p>
    <p>
    By default, the pattern is in multi-line mode, which means that the &quot;<tt class="code">.</tt>&quot; meta-character does not match newline.
    In multi-line mode, &quot;<tt class="code">^</tt>&quot; and &quot;<tt class="code">$</tt>&quot; match the start or end of any line anywhere within the string 
    - not just the start and end of the entire string. Note that <tt class="code">\s</tt> does match new-line.
    Case is also significant. To override these settings, one can use the <i>extended regular expression</i> syntax.
    For example:
</p>
<dl>
<dt><tt class="code">(?i)</tt></dt><dd>ignore case</dd>
<dt><tt class="code">(?s)</tt></dt><dd>treat target as single line, i.e. &quot;<tt class="code">.</tt>&quot; matches new-line</dd>
<dt><tt class="code">(?is)</tt></dt><dd>both the above</dd>
</dl>
These can be used anywhere within the expression and remain in effect until overridden. E.g.
<dl>
<dt><tt class="code">(?i)apple(?-i) Pie</tt></dt><dd>matches &quot;<tt class="code">ApPLe Pie</tt>&quot;, but not &quot;<tt class="code">ApPLe pIe</tt>&quot;</dd>
<dt><tt class="code">(?s)Apple.+?Pie</tt></dt><dd>matches <tt class="code">Apple</tt> followed by <tt class="code">Pie</tt>, which may be on a subsequent line.</dd>
<dt><tt class="code">Apple(?s).+?Pie</tt></dt><dd>same as above, but it's probably clearer to use the <tt class="code">(?s)</tt> at the start.</dd>
</dl>

<p><b>Control Panel</b></p>
<div align="center"><img width='921' height='423' src="../../docs/images/screenshots/assertion/assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Apply to:</td>
<td>
        This is for use with samplers that can generate sub-samples, 
        e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
        <ul>
        <li><tt class="code">Main sample only</tt> - assertion only applies to the main sample</li>
        <li><tt class="code">Sub-samples only</tt> - assertion only applies to the sub-samples</li>
        <li><tt class="code">Main sample and sub-samples</tt> - assertion applies to both.</li>
        <li><tt class="code">JMeter Variable</tt> - assertion is to be applied to the contents of the named variable</li>
        </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Field to Test</td>
<td>Instructs JMeter which field of the Request or Response to test.
        <ul>
        <li><tt class="code">Text Response</tt> - the response text from the server, i.e. the body, excluding any HTTP headers.</li>
        <li><tt class="code">Response Code</tt> - e.g. <tt class="code">200</tt></li>
        <li><tt class="code">Response Message</tt> - e.g. <tt class="code">OK</tt></li>
        <li><tt class="code">Response Headers</tt>, including Set-Cookie headers (if any)</li>
        <li><tt class="code">Request Headers</tt></li>
        <li><tt class="code">URL sampled</tt></li>
        <li><tt class="code">Document (text)</tt> - the extract text from various type of documents via Apache Tika (see <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Document view section).</li>
        </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Ignore status</td>
<td>Instructs JMeter to set the status to success initially. 
                <p>
                The overall success of the sample is determined by combining the result of the
                assertion with the existing Response status.
                When the <tt class="code">Ignore Status</tt> checkbox is selected, the Response status is forced
                to successful before evaluating the Assertion.
                </p>
                HTTP Responses with statuses in the <tt class="code">4xx</tt> and <tt class="code">5xx</tt> ranges are normally
                regarded as unsuccessful. 
                The &quot;<tt class="code">Ignore status</tt>&quot; checkbox can be used to set the status successful before performing further checks.
                Note that this will have the effect of clearing any previous assertion failures,
                so make sure that this is only set on the first assertion.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Pattern Matching Rules</td>
<td>Indicates how the text being tested
        is checked against the pattern.
        <ul>
        <li><tt class="code">Contains</tt> - true if the text contains the regular expression pattern</li>
        <li><tt class="code">Matches</tt> - true if the whole text matches the regular expression pattern</li>
        <li><tt class="code">Equals</tt> - true if the whole text equals the pattern string (case-sensitive)</li>
        <li><tt class="code">Substring</tt> - true if the text contains the pattern string (case-sensitive)</li>
        </ul>
        <tt class="code">Equals</tt> and <tt class="code">Substring</tt> patterns are plain strings, not regular expressions.
        <tt class="code">NOT</tt> may also be selected to invert the result of the check.
        <tt class="code">OR</tt> Apply each assertion in OR combination (if 1 pattern to test maches, Assertion will be ok) instead of AND (All patterns must match so that Assertion is OK).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Patterns to Test</td>
<td>A list of patterns to
        be tested.  
        Each pattern is tested separately. 
        If a pattern fails, then further patterns are not checked.
        There is no difference between setting up
        one Assertion with multiple patterns and setting up multiple Assertions with one
        pattern each (assuming the other options are the same).
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>However, when the <tt class="code">Ignore Status</tt> checkbox is selected, this has the effect of cancelling any
        previous assertion failures - so make sure that the <tt class="code">Ignore Status</tt> checkbox is only used on
        the first Assertion.</td></tr>
</table>
</p>

        </td>
<td>
Yes
</td>
</tr>
</table>
<p>
    The pattern is a Perl5-style regular expression, but without the enclosing brackets.
</p><a name="assertion_examples"/>
<p><b>Assertion Examples</b></p>

<center>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='266' height='117' src="../../docs/images/screenshots/assertion/example1a.png"/><br>
<font size="-1">Figure 14 - Test Plan</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='920' height='451' src="../../docs/images/screenshots/assertion/example1b.png"/><br>
<font size="-1">Figure 15 - Assertion Control Panel with Pattern</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='801' height='230' src="../../docs/images/screenshots/assertion/example1c-pass.png"/><br>
<font size="-1">Figure 16 - Assertion Listener Results (Pass)</font></td></tr></table>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='800' height='233' src="../../docs/images/screenshots/assertion/example1c-fail.png"/><br>
<font size="-1">Figure 17 - Assertion Listener Results (Fail)</font></td></tr></table>

</center>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Duration_Assertion">19.5.2 Duration Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Duration Assertion tests that each response was received within a given amount
of time.  Any response that takes longer than the given number of milliseconds (specified by the
user) is marked as a failed response.</p><p><b>Control Panel</b></p>
<div align="center"><img width='606' height='187' src="../../docs/images/screenshots/duration_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Duration in Milliseconds</td>
<td>The maximum number of milliseconds
        each response is allowed before being marked as failed.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Size_Assertion">19.5.3 Size Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The Size Assertion tests that each response contains the right number of bytes in it.  You can specify that
the size be equal to, greater than, less than, or not equal to a given number of bytes.</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>An empty response is treated as being 0 bytes rather than reported as an error.</td></tr>
</table>
</p>

<p><b>Control Panel</b></p>
<div align="center"><img width='732' height='358' src="../../docs/images/screenshots/size_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Apply to:</td>
<td>
        This is for use with samplers that can generate sub-samples, 
        e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
        <ul>
        <li><tt class="code">Main sample only</tt> - assertion only applies to the main sample</li>
        <li><tt class="code">Sub-samples only</tt> - assertion only applies to the sub-samples</li>
        <li><tt class="code">Main sample and sub-samples</tt> - assertion applies to both.</li>
        <li><tt class="code">JMeter Variable</tt> - assertion is to be applied to the contents of the named variable</li>
        </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Size in bytes</td>
<td>The number of bytes to use in testing the size of the response (or value of the JMeter variable).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Type of Comparison</td>
<td>Whether to test that the response is equal to, greater than, less than,
        or not equal to, the number of bytes specified.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="XML_Assertion">19.5.4 XML Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The XML Assertion tests that the response data consists of a formally correct XML document.  It does not
validate the XML based on a DTD or schema or do any further validation.</p><p><b>Control Panel</b></p>
<div align="center"><img width='470' height='85' src="../../docs/images/screenshots/xml_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_Assertion">19.5.5 BeanShell Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The BeanShell Assertion allows the user to perform assertion checking using a BeanShell script.
</p>
<p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p><p>
Note that a different Interpreter is used for each independent occurrence of the assertion
in each thread in a test script, but the same Interpreter is used for subsequent invocations.
This means that variables persist across calls to the assertion.
</p>
<p>
All Assertions are called from the same thread as the sampler.
</p>
<p>
If the property &quot;<tt class="code">beanshell.assertion.init</tt>&quot; is defined, it is passed to the Interpreter
as the name of a sourced file. This can be used to define common methods and variables.
There is a sample init file in the <tt class="code">bin</tt> directory: <tt class="code">BeanShellAssertion.bshrc</tt>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> methods.
These should be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='849' height='633' src="../../docs/images/screenshots/beanshell_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
    The name is stored in the script variable <tt class="code">Label</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">bsh.args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the BeanShell script to run. This overrides the script.
    The file name is stored in the script variable <tt class="code">FileName</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The BeanShell script to run. The return value is ignored.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>There's a <a href="../demos/BeanShellAssertion.bsh">sample script</a> you can try.</p><p>
Before invoking the script, some variables are set up in the BeanShell interpreter.
These are strings unless otherwise noted:
</p><ul>
  <li><tt class="code">log</tt> - the <a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a> Object. (e.g.) <tt class="code">log.warn(&quot;Message&quot;[,Throwable])</tt></li>
  <li><tt class="code">SampleResult</tt> - the <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a> Object; read-write</li>
  <li><tt class="code">Response</tt> - the response Object; read-write</li>
  <li><tt class="code">Failure</tt> - boolean; read-write; used to set the Assertion status</li>
  <li><tt class="code">FailureMessage</tt> - String; read-write; used to set the Assertion message</li>
  <li><tt class="code">ResponseData</tt> - the response body (byte [])</li>
  <li><tt class="code">ResponseCode</tt> - e.g. <tt class="code">200</tt></li>
  <li><tt class="code">ResponseMessage</tt> - e.g. <tt class="code">OK</tt></li>
  <li><tt class="code">ResponseHeaders</tt> - contains the HTTP headers</li>
  <li><tt class="code">RequestHeaders</tt> - contains the HTTP headers sent to the server</li>
  <li><tt class="code">SampleLabel</tt></li>
  <li><tt class="code">SamplerData</tt> - data that was sent to the server</li>
  <li><tt class="code">ctx</tt> - <a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a></li>
  <li><tt class="code">vars</tt> - <a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>  - e.g. 
    <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(&quot;VAR1&quot;);
vars.put(&quot;VAR2&quot;,&quot;value&quot;);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
  <li><tt class="code">props</tt> - JMeterProperties (class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g.
    <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
</ul><p>The following methods of the Response object may be useful:</p><ul>
    <li><tt class="code">setStopThread(boolean)</tt></li>
    <li><tt class="code">setStopTest(boolean)</tt></li>
    <li><tt class="code">String getSampleLabel()</tt></li>
    <li><tt class="code">setSampleLabel(String)</tt></li>
</ul></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="MD5Hex_Assertion">19.5.6 MD5Hex Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The MD5Hex Assertion allows the user to check the MD5 hash of the response data.</p><p><b>Control Panel</b></p>
<div align="center"><img width='398' height='130' src="../../docs/images/screenshots/assertion/MD5HexAssertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>MD5 sum</td>
<td>32 hex digits representing the MD5 hash (case not significant)</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTML_Assertion">19.5.7 HTML Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The HTML Assertion allows the user to check the HTML syntax of the response data using JTidy.</p><p><b>Control Panel</b></p>
<div align="center"><img width='505' height='341' src="../../docs/images/screenshots/assertion/HTMLAssertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>doctype</td>
<td><tt class="code">omit</tt>, <tt class="code">auto</tt>, <tt class="code">strict</tt> or <tt class="code">loose</tt></td>
<td>
Yes
</td>
</tr>
<tr>
<td>Format</td>
<td><tt class="code">HTML</tt>, <tt class="code">XHTML</tt> or <tt class="code">XML</tt></td>
<td>
Yes
</td>
</tr>
<tr>
<td>Errors only</td>
<td>Only take note of errors?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Error threshold</td>
<td>Number of errors allowed before classing the response as failed</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Warning threshold</td>
<td>Number of warnings allowed before classing the response as failed</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Filename</td>
<td>Name of file to which report is written</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="XPath_Assertion">19.5.8 XPath Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The XPath Assertion tests a document for well formedness, has the option
of validating against a DTD, or putting the document through JTidy and testing for an
XPath.  If that XPath exists, the Assertion is true.  Using &quot;<tt class="code">/</tt>&quot; will match any well-formed
document, and is the default XPath Expression. 
The assertion also supports boolean expressions, such as &quot;<tt class="code">count(//*error)=2</tt>&quot;.
See <a href="http://www.w3.org/TR/xpath">http://www.w3.org/TR/xpath</a> for more information
on XPath.
</p>
Some sample expressions:
<ul>
<li><tt class="code">//title[text()='Text to match']</tt> - matches <tt class="code">&lt;text&gt;Text to match&lt;/text&gt;</tt> anywhere in the response</li>
<li><tt class="code">/title[text()='Text to match']</tt> - matches <tt class="code">&lt;text&gt;Text to match&lt;/text&gt;</tt> at root level in the response</li>
</ul>
<p><b>Control Panel</b></p>
<div align="center"><img width='871' height='615' src="../../docs/images/screenshots/xpath_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Use Tidy (tolerant parser)</td>
<td>Use Tidy, i.e. be tolerant of XML/HTML errors</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Quiet</td>
<td>Sets the Tidy Quiet flag</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Report Errors</td>
<td>If a Tidy error occurs, then set the Assertion accordingly</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Show warnings</td>
<td>Sets the Tidy showWarnings option</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Use Namespaces</td>
<td>Should namespaces be honoured? (see note below on NAMESPACES)</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Validate XML</td>
<td>Check the document against its schema.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Ignore Whitespace</td>
<td>Ignore Element Whitespace.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Fetch External DTDs</td>
<td>If selected, external DTDs are fetched.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>XPath Assertion</td>
<td>XPath to match in the document.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>True if nothing matches</td>
<td>True if a XPath expression is not matched</td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The non-tolerant parser can be quite slow, as it may need to download the DTD etc.
</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
<b>NAMESPACES</b>
As a work-round for namespace limitations of the Xalan XPath parser implementation on which JMeter is based,
you can provide a Properties file which contains mappings for the namespace prefixes: 
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
prefix1=Full Namespace 1
prefix2=Full Namespace 2

</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>


You reference this file in <tt class="code">jmeter.properties</tt> file using the property:
    <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>xpath.namespace.config</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="XML_Schema_Assertion">19.5.9 XML Schema Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The XML Schema Assertion allows the user to validate a response against an XML Schema.</p><p><b>Control Panel</b></p>
<div align="center"><img width='472' height='132' src="../../docs/images/screenshots/assertion/XMLSchemaAssertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>File Name</td>
<td>Specify XML Schema File Name</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_Assertion_(DEPRECATED)">19.5.10 BSF Assertion (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BSF Assertion allows BSF script code to be used to check the status of the previous sample.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='847' height='634' src="../../docs/images/screenshots/bsf_assertion.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The BSF language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
The script (or file) is processed using the <tt class="code">BSFEngine.exec()</tt> method, which does not return a value.
</p><p>The following variables are set up for use by the script:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">Filename</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g.
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">SampleResult</tt>, <tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult (if any)</li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>) - gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - <tt class="code">System.out</tt> - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
<li><tt class="code">AssertionResult</tt> - the assertion result</li>
</ul><p>
The script can check various aspects of the <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>.
If an error is detected, the script should use <tt class="code">AssertionResult.setFailureMessage(&quot;message&quot;)</tt> and <tt class="code">AssertionResult.setFailure(true)</tt>.
</p><p>For further details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_Assertion">19.5.11 JSR223 Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 Assertion allows JSR223 script code to be used to check the status of the previous sample.
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The JSR223 language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script compilation caching</td>
<td>Unique String across Test Plan that JMeter will use to cache result of Script compilation if language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not)
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>See note in JSR223 Sampler Java System property if you're using Groovy without checking this option</td></tr>
</table>
</p>

    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>The following variables are set up for use by the script:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">Filename</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html"><tt class="code">java.util.Properties</tt></a>) - e.g.
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
props.get(&quot;START.HMS&quot;);
props.put(&quot;PROP1&quot;,&quot;1234&quot;);
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">SampleResult</tt>, <tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult (if any)</li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>) - gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - <tt class="code">System.out</tt> - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
<li><tt class="code">AssertionResult</tt> - the assertion result</li>
</ul><p>
The script can check various aspects of the <a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>.
If an error is detected, the script should use <tt class="code">AssertionResult.setFailureMessage(&quot;message&quot;)</tt> and <tt class="code">AssertionResult.setFailure(true)</tt>.
</p><p>For further details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Compare_Assertion">19.5.12 Compare Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Compare Assertion <b>must not be used</b> during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or 
during Test Plan debugging and Validation.
</td></tr>
</table>
</p>


The Compare Assertion can be used to compare sample results within its scope.
Either the contents or the elapsed time can be compared, and the contents can be filtered before comparison.
The assertion comparisons can be seen in the <a href="../usermanual/component_reference.html#Comparison_Assertion_Visualizer">Comparison Assertion Visualizer</a>.
<p><b>Control Panel</b></p>
<div align="center"><img width='580' height='302' src="../../docs/images/screenshots/assertion/compare.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Compare Content</td>
<td>Whether or not to compare the content (response data)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Compare Time</td>
<td>If the value is ≥0, then check if the response time difference is no greater than the value.
    I.e. if the value is <tt class="code">0</tt>, then the response times must be exactly equal.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Comparison Filters</td>
<td>Filters can be used to remove strings from the content comparison.
    For example, if the page has a time-stamp, it might be matched with: &quot;<tt class="code">Time: \d\d:\d\d:\d\d</tt>&quot; and replaced with a dummy fixed time &quot;<tt class="code">Time: HH:MM:SS</tt>&quot;.
    </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="SMIME_Assertion">19.5.13 SMIME Assertion</a>
</h3>
</font>
</td></tr>
<tr><td>

The SMIME Assertion can be used to evaluate the sample results from the Mail Reader Sampler.
This assertion verifies if the body of a mime message is signed or not. The signature can also be verified against a specific signer certificate.
As this is a functionality that is not necessarily needed by most users, additional jars need to be downloaded and added to <tt class="code">JMETER_HOME/lib</tt>:<br> 
<ul>
<li><tt class="code">bcmail-xxx.jar</tt> (BouncyCastle SMIME/CMS)</li>
<li><tt class="code">bcprov-xxx.jar</tt> (BouncyCastle Provider)</li>
</ul>
These need to be <a href="http://www.bouncycastle.org/latest_releases.html">downloaded from BouncyCastle.</a>
<p>
If using the <a href="../usermanual/component_reference.html#Mail_Reader_Sampler">Mail Reader Sampler</a>, 
please ensure that you select &quot;<tt class="code">Store the message using MIME (raw)</tt>&quot; otherwise the Assertion won't be able to process the message correctly.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='471' height='428' src="../../docs/images/screenshots/assertion/smime.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Verify Signature</td>
<td>If selected, the assertion will verify if it is a valid signature according to the parameters defined in the <tt class="code">Signer Certificate</tt> box.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Message not signed</td>
<td>Whether or not to expect a signature in the message</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Signer Cerificate</td>
<td>&quot;<tt class="code">No Check</tt>&quot; means that it will not perform signature verification. &quot;<tt class="code">Check values</tt>&quot; is used to verify the signature against the inputs provided. And &quot;<tt class="code">Certificate file</tt>&quot; will perform the verification against a specific certificate file.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Message Position</td>
<td>
    The Mail sampler can retrieve multiple messages in a single sample.
    Use this field to specify which message will be checked.
    Messages are numbered from <tt class="code">0</tt>, so <tt class="code">0</tt> means the first message.
    Negative numbers count from the LAST message; <tt class="code">-1</tt> means LAST, <tt class="code">-2</tt> means penultimate etc.
    </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="timers"><strong>19.6 Timers</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
    Since version 3.1, a new feature (in Beta mode as of JMeter 3.1 and subject to changes) has been implemented which provides the following feature.<br>
    You can apply a multiplication factor on the sleep delays computed by Random timer by setting property <tt class="code">timer.factor=float number</tt> where float number is a decimal positive number.<br>
    JMeter will multiply this factor by the computed sleep delay. This feature can be used by:
    <ul> 
        <li><a href="../usermanual/component_reference.html#Gaussian_Random_Timer">Gaussian Random Timer</a></li>
        <li><a href="../usermanual/component_reference.html#Poisson_Random_Timer">Poisson Random Timer</a></li>
        <li><a href="../usermanual/component_reference.html#Uniform_Random_Timer">Uniform Random Timer</a></li>
    </ul> 
    </td></tr>
</table>
</p>

    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
    Note that timers are processed <b>before</b> each sampler in the scope in which they are found;
    if there are several timers in the same scope, <b>all</b> the timers will be processed <b>before
    each</b> sampler.
    <br>
    Timers are only processed in conjunction with a sampler.
    A timer which is not in the same scope as a sampler will not be processed at all.
    <br>
    To apply a timer to a single sampler, add the timer as a child element of the sampler.
    The timer will be applied before the sampler is executed.
    To apply a timer after a sampler, either add it to the next sampler, or add it as the
    child of a <a href="../usermanual/component_reference.html#Test_Action">Test Action</a> Sampler.
    </td></tr>
</table>
</p>

</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Constant_Timer">19.6.1 Constant Timer</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>If you want to have each thread pause for the same amount of time between
requests, use this timer.</p><p><b>Control Panel</b></p>
<div align="center"><img width='372' height='100' src="../../docs/images/screenshots/timers/constant_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Thread Delay</td>
<td>Number of milliseconds to pause.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Gaussian_Random_Timer">19.6.2 Gaussian Random Timer</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This timer pauses each thread request for a random amount of time, with most
of the time intervals occurring near a particular value.  
The total delay is the sum of the Gaussian distributed value (with mean <tt class="code">0.0</tt> and standard deviation <tt class="code">1.0</tt>) times
the deviation value you specify, and the offset value.
Another way to explain it, in Gaussian Random Timer, the variation around constant offset has a gaussian curve distribution. 

</p><p><b>Control Panel</b></p>
<div align="center"><img width='372' height='156' src="../../docs/images/screenshots/timers/gauss_random_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree</td>
<td>
No
</td>
</tr>
<tr>
<td>Deviation</td>
<td>Deviation in milliseconds.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Constant Delay Offset</td>
<td>Number of milliseconds to pause in addition
to the random delay.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Uniform_Random_Timer">19.6.3 Uniform Random Timer</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This timer pauses each thread request for a random amount of time, with
each time interval having the same probability of occurring. The total delay
is the sum of the random value and the offset value.</p><p><b>Control Panel</b></p>
<div align="center"><img width='372' height='157' src="../../docs/images/screenshots/timers/uniform_random_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Random Delay Maximum</td>
<td>Maximum random number of milliseconds to
pause.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Constant Delay Offset</td>
<td>Number of milliseconds to pause in addition
to the random delay.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Constant_Throughput_Timer">19.6.4 Constant Throughput Timer</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This timer introduces variable pauses, calculated to keep the total throughput (in terms of samples per minute) as close as possible to a give figure. Of course the throughput will be lower if the server is not capable of handling it, or if other timers or time-consuming test elements prevent it.</p>
<p>
N.B. although the Timer is called the Constant Throughput timer, the throughput value does not need to be constant.
It can be defined in terms of a variable or function call, and the value can be changed during a test.
The value can be changed in various ways:
</p>
<ul>
<li>using a counter variable</li>
<li>using a JavaScript or BeanShell function to provide a changing value</li>
<li>using the remote BeanShell server to change a JMeter property</li>
</ul>
<p>See <a href="best-practices.html">Best Practices</a> for further details.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that the throughput value should not be changed too often during a test
- it will take a while for the new value to take effect.
</td></tr>
</table>
</p>

</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='636' height='146' src="../../docs/images/screenshots/timers/constant_throughput_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Target Throughput</td>
<td>Throughput we want the timer to try to generate.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Calculate Throughput based on</td>
<td>
   <ul>
    <li><tt class="code">this thread only</tt> - each thread will try to maintain the target throughput. The overall throughput will be proportional to the number of active threads.</li>
    <li><tt class="code">all active threads in current thread group</tt> - the target throughput is divided amongst all the active threads in the group. 
    Each thread will delay as needed, based on when it last ran.</li>
    <li><tt class="code">all active threads</tt> - the target throughput is divided amongst all the active threads in all Thread Groups.
    Each thread will delay as needed, based on when it last ran.
    In this case, each other Thread Group will need a Constant Throughput timer with the same settings.</li>
    <li><tt class="code">all active threads in current thread group (shared)</tt> - as above, but each thread is delayed based on when any thread in the group last ran.</li>
    <li><tt class="code">all active threads (shared)</tt> - as above; each thread is delayed based on when any thread last ran.</li>
   </ul>
  </td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Synchronizing_Timer">19.6.5 Synchronizing Timer</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The purpose of the SyncTimer is to block threads until X number of threads have been blocked, and
then they are all released at once.  A SyncTimer can thus create large instant loads at various
points of the test plan.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='410' height='145' src="../../docs/images/screenshots/timers/sync_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree. </td>
<td>
No
</td>
</tr>
<tr>
<td>Number of Simultaneous Users to Group by</td>
<td>Number of threads to release at once. Setting it to <tt class="code">0</tt> is equivalent to setting it to Number of threads in Thread Group.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Timeout in milliseconds</td>
<td>If set to <tt class="code">0</tt>, Timer will wait for the number of threads to reach the value in &quot;<tt class="code">Number of Simultaneous Users to Group</tt>&quot;. If superior to <tt class="code">0</tt>, then timer will wait at max &quot;<tt class="code">Timeout in milliseconds</tt>&quot; for the number of Threads. If after the timeout interval the number of users waiting is not reached, timer will stop waiting. Defaults to <tt class="code">0</tt></td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If timeout in milliseconds is set to <tt class="code">0</tt> and number of threads never reaches &quot;<tt class="code">Number of Simultaneous Users to Group by</tt>&quot; then Test will pause infinitely.
Only a forced stop will stop it. Setting Timeout in milliseconds is an option to consider in this case.
</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Synchronizing timer blocks only within one JVM, so if using Distributed testing ensure you never set &quot;<tt class="code">Number of Simultaneous Users to Group by</tt>&quot; to a value superior to the number of users
of its containing Thread group considering 1 injector only.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_Timer">19.6.6 BeanShell Timer</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BeanShell Timer can be used to generate a delay.
</p>
<p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> methods.
These should be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='846' height='636' src="../../docs/images/screenshots/timers/beanshell_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
    The name is stored in the script variable <tt class="code">Label</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">bsh.args</tt> - String array containing parameters, split on white-space</li>
    </ul>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>
    A file containing the BeanShell script to run.
    The file name is stored in the script variable <tt class="code">FileName</tt>
     The return value is used as the number of milliseconds to wait.
     </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>
        The BeanShell script. The return value is used as the number of milliseconds to wait.
    </td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>Before invoking the script, some variables are set up in the BeanShell interpreter:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous <tt class="code">SampleResult</tt> (if any)</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p><p>If the property <tt class="code">beanshell.timer.init</tt> is defined, this is used to load an initialisation file, which can be used to define methods etc. for use in the BeanShell script.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_Timer_(DEPRECATED)">19.6.7 BSF Timer (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BSF Timer can be used to generate a delay using a BSF scripting language.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='844' height='636' src="../../docs/images/screenshots/timers/bsf_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>ScriptLanguage</td>
<td>
        The scripting language to be used.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>
    A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property
     The return value is converted to a long integer and used as the number of milliseconds to wait.
     </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>
        The script. The return value is used as the number of milliseconds to wait.
    </td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>Before invoking the script, some variables are set up in the script interpreter:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)  - the current Sampler</li>
<li><tt class="code">Label</tt> - the name of the Timer</li>
<li><tt class="code">FileName</tt> - the file name (if any)</li>
<li><tt class="code">OUT</tt> - System.out</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_Timer">19.6.8 JSR223 Timer</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 Timer can be used to generate a delay using a JSR223 scripting language,
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>ScriptLanguage</td>
<td>
        The scripting language to be used.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>
    A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property
     The return value is converted to a long integer and used as the number of milliseconds to wait.
     </td>
<td>
No
</td>
</tr>
<tr>
<td>Script compilation caching</td>
<td>Unique String across Test Plan that JMeter will use to cache result of Script compilation if language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not)
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>See note in JSR223 Sampler Java System property if you're using Groovy without checking this option</td></tr>
</table>
</p>

    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>
        The script. The return value is used as the number of milliseconds to wait.
    </td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>Before invoking the script, some variables are set up in the script interpreter:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>) - the current Sampler</li>
<li><tt class="code">Label</tt> - the name of the Timer</li>
<li><tt class="code">FileName</tt> - the file name (if any)</li>
<li><tt class="code">OUT</tt> - System.out</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Poisson_Random_Timer">19.6.9 Poisson Random Timer</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This timer pauses each thread request for a random amount of time, with most
of the time intervals occurring near a particular value.  The total delay is the
sum of the Poisson distributed value, and the offset value.</p><p><b>Control Panel</b></p>
<div align="center"><img width='341' height='182' src="../../docs/images/screenshots/timers/poisson_random_timer.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree</td>
<td>
No
</td>
</tr>
<tr>
<td>Lambda</td>
<td>Lambda value in milliseconds.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Constant Delay Offset</td>
<td>Number of milliseconds to pause in addition
to the random delay.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="preprocessors"><strong>19.7 Pre Processors</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <br>
        Preprocessors are used to modify the Samplers in their scope.
    <br>
    </div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTML_Link_Parser">19.7.1 HTML Link Parser</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>This modifier parses HTML response from the server and extracts
links and forms.  A URL test sample that passes through this modifier will be examined to
see if it &quot;matches&quot; any of the links or forms extracted
from the immediately previous response.  It would then replace the values in the URL
test sample with appropriate values from the matching link or form.  Perl-type regular
expressions are used to find matches.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='373' height='79' src="../../docs/images/screenshots/html_link_parser.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Matches are performed using <tt class="code">protocol</tt>, <tt class="code">host</tt>, <tt class="code">path</tt> and <tt class="code">parameter names</tt>.
The target sampler cannot contain parameters that are not in the response links.
</td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If using distributed testing, ensure you switch mode (see <tt class="code">jmeter.properties</tt>) so that it's not a stripping one, see <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56376">Bug 56376</a>

</td></tr>
</table>
</p>
<a name="spider_example"/>
<p><b>Spidering Example</b></p>

<p>Consider a simple example: let's say you wanted JMeter to &quot;spider&quot; through your site,
hitting link after link parsed from the HTML returned from your server (this is not
actually the most useful thing to do, but it serves as a good example).  You would create
a <a href="../usermanual/component_reference.html#Simple_Controller">Simple Controller</a>, and add the &quot;HTML Link Parser&quot; to it.  Then, create an
HTTP Request, and set the domain to &quot;<tt class="code">.*</tt>&quot;, and the path likewise. This will
cause your test sample to match with any link found on the returned pages.  If you wanted to
restrict the spidering to a particular domain, then change the domain value
to the one you want.  Then, only links to that domain will be followed.
</p>
<a name="poll_example"/>
<p><b>Poll Example</b></p>

<p>A more useful example: given a web polling application, you might have a page with
several poll options as radio buttons for the user to select.  Let's say the values
of the poll options are very dynamic - maybe user generated.  If you wanted JMeter to
test the poll, you could either create test samples with hardcoded values chosen, or you
could let the HTML Link Parser parse the form, and insert a random poll option into
your URL test sample.  To do this, follow the above example, except, when configuring
your Web Test controller's URL options, be sure to choose &quot;<tt class="code">POST</tt>&quot; as the
method.  Put in hard-coded values for the <tt class="code">domain</tt>, <tt class="code">path</tt>, and any additional form parameters.
Then, for the actual radio button parameter, put in the name (let's say it's called &quot;<tt class="code">poll_choice</tt>&quot;),
and then &quot;<tt class="code">.*</tt>&quot; for the value of that parameter.  When the modifier examines
this URL test sample, it will find that it &quot;matches&quot; the poll form (and
it shouldn't match any other form, given that you've specified all the other aspects of
the URL test sample), and it will replace your form parameters with the matching
parameters from the form.  Since the regular expression &quot;<tt class="code">.*</tt>&quot; will match with
anything, the modifier will probably have a list of radio buttons to choose from.  It
will choose at random, and replace the value in your URL test sample.  Each time through
the test, a new random value will be chosen.</p>

<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1250' height='493' src="../../docs/images/screenshots/modification.png"/><br>
<font size="-1">Figure 18 - Online Poll Example</font></td></tr></table>


<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>One important thing to remember is that you must create a test sample immediately
prior that will return an HTML page with the links and forms that are relevant to
your dynamic test sample.</td></tr>
</table>
</p>

</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_URL_Re-writing_Modifier">19.7.2 HTTP URL Re-writing Modifier</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>This modifier works similarly to the HTML Link Parser, except it has a specific purpose for which
it is easier to use than the HTML Link Parser, and more efficient.  For web applications that
use URL Re-writing to store session ids instead of cookies, this element can be attached at the
ThreadGroup level, much like the <a href="../usermanual/component_reference.html#HTTP_Cookie_Manager">HTTP Cookie Manager</a>.  Simply give it the name
of the session id parameter, and it will find it on the page and add the argument to every
request of that ThreadGroup.</p>
<p>Alternatively, this modifier can be attached to select requests and it will modify only them.
Clever users will even determine that this modifier can be used to grab values that elude the
<a href="../usermanual/component_reference.html#HTML_Link_Parser">HTML Link Parser</a>.</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='579' height='239' src="../../docs/images/screenshots/url_rewriter.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name given to this element in the test tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Session Argument Name</td>
<td>The name of the parameter to grab from
        previous response.  This modifier will find the parameter anywhere it exists on the page, and
        grab the value assigned to it, whether it's in an HREF or a form.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Path Extension</td>
<td>Some web apps rewrite URLs by appending
        a semi-colon plus the session id parameter.  Check this box if that is so.</td>
<td>
No
</td>
</tr>
<tr>
<td>Do not use equals in path extension</td>
<td>Some web apps rewrite URLs without using an &quot;<tt class="code">=</tt>&quot; sign between the parameter name and value (such as Intershop Enfinity).</td>
<td>
No
</td>
</tr>
<tr>
<td>Do not use questionmark in path extension</td>
<td>Prevents the query string to end up in the path extension (such as Intershop Enfinity).</td>
<td>
No
</td>
</tr>
<tr>
<td>Cache Session Id?</td>
<td>
        Should the value of the session Id be saved for later use when the session Id is not present?
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>URL Encode</td>
<td>
        URL Encode value when writing parameter
        </td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If using distributed testing, ensure you switch mode (see <tt class="code">jmeter.properties</tt>) so that it's not a stripping one, see <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=56376">Bug 56376</a>
.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="User_Parameters">19.7.5 User Parameters</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>Allows the user to specify values for User Variables specific to individual threads.</p>
<p>User Variables can also be specified in the Test Plan but not specific to individual threads. This panel allows
you to specify a series of values for any User Variable. For each thread, the variable will be assigned one of the values from the series
in sequence. If there are more threads than values, the values get re-used. For example, this can be used to assign a distinct
user id to be used by each thread. User variables can be referenced in any field of any jMeter Component.</p>

<p>The variable is specified by clicking the <tt class="code">Add Variable</tt> button in the bottom of the panel and filling in the Variable name in the '<tt class="code">Name:</tt>' column.
To add a new value to the series, click the '<tt class="code">Add User</tt>' button and fill in the desired value in the newly added column.</p>

<p>Values can be accessed in any test component in the same thread group, using the <a href="functions.html">function syntax</a>: <tt class="code">${variable}</tt>.</p>
<p>See also the <a href="../usermanual/component_reference.html#CSV_Data_Set_Config">CSV Data Set Config</a> element, which is more suitable for large numbers of parameters</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='703' height='303' src="../../docs/images/screenshots/user_params.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Update Once Per Iteration</td>
<td>A flag to indicate whether the User Parameters element
        should update its variables only once per iteration.  if you embed functions into the UP, then you may need greater
        control over how often the values of the variables are updated.  Keep this box checked to ensure the values are
        updated each time through the UP's parent controller.  Uncheck the box, and the UP will update the parameters for 
        every sample request made within its <a href="test_plan.html#scoping_rules">scope</a>.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_PreProcessor">19.7.7 BeanShell PreProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BeanShell PreProcessor allows arbitrary code to be applied before taking a sample.
</p>
<p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> methods.
These should be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='845' height='633' src="../../docs/images/screenshots/beanshell_preprocessor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
    The name is stored in the script variable <tt class="code">Label</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">bsh.args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the BeanShell script to run.
    The file name is stored in the script variable <tt class="code">FileName</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The BeanShell script. The return value is ignored.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>Before invoking the script, some variables are set up in the BeanShell interpreter:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult (if any)</li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the current sampler</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p><p>If the property <tt class="code">beanshell.preprocessor.init</tt> is defined, this is used to load an initialisation file, which can be used to define methods etc. for use in the BeanShell script.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_PreProcessor_(DEPRECATED)">19.7.8 BSF PreProcessor (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BSF PreProcessor allows BSF script code to be applied before taking a sample.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='844' height='632' src="../../docs/images/screenshots/bsf_preprocessor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The BSF language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
The script (or file) is processed using the <tt class="code">BSFEngine.exec()</tt> method, which does not return a value.
</p><p>The following BSF variables are set up for use by the script:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">FileName</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_PreProcessor">19.7.8 JSR223 PreProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 PreProcessor allows JSR223 script code to be applied before taking a sample.
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The JSR223 language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script compilation caching</td>
<td>Unique String across Test Plan that JMeter will use to cache result of Script compilation if language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not)
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>See note in JSR223 Sampler Java System property if you're using Groovy without checking this option</td></tr>
</table>
</p>

    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>The following JSR223 variables are set up for use by the script:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">FileName</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JDBC_PreProcessor">19.7.9 JDBC PreProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JDBC PreProcessor enables you to run some SQL statement just before a sample runs.
This can be useful if your JDBC Sample requires some data to be in DataBase and you cannot compute this in a setup Thread group.
For details, see <a href="../usermanual/component_reference.html#JDBC_Request">JDBC Request</a>.
</p>
<p>
See the following Test plan:
</p>
<p><b>See Also:</b></p>
<ul>
<li><a href="../demos/JDBC-Pre-Post-Processor.jmx">Test Plan using JDBC Pre/Post Processor</a></li>
</ul>

<p>
In the linked test plan, &quot;<tt class="code">Create Price Cut-Off</tt>&quot; JDBC PreProcessor calls a stored procedure to create a Price Cut-Off in Database,
this one will be used by &quot;<tt class="code">Calculate Price cut off</tt>&quot;.
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='818' height='394' src="../../docs/images/screenshots/jdbc-pre-processor.png"/><br>
<font size="-1">Create Price Cut-Off Preprocessor</font></td></tr></table>


</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="RegEx_User_Parameters">19.7.10 RegEx User Parameters</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>Allows to specify dynamic values for HTTP parameters extracted from another HTTP Request using regular expressions.
            RegEx User Parameters are specific to individual threads.</p>
        <p>This component allows you to specify reference name of a regular expression that extracts names and values of HTTP request parameters. 
            Regular expression group numbers must be specified for parameter's name and also for parameter's value.
            Replacement will only occur for parameters in the Sampler that uses this RegEx User Parameters which name matches </p>
    <p><b>Control Panel</b></p>
<div align="center"><img width='727' height='138' src="../../docs/images/screenshots/regex_user_params.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Regular Expression Reference Name</td>
<td>Name of a reference to a regular expression</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameter names regexp group number</td>
<td>Group number of regular expression used to extract parameter names</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameter values regex group number</td>
<td>Group number of regular expression used to extract parameter values</td>
<td>
Yes
</td>
</tr>
</table>
<a name="regex_user_param_example"/>
<p><b>Regexp Example</b></p>

    <p>Suppose we have a request which returns a form with 3 input parameters and we want to extract the value of 2 of them to inject them in next request</p>
    <ol>
      <li>Create Post Processor Regular Expression for first HTTP Request
        <ul>
          <li><tt class="code">refName</tt> - set name of a regular expression Expression (<tt class="code">listParams</tt>)</li>
          <li><tt class="code">regular expression</tt> - expression that will extract input names and input values attributes
            <br>
            Ex: <tt class="code">input name=&quot;([^&quot;]+?)&quot; value=&quot;([^&quot;]+?)&quot;</tt></li>
          <li><tt class="code">template</tt> - would be empty</li>
          <li><tt class="code">match nr</tt> - <tt class="code">-1</tt> (in order to iterate through all the possible matches)</li>
        </ul>
      </li>
      <li>Create Pre Processor RegEx User Parameters for second HTTP Request
        <ul>
          <li><tt class="code">refName</tt> - set the same reference name of a regular expression, would be <tt class="code">listParams</tt> in our example</li>
          <li><tt class="code">parameter names group number</tt> - group number of regular expression for parameter names, would be <tt class="code">1</tt> in our example</li>
          <li><tt class="code">parameter values group number</tt> - group number of regular expression for parameter values, would be <tt class="code">2</tt> in our example</li>
        </ul>
      </li>
    </ol>
    <p>See also the <a href="../usermanual/component_reference.html#Regular_Expression_Extractor">Regular Expression Extractor</a> element, which is used to extract parametes names and values</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<p><b>See Also:</b></p>
<ul>
<li><a href="../demos/RegEx-User-Parameters.jmx">Test Plan showing how to use RegEx User Parameters</a></li>
</ul>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Sample_Timeout">19.7.11 Sample Timeout</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>This Pre-Processor schedules a timer task to interrupt a sample if it takes too long to complete.
The timeout is ignored if it is zero or negative.
For this to work, the sampler must implement Interruptible. 
The following samplers are known to do so:<br>
AJP, BeanShell, FTP, HTTP, Soap, AccessLog, MailReader, JMS Subscriber, TCPSampler, TestAction, JavaSampler
</p>
<p>
The test element is intended for use where individual timeouts such as Connection Timeout or Response Timeout are insufficient,
or where the Sampler does not support timeouts.
The timeout should be set sufficiently long so that it is not triggered in normal tests, but short enough that it interrupts samples
that are stuck.
</p>
<p>
[By default, JMeter uses a Callable to interrupt the sampler.
This executes in the same thread as the timer, so if the interrupt takes a long while, 
it may delay the processing of subsequent timeouts.
This is not expected to be a problem, but if necessary the property <tt class="code">InterruptTimer.useRunnable</tt>
can be set to <tt class="code">true</tt> to use a separate Runnable thread instead of the Callable.]
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='316' height='138' src="../../docs/images/screenshots/sample_timeout.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this timer that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Sample Timeout</td>
<td>If the sample takes longer to complete, it will be interrupted.</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="postprocessors"><strong>19.8 Post-Processors</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
    <p>
        As the name suggests, Post-Processors are applied after samplers. Note that they are
        applied to <b>all</b> the samplers in the same scope, so to ensure that a post-processor
        is applied only to a particular sampler, add it as a child of the sampler.
    </p>
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
    Note: Unless documented otherwise, Post-Processors are not applied to sub-samples (child samples) -
    only to the parent sample.
    In the case of JSR223 and BeanShell post-processors, the script can retrieve sub-samples using the method
    <tt class="code">prev.getSubResults()</tt> which returns an array of SampleResults.
    The array will be empty if there are none.
    </td></tr>
</table>
</p>

    <p>
    Post-Processors are run before Assertions, so they do not have access to any Assertion Results, nor will
    the sample status reflect the results of any Assertions. If you require access to Assertion Results, try
    using a Listener instead. Also note that the variable <tt class="code">JMeterThread.last_sample_ok</tt> is set to &quot;<tt class="code">true</tt>&quot; or &quot;<tt class="code">false</tt>&quot;
    after all Assertions have been run.
    </p>
    </div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Regular_Expression_Extractor">19.8.1 Regular Expression Extractor</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>Allows the user to extract values from a server response using a Perl-type regular expression.  As a post-processor,
this element will execute after each Sample request in its scope, applying the regular expression, extracting the requested values,
generate the template string, and store the result into the given variable name.</p><p><b>Control Panel</b></p>
<div align="center"><img width='1127' height='277' src="../../docs/images/screenshots/regex_extractor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Apply to:</td>
<td>
        This is for use with samplers that can generate sub-samples, 
        e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
        <ul>
        <li><tt class="code">Main sample only</tt> - only applies to the main sample</li>
        <li><tt class="code">Sub-samples only</tt> - only applies to the sub-samples</li>
        <li><tt class="code">Main sample and sub-samples</tt> - applies to both.</li>
        <li><tt class="code">JMeter Variable</tt> - assertion is to be applied to the contents of the named variable</li>
        </ul>
        Matching is applied to all qualifying samples in turn.
        For example if there is a main sample and 3 sub-samples, each of which contains a single match for the regex,
        (i.e. 4 matches in total).
        For match number = <tt class="code">3</tt>, Sub-samples only, the extractor will match the 3<sup>rd</sup> sub-sample.
        For match number = <tt class="code">3</tt>, Main sample and sub-samples, the extractor will match the 2<sup>nd</sup> sub-sample (1<sup>st</sup> match is main sample).
        For match number = <tt class="code">0</tt> or negative, all qualifying samples will be processed.
        For match number &gt; <tt class="code">0</tt>, matching will stop as soon as enough matches have been found.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Field to check</td>
<td>
        The following fields can be checked:
        <ul>
        <li><tt class="code">Body</tt> - the body of the response, e.g. the content of a web-page (excluding headers)</li>
        <li><tt class="code">Body (unescaped)</tt> - the body of the response, with all Html escape codes replaced.
        Note that Html escapes are processed without regard to context, so some incorrect substitutions
        may be made.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that this option highly impacts performances, so use it only when absolutely necessary and be aware of its impacts</td></tr>
</table>
</p>

        </li>
        <li><tt class="code">Body as a Document</tt> - the extract text from various type of documents via Apache Tika (see <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Document view section).
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that the Body as a Document option can impact performances, so ensure it is OK for your test</td></tr>
</table>
</p>

        </li>
        <li><tt class="code">Request Headers</tt> - may not be present for non-HTTP samples</li>
        <li><tt class="code">Response Headers</tt> - may not be present for non-HTTP samples</li>
        <li><tt class="code">URL</tt></li>
        <li><tt class="code">Response Code</tt> - e.g. <tt class="code">200</tt></li>
        <li><tt class="code">Response Message</tt> - e.g. <tt class="code">OK</tt></li>
        </ul>
        Headers can be useful for HTTP samples; it may not be present for other sample types.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Reference Name</td>
<td>The name of the JMeter variable in which to store the result.  Also note that each group is stored as <tt class="code">[refname]_g#</tt>, where <tt class="code">[refname]</tt> is the string you entered as the reference name, and <tt class="code">#</tt> is the group number, where group <tt class="code">0</tt> is the entire match, group <tt class="code">1</tt> is the match from the first set of parentheses, etc.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Regular Expression</td>
<td>The regular expression used to parse the response data. 
        This must contain at least one set of parentheses &quot;<tt class="code">()</tt>&quot; to capture a portion of the string, unless using the group <tt class="code">$0$</tt>.
        Do not enclose the expression in <tt class="code">/ /</tt> - unless of course you want to match these characters as well.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Template</td>
<td>The template used to create a string from the matches found.  This is an arbitrary string
        with special elements to refer to groups within the regular expression.  The syntax to refer to a group is: '<tt class="code">$1$</tt>' to refer to
        group <tt class="code">1</tt>, '<tt class="code">$2$</tt>' to refer to group <tt class="code">2</tt>, etc. <tt class="code">$0$</tt> refers to whatever the entire expression matches.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Match No. (0 for Random)</td>
<td>Indicates which match to use.  The regular expression may match multiple times.  
            <ul>
                <li>Use a value of zero to indicate JMeter should choose a match at random.</li>
                <li>A positive number N means to select the n<sup>th</sup> match.</li>
                <li> Negative numbers are used in conjunction with the <a href="../usermanual/component_reference.html#ForEach_Controller">ForEach Controller</a> - see below.</li>
            </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Default Value</td>
<td>
        If the regular expression does not match, then the reference variable will be set to the default value.
        This is particularly useful for debugging tests. If no default is provided, then it is difficult to tell
        whether the regular expression did not match, or the RE element was not processed or maybe the wrong variable
        is being used.
        <p>
        However, if you have several test elements that set the same variable, 
        you may wish to leave the variable unchanged if the expression does not match.
        In this case, remove the default value once debugging is complete.
        </p> 
        </td>
<td>
No, but recommended
</td>
</tr>
<tr>
<td>Use empty default value</td>
<td>
        If the checkbox is checked and <tt class="code">Default Value</tt> is empty, then JMeter will set the variable to empty string instead of not setting it.
        Thus when you will for example use <tt class="code">${var}</tt> (if <tt class="code">Reference Name</tt> is var) in your Test Plan, if the extracted value is not found then 
        <tt class="code">${var}</tt> will be equal to empty string instead of containing <tt class="code">${var}</tt> which may be useful if extracted value is optional.
        </td>
<td>
No
</td>
</tr>
</table>
<p>
    If the match number is set to a non-negative number, and a match occurs, the variables are set as follows:
</p><ul>
        <li><tt class="code">refName</tt> - the value of the template</li>
        <li><tt class="code">refName_g<em>n</em></tt>, where <tt class="code">n</tt>=<tt class="code">0</tt>,<tt class="code">1</tt>,<tt class="code">2</tt> - the groups for the match</li>
        <li><tt class="code">refName_g</tt> - the number of groups in the Regex (excluding <tt class="code">0</tt>)</li>
    </ul><p>
    If no match occurs, then the <tt class="code">refName</tt> variable is set to the default (unless this is absent). 
    Also, the following variables are removed:
</p><ul>
        <li><tt class="code">refName_g0</tt></li>
        <li><tt class="code">refName_g1</tt></li>
        <li><tt class="code">refName_g</tt></li>
    </ul><p>
    If the match number is set to a negative number, then all the possible matches in the sampler data are processed.
    The variables are set as follows:
</p><ul>
        <li><tt class="code">refName_matchNr</tt> - the number of matches found; could be <tt class="code">0</tt></li>
        <li><tt class="code">refName_<em>n</em></tt>, where <tt class="code">n</tt> = <tt class="code">1</tt>, <tt class="code">2</tt>, <tt class="code">3</tt> etc. - the strings as generated by the template</li>
        <li><tt class="code">refName_<em>n</em>_g<em>m</em></tt>, where <tt class="code">m</tt>=<tt class="code">0</tt>, <tt class="code">1</tt>, <tt class="code">2</tt> - the groups for match <tt class="code">n</tt></li>
        <li><tt class="code">refName</tt> - always set to the default value</li>
        <li><tt class="code">refName_g<em>n</em></tt> - not set</li>
    </ul><p>
    Note that the <tt class="code">refName</tt> variable is always set to the default value in this case, 
    and the associated group variables are not set.
</p><p>See also <a href="../usermanual/component_reference.html#Response_Assertion">Response Assertion</a> for some examples of how to specify modifiers,
    and <a href="regular_expressions.html"> for further information on JMeter regular expressions.</a></p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="CSS/JQuery_Extractor">19.8.2 CSS/JQuery Extractor</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>Allows the user to extract values from a server response using a CSS/JQuery selector like syntax.  As a post-processor,
this element will execute after each Sample request in its scope, applying the CSS/JQuery expression, extracting the requested nodes,
extracting the node as text or attribute value and store the result into the given variable name.</p><p><b>Control Panel</b></p>
<div align="center"><img width='826' height='276' src="../../docs/images/screenshots/css_extractor_attr.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Apply to:</td>
<td>
        This is for use with samplers that can generate sub-samples, 
        e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
        <ul>
        <li><tt class="code">Main sample only</tt> - only applies to the main sample</li>
        <li><tt class="code">Sub-samples only</tt> - only applies to the sub-samples</li>
        <li><tt class="code">Main sample and sub-samples</tt> - applies to both.</li>
        <li><tt class="code">JMeter Variable</tt> - assertion is to be applied to the contents of the named variable</li>
        </ul>
        Matching is applied to all qualifying samples in turn.
        For example if there is a main sample and 3 sub-samples, each of which contains a single match for the regex,
        (i.e. 4 matches in total).
        For match number = <tt class="code">3</tt>, Sub-samples only, the extractor will match the 3<sup>rd</sup> sub-sample.
        For match number = <tt class="code">3</tt>, Main sample and sub-samples, the extractor will match the 2<sup>nd</sup> sub-sample (1<sup>st</sup> match is main sample).
        For match number = <tt class="code">0</tt> or negative, all qualifying samples will be processed.
        For match number &gt; <tt class="code">0</tt>, matching will stop as soon as enough matches have been found.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>CSS/JQuery extractor Implementation</td>
<td>
        2 Implementations for CSS/JQuery based syntax are supported:
        <ul>
                <li><a href="http://jsoup.org/">JSoup</a></li>
                <li><a href="http://jodd.org/doc/lagarto/index.html">Jodd-Lagarto (CSSelly)</a></li>
        </ul>
        If selector is set to empty, default implementation(JSoup) will be used.
        </td>
<td>
False
</td>
</tr>
<tr>
<td>Reference Name</td>
<td>The name of the JMeter variable in which to store the result.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>CSS/JQuery expression</td>
<td>The CSS/JQuery selector used to select nodes from the response data. 
        Selector, selectors combination and pseudo-selectors are supported, examples:
        <ul>
            <li><tt class="code">E[foo]</tt> - an <tt class="code">E</tt> element with a &quot;<tt class="code">foo</tt>&quot; attribute</li>
            <li><tt class="code">ancestor child</tt> - child elements that descend from ancestor, e.g. <tt class="code">.body p</tt> finds <tt class="code">p</tt> elements anywhere under a block with class &quot;<tt class="code">body</tt>&quot;</li>
            <li><tt class="code">:lt(n)</tt> - find elements whose sibling index (i.e. its position in the DOM tree relative to its parent) is less than <tt class="code">n</tt>; e.g. <tt class="code">td:lt(3)</tt></li>
            <li><tt class="code">:contains(text)</tt> - find elements that contain the given <tt class="code">text</tt>. The search is case-insensitive; e.g. <tt class="code">p:contains(jsoup)</tt></li>
            <li></li>
        </ul>
        For more details on syntax, see:
            <ul>
                <li><a href="http://jsoup.org/cookbook/extracting-data/selector-syntax">JSoup</a></li>
                <li><a href="http://jodd.org/doc/csselly/">Jodd-Lagarto (CSSelly)</a></li>
            </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Attribute</td>
<td>
            Name of attribute (as per HTML syntax) to extract from nodes that matched the selector. If empty, then the combined text of this element and all its children will be returned.<br>
            This is the equivalent <a href="http://jsoup.org/apidocs/org/jsoup/nodes/Node.html#attr%28java.lang.String%29">Element#attr(name)</a> function for JSoup if an atttribute is set.<br>
            <table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='826' height='275' src="../../docs/images/screenshots/css_extractor_attr.png"/><br>
<font size="-1">CSS Extractor with attribute value set</font></td></tr></table>
<br>
            If empty this is the equivalent of <a href="http://jsoup.org/apidocs/org/jsoup/nodes/Element.html#text%28%29">Element#text()</a> function for JSoup if not value is set for attribute.
            <table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='825' height='275' src="../../docs/images/screenshots/css_extractor_noattr.png"/><br>
<font size="-1">CSS Extractor with no attribute set</font></td></tr></table>

        </td>
<td>
false
</td>
</tr>
<tr>
<td>Match No. (0 for Random)</td>
<td>Indicates which match to use.  The CSS/JQuery selector may match multiple times.  
            <ul>
                <li>Use a value of zero to indicate JMeter should choose a match at random.</li>
                <li>A positive number <tt class="code">N</tt> means to select the n<sup>th</sup> match.</li>
                <li> Negative numbers are used in conjunction with the <a href="../usermanual/component_reference.html#ForEach_Controller">ForEach Controller</a> - see below.</li>
            </ul>
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Default Value</td>
<td>
        If the expression does not match, then the reference variable will be set to the default value.
        This is particularly useful for debugging tests. If no default is provided, then it is difficult to tell
        whether the expression did not match, or the CSS/JQuery element was not processed or maybe the wrong variable
        is being used.
        <p>
        However, if you have several test elements that set the same variable, 
        you may wish to leave the variable unchanged if the expression does not match.
        In this case, remove the default value once debugging is complete.
        </p> 
        </td>
<td>
No, but recommended
</td>
</tr>
<tr>
<td>Use empty default value</td>
<td>
        If the checkbox is checked and <tt class="code">Default Value</tt> is empty, then JMeter will set the variable to empty string instead of not setting it.
        Thus when you will for example use <tt class="code">${var}</tt> (if <tt class="code">Reference Name</tt> is var) in your Test Plan, if the extracted value is not found then 
        <tt class="code">${var}</tt> will be equal to empty string instead of containing <tt class="code">${var}</tt> which may be useful if extracted value is optional.
        </td>
<td>
No
</td>
</tr>
</table>
<p>
    If the match number is set to a non-negative number, and a match occurs, the variables are set as follows:
</p><ul>
        <li><tt class="code">refName</tt> - the value of the template</li>
    </ul><p>
    If no match occurs, then the <tt class="code">refName</tt> variable is set to the default (unless this is absent). 
</p><p>
    If the match number is set to a negative number, then all the possible matches in the sampler data are processed.
    The variables are set as follows:
</p><ul>
        <li><tt class="code">refName_matchNr</tt> - the number of matches found; could be <tt class="code">0</tt></li>
        <li><tt class="code">refName_n</tt>, where <tt class="code">n</tt> = <tt class="code">1</tt>, <tt class="code">2</tt>, <tt class="code">3</tt>, etc. - the strings as generated by the template</li>
        <li><tt class="code">refName</tt> - always set to the default value</li>
    </ul><p>
    Note that the refName variable is always set to the default value in this case.
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="XPath_Extractor">19.8.3 XPath Extractor</a>
</h3>
</font>
</td></tr>
<tr><td>
This test element allows the user to extract value(s) from 
        structured response - XML or (X)HTML - using XPath
        query language.
   <p><b>Control Panel</b></p>
<div align="center"><img width='729' height='317' src="../../docs/images/screenshots/xpath_extractor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Apply to:</td>
<td>
        This is for use with samplers that can generate sub-samples, 
        e.g. HTTP Sampler with embedded resources, Mail Reader or samples generated by the Transaction Controller.
        <ul>
        <li><tt class="code">Main sample only</tt> - only applies to the main sample</li>
        <li><tt class="code">Sub-samples only</tt> - only applies to the sub-samples</li>
        <li><tt class="code">Main sample and sub-samples</tt> - applies to both.</li>
        <li><tt class="code">JMeter Variable</tt> - assertion is to be applied to the contents of the named variable</li>
        </ul>
        XPath matching is applied to all qualifying samples in turn, and all the matching results will be returned.
       </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use Tidy (tolerant parser)</td>
<td>If checked use Tidy to parse HTML response into XHTML.
       <ul>
           <li>&quot;<tt class="code">Use Tidy</tt>&quot; should be checked on for HTML response. Such response is converted to valid XHTML (XML compatible HTML) using Tidy</li>
           <li>&quot;<tt class="code">Use Tidy</tt>&quot; should be unchecked for both XHTML or XML response (for example RSS)</li>
       </ul>
       </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Quiet</td>
<td>Sets the Tidy Quiet flag</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Report Errors</td>
<td>If a Tidy error occurs, then set the Assertion accordingly</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Show warnings</td>
<td>Sets the Tidy showWarnings option</td>
<td>
If Tidy is selected
</td>
</tr>
<tr>
<td>Use Namespaces</td>
<td>
        If checked, then the XML parser will use namespace resolution.(see note below on NAMESPACES)
        Note that currently only namespaces declared on the root element will be recognised.
        A later version of JMeter may support user-definition of additional workspace names.
        Meanwhile, a work-round is to replace: 
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>//mynamespace:tagname</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        by
        <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>//*[local-name()='tagname' and namespace-uri()='uri-for-namespace']</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

        where &quot;<tt class="code">uri-for-namespace</tt>&quot; is the uri for the &quot;<tt class="code">mynamespace</tt>&quot; namespace.
        (not applicable if Tidy is selected)
        
</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Validate XML</td>
<td>Check the document against its schema.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Ignore Whitespace</td>
<td>Ignore Element Whitespace.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Fetch External DTDs</td>
<td>If selected, external DTDs are fetched.</td>
<td>
If Tidy is not selected
</td>
</tr>
<tr>
<td>Return entire XPath fragment instead of text content?</td>
<td>
    If selected, the fragment will be returned rather than the text content.<br>
    For example <tt class="code">//title</tt> would return &quot;<tt class="code">&lt;title&gt;Apache JMeter&lt;/title&gt;</tt>&quot; rather than &quot;<tt class="code">Apache JMeter</tt>&quot;.<br>
    In this case, <tt class="code">//title/text()</tt> would return &quot;<tt class="code">Apache JMeter</tt>&quot;.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Reference Name</td>
<td>The name of the JMeter variable in which to store the result.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>XPath Query</td>
<td>Element query in XPath language. Can return more than one match.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Match No. (0 for Random)</td>
<td>If the XPath Path query leads to many results, you can choose which one(s) to extract as Variables:
    <ul>
        <li><tt class="code">0</tt> : means random</li>
        <li><tt class="code">-1</tt> means extract all results (default value), they will be named as <tt class="code"><em>&lt;variable name&gt;</em>_N</tt> (where <tt class="code">N</tt> goes from 1 to Number of results)</li>
        <li><tt class="code">X</tt> : means extract the X<sup>th</sup> result. If this X<sup>th</sup> is greater than number of matches, then nothing is returned. Default value will be used</li>
    </ul>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>Default Value</td>
<td>Default value returned when no match found. 
    It is also returned if the node has no value and the fragment option is not selected.</td>
<td>
No
</td>
</tr>
</table>
<p>To allow for use in a <a href="../usermanual/component_reference.html#ForEach_Controller">ForEach Controller</a>, the following variables are set on return:</p><ul>
   <li><tt class="code">refName</tt> - set to first (or only) match; if no match, then set to default</li>
   <li><tt class="code">refName_matchNr</tt> - set to number of matches (may be <tt class="code">0</tt>)</li>
   <li><tt class="code">refName_n</tt> - <tt class="code">n</tt>=<tt class="code">1</tt>, <tt class="code">2</tt>, <tt class="code">3</tt>, etc. Set to the 1<sup>st</sup>, 2<sup>nd</sup> 3<sup>rd</sup> match etc. 
   </li>
   </ul><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note: The next <tt class="code">refName_n</tt> variable is set to <tt class="code">null</tt> - e.g. if there are 2 matches, then <tt class="code">refName_3</tt> is set to <tt class="code">null</tt>,
   and if there are no matches, then <tt class="code">refName_1</tt> is set to <tt class="code">null</tt>.
   </td></tr>
</table>
</p>
<p>XPath is query language targeted primarily for XSLT transformations. However it is useful as generic query language for structured data too. See 
       <a href="http://www.topxml.com/xsl/xpathref.asp">XPath Reference</a> or <a href="http://www.w3.org/TR/xpath">XPath specification</a> for more information. Here are few examples:
   </p><dl> 
   <dt><tt class="code">/html/head/title</tt></dt>
     <dd>extracts title element from HTML response</dd>
   <dt><tt class="code">/book/page[2]</tt></dt>
     <dd>extracts 2<sup>nd</sup> page from a book</dd>
   <dt><tt class="code">/book/page</tt></dt>
     <dd>extracts all pages from a book</dd>
     <dt><tt class="code">//form[@name='countryForm']//select[@name='country']/option[text()='Czech Republic'])/@value</tt></dt>
    <dd>extracts value attribute of option element that match text '<tt class="code">Czech Republic</tt>'
        inside of select element with name attribute  '<tt class="code">country</tt>' inside of
        form with name attribute '<tt class="code">countryForm</tt>'</dd>
 </dl><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>When &quot;<tt class="code">Use Tidy</tt>&quot; is checked on - resulting XML document may slightly differ from original HTML response:
     <ul>
         <li>All elements and attribute names are converted to lowercase</li>
         <li>Tidy attempts to correct improperly nested elements. For example - original (incorrect) <tt class="code">ul/font/li</tt> becomes correct <tt class="code">ul/li/font</tt></li>
     </ul>
     See <a href="http://jtidy.sf.net">Tidy homepage</a> for more information.
 </td></tr>
</table>
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
<b>NAMESPACES</b>
As a work-round for namespace limitations of the Xalan XPath parser implementation on which JMeter is based,
you can provide a Properties file which contains mappings for the namespace prefixes: 
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
prefix1=Full Namespace 1
prefix2=Full Namespace 2

</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>


You reference this file in <tt class="code">jmeter.properties</tt> file using the property:
    <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>xpath.namespace.config</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Result_Status_Action_Handler">19.8.4 Result Status Action Handler</a>
</h3>
</font>
</td></tr>
<tr><td>
This test element allows the user to stop the thread or the whole test if the relevant sampler failed.
   <p><b>Control Panel</b></p>
<div align="center"><img width='613' height='133' src="../../docs/images/screenshots/resultstatusactionhandler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Action to be taken after a Sampler error</td>
<td>
   Determines what happens if a sampler error occurs, either because the sample itself failed or an assertion failed.
   The possible choices are:
   <ul>
   <li><tt class="code">Continue</tt> - ignore the error and continue with the test</li>
   <li><tt class="code">Start next thread loop</tt> - does not execute samplers following the sampler in error for the current iteration and restarts the loop on next iteration</li>
   <li><tt class="code">Stop Thread</tt> - current thread exits</li>
   <li><tt class="code">Stop Test</tt> - the entire test is stopped at the end of any current samples.</li>
   <li><tt class="code">Stop Test Now</tt> - the entire test is stopped abruptly. Any current samplers are interrupted if possible.</li>
   </ul>
   </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BeanShell_PostProcessor">19.8.5 BeanShell PostProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BeanShell PreProcessor allows arbitrary code to be applied after taking a sample.
</p>
<p>BeanShell Post-Processor no longer ignores samples with zero-length result data</p>
<p>
<b>For full details on using BeanShell, please see the <a href="http://www.beanshell.org/">BeanShell website.</a></b>
</p>
<p>
The test element supports the <tt class="code">ThreadListener</tt> and <tt class="code">TestListener</tt> methods.
These should be defined in the initialisation file.
See the file <tt class="code">BeanShellListeners.bshrc</tt> for example definitions.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='847' height='633' src="../../docs/images/screenshots/beanshell_postprocessor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.
    The name is stored in the script variable <tt class="code">Label</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Reset bsh.Interpreter before each call</td>
<td>
    If this option is selected, then the interpreter will be recreated for each sample.
    This may be necessary for some long running scripts. 
    For further information, see <a href="best-practices#bsh_scripting">Best Practices - BeanShell scripting</a>.
    </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the BeanShell script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">bsh.args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the BeanShell script to run.
    The file name is stored in the script variable <tt class="code">FileName</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The BeanShell script. The return value is ignored.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>The following BeanShell variables are set up for use by the script:</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult</li>
<li><tt class="code">data</tt> - (byte [])- gives access to the current sample data</li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p><p>If the property <tt class="code">beanshell.postprocessor.init</tt> is defined, this is used to load an initialisation file, which can be used to define methods etc. for use in the BeanShell script.</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="BSF_PostProcessor_(DEPRECATED)">19.8.6 BSF PostProcessor (DEPRECATED)</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The BSF PostProcessor allows BSF script code to be applied after taking a sample.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='844' height='633' src="../../docs/images/screenshots/bsf_postprocessor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The BSF language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
The script (or file) is processed using the <tt class="code">BSFEngine.exec()</tt> method, which does not return a value.
</p><p>
Before invoking the script, some variables are set up.
Note that these are BSF variables - i.e. they can be used directly in the script.
</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">FileName</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult (if any)</li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSR223_PostProcessor">19.8.7 JSR223 PostProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSR223 PostProcessor allows JSR223 script code to be applied after taking a sample.
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Language</td>
<td>The JSR223 language to be used</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Parameters</td>
<td>Parameters to pass to the script.
    The parameters are stored in the following variables:
    <ul>
        <li><tt class="code">Parameters</tt> - string containing the parameters as a single variable</li>
        <li><tt class="code">args</tt> - String array containing parameters, split on white-space</li>
    </ul></td>
<td>
No
</td>
</tr>
<tr>
<td>Script file</td>
<td>A file containing the script to run, if a relative file path is used, then it will be relative to directory referenced by &quot;<tt class="code">user.dir</tt>&quot; System property</td>
<td>
No
</td>
</tr>
<tr>
<td>Script compilation caching</td>
<td>Unique String across Test Plan that JMeter will use to cache result of Script compilation if language used supports <tt class="code"><a href="https://docs.oracle.com/javase/8/docs/api/javax/script/Compilable.html">Compilable</a></tt> interface (Groovy is one of these, java, beanshell and javascript are not)
    <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>See note in JSR223 Sampler Java System property if you're using Groovy without checking this option</td></tr>
</table>
</p>

    </td>
<td>
No
</td>
</tr>
<tr>
<td>Script</td>
<td>The script to run.</td>
<td>
Yes (unless script file is provided)
</td>
</tr>
</table>
<p>
Before invoking the script, some variables are set up.
Note that these are JSR223 variables - i.e. they can be used directly in the script.
</p><ul>
<li><tt class="code">log</tt> - (<a href="https://www.slf4j.org/api/org/slf4j/Logger.html">Logger</a>) - can be used to write to the log file</li>
<li><tt class="code">Label</tt> - the String Label</li>
<li><tt class="code">FileName</tt> - the script file name (if any)</li>
<li><tt class="code">Parameters</tt> - the parameters (as a String)</li>
<li><tt class="code">args</tt> - the parameters as a String array (split on whitespace)</li>
<li><tt class="code">ctx</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterContext.html">JMeterContext</a>) - gives access to the context</li>
<li><tt class="code">vars</tt> - (<a href="../api/org/apache/jmeter/threads/JMeterVariables.html">JMeterVariables</a>) - gives read/write access to variables: <div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>vars.get(key);
vars.put(key,val);
vars.putObject(&quot;OBJ1&quot;,new Object());
vars.getObject(&quot;OBJ2&quot;);</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
</li>
<li><tt class="code">props</tt> - (JMeterProperties - class java.util.Properties) - e.g. <tt class="code">props.get(&quot;START.HMS&quot;);</tt> <tt class="code">props.put(&quot;PROP1&quot;,&quot;1234&quot;);</tt></li>
<li><tt class="code">prev</tt> - (<a href="../api/org/apache/jmeter/samplers/SampleResult.html">SampleResult</a>) - gives access to the previous SampleResult (if any)</li>
<li><tt class="code">sampler</tt> - (<a href="../api/org/apache/jmeter/samplers/Sampler.html">Sampler</a>)- gives access to the current sampler</li>
<li><tt class="code">OUT</tt> - System.out - e.g. <tt class="code">OUT.println(&quot;message&quot;)</tt></li>
</ul><p>For details of all the methods available on each of the above variables, please check the Javadoc</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JDBC_PostProcessor">19.8.8 JDBC PostProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JDBC PostProcessor enables you to run some SQL statement just after a sample has run.
This can be useful if your JDBC Sample changes some data and you want to reset state to what it was before the JDBC sample run.
</p>
<p><b>See Also:</b></p>
<ul>
<li><a href="../demos/JDBC-Pre-Post-Processor.jmx">Test Plan using JDBC Pre/Post Processor</a></li>
</ul>
<p>
In the linked test plan, &quot;<tt class="code">JDBC PostProcessor</tt>&quot; JDBC PostProcessor calls a stored procedure to delete from Database the Price Cut-Off that was created by PreProcessor.
</p><table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='818' height='399' src="../../docs/images/screenshots/jdbc-post-processor.png"/><br>
<font size="-1">JDBC PostProcessor</font></td></tr></table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="JSON_Extractor">19.8.9 JSON Extractor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The JSON PostProcessor enables you extract data from JSON responses using JSON-PATH syntax. This post processor is very similar to Regular expression extractor.
It must be placed as a child of HTTP Sampler or any other sampler that has responses.
It will allow you to extract in a very easy way text content, see <a href="http://goessner.net/articles/JsonPath/">JSON Path syntax</a>.

</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Variable Names</td>
<td>Semi-colon separated names of variables that will contain the results of JSON-PATH expressions (must match number of JSON-PATH expressions)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>JSON Path Expressions</td>
<td>Semi-colon separated JSON-PATH expressions (must match number of variables)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Default Values</td>
<td>Semi-colon separated default values if JSON-PATH expressions do not return any result(must match number of variables)</td>
<td>
No
</td>
</tr>
<tr>
<td>Match No. (0 for Random)</td>
<td>If the JSON Path query leads to many results, you can choose which one(s) to extract as Variables:
    <ul>
        <li><tt class="code">0</tt> : means random (Default Value)</li>
        <li><tt class="code">-1</tt> means extract all results, they will be named as <tt class="code"><em>&lt;variable name&gt;</em>_N</tt> (where <tt class="code">N</tt> goes from 1 to Number of results)</li>
        <li><tt class="code">X</tt> : means extract the X<sup>th</sup> result. If this X<sup>th</sup> is greater than number of matches, then nothing is returned. Default value will be used</li>
    </ul>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>Compute concatenation var</td>
<td>If many results are found, plugin will concatenate them using ‘<tt class="code">,</tt>’ separator and store it in a var named <tt class="code"><em>&lt;variable name&gt;</em>_ALL</tt></td>
<td>
No
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='855' height='276' src="../../docs/images/screenshots/json-post-processor.png"/><br>
<font size="-1">JSON PostProcessor</font></td></tr></table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="Miscellaneous_Features"><strong>19.9 Miscellaneous Features</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<div class="description">
        <br>
</div>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Test_Plan">19.9.1 Test Plan</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Test Plan is where the overall settings for a test are specified.
</p>
<p>
Static variables can be defined for values that are repeated throughout a test, such as server names.
For example the variable <tt class="code">SERVER</tt> could be defined as <tt class="code">www.example.com</tt>, and the rest of the test plan
could refer to it as <tt class="code">${SERVER}</tt>. This simplifies changing the name later.
</p>
<p>
If the same variable name is reused on one of more
<a href="../usermanual/component_reference.html#User_Defined_Variables">User Defined Variables</a> Configuration elements,
the value is set to the last definition in the test plan (reading from top to bottom).
Such variables should be used for items that may change between test runs, 
but which remain the same during a test run.
</p>
<p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that the Test Plan cannot refer to variables it defines.</td></tr>
</table>
</p>
 
If you need to construct other variables from the Test Plan variables, 
use a <a href="../usermanual/component_reference.html#User_Defined_Variables">User Defined Variables</a> test element.
</p>
<p>
Selecting Functional Testing instructs JMeter to save the  additional sample information
- Response Data and Sampler Data - to all result files.
This increases the resources needed to run a test, and may adversely impact JMeter performance.
If more data is required for a particular sampler only, then add a Listener to it, and configure the fields as required.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>The option does not affect CSV result files, which cannot currently store such information.</td></tr>
</table>
</p>

</p>
<p>Also, an option exists here to instruct JMeter to run the <a href="../usermanual/component_reference.html#Thread_Group">Thread Group</a> serially rather than in parallel.</p>
<p>Run tearDown Thread Groups after shutdown of main threads: 
if selected, the tearDown groups (if any) will be run after graceful shutdown of the main threads.
The tearDown threads won't be run if the test is forcibly stopped.
</p>
<p>
Test plan now provides an easy way to add classpath setting to a specific test plan. 
The feature is additive, meaning that you can add jar files or directories,
but removing an entry requires restarting JMeter.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that this cannot be used to add JMeter GUI plugins, because they are processed earlier.</td></tr>
</table>
</p>

However it can be useful for utility jars such as JDBC drivers. The jars are only added to
the search path for the JMeter loader, not for the system class loader.
</p>
<p>
JMeter properties also provides an entry for loading additional classpaths.
In <tt class="code">jmeter.properties</tt>, edit &quot;<tt class="code">user.classpath</tt>&quot; or &quot;<tt class="code">plugin_dependency_paths</tt>&quot; to include additional libraries.
See <a href="get-started.html#classpath">JMeter's Classpath</a> and
<a href="get-started.html#configuring_jmeter">Configuring JMeter</a> for details.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='560' height='457' src="../../docs/images/screenshots/testplan.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Thread_Group">19.9.2 Thread Group</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>A Thread Group defines a pool of users that will execute a particular test case against your server.  In the Thread Group GUI, you can control the number of users simulated (num of threads), the ramp up time (how long it takes to start all the threads), the number of times to perform the test, and optionally, a start and stop time for the test.</p>
<p>
See also <a href="../usermanual/component_reference.html#tearDown_Thread_Group">tearDown Thread Group</a> and <a href="../usermanual/component_reference.html#setUp_Thread_Group">setUp Thread Group</a>.
</p>
<p>
When using the scheduler, JMeter runs the thread group until either the number of loops is reached or the duration/end-time is reached - whichever occurs first.
Note that the condition is only checked between samples; when the end condition is reached, that thread will stop.
JMeter does not interrupt samplers which are waiting for a response, so the end time may be delayed arbitrarily.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='706' height='407' src="../../docs/images/screenshots/threadgroup.png"/></div>
<p>
Since JMeter 3.0, you can run a selection of Thread Group by selecting them and right clicking. A popup menu will appear:
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='461' height='818' src="../../docs/images/screenshots/threadgroup-popup-menu.png"/><br>
<font size="-1">Popup menu to start a selection of Thread Groups</font></td></tr></table>


<br>Notice you have 3 options to run the selection of Thread Groups:
<ul>
<li>Start : Start the selected thread groups only</li>
<li>Start no pauses : Start the selected thread groups only but without running the timers</li>
<li>Validate : Start the selected thread groups only using validation mode. Per default this runs the Thread Group in validation mode (see below)</li>
</ul> 

<b>Validation Mode:</b><br>
This mode enables rapid validation of a Thread Group by running it with 1 thread, 1 iteration, no timers and no <tt class="code">Startup delay</tt> set to 0.
Behaviour can be modified with some properties by setting in user.properties:
<ul>
<li><tt class="code">testplan_validation.nb_threads_per_thread_group</tt> : Number of threads to use to validate a Thread Group, by default 1</li>
<li><tt class="code">testplan_validation.ignore_timers</tt> : Ignore timers when validating the thread group of plan, by default 1</li>
<li><tt class="code">testplan_validation.number_iterations</tt> : Number of iterations to use to validate a Thread Group</li>
<li><tt class="code">testplan_validation.tpc_force_100_pct</tt> : Wether to force Throughput Controller in percentage mode to run as if percentage was 100%. Defaults to false</li>
</ul> 
</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Action to be taken after a Sampler error</td>
<td>
        Determines what happens if a sampler error occurs, either because the sample itself failed or an assertion failed.
        The possible choices are:
        <ul>
        <li><tt class="code">Continue</tt> - ignore the error and continue with the test</li>
        <li><tt class="code">Start Next Loop</tt> - ignore the error, start next loop and continue with the test</li>
        <li><tt class="code">Stop Thread</tt> - current thread exits</li>
        <li><tt class="code">Stop Test</tt> - the entire test is stopped at the end of any current samples.</li>
        <li><tt class="code">Stop Test Now</tt> - the entire test is stopped abruptly. Any current samplers are interrupted if possible.</li>
        </ul>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Number of Threads</td>
<td>Number of users to simulate.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Ramp-up Period</td>
<td>How long JMeter should take to get all the threads started.  If there are 10 threads and a ramp-up time of 100 seconds, then each thread will begin 10 seconds after the previous thread started, for a total time of 100 seconds to get the test fully up to speed.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Loop Count</td>
<td>Number of times to perform the test case.  Alternatively, &quot;<tt class="code">forever</tt>&quot; can be selected causing the test to run until manually stopped.</td>
<td>
Yes, unless forever is selected
</td>
</tr>
<tr>
<td>Delay Thread creation until needed</td>
<td>
        If selected, threads are created only when the appropriate proportion of the ramp-up time has elapsed.
        This is most appropriate for tests with a ramp-up time that is significantly longer than the time to execute a single thread.
        I.e. where earlier threads finish before later ones start. 
        <br>
        If not selected, all threads are created when the test starts (they then pause for the appropriate proportion of the ramp-up time).
        This is the original default, and is appropriate for tests where threads are active throughout most of the test.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Scheduler</td>
<td>If selected, enables the scheduler</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Start Time</td>
<td>If the scheduler checkbox is selected, one can choose an absolute start time.  When you start your test, JMeter will wait until the specified start time to begin testing.
            Note: the <tt class="code">Startup Delay</tt> field over-rides this - see below.
            </td>
<td>
No
</td>
</tr>
<tr>
<td>End Time</td>
<td>If the scheduler checkbox is selected, one can choose an absolute end time.  When you start your test, JMeter will wait until the specified start time to begin testing, and it will stop at the specified end time.
            Note: the <tt class="code">Duration</tt> field over-rides this - see below.
            </td>
<td>
No
</td>
</tr>
<tr>
<td>Duration (seconds)</td>
<td>
            If the scheduler checkbox is selected, one can choose a relative end time. 
            JMeter will use this to calculate the End Time, and ignore the <tt class="code">End Time</tt> value.
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Startup delay (seconds)</td>
<td>
            If the scheduler checkbox is selected, one can choose a relative startup delay.
            JMeter will use this to calculate the Start Time, and ignore the <tt class="code">Start Time</tt> value.
        </td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="WorkBench">19.9.3 WorkBench</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>The WorkBench simply provides a place to temporarily store test elements while not in use, for copy/paste purposes, or any other purpose you desire. 
When you save your test plan, WorkBench items are not saved with it by default unless you check &quot;<tt class="code">Save Workbench</tt>&quot; option.
Your WorkBench can be saved independently, if you like (right-click on <tt class="code">WorkBench</tt> and choose <tt class="code">Save</tt>).</p>
<p>Certain test elements are only available on the WorkBench:</p>
<ul>
<li><a href="../usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder">HTTP(S) Test Script Recorder</a></li>
<li><a href="../usermanual/component_reference.html#HTTP_Mirror_Server">HTTP Mirror Server</a></li>
<li><a href="../usermanual/component_reference.html#Property_Display">Property Display</a></li>
</ul>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Save WorkBench</td>
<td>
                Allow to save the WorkBench's elements into the JMX file.
        </td>
<td>
No
</td>
</tr>
</table>

<p><b>Control Panel</b></p>
<div align="center"><img width='384' height='103' src="../../docs/images/screenshots/workbench.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="SSL_Manager">19.9.4 SSL Manager</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>
  The SSL Manager is a way to select a client certificate so that you can test
  applications that use Public Key Infrastructure (PKI).
  It is only needed if you have not set up the appropriate System properties.
</p><b>Choosing a Client Certificate</b><p>
  You may either use a Java Key Store (JKS) format key store, or a Public Key
  Certificate Standard #12 (PKCS12) file for your client certificates.  There
  is a feature of the JSSE libraries that require you to have at least a six character
  password on your key (at least for the keytool utility that comes with your
  JDK).
</p><p>
  To select the client certificate, choose  <span class="menuchoice">
 <span class="guimenuitem">Options</span>&nbsp;&rarr;&nbsp;<span class="guimenuitem">SSL Manager</span>  </span>
 from the menu bar.
  You will be presented with a file finder that looks for PKCS12 files by default.
  Your PKCS12 file must have the extension '<tt class="code">.p12</tt>' for SSL Manager to recognize it
  as a PKCS12 file.  Any other file will be treated like an average JKS key store.
  If JSSE is correctly installed, you will be prompted for the password.  The text
  box does not hide the characters you type at this point -- so make sure no one is
  looking over your shoulder.  The current implementation assumes that the password
  for the keystore is also the password for the private key of the client you want
  to authenticate as.
</p><p>Or you can set the appropriate System properties - see the <tt class="code">system.properties</tt> file.</p><p>
  The next time you run your test, the SSL Manager will examine your key store to
  see if it has at least one key available to it.  If there is only one key, SSL
  Manager will select it for you.  If there is more than one key, it currently selects the first key.
  There is currently no way to select other entries in the keystore, so the desired key must be the first.
</p><b>Things to Look Out For</b><p>
  You must have your Certificate Authority (CA) certificate installed properly
  if it is not signed by one of the five CA certificates that ships with your
  JDK.  One method to install it is to import your CA certificate into a JKS
  file, and name the JKS file &quot;<tt class="code">jssecacerts</tt>&quot;.  Place the file in your JRE's
  <tt class="code">lib/security</tt> folder.  This file will be read before the &quot;<tt class="code">cacerts</tt>&quot; file in
  the same directory.  Keep in mind that as long as the &quot;<tt class="code">jssecacerts</tt>&quot; file
  exists, the certificates installed in &quot;<tt class="code">cacerts</tt>&quot; will not be used.  This may
  cause problems for you.  If you don't mind importing your CA certificate into
  the &quot;<tt class="code">cacerts</tt>&quot; file, then you can authenticate against all of the CA certificates
  installed.
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<a name="HTTP_Proxy_Server"></a>
<h3>
<a name="HTTP(S)_Test_Script_Recorder">19.9.5 HTTP(S) Test Script Recorder (was: HTTP Proxy Server)</a>
</h3>
</font>
</td></tr>
<tr><td>
<p>The HTTP(S) Test Script Recorder allows JMeter to intercept and record your actions while you browse your web application
with your normal browser.  JMeter will create test sample objects and store them
directly into your test plan as you go (so you can view samples interactively while you make them).<br>
Ensure you read this <a href="https://wiki.apache.org/jmeter/TestRecording210">wiki page</a> to setup correctly JMeter.
</p>

<p>To use the recorder, <i>add</i> the HTTP(S) Test Script Recorder element to the workbench.
Select the WorkBench element in the tree, and right-click on this element to get the
Add menu 
( <span class="menuchoice">
 <span class="guimenuitem">Add</span>&nbsp;&rarr;&nbsp;<span class="guimenuitem">Non-Test Elements</span>&nbsp;&rarr;&nbsp;<span class="guimenuitem">HTTP(S) Test Script Recorder</span>  </span>

).</p>
<p>
The recorder is implemented as an HTTP(S) proxy server.
You need to set up your browser use the proxy for all HTTP and HTTPS requests.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Do not use JMeter as the proxy for any other request types - FTP, etc. - as JMeter cannot handle them.</td></tr>
</table>
</p>

</p>
<p>
Ideally use private browsing mode when recording the session.
This should ensure that the browser starts with no stored cookies, and prevents certain changes from being saved.
For example, Firefox does not allow certificate overrides to be saved permanently.
</p>
<h4>HTTPS recording and certificates</h4>
<p>
HTTPS connections use certificates to authenticate the connection between the browser and the web server.
When connecting via HTTPS, the server presents the certificate to the browser.
To authenticate the certificate, the browser checks that the server certificate is signed
by a Certificate Authority (CA) that is linked to one of its in-built root CAs.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Browsers also check that the certificate is for the correct host or domain, and that it is valid and not expired.</td></tr>
</table>
</p>

If any of the browser checks fail, it will prompt the user who can then decide whether to allow the connection to proceed.  
</p>
<p>
JMeter needs to use its own certificate to enable it to intercept the HTTPS connection from
the browser. Effectively JMeter has to pretend to be the target server.
</p>
<p>
JMeter will generate its own certificate(s).
These are generated with a validity period defined by the property <tt class="code">proxy.cert.validity</tt>, default 7 days, and random passwords.
If JMeter detects that it is running under Java 8 or later, it will generate certificates for each target server as necessary (dynamic mode)
unless the following property is defined: <tt class="code">proxy.cert.dynamic_keys=false</tt>.
When using dynamic mode, the certificate will be for the correct host name, and will be signed by a JMeter-generated CA certificate.
By default, this CA certificate won't be trusted by the browser, however it can be installed as a trusted certificate.
Once this is done, the generated server certificates will be accepted by the browser.
This has the advantage that even embedded HTTPS resources can be intercepted, and there is no need to override the browser checks for each new server.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Browsers don't prompt for embedded resources. So with earlier versions, embedded resources would only be downloaded for servers that were already 'known' to the browser</td></tr>
</table>
</p>

</p>
<p>Unless a keystore is provided (and you define the property <tt class="code">proxy.cert.alias</tt>),
JMeter needs to use the keytool application to create the keystore entries. 
JMeter includes code to check that keytool is available by looking in various standard places.
If JMeter is unable to find the keytool application, it will report an error.
If necessary, the system property <tt class="code">keytool.directory</tt> can be used to tell JMeter where to find keytool.
This should be defined in the file <tt class="code">system.properties</tt>.
</p>
<p>
The JMeter certificates are generated (if necessary) when the <tt class="code">Start</tt> button is pressed.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Certificate generation can take some while, during which time the GUI will be unresponsive.</td></tr>
</table>
</p>

The cursor is changed to an hour-glass whilst this is happening.
When certificate generation is complete, the GUI will display a pop-up dialogue containing the details of the certificate for the root CA.
This certificate needs to be installed by the browser in order for it to accept the host certificates generated by JMeter; see <a href="#install_cert">below</a> for details.
</p>
<p>
If necessary, you can force JMeter to regenerate the keystore (and the exported certificates - <tt class="code">ApacheJMeterTemporaryRootCA[.usr|.crt]</tt>) by deleting the keystore file <tt class="code">proxyserver.jks</tt> from the JMeter directory.
</p>
<p>
This certificate is not one of the certificates that browsers normally trust, and will not be for the
correct host.<br>
As a consequence: 
</p>
<ul>
<li>The browser should display a dialogue asking if you want to accept the certificate or not. For example:
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
1) The server's name &quot;<tt class="code">www.example.com</tt>&quot; does not match the certificate's name
   &quot;<tt class="code">JMeter Proxy (DO NOT TRUST)</tt>&quot;. Somebody may be trying to eavesdrop on you.
2) The certificate for &quot;<tt class="code">JMeter Proxy (DO NOT TRUST)</tt>&quot; is signed by the unknown Certificate Authority
   &quot;<tt class="code">JMeter Proxy (DO NOT TRUST)</tt>&quot;. It is not possible to verify that this is a valid certificate.
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>

You will need to accept the certificate in order to allow the JMeter Proxy to intercept the SSL traffic in order to
record it.
However, do not accept this certificate permanently; it should only be accepted temporarily.
Browsers only prompt this dialogue for the certificate of the main url, not for the resources loaded in the page, such as images, css or javascript files hosted on a secured external CDN. 
If you have such resources (gmail has for example), you'll have to first browse manually to these other domains in order to accept JMeter's certificate for them. 
Check in <tt class="code">jmeter.log</tt> for secure domains that you need to register certificate for.
</li>
<li>If the browser has already registered a validated certificate for this domain, the browser will detect JMeter as a security breach and will refuse to load the page. If so, you have to remove the trusted certificate from your browser's keystore.
</li>
</ul>
<p>
Versions of JMeter from 2.10 onwards still support this method, and will continue to do so if you define the following property:
<tt class="code">proxy.cert.alias</tt>
The following properties can be used to change the certificate that is used:
</p>
<ul>
<li><tt class="code">proxy.cert.directory</tt> - the directory in which to find the certificate (default = JMeter <tt class="code">bin/</tt>)</li>
<li><tt class="code">proxy.cert.file</tt> - name of the keystore file (default &quot;<tt class="code">proxyserver.jks</tt>&quot;)</li>
<li><tt class="code">proxy.cert.keystorepass</tt> - keystore password (default &quot;<tt class="code">password</tt>&quot;) [Ignored if using JMeter certificate]</li>
<li><tt class="code">proxy.cert.keypassword</tt> - certificate key password (default &quot;<tt class="code">password</tt>&quot;) [Ignored if using JMeter certificate]</li>
<li><tt class="code">proxy.cert.type</tt> - the certificate type (default &quot;<tt class="code">JKS</tt>&quot;) [Ignored if using JMeter certificate]</li>
<li><tt class="code">proxy.cert.factory</tt> - the factory (default &quot;<tt class="code">SunX509</tt>&quot;) [Ignored if using JMeter certificate]</li>
<li><tt class="code">proxy.cert.alias</tt> - the alias for the key to be used. If this is defined, JMeter does not attempt to generate its own certificate(s).</li>
<li><tt class="code">proxy.ssl.protocol</tt> - the protocol to be used (default &quot;<tt class="code">SSLv3</tt>&quot;)</li>
</ul>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
If your browser currently uses a proxy (e.g. a company intranet may route all external requests via a proxy),
then you need to <a href="get-started.html#proxy_server">tell JMeter to use that proxy</a> before starting JMeter, 
using the <a href="get-started.html#options">command-line options</a> <tt class="code">-H</tt> and <tt class="code">-P</tt>.
This setting will also be needed when running the generated test plan.
</td></tr>
</table>
</p>

<a name="install_cert"></a>
<h4>Installing the JMeter CA certificate for HTTPS recording</h4>
<p>
As mentioned above, when run under Java 8, JMeter can generate certificates for each server.
For this to work smoothly, the root CA signing certificate used by JMeter needs to be trusted by the browser.
The first time that the recorder is started, it will generate the certificates if necessary. 
The root CA certificate is exported into a file with the name <tt class="code">ApacheJMeterTemporaryRootCA</tt> in the current launch directory.
When the certificates have been set up, JMeter will show a dialog with the current certificate details.
At this point, the certificate can be imported into the browser, as per the instructions below.
</p>
<p>
Note that once the root CA certificate has been installed as a trusted CA, the browser will trust any certificates signed by it.
Until such time as the certificate expires or the certificate is removed from the browser, it will not warn the user that the certificate is being relied upon.
So anyone that can get hold of the keystore and password can use the certificate to generate certificates which will be accepted
by any browsers that trust the JMeter root CA certificate.
For this reason, the password for the keystore and private keys are randomly generated and a short validity period used.
The passwords are stored in the local preferences area.
Please ensure that only trusted users have access to the host with the keystore.
</p>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The popup that displays once you start the Recorder is an informational popup:
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1024' height='749' src="../../docs/images/screenshots/recorder_popup_info.png"/><br>
<font size="-1">Recorder Install Certificate Popup</font></td></tr></table>

Just click ok and proceed further.
</td></tr>
</table>
</p>

<h5>Installing the certificate in Firefox</h5>
<p>
Choose the following options:
</p>
<ul>
<li><tt class="code">Tools / Options</tt></li>
<li><tt class="code">Advanced / Certificates</tt></li>
<li><tt class="code">View Certificates</tt></li>
<li><tt class="code">Authorities</tt></li>
<li><tt class="code">Import …</tt></li>
<li>Browse to the JMeter launch directory, and click on the file <tt class="code">ApacheJMeterTemporaryRootCA.crt</tt>, press <tt class="code">Open</tt></li>
<li>Click <tt class="code">View</tt> and check that the certificate details agree with the ones displayed by the JMeter Test Script Recorder</li>
<li>If OK, select &quot;<tt class="code">Trust this CA to identify web sites</tt>&quot;, and press <tt class="code">OK</tt></li>
<li>Close dialogs by pressing <tt class="code">OK</tt> as necessary</li>
</ul>
<h5>Installing the certificate in Chrome or Internet Explorer</h5>
<p>
Both Chrome and Internet Explorer use the same trust store for certificates.
</p>
<ul>
<li>Browse to the JMeter launch directory, and click on the file <tt class="code">ApacheJMeterTemporaryRootCA.crt</tt>, and open it</li>
<li>Click on the &quot;<tt class="code">Details</tt>&quot; tab and check that the certificate details agree with the ones displayed by the JMeter Test Script Recorder</li>
<li>If OK, go back to the &quot;<tt class="code">General</tt>&quot; tab, and click on &quot;<tt class="code">Install Certificate …</tt>&quot; and follow the Wizard prompts</li>
</ul>
<h5>Installing the certificate in Opera</h5>
<ul>
<li><tt class="code">Tools / Preferences / Advanced / Security</tt></li>
<li><tt class="code">Manage Certificates …</tt></li>
<li>Select &quot;<tt class="code">Intermediate</tt>&quot; tab, click &quot;<tt class="code">Import …</tt>&quot;</li>
<li>Browse to the JMeter launch directory, and click on the file <tt class="code">ApacheJMeterTemporaryRootCA.usr</tt>, and open it</li>
<li></li>
</ul>
<p><b>Control Panel</b></p>
<div align="center"><img width='1024' height='749' src="../../docs/images/screenshots/proxy_control.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>Port</td>
<td>The port that the HTTP(S) Test Script Recorder listens to.  <tt class="code">8888</tt> is the default, but you can change it.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>HTTPS Domains</td>
<td>List of domain (or host) names for HTTPS. Use this to pre-generate certificates for all servers you wish to record.
        <br>
        For example, <tt class="code">*.example.com,*.subdomain.example.com</tt>
        <br>
        Note that wildcard domains only apply to one level,
        i.e. <tt class="code">abc.subdomain.example.com</tt> matches <tt class="code">*.subdomain.example.com</tt> but not <tt class="code">*.example.com</tt>
        </td>
<td>
No
</td>
</tr>
<tr>
<td>Target Controller</td>
<td>The controller where the proxy will store the generated samples. By default, it will look for a Recording Controller and store them there wherever it is.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Grouping</td>
<td>Whether to group samplers for requests from a single &quot;click&quot; (requests received without significant time separation), and how to represent that grouping in the recording:
           <ul>
             <li><tt class="code">Do not group samplers</tt> - store all recorded samplers sequentially, without any grouping.</li>
             <li><tt class="code">Add separators between groups</tt> - add a controller named &quot;<tt class="code">--------------</tt>&quot; to create a visual separation between the groups. Otherwise the samplers are all stored sequentially.</li>
             <li><tt class="code">Put each group in a new controller</tt> - create a new <a href="../usermanual/component_reference.html#Simple_Controller">Simple Controller</a> for each group, and store all samplers for that group in it.</li>
             <li><tt class="code">Store 1<sup>st</sup> sampler of each group only</tt> - only the first request in each group will be recorded. The &quot;<tt class="code">Follow Redirects</tt>&quot; and &quot;<tt class="code">Retrieve All Embedded Resources …</tt>&quot; flags will be turned on in those samplers.</li>
             <li><tt class="code">Put each group in a new transaction controller</tt> - create a new <a href="../usermanual/component_reference.html#Transaction_Controller">Transaction Controller</a> for each group, and store all samplers for that group in it.</li>
           </ul>
           The property <tt class="code">proxy.pause</tt> determines the minimum gap that JMeter needs between requests
           to treat them as separate &quot;clicks&quot;. The default is <tt class="code">5000</tt> (milliseconds) i.e. 5 seconds.
           If you are using grouping, please ensure that you leave the required gap between clicks.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Capture HTTP Headers</td>
<td>Should headers be added to the plan?
        If specified, a Header Manager will be added to each HTTP Sampler.
        The Proxy server always removes Cookie and Authorization headers from the generated Header Managers.
        By default it also removes <tt class="code">If-Modified-Since</tt> and <tt class="code">If-None-Match</tt> headers.
        These are used to determine if the browser cache items are up to date;
        when recording one normally wants to download all the content.
        To change which additional headers are removed, define the JMeter property <tt class="code">proxy.headers.remove</tt>
        as a comma-separated list of headers.
        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Add Assertions</td>
<td>Add a blank assertion to each sampler?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Regex Matching</td>
<td>Use Regex Matching when replacing variables? If checked replacement will use word boundaries, i.e. it will only replace word matching values of variable, not part of a word. A word boundary follows Perl5 definition and is equivalent to <tt class="code">\b</tt>. More information below in the paragraph about &quot;<tt class="code">User Defined Variable replacement</tt>&quot;.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Type</td>
<td>Which type of sampler to generate (the HTTPClient default or Java)</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Redirect Automatically</td>
<td>Set Redirect Automatically in the generated samplers?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Follow Redirects</td>
<td>Set Follow Redirects in the generated samplers?<br>
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note: see &quot;Recording and redirects&quot; section below for important information.</td></tr>
</table>
</p>

        </td>
<td>
Yes
</td>
</tr>
<tr>
<td>Use Keep-Alive</td>
<td>Set Use Keep-Alive in the generated samplers?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Retrieve all Embedded Resources</td>
<td>Set Retrieve all Embedded Resources in the generated samplers?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Content Type filter</td>
<td>
        Filter the requests based on the <tt class="code">content-type</tt> - e.g. &quot;<tt class="code">text/html [;charset=utf-8 ]</tt>&quot;.
        The fields are regular expressions which are checked to see if they are contained in the <tt class="code">content-type</tt>.
        [Does not have to match the entire field].
        The include filter is checked first, then the exclude filter.
        Samples which are filtered out will not be stored.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note: this filtering is applied to the content type of the response</td></tr>
</table>
</p>

        </td>
<td>
No
</td>
</tr>
<tr>
<td>Patterns to Include</td>
<td>Regular expressions that are matched against the full URL that is sampled.  Allows filtering of requests that are recorded.  All requests pass through, but only
        those that meet the requirements of the <tt class="code">Include</tt>/<tt class="code">Exclude</tt> fields are <em>recorded</em>.  If both <tt class="code">Include</tt> and <tt class="code">Exclude</tt> are
        left empty, then everything is recorded (which can result in dozens of samples recorded for each page, as images, stylesheets,
        etc. are recorded).  <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>If there is at least one entry in the <tt class="code">Include</tt> field, then only requests that match one or more <tt class="code">Include</tt> patterns are
        recorded</td></tr>
</table>
</p>
.</td>
<td>
No
</td>
</tr>
<tr>
<td>Patterns to Exclude</td>
<td>Regular expressions that are matched against the URL that is sampled.
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Any requests that match one or more <tt class="code">Exclude</tt> pattern are <em>not</em> recorded</td></tr>
</table>
</p>
.</td>
<td>
No
</td>
</tr>
<tr>
<td>Notify Child Listeners of filtered samplers</td>
<td>Notify Child Listeners of filtered samplers
        <p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Any response that match one or more <tt class="code">Exclude</tt> pattern is <em>not</em> delivered to Child Listeners (View Results Tree)</td></tr>
</table>
</p>
.</td>
<td>
No
</td>
</tr>
<tr>
<td>Start Button</td>
<td>Start the proxy server.  JMeter writes the following message to the console once the proxy server has started up and is ready to take requests: &quot;<tt class="code">Proxy up and running!</tt>&quot;.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Stop Button</td>
<td>Stop the proxy server.</td>
<td>
N/A
</td>
</tr>
<tr>
<td>Restart Button</td>
<td>Stops and restarts the proxy server.  This is
  useful when you change/add/delete an include/exclude filter expression.</td>
<td>
N/A
</td>
</tr>
</table>
<h4>Recording and redirects</h4><p>
During recording, the browser will follow a redirect response and generate an additional request.
The Proxy will record both the original request and the redirected request
(subject to whatever exclusions are configured).
The generated samples have &quot;<tt class="code">Follow Redirects</tt>&quot; selected by default, because that is generally better.
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Redirects may depend on the original request, so repeating the originally recorded sample may not always work.</td></tr>
</table>
</p>

</p><p>
Now if JMeter is set to follow the redirect during replay, it will issue the original request, 
and then replay the redirect request that was recorded.
To avoid this duplicate replay, JMeter tries to detect when a sample is the result of a previous
redirect. If the current response is a redirect, JMeter will save the redirect URL.
When the next request is received, it is compared with the saved redirect URL and if there is a match,
JMeter will disable the generated sample. It also adds comments to the redirect chain.
This assumes that all the requests in a redirect chain will follow each other without any intervening requests.
To disable the redirect detection, set the property <tt class="code">proxy.redirect.disabling=false</tt>
</p><h4>Includes and Excludes</h4><p>The <b>include and exclude patterns</b> are treated as regular expressions (using Jakarta ORO).
They will be matched against the host name, port (actual or implied), path and query (if any) of each browser request.
If the URL you are browsing is <br> 
&quot;<tt class="code">http://localhost/jmeter/index.html?username=xxxx</tt>&quot;,<br> 
then the regular expression will be tested against the string:<br> 
&quot;<tt class="code">localhost:80/jmeter/index.html?username=xxxx</tt>&quot;.<br>   
Thus, if you want to include all <tt class="code">.html</tt> files, your regular expression might look like: <br> 
&quot;<tt class="code">.*\.html(\?.*)?</tt>&quot; - or &quot;<tt class="code">.*\.html</tt> 
if you know that there is no query string or you only want html pages without query strings.
</p><p>
If there are any include patterns, then the URL <b>must match at least one</b> of the patterns
, otherwise it will not be recorded.
If there are any exclude patterns, then the URL <b>must not match any</b> of the patterns
, otherwise it will not be recorded.
Using a combination of includes and excludes,
you should be able to record what you are interested in and skip what you are not.
</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
N.B. the string that is matched by the regular expression must be the same as the <b>whole</b> host+path string.<br>Thus &quot;<tt class="code">\.html</tt>&quot; will <b>not</b> match <tt class="code">localhost:80/index.html</tt>
</td></tr>
</table>
</p>
<h4>Capturing binary POST data</h4><p>
JMeter is able to capture binary POST data.
To configure which <tt class="code">content-types</tt> are treated as binary, update the JMeter property <tt class="code">proxy.binary.types</tt>.
The default settings are as follows:
</p><div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
# These content-types will be handled by saving the request in a file:
proxy.binary.types=application/x-amf,application/x-java-serialized-object
# The files will be saved in this directory:
proxy.binary.directory=user.dir
# The files will be created with this file filesuffix:
proxy.binary.filesuffix=.binary
</pre></td>
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
<h4>Adding timers</h4><p>It is also possible to have the proxy add timers to the recorded script. To
do this, create a timer directly within the HTTP(S) Test Script Recorder component.
The proxy will place a copy of this timer into each sample it records, or into
the first sample of each group if you're using grouping. This copy will then be
scanned for occurrences of variable <tt class="code">${T}</tt> in its properties, and any such
occurrences will be replaced by the time gap from the previous sampler
recorded (in milliseconds).</p><p>When you are ready to begin, hit &quot;<tt class="code">start</tt>&quot;.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>You will need to edit the proxy settings of your browser to point at the
appropriate server and port, where the server is the machine JMeter is running on, and
the port # is from the Proxy Control Panel shown above.</td></tr>
</table>
</p>
<h4>Where Do Samples Get Recorded?</h4><p>JMeter places the recorded samples in the Target Controller you choose. If you choose the default option
&quot;<tt class="code">Use Recording Controller</tt>&quot;, they will be stored in the first Recording Controller found in the test object tree (so be
sure to add a Recording Controller before you start recording).</p><p>
If the Proxy does not seem to record any samples, this could be because the browser is not actually using the proxy.
To check if this is the case, try stopping the proxy.
If the browser still downloads pages, then it was not sending requests via the proxy.
Double-check the browser options. 
If you are trying to record from a server running on the same host,
then check that the browser is not set to &quot;<tt class="code">Bypass proxy server for local addresses</tt>&quot;
(this example is from IE7, but there will be similar options for other browsers).
If JMeter does not record browser URLs such as <tt class="code">http://localhost/</tt> or <tt class="code">http://127.0.0.1/</tt>,
try using the non-loopback hostname or IP address, e.g. <tt class="code">http://myhost/</tt> or <tt class="code">http://192.168.0.2/</tt>.
</p><h4>Handling of HTTP Request Defaults</h4><p>If the HTTP(S) Test Script Recorder finds enabled <a href="../usermanual/component_reference.html#HTTP_Request_Defaults">HTTP Request Defaults</a> directly within the
controller where samples are being stored, or directly within any of its parent controllers, the recorded samples
will have empty fields for the default values you specified. You may further control this behaviour by placing an
HTTP Request Defaults element directly within the HTTP(S) Test Script Recorder, whose non-blank values will override
those in the other HTTP Request Defaults. See <a href="best-practices.html#proxy_server"> Best
Practices with the HTTP(S) Test Script Recorder</a> for more info.</p><h4>User Defined Variable replacement</h4><p>Similarly, if the HTTP(S) Test Script Recorder finds <a href="../usermanual/component_reference.html#User_Defined_Variables">User Defined Variables</a> (UDV) directly within the
controller where samples are being stored, or directly within any of its parent controllers, the recorded samples
will have any occurrences of the values of those variables replaced by the corresponding variable. Again, you can
place User Defined Variables directly within the HTTP(S) Test Script Recorder to override the values to be replaced. See
<a href="best-practices.html#proxy_server"> Best Practices with the Test Script Recorder</a> for more info.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Please note that matching is case-sensitive.</td></tr>
</table>
</p>
<p>Replacement by Variables: by default, the Proxy server looks for all occurrences of UDV values. 
If you define the variable <tt class="code">WEB</tt> with the value <tt class="code">www</tt>, for example,
the string <tt class="code">www</tt> will be replaced by <tt class="code">${WEB}</tt> wherever it is found.
To avoid this happening everywhere, set the &quot;<tt class="code">Regex Matching</tt>&quot; check-box.
This tells the proxy server to treat values as Regexes (using the perl5 compatible regex matchers provided by ORO).</p><p>If &quot;<tt class="code">Regex Matching</tt>&quot; is selected every variable will be compiled into a perl compatible regex enclosed in
<tt class="code">\b(</tt> and <tt class="code">)\b</tt>. That way each match will start and end at a word boundary.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>Note that the boundary characters are not part of the matching group, e.g. <tt class="code">n.*</tt> to match <tt class="code">name</tt> out
of <tt class="code">You can call me 'name'</tt>.</td></tr>
</table>
</p>
<p>If you don't want your regex to be enclosed with those boundary matchers, you have to enclose your
regex within parens, e.g <tt class="code">('.*?')</tt> to match <tt class="code">'name'</tt> out of <tt class="code">You can call me 'name'</tt>.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
The variables will be checked in random order. So ensure, that the potential matches don't overlap.
Overlapping matchers would be <tt class="code">.*</tt> (which matches anything) and <tt class="code">www</tt> (which
matches <tt class="code">www</tt> only). Non-overlapping matchers would be <tt class="code">a+</tt> (matches a sequence
of <tt class="code">a</tt>'s) and <tt class="code">b+</tt> (matches a sequence of <tt class="code">b</tt>'s).
</td></tr>
</table>
</p>
<p>If you want to match a whole string only, enclose it in <tt class="code">(^</tt> and <tt class="code">$)</tt>, e.g. <tt class="code">(^thus$)</tt>.
The parens are necessary, since the normally added boundary characters will prevent <tt class="code">^</tt> and
<tt class="code">$</tt> to match.</p><p>If you want to match <tt class="code">/images</tt> at the start of a string only, use the value <tt class="code">(^/images)</tt>.
Jakarta ORO also supports zero-width look-ahead, so one can match <tt class="code">/images/…</tt>
but retain the trailing <tt class="code">/</tt> in the output by using <tt class="code">(^/images(?=/))</tt>.</p><p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that the current version of Jakara ORO does not support look-behind - i.e. <tt class="code">(?&lt;=…)</tt> or <tt class="code">(?&lt;!…)</tt>.
</td></tr>
</table>
</p>
<p>Look out for overlapping matchers. For example the value <tt class="code">.*</tt> as a regex in a variable named
<tt class="code">regex</tt> will partly match a previous replaced variable, which will result in something like
<tt class="code">${{regex}</tt>, which is most probably not the desired result.</p><p>If there are any problems interpreting any variables as patterns, these are reported in <tt class="code">jmeter.log</tt>,
so be sure to check this if UDVs are not working as expected.</p><p>When you are done recording your test samples, stop the proxy server (hit the &quot;<tt class="code">stop</tt>&quot; button).  Remember to reset
your browser's proxy settings.  Now, you may want to sort and re-order the test script, add timers, listeners, a
cookie manager, etc.</p><h4>How can I record the server's responses too?</h4><p>Just place a <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> listener as a child of the HTTP(S) Test Script Recorder and the responses will be displayed. 
You can also add a <a href="../usermanual/component_reference.html#Save_Responses_to_a_file">Save Responses to a file</a> Post-Processor which will save the responses to files.
</p><h4>Associating requests with responses</h4><p>
If you define the property <tt class="code">proxy.number.requests=true</tt> 
JMeter will add a number to each sampler and each response.
Note that there may be more responses than samplers if excludes or includes have been used.
Responses that have been excluded will have labels enclosed in <tt class="code">[</tt> and <tt class="code">],</tt> for example <tt class="code">[23 /favicon.ico]</tt> 
</p><h4>Cookie Manager</h4><p>
If the server you are testing against uses cookies, remember to add an <a href="../usermanual/component_reference.html#HTTP_Cookie_Manager">HTTP Cookie Manager</a> to the test plan
when you have finished recording it.
During recording, the browser handles any cookies, but JMeter needs a Cookie Manager
to do the cookie handling during a test run.
The JMeter Proxy server passes on all cookies sent by the browser during recording, but does not save them to the test
plan because they are likely to change between runs.
</p><h4>Authorization Manager</h4><p>
The HTTP(S) Test Script Recorder grabs &quot;<tt class="code">Authentication</tt>&quot; header, tries to compute the Auth Policy. If Authorization Manager was added to target
controller manually, HTTP(S) Test Script Recorder will find it and add authorization (matching ones will be removed). Otherwise
Authorization Manager will be added to target controller with authorization object.
You may have to fix automatically computed values after recording.

</p><h4>Uploading files</h4><p>
Some browsers (e.g. Firefox and Opera) don't include the full name of a file when uploading files.
This can cause the JMeter proxy server to fail.
One solution is to ensure that any files to be uploaded are in the JMeter working directory,
either by copying the files there or by starting JMeter in the directory containing the files.
</p><h4>Recording HTTP Based Non Textual Protocols not natively available in JMeter</h4><p>
You may have to record an HTTP protocol that is not handled by default by JMeter (Custom Binary Protocol, Adobe Flex, Microsoft Silverlight, … ).
Although JMeter does not provide a native proxy implementation to record these protocols, you have the ability to
record these protocols by implementing a custom <tt class="code">SamplerCreator</tt>. This Sampler Creator will translate the binary format into a <tt class="code">HTTPSamplerBase</tt> subclass
that can be added to the JMeter Test Case.
For more details see &quot;Extending JMeter&quot;.
</p></td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="HTTP_Mirror_Server">19.9.6 HTTP Mirror Server</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The HTTP Mirror Server is a very simple HTTP server - it simply mirrors the data sent to it.
This is useful for checking the content of HTTP requests.
</p>
<p>
It uses default port <tt class="code">8081</tt>.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='794' height='157' src="../../docs/images/screenshots/mirrorserver.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Port</td>
<td>Port on which Mirror server listens, defaults to <tt class="code">8081</tt>.</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Max Number of threads</td>
<td>If set to a value &gt; <tt class="code">0</tt>, number of threads serving requests will be limited to the configured number, if set to a value ≤ <tt class="code">0</tt> 
        a new thread will be created to serve each incoming request. Defaults to <tt class="code">0</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>Max Queue size</td>
<td>Size of queue used for holding tasks before they are executed by Thread Pool, when Thread pool is exceeded, incoming requests will
        be held in this queue and discarded when this queue is full. This parameter is only used if Max Number of Threads is greater than <tt class="code">0</tt>. Defaults to <tt class="code">25</tt></td>
<td>
No
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that you can get more control over the responses by adding an HTTP Header Manager with the following name/value pairs:
</td></tr>
</table>
</p>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>X-Sleep</td>
<td>Time to sleep in ms before sending response</td>
<td>
No
</td>
</tr>
<tr>
<td>X-SetCookie</td>
<td>Cookies to be set on response</td>
<td>
No
</td>
</tr>
<tr>
<td>X-ResponseStatus</td>
<td>Response status, see <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">HTTP Status responses</a>, example 200 OK, 500 Internal Server Error, ….</td>
<td>
No
</td>
</tr>
<tr>
<td>X-ResponseLength</td>
<td>Size of response, this trims the response to the requested size if that is less than the total size</td>
<td>
No
</td>
</tr>
<tr>
<td>X-SetHeaders</td>
<td>Pipe separated list of headers, example:<br> 
        <tt class="code">headerA=valueA|headerB=valueB</tt> would set <tt class="code">headerA</tt> to <tt class="code">valueA</tt> and <tt class="code">headerB</tt> to <tt class="code">valueB</tt>.
        </td>
<td>
No
</td>
</tr>
</table>
<p>
You can also use the following query parameters:
</p><p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>redirect</td>
<td>Generates a 302 (Temporary Redirect) with the provided location.
    e.g. <tt class="code">?redirect=/path</tt>
    </td>
<td>
No
</td>
</tr>
<tr>
<td>status</td>
<td>Overrides the default status return. e.g. <tt class="code">?status=404 Not Found</tt></td>
<td>
No
</td>
</tr>
<tr>
<td>v</td>
<td>Verbose flag, writes some details to standard output. e.g. first line and redirect location if specified</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Property_Display">19.9.7 Property Display</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Property Display shows the values of System or JMeter properties.
Values can be changed by entering new text in the Value column.
It is available only on the WorkBench.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='804' height='508' src="../../docs/images/screenshots/property_display.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Debug_Sampler">19.9.8 Debug Sampler</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Debug Sampler generates a sample containing the values of all JMeter variables and/or properties.
</p>
<p>
The values can be seen in the <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Listener Response Data pane.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='431' height='172' src="../../docs/images/screenshots/debug_sampler.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>JMeter Properties</td>
<td>Include JMeter properties?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>JMeter Variables</td>
<td>Include JMeter variables?</td>
<td>
Yes
</td>
</tr>
<tr>
<td>System Properties</td>
<td>Include System properties?</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Debug_PostProcessor">19.9.8 Debug PostProcessor</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Debug PostProcessor creates a subSample with the details of the previous Sampler properties, 
JMeter variables, properties and/or System Properties.
</p>
<p>
The values can be seen in the <a href="../usermanual/component_reference.html#View_Results_Tree">View Results Tree</a> Listener Response Data pane.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='344' height='193' src="../../docs/images/screenshots/debug_postprocessor.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
No
</td>
</tr>
<tr>
<td>JMeter Properties</td>
<td>Whether to show JMeter properties (default <tt class="code">false</tt>).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>JMeter Variables</td>
<td>Whether to show JMeter variables (default <tt class="code">false</tt>).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>Sampler Properties</td>
<td>Whether to show Sampler properties (default <tt class="code">true</tt>).</td>
<td>
Yes
</td>
</tr>
<tr>
<td>System Properties</td>
<td>Whether to show System properties (default <tt class="code">false</tt>).</td>
<td>
Yes
</td>
</tr>
</table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="Test_Fragment">19.9.9 Test Fragment</a>
</h3>
</font>
</td></tr>
<tr><td>

<p>
The Test Fragment is used in conjunction with the <a href="../usermanual/component_reference.html#Include_Controller">Include Controller</a> and <a href="../usermanual/component_reference.html#Module_Controller">Module Controller</a>.
</p>
<p><b>Control Panel</b></p>
<div align="center"><img width='236' height='94' src="../../docs/images/screenshots/test_fragment.png"/></div>
<p>
<b>Parameters</b>
</p>
<table border="1" cellspacing="0" cellpadding="2">
<tr><th>Attribute</th><th>Description</th><th>Required</th></tr>
<tr>
<td>Name</td>
<td>Descriptive name for this element that is shown in the tree.</td>
<td>
Yes
</td>
</tr>
</table>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
When using Test Fragment with <a href="../usermanual/component_reference.html#Module_Controller">Module Controller</a>, ensure you disable the Test Fragment to avoid the execution of Test Fragment itself.
This is done by default since JMeter 2.13.
</td></tr>
</table>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="setUp_Thread_Group">19.9.10 setUp Thread Group</a>
</h3>
</font>
</td></tr>
<tr><td>

    <p>
    A special type of ThreadGroup that can be utilized to perform Pre-Test Actions.  The behavior of these threads
    is exactly like a normal <a href="../usermanual/component_reference.html#Thread_Group">Thread Group</a> element.  The difference is that these type of threads 
    execute before the test proceeds to the executing of regular Thread Groups.
    </p>
<p><b>Control Panel</b></p>
<div align="center"><img width='678' height='377' src="../../docs/images/screenshots/setup_thread_group.png"/></div>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<table border="0" cellspacing="0" cellpadding="2">
<tr><td>
<font face="arial,helvetica,sanserif">
<h3>
<a name="tearDown_Thread_Group">19.9.11 tearDown Thread Group</a>
</h3>
</font>
</td></tr>
<tr><td>

    <p>
    A special type of ThreadGroup that can be utilized to perform Post-Test Actions.  The behavior of these threads
    is exactly like a normal <a href="../usermanual/component_reference.html#Thread_Group">Thread Group</a> element.  The difference is that these type of threads 
    execute after the test has finished executing its regular Thread Groups.
    </p>
<p><b>Control Panel</b></p>
<div align="center"><img width='677' height='379' src="../../docs/images/screenshots/teardown_thread_group.png"/></div>
<p>
<table border="1" bgcolor="#bbbb00" width="50%" cellspacing="0" cellpadding="2">
<tr><td>
Note that by default it won't run if Test is gracefully shutdown, if you want to make it run in this case, 
ensure you check option &quot;<tt class="code">Run tearDown Thread Groups after shutdown of main threads</tt>&quot; on Test Plan element.
If Test Plan is stopped, tearDown will not run even if option is checked.
</td></tr>
</table>
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><img width='1130' height='486' src="../../docs/images/screenshots/tear_down_on_shutdown.png"/><br>
<font size="-1">Figure 1 - Run tearDown Thread Groups after shutdown of main threads</font></td></tr></table>
</td></tr>
<tr><td><br></td></tr>
</table>
<hr>
<a href="#">^</a></blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<br>
<table>
<tr>
<td bgcolor="#525D76">
<div align="right"><a href="index.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Index</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="properties_reference.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Next</font></a></div>
</td>
<td bgcolor="#525D76">
<div align="right"><a href="boss.html"><font size=-1 color="#ffffff" face="arial,helvetica,sanserif">Prev</font></a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td>
<hr noshade size="1"/>
</td></tr>
<tr>
<td>
<table width=100%>
<tr>
<td>
<font color="#525D76" size="-1"><em>
Copyright &copy; 1999-2017, Apache Software Foundation
</em></font>
</td>
<td align="right">
<font color="#525D76" size="-1"><em>
$Id: component_reference.xml 1790431 2017-04-06 17:07:28Z fschumacher $
</em></font>
</td>
</tr>
<tr><td colspan="2">
<div align="center"><font color="#525D76" size="-1">
Apache, Apache JMeter, JMeter, the Apache feather, and the Apache JMeter logo are
trademarks of the Apache Software Foundation.
</font>
</div>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!-- end the processing -->