Information Technology & Services - , ,
Jagtester is an NPM package that you can install into the application you want to test. How does it work? Jagtester will spin up a server on your local machine and open the web app. Now the fun stuff, add in the configurations you would like to test out and get your results! The test can be customized to multiple routes, the percentage of load per route, the requests per second amount, and the frequency of the requests. Run as many tests as you want, and then view results on the results page. The results will be displayed in exportable graphs and tables. Data is broken down to show the total time for all routes and the error percentage and views for route-specific data where you can analyze the data down to the middleware level. To understand it a little deeper, we'll talk a bit about how we built this tool. When we got started, we dove into the Express "under the hood" style. Looking at how Express handles requests, and how it handles the middleware specifically. Learning a bit more about the _router object, stacks, and layers gave us clarity on how to implement functionality to create this tool. We took the logic Express has for processing requests and middleware and added the ability to record how long each middleware function takes. We also created a global middleware that will be passed into the Express application. The middleware essentially serves as a lightweight helper function to our test suite, which takes commands from Jagtester and collects data like time elapsed per middleware, time per total route, modifies Express layers under the hood, and once the testing is done, it will send back data to Jagtester and switch back to the unmodified version of express layers.
Netlify
Google Tag Manager
DigitalOcean
Bootstrap Framework
Mobile Friendly