Testing REST ServiceNow APIs using JMeter offers a powerful approach to validate the functionality and performance of the ServiceNow platform. Leveraging JMeter, a test scenario has been created to evaluate API endpoints, authentication mechanisms, data retrieval, and overall system responsiveness. JMeter identifies potential bottlenecks and performance issues by simulating real-world user interactions and load conditions, enabling teams to fine-tune the APIs for optimal efficiency. With its flexibility and ability to generate insightful reports, JMeter is an indispensable tool in ensuring the reliability and scalability of REST ServiceNow APIs, enhancing the overall user experience and boosting the platform's capabilities.
Visit ServiceNow Report to see the generated report.
This is a step-by-step guide to test the performance of ServiceNow APIs.
The performance testing involves the following APIs:
| API Label | ServiceNow API | Documentation link | Method | Parameters |
|---|---|---|---|---|
| Incident Table | api/now/table/incident |
incident API | GET | 0 |
| sys_user1 | api/now/table/incident |
incident API | GET | 1 |
| sys_user2 | api/now/table/incident |
incident API | GET | 2 |
| sys_user3 | api/now/table/incident |
incident API | GET | 3 |
| post_user | api/now/table/incident |
incident API | POST | 0 |
This method is simple since you can use the shell file provided to run all the commands needed.
The only requirements are that homebrew is installed.
After installing homebrew, open a terminal and follow the steps below.
git clone https://github.com/TarasZhere/ServiceNow-performance-engineering-JMeter.git
cd ServiceNow-performance-engineering-JMeter
sh startup.sh
Just wait for the time required to run the test (15 min), and as soon as the test is done, a folder report will appear in the directory with inside a .html file displaying the complete report of the examination.
Download JMX File
or clone the repository with the provided ServiceNow.jmx with git clone https://github.com/TarasZhere/ServiceNow-performance-engineering-JMeter.git
Use the command (in order) to install the software using homebrew.
brew install jmeter
or reference the original documentation @ JMeter.com
jmeter -n -t < path of ServiceNow.jmx from this repository> -l < path of where you want to store the resulting file>/ServiceNow.csv -e -o < path to the output folder. (It must be an empty folder)>
example: jmeter -n -t ./ServiceNow.jmx -l ./ServiceNow.csv -e -o ./report/
Just wait for the time required to run the test (15 min), and as soon as the test is done, the report will appear in the directory you chose inside a .html file having a complete report of the examination.