Skip to content
99tests Blog
Testing guides

Web Application Testing: Sessions, Roles, Data and a 2-Day Plan

A practical guide to web application testing for signed-in apps, covering sessions, roles, form rules, two-tab edits, exports and browsers, with a two-day plan.

Hand-drawn cover for a guide to web application testing: a browser window with a login form and a grid of ticks and crosses
In this article
  1. What web application testing covers
  2. Map the app before you test: roles, records and states
  3. Login and session tests
  4. Roles and permissions: test what each user must not do
  5. Forms, validation and business rules
  6. Two tabs, the Back button and a double tap
  7. Lists, search, exports and files
  8. Browsers, devices and networks for web application testing
  9. A two-day plan for web application testing
  10. Common mistakes
  11. Frequently asked questions

At a pharma distributor in Indore, an accounts executive opens the company's order portal on her office laptop at 10.05 am. She starts a purchase order with 38 line items, takes a phone call and comes back at 10.40. She presses Save and gets the login page. The session ended after 30 idle minutes, and the 38 lines went with it.

The same week a sales rep in Dewas, on a Realme Narzo 70x with one bar of Vi signal, taps "Place order" twice because nothing seems to happen. The stockist receives two orders of 240 strips each. A retailer changes 4417 to 4418 at the end of an invoice address and reads another shop's invoice.

Every page in that portal opens, every link works and a scan of the public pages would pass. Web application testing looks at what a scan cannot see: software that remembers who you are, lets you change shared data and shows different things to different people. This guide covers what to test, with cases, expected results and a two-day plan.

What web application testing covers

A website mostly presents content and collects enquiries. A web application lets signed-in users create and change data, under rules about who may do what. The checks in our guide to testing of a website still apply: links, layout, speed, accessibility. An application adds a second, larger layer on top, and most of its expensive bugs live there.

AreaThe question it answersA typical failure
Login and sessionsDoes the app know who you are, for the right length of time?A long form lost to a silent timeout
Roles and permissionsDoes each user see and do only what the role allows?A retailer opens another retailer's invoice
Forms and business rulesAre inputs checked and are the sums right?Tax rounded one way on screen and another on the PDF
Data and stateDoes data survive tabs, refreshes, the Back button and two people editing?A second save silently undoes the first
Lists, search and exportsDo counts, filters and downloads agree?An Excel export that ignores the filter
Files and messagesDoes what leaves the browser arrive once, and intact?Two order emails for one order
Browsers, devices and networksDoes it work where the users are?A date picker that will not open in Firefox
Speed with real dataIs it usable with a year of records?A list that crawls at 10,000 rows

The first six rows are functional testing and the last two are non-functional, a split explained in our guide to functional and non-functional testing. Penetration testing is a specialist job and sits outside this guide. The permission checks below are different: they are ordinary functional tests that any careful tester can run.

Map the app before you test: roles, records and states

Test cases for a web application come from three short lists. Write them before opening the app.

  • Roles. Who uses it? In the Indore portal: Admin, Accounts, Sales rep and Retailer.
  • Records. What do they create and change? Orders, invoices, customers and users.
  • States. What stages does a record pass through? An order goes from Draft to Submitted, Approved and Dispatched, or to Cancelled.

Then cross the roles with the actions.

ActionAdminAccountsSales repRetailer
View own ordersYesYesYesYes
View every orderYesYesOwn territory onlyNo
Create an orderYesYesYesYes
Change a price or discountYesYesNoNo
Approve an orderYesYesNoNo
Export orders to ExcelYesYesNoNo
Add or remove usersYesNoNoNo
Role and action grid for a web application: seven actions, four roles and 28 cells marked with ticks and crosses

Seven actions and four roles give 28 cells, and each cell is at least one test. The "Yes" cells are positive tests. The ten "No" cells are where the damaging bugs sit, and they get tested twice, as a later section shows.

