Functional Testing 09: Life in a Beanshell

Ninth in a series focusing on using JMeter for functional testing of an API.

In the last tutorial we jumped through some hoops in order to be able to extra one folderid from a list of folders. Some of the decision we made would end up causing us problems later on. For instance, the way we extracted a folderid would require us to provide a folderIndex every time we used GetFolders. Since that may not always be the case, it would actually require us to do more work in the instance when we didn’t need to extract a folderid.

In this tutorial, we will replace some of what we did last time with a BeanShell object and write a little bit of Java too.

Continue reading “Functional Testing 09: Life in a Beanshell”

Functional Testing 07: Using Response Data – Part 1

Seventh in a series focusing on using JMeter for functional testing of an API.

Quite often you will need to use data from one API response to make another subsequent API call. In this tutorial we we will see how to use the token returned by signing in to make an authorized API call to another API end point which requires you to be signed in (we will get a list of folders).

We are really going to start testing now!

Continue reading “Functional Testing 07: Using Response Data – Part 1”