Performance Profiling has arrived to Automated Test Framework in the Washington DC Release
Hey everyone! Here to highlight one of the new features in the Washington DC release (which just went into General Availability this week) and it's Performance Testing within the Automated Test Framework, so it's platform wide and available to all upon upgrading to the new release!
What is Automated Test Framework (ATF)?
Before we delve into performance profiling, let's have a quick refresher on what ATF is. Automated Test Framework is a tool within ServiceNow that allows you to create and run automated tests on your applications and configurations. This means you can ensure that your ServiceNow instance is working as expected after updates, modifications, or new feature implementations, without the need for manual testing.
ATF Performance Profiling
ATF Performance Profiling is an extension of the standard ATF functionality. It enables you to measure the performance of your ServiceNow instance by recording the time taken to execute each step in your automated tests. This is incredibly useful for identifying slow-performing areas in your applications and pinpointing specific actions or processes that might be causing delays.
How Does It Work?
ATF Performance Profiling works by adding a performance profiling step to your existing automated test suites. This step records the start and end times of each test step, allowing you to see the duration of each action. You can then analyze these timings to identify any steps that are taking longer than expected and investigate further to optimize performance.
You can use existing ATF tests for performance profiling, or you can create new tests specifically for performance profiling.
Here's a quick guide on how to execute performance profiling using ATF:
- Navigate to ATF: Locate the Automated Test Framework within your ServiceNow instance.
- Select the Test: Choose the specific test you want to profile for performance evaluation.
- Execute the Test Run: With the desired test selected, initiate the test run via the "Run Performance Test" button.
- Confirmation Modal: Check the "I acknowledge..." checkbox and then click "Run Test"
- Go take a break, it will take some time to run (at least 20 minutes for simple tests)
During the performance test, ATF will do a warmup run to make sure the right things are cached, then run the test 10 times to get a performance profile.
Performance Comparisons
You can view the results and see how long each test took but that's not really interesting. The key is to do these performance tests regularly so that you can utilize Performance Comparisons. It's the comparisons that will reveal if your system has degraded in a particular area:
How to run comparisons:
- You can either either navigate to a previous Performance Run result (either via "Go to Result" on a test you just ran or by navigating to "All > Automated Test Framework (ATF) > Test > Performance Profiling > Performance Runs") and then Click on "Compare Performance Result"
and then selecting another result to compare to
https://www.servicenow.com/community/developer-advocate-blog/performance-profiling-has-arrived-to-automated-test-framework-in/ba-p/2874692
Earl Duque