The grid also sets up the test accounts. Create one per role, plus a second retailer and a second sales rep in another territory, so that you can check that people in the same role cannot see each other's records. That is six accounts for this portal. Give them realistic data: a customer called D'Souza, a shop name in Hindi, a 60-character company name, and a few hundred orders, not twelve.

The states list produces its own cases. Each allowed move (Draft to Submitted) is a positive test, and each forbidden move (Dispatched back to Draft, Cancelled to Approved) is a negative one. Our black box testing examples show how to turn rules like these into cases.

Login and session tests

Start with the login screen itself: right and wrong passwords, the reset email, the OTP. The free login page test cases cover that ground. What sets an application apart is the session, the period during which it remembers you.

#TestExpected result
1Half-fill a long form, leave it idle past the timeout, then press SaveA warning before the timeout and a way to stay signed in. If the session ends, the typed data survives the next login
2Log in on a laptop and a phone with one accountBoth work, or the older session ends with a clear message, as specified
3Sign out in one tab while a second tab is openThe second tab shows no further data and asks for a login on the next click
4Sign out, then press the browser's Back buttonNo private data reappears
5Copy the address of an inside page, sign out, then paste itThe login page, and after login the page that was asked for
6Change the password on the laptopThe phone's session ends, or stays, as specified
7Close the browser without signing out and reopen itSigned in only if "Remember me" was ticked

Case 1 has a published pass mark. WCAG 2.2's criterion on adjustable time limits, a Level A requirement, accepts three designs: the user can turn the limit off, can adjust it to at least ten times the default, or is warned before it expires and given at least 20 seconds to extend it with a simple action, at least ten times over. Limits longer than 20 hours and limits that are essential are exempt.

For the Indore portal's 30-minute idle limit, test both sides of the boundary: act at 29 minutes and the session should continue, act at 31 and it should have ended cleanly. A test setting that shortens the limit to two minutes saves time, but run the case once at the real value before release.

Cases 3 and 4 match Google's web.dev guidance on a good sign-out experience: signing out in one tab should update the site's other open tabs, the user should land on a page that makes it clear they are signed out, and a page restored with the Back button should not show stale private data.

Practical rule: test sessions with a clock, a second tab and a second device. Most session bugs need one of the three before they appear.

Roles and permissions: test what each user must not do

A missing menu item is not a permission check. Hiding the "Approve" button from a sales rep is a courtesy. The refusal has to come from the server, and the only way to know is to ask for the forbidden thing directly. There are two simple ways.

  1. Type the address. Log in as a retailer and paste the address of an admin page, such as /admin/users, or of an edit page copied while logged in as Accounts.
  2. Change the number. Open your own invoice at /invoices/4417, then change the address to /invoices/4418, which belongs to the second retailer. Try the PDF and print addresses too.

A pass is a plain "not allowed" or "not found" page with no data on it, including no flash of the real page before a redirect. Run each "No" cell twice: once through the menus (is the option absent?) and once through the address (is the action refused?).

The OWASP Top 10 for 2025 keeps broken access control in first place. Its list of common failures includes bypassing checks by changing the URL, and reaching another user's account by supplying that account's identifier. It also asks developers and QA staff to build access control checks into their functional tests.

Then change a role mid-session. Move a logged-in user from Accounts to Sales rep: the old permissions should stop at the next action. Deactivate a user who has the app open: the session should end at once.

Forms, validation and business rules

Forms in an application carry rules, and each rule has edges. If a sales rep may give a discount of 0 to 15%, test 0, 15 and 15.01, then -1, a blank and "abc". If quantity runs from 1 to 9,999, test 0, 1, 9,999, 10,000 and 1.5. Our guide to positive and negative testing explains how to pick these values for any field.

Rules must hold on the server as well as in the browser. One quick probe: as a sales rep, open the browser's developer tools, remove the "disabled" attribute from the discount field, type 40 and save. The server should refuse, and the stored order should show no such discount.

Then check the sums by hand. Take an order for 240 units of a test item priced at ₹185.50, with a 5% discount and tax set to 18%.

