Javascript - Web Performance
Menu

Load Testing Blog

How to Handle a Website where Cookies are set via Javascript

The process instead is to locate where the cookie value is set in javascript, parse the value, and set the cookie value inside the cookie store. The new cookie value is then updated in every subsequent transaction automatically.

Case Study: Load Testing a Raw TCP Service

Last updated November 2017. You can also read this article on legion-starter-pack GitHub page.
A customer approached us wanting to load test a network service via a proprietary binary TCP protocol. The customers use case involved thousands of simultaneous connections from mobile IoT (Internet of Things) devices.
We decided that this was a perfect opportunity to use Legion.
Requirements
The protocol called for sequential request/response communication with no pipelining or interleaving of messages. There were multiple request and response types which had varying sizes and some fields of every request needed to be unique or dynamic. There seemed to be at least some … Continue reading »

Handling Javascript and AJAX Callbacks

Overview
AJAX technologies present some special challenges for testing software – since it blurs the distinction between a traditional page-based web application and a rich client-server application. Most testing tools are specific to one or the other – and for very good reasons. This tutorial demonstrates one approach to handling AJAX callbacks in an AJAX-enabled web application using Web Performance Load Tester.
Prerequesites: This guide assumes a solid understanding of the Load Tester product. The Load Tester videos are a good introduction to the main features. It is assumed can record a testcase and exeute load tests using some of the … Continue reading »

Load Testing an Javascript or AJAX Application

Most of us are relieved that web applications are starting to behave more like desktop applications – i.e. smarter and easier to use. A little wow factor here and there doesn’t hurt either. Ease of use always has a cost, so it should come as no surprise that the AJAX applications are more difficult to develop. But you may be surprised that they can also be more difficult to load test.
The reason is fairly simple. Traditional web applications are relatively easy to model and simulate. The state of a user session, at any given time, is a combination of the … Continue reading »

Javascript/JSON Support in Load Tester 4.3

Over the last year, Web Performance engineers have been working to make Load Tester smarter and easier to configure.  Load Tester 4.2 introduced the new Fields View, which allows test case developers to write out HTTP requests using a flexible and composable assortment of data sources.
Starting with Load Tester 4.3, Load Tester will automatically recognize JSON content in any HTTP request.  As a consequence, each JSON element will become a configurable name-value pair field in the Fields View.  We believe this will make it much easier to configure complex AJAX and RESTful style test cases.

Furthermore, whenever Load Tester’s Application … Continue reading »

New JavaScript optimizer

From a load testing perspective, we are not generally concerned with Javascript performance – since it affects client-side rendering time and therefore has little relationship to load. However, we do see a lot of sites that could benefit greatly from improved Javascript performance – especially reducing the size of their Javascript files. Google has a relatively new project, Closure Compiler, that optimizes JavaScript code to reduce size and improve performance.
If you’ve tried the Closure Compiler, give us a shout. We’d love to hear about your results!
Chris
Chief Engineer

Resources

Copyright © 2024 Web Performance, Inc.

A Durham web design company

×

(1) 919-845-7601 9AM-5PM EST

Just complete this form and we will get back to you as soon as possible with a quote. Please note: Technical support questions should be posted to our online support system.

About You
How Many Concurrent Users