26
Sep 2018

Guide to Web Application Testing

More and more web applications are being developed these days. And with each line of code being written, the potential for bugs arises. Generally speaking, the costs of fixing bugs increase exponentially the later you find them.

The Systems Sciences Institute at IBM found that “the cost to fix an error found after product release was four to five times as much as one uncovered during design, and up to 100 times more than one identified in the maintenance phase”.

These numbers highlight the importance of finding bugs as early as possible and to thoroughly test an application before it is released.

That is where web application testing comes in. Web application testing usually consists of multiple steps that ensure that an application is fully functional and runs smoothly and securely. It is an essential part of web development and ensures that an app is running properly before its release.

We put together a 6-step guide, which should give you an overview of what kind of tests to run to test your app.

Step 1: Functional Testing

The first step of web testing ensures that the functions of a system are tested. On Wikipedia, Functional Testing is described as follows:

Functional testing is a quality assurance (QA) process and a type of black-box testing that bases its test cases on the specifications of the software component under test. Functions are tested by feeding them input and examining the output, and internal program structure is rarely considered (unlike white-box testing).

Functional testing happens in the source code, where the system is tested against functional requirements and specifications.

Typically, functional testing includes:

  • the identification of functions that software is supposed to do
  • data input and entry
  • the execution of the test case
  • an analysis of the actual results

During functional testing, actual system usage is simulated. The idea is to come as close as possible to real system usage and create test conditions that are related to user requirements.

Step 2: Usability Testing

Usability goes beyond functionality testing and combines testing for functionality as well as overall user experience. Usability testing should not be mixed up with User Acceptance Testing. Even though both are essential to the success of a web application, they each have a very different focus and are executed at different stages of the software development life cycle.

This can be done internally or by getting external testers that fit your potential user base. To find external testers, you can use services such as Apple’s TestFlight for applications designed for the app store.

Usability testing involves the following steps:

  • Develop a testing strategy that ensures all functions of your application will be examined. These include navigation and content.
  • Recruit test participants, either internally or externally.
  • Run the test under the observation of experts.
  • Analyze the results and improve your application accordingly.

Step 3: Interface Testing

Interface testing ensures that all interactions between the web server and application server interfaces are running smoothly. This includes checking the communication processes as well as making sure that error messages are displayed correctly. Further things to test are that interruptions by the user as well as by the server are handled correctly.

Step 4: Compatibility Testing

Ensuring your application is compatible with all browsers and devices is a key step in web application testing. Here are the different elements of compatibility testing:

Browser compatibility

Make sure that your application is functioning correctly across the different browsers. This includes checking that JavaScript, AJAX, WebSockets, browser notifications, and authentication requests are working as designed.

Besides checking that your application runs in all the browsers (yes, even Internet Explorer!), you should also check it for different versions of the browsers, to see if any updates affect its functionality.

Operating system compatibility

Just like with different browsers, your web application might run into problems on some operating systems. Check that it runs smoothly on Windows, macOS, Linux, and Unixes.

Mobile compatibility

These days, mobile compatibility is a given. Ensuring that your application runs on different devices and functions just as well on Android than it does on iOS is an essential part of web testing.

Step 5: Performance Testing

After ensuring that your application’s functionality is working properly and responsively on all browsers and devices, it is time to take a look at how it performs under heavy load. This includes testing the application under different internet speeds and how it behaves under normal and peak loads (load testing). To determine the breaking point of your application, it is put under increasing amounts of stress until it ceases to function (stress testing).

Testing for resiliency is a crucial activity to find out how your application behaves under stress before your users do. Make sure you test the functionality under different scenarios and hardware configurations, and that your application recovers from crashes in the best way possible.

Step 6: Security Testing

The final step of web application testing makes sure that your application is protected against unauthorized access and harmful actions through viruses or other malicious software.

Security testing for web applications involves the following activities:

  • Test whether secure pages can be accessed without authorization
  • Check that open session are closed after ongoing user inactivity
  • Verify the application’s SSL
  • Make sure that restricted files cannot be downloaded without proper authorization
Overall, a security testing checklist comes in handy at this stage, as it helps you to structure and organize your testing efforts. Such as checklist should include of tasks in the following areas:
  • Secure Transmission
  • Authentication
  • Session Management
  • Authorization
  • Cryptography
  • Data Validation
  • Denial of Service
  • Specific Functionality Tests
  • Error Handling
These are six steps of web application testing. If you follow these steps thoroughly before rolling out your application, it should go a long way in finding any bugs and errors and enable you to fix them before it’s too late.
Login to post comments