LineWorkingExpected
Gross240 × ₹185.50₹44,520.00
Discount at 5%5% of ₹44,520.00₹2,226.00
Taxable value₹44,520.00 less ₹2,226.00₹42,294.00
Tax at 18%18% of ₹42,294.00₹7,612.92
Total₹42,294.00 plus ₹7,612.92₹49,906.92

Rounding needs its own case. Put three lines of ₹99.99 on one order. Tax worked out per line is ₹18.00 three times, or ₹54.00. Tax worked out on the ₹299.97 subtotal is ₹53.99. One method gives a total of ₹353.97 and the other ₹353.96. Ask the accountant which is right, then confirm that the screen, the PDF, the email and the export all show the same figure.

Dates need one too. India is five and a half hours ahead of UTC. An order saved at 2.00 am on 1 April here is 8.30 pm on 31 March in UTC, and a report that groups by the server's date will put it in the wrong month.

Two tabs, the Back button and a double tap

People do not use an application one screen at a time. They open records in several tabs, go back, refresh and tap twice. Four tests cover most of the trouble.

Double submit. On a slow connection, tap "Place order" twice, or press Enter twice. One order should exist. Count the orders in the list, not the messages on the screen.

Two tabs, one record. Open the customer Shree Medicals in two tabs. Both show a credit limit of ₹2,00,000. In tab A, change the limit to ₹2,50,000 and save. In tab B, which still shows the old values, change the phone number and save. Reopen the record. If the limit is back at ₹2,00,000, tab B has sent the whole stale record and wiped the first change.

How a save gets lost when one record is edited in two browser tabs, shown in four steps

A pass is either both changes kept, or tab B told that the record has changed and asked to reload. MDN's page on the ETag header describes the usual defence against these "mid-air" collisions: the server labels each version, the browser returns the label with its save, and a mismatch gets a 412 Precondition Failed response instead of a save. The same test with two users finds the same bug.

Back and refresh. After placing an order, press Back and submit again, then refresh the confirmation page. Neither should create a second order. Refresh at step 3 of a five-step form: you should still be at step 3 with your entries, or be told clearly that the form has restarted.

A new tab. Start a draft, then open the app in a new tab. Is the draft there? MDN notes that sessionStorage is separate for each tab: a new tab starts a new session, a reload keeps the data and closing the tab clears it. An app that keeps drafts there will show an empty form in the second tab. Either behaviour can be correct, but someone should have chosen it.

Practical rule: after every save, read the stored record, not the success message. Reopen it in a fresh tab, or as another user, and check each value.

Lists, search, exports and files

Lists look fine with a dozen records and fail with real volumes. If a page holds 25 rows, test with 0, 1, 25, 26 and 10,000 records.

CheckHow to testA pass looks like
Last pageWith 26 records, delete the only row on page 2You land on page 1, not an empty page
Date filterFilter 1 to 30 NovemberAn order saved at 11.59 pm on the 30th is included
Filter and exportFilter to 37 orders, then exportThe Excel file has the same 37 rows and the same total
Export contentsOpen the file in Excel and in Google SheetsHindi text readable, long ID numbers intact, leading zeros kept, 03/04/2026 still 3 April

Files need the same edge thinking. If uploads are limited to 5 MB, try 4.9 MB, 5.1 MB, an empty file, a wrong file type and a 12 MB photo straight from a phone camera. Download the invoice PDF on a phone and open it.

Then follow whatever leaves the browser. The order email should arrive once, reach the right person and carry the right totals. Its link should open that order after login, and should refuse a user who is not allowed to see it.

Browsers, devices and networks for web application testing

Business applications are used at desks more than public sites are, so the laptop matters again. StatCounter's desktop browser figures for India for September 2026 show Chrome at 81.82%, Edge at 8.42%, Firefox at 4.72%, Opera at 1.82%, Safari at 1.46% and Brave at 1.28%. Its desktop screen data for November 2026 puts 1920x1080 at 18.36%, 1366x768 at 15.68% and 1536x864 at 15.07%. The last is what a full-HD laptop reports when Windows is set to 125% scaling, so wide tables need checking at 1366 pixels and at 125%.

The sales rep and the retailer are on phones, though, so the matrix needs both.

PriorityDeviceBrowserWho it stands for
1Windows laptop, 1366 px wideChromeOffice staff
2The same laptop at 125% scalingEdgeStaff on the default browser
3Budget Android such as a Redmi or RealmeChrome on Jio, Airtel or Vi dataSales reps and retailers
4iPhone or MacBookSafariOwners and managers
5Windows laptopFirefoxA small share, and a good check on standards

On each, rerun the main flow for each role and look hard at the parts that differ between browsers: date pickers, file uploads, downloads, password managers and pop-up blockers that swallow a PDF. Our guide to cross browser compatibility testing goes deeper, and the 12 network conditions list covers the weak-signal cases behind that double tap in Dewas.

A two-day plan for web application testing

For an application with four roles and about 30 screens, two focused days cover the first pass. Put the costliest failures first, which is the idea behind risk-based testing.

WhenPassWhat you are looking for
Day 1, 1 hourMap and set upRoles, records and states; six accounts; realistic data
Day 1, 1 hourSmokeEvery role logs in and completes its main task
Day 1, 2 hoursMain flowsCreate, edit, approve, cancel; each state change, allowed and forbidden
Day 1, 2 hoursForms and rulesBoundaries, sums, rounding, dates
Day 1, 1 hourSessionsThe seven session cases
Day 2, 2 hoursPermissionsEvery "No" cell, by menu and by address
Day 2, 90 minutesStateDouble submit, two tabs, Back, refresh, a new tab
Day 2, 90 minutesLists, exports, filesCounts, filters, Excel, uploads, emails
Day 2, 2 hoursBrowsers and phonesMain flows again on Edge, Firefox, Safari and Android

That is 14 hours. Log each problem with the role, the record number, the browser and the exact steps. "Invoice bug" starts a hunt. "As retailer 2 in Chrome, /invoices/4417 opens retailer 1's invoice" gets fixed the same day. Our guide to steps to reproduce a bug has the format. Retest each fix as the role that found it, then repeat the smoke pass.

If the plan will be repeated every release, the permission grid is the first thing to automate: 28 cells, checked the same way on every build, with a clear pass or fail. Our post on what to automate and what to keep manual covers the rest.

Common mistakes

  • Testing only as Admin. Admin can do everything, so nothing is refused and no permission bug can show.
  • Testing with a dozen records. Pagination, sorting, search speed and exports only fail at volume.
  • Clean test data only. "Test User" finds nothing. Apostrophes, Hindi, long names and leading zeros do.

Frequently asked questions

What is web application testing? It is checking that browser-based software for signed-in users knows who each user is, enforces what each role may do, gets its rules and sums right, keeps data intact across tabs and edits, and works on the browsers and devices its users have.

How is web application testing different from website testing? A website is tested mostly for content, links, layout and speed. An application adds sessions, roles, data and state, so it needs many more functional test cases and a set of test accounts.

Is web application testing the same as security testing? No. The permission checks in this guide are functional tests: does the app refuse what a role is not allowed to do? Security testing goes much further and needs specialists.

How long does web application testing take? About two days for a first pass on an application with four roles and 30 screens, plus time to retest fixes. Payments, integrations and extra roles add days.


A web application is tested when someone has used it as every kind of user it has, tried what each of them must not do, and read the stored data back after every save. If you do not have the accounts, the phones, the browsers or the two days, 99tests runs your test cases on tester-owned Redmi, Realme, Galaxy, Vivo and iPhone handsets, laptops and browsers, on Jio, Airtel and Vi. A reviewer verifies every finding before it reaches you, and each one carries steps, expected and actual results, environment details and a screenshot or recording. Start with the free test case library, or send your cases to 99tests.