1. Go to Jmeter bin folder.
2. Open BeanShellFunction.bshrc file.
3. Define a function you want call and save the file.
4. Open jmeter properties file and search for "beanshell.function.init=BeanShellFunction.bshrc"
5. Uncomment this line by removing # symbol at the beginning of the line and save the file.
6. Go to jmeter and select Function helper dialog from Options menu.
7. Select Beanshell from the drop-down (shown below).
8. Write your defined function name and parameter(if any) in the Expression to evaluate (shown below).
9. Click on Generate button.
10. Use the function string generated wherever you want to call the function(shown below).
2. Open BeanShellFunction.bshrc file.
3. Define a function you want call and save the file.
4. Open jmeter properties file and search for "beanshell.function.init=BeanShellFunction.bshrc"
5. Uncomment this line by removing # symbol at the beginning of the line and save the file.
6. Go to jmeter and select Function helper dialog from Options menu.
7. Select Beanshell from the drop-down (shown below).
8. Write your defined function name and parameter(if any) in the Expression to evaluate (shown below).
9. Click on Generate button.
10. Use the function string generated wherever you want to call the function(shown below).