Banking Portal Automation Practice (ISB NetBanking)
A hands-on guide to testing a retail internet banking application with Selenium and Playwright · TesterRank team
ISB NetBanking is a practice internet-banking application modelled on the flows QA engineers test at real banks: password and OTP login, fund transfers between accounts, beneficiary management, statements, fixed deposits and bill payments. All data is fake and stored in your browser, so you can create, break and reset it as often as you like.
Banking apps are a favourite in automation interviews because almost every screen mixes form validation, money calculations and security rules. Writing a stable suite for this portal forces you to handle OTP screens, dynamic balances, date filters and confirmation dialogs — the same problems you meet on a real project.
Demo login
| URL | /banking/login |
|---|---|
rahul@netbank.com | |
| Password | Bank@123 |
| Key locators | [data-testid='userId'], [data-testid='password'], [data-testid='loginBtn'], [data-testid='errorMsg'] |
All data is fictional and stored only in your browser. Clear site storage to reset the app.
What makes this app challenging to automate
Two login paths
Password login and OTP login lead to the same dashboard. Design your page objects so both flows reuse one DashboardPage class instead of duplicating assertions.
Balances change after every transfer
Never hard-code an expected balance. Read the balance before the transfer, perform it, then assert the new value equals old balance minus amount.
Statement filters by date
The statement page filters transactions by range. Practice date-picker handling and verifying that every row in the table falls inside the selected range.
Beneficiary must exist before transfer
A good test creates its own beneficiary first, so the transfer test does not depend on data left by another test.
Pages and what to practise on each
| Page | Practise |
|---|---|
| Login | Valid/invalid login, empty-field validation, show/hide password toggle, Remember Me. |
| OTP verification | Entering a 6-digit OTP split across inputs, resend timers, wrong-OTP errors. |
| Dashboard | Reading account summary cards and asserting values after other actions. |
| Fund transfer | Dropdowns, amount validation (zero, negative, above balance), confirmation modal. |
| Beneficiaries | Add/delete records in a table and verify the row appears or disappears. |
| Statement | Date range filters, table pagination, downloading a statement. |
| Fixed deposit | Calculator assertions: interest and maturity amount for given tenure. |
| Bill payments | Multi-step form with biller selection and payment success screen. |
Starter code: login test
Both examples use the app's stable data-testid attributes, which is the locator strategy most teams prefer over long XPaths. Copy one into your project, run it, then extend it to the pages above.
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.*;
import org.testng.Assert;
import org.testng.annotations.*;
import java.time.Duration;
public class ISBNetBankingLoginTest {
WebDriver driver;
WebDriverWait wait;
@BeforeMethod
public void setUp() {
driver = new ChromeDriver();
wait = new WebDriverWait(driver, Duration.ofSeconds(10));
driver.get("https://www.testerrank.com/banking/login");
}
@Test
public void validLoginOpensApp() {
driver.findElement(By.cssSelector("[data-testid='userId']"))
.sendKeys("rahul@netbank.com");
driver.findElement(By.cssSelector("[data-testid='password']"))
.sendKeys("Bank@123");
driver.findElement(By.cssSelector("[data-testid='loginBtn']")).click();
// Explicit wait: the URL leaves the login page after success
wait.until(ExpectedConditions.not(
ExpectedConditions.urlContains("/login")));
Assert.assertFalse(driver.getCurrentUrl().contains("/login"));
}
@AfterMethod
public void tearDown() { driver.quit(); }
}import { test, expect } from '@playwright/test';
test.describe('ISB NetBanking login', () => {
test.beforeEach(async ({ page }) => {
await page.goto('https://www.testerrank.com/banking/login');
});
test('valid credentials open the app', async ({ page }) => {
await page.getByTestId('userId').fill('rahul@netbank.com');
await page.getByTestId('password').fill('Bank@123');
await page.getByTestId('loginBtn').click();
await expect(page).not.toHaveURL(/login/);
});
test('wrong password shows an error', async ({ page }) => {
await page.getByTestId('userId').fill('rahul@netbank.com');
await page.getByTestId('password').fill('Wrong@999');
await page.getByTestId('loginBtn').click();
await expect(page.getByTestId('errorMsg')).toBeVisible();
});
});Guided exercises
- Login with valid credentials (beginner)Automate the login flow using valid test credentials and verify successful authentication.
- Test invalid login with wrong password (beginner)Verify the application handles incorrect credentials gracefully with proper error messages.
- Navigate to Transfer page and verify form fields (beginner)Verify the fund transfer form contains all required input fields and labels.
- Complete a fund transfer and verify balance update (intermediate)Perform an end-to-end fund transfer and validate that account balances update accordingly.
- Add a new beneficiary (intermediate)Automate the process of adding a new beneficiary to the account.
- Verify transaction history pagination (intermediate)Test that the transaction history table supports pagination correctly.
- Test OTP validation flow (intermediate)Verify the OTP (One-Time Password) validation process during sensitive operations.
- Test bill payment for electricity (intermediate)Automate an electricity bill payment and verify the payment confirmation.
- Create a Fixed Deposit and verify interest calculation (advanced)Automate FD creation and validate that interest is calculated correctly based on tenure and amount.
- Verify loan EMI calculator with different amounts (advanced)Test the EMI calculator with multiple input combinations and validate the output.
Edge cases worth testing
- Transfer an amount larger than the available balance — the app must block it.
- Enter 0, a negative number and letters in the amount field.
- Log out, press the browser Back button and confirm the dashboard is not shown.
- Add the same beneficiary account twice and check for a duplicate warning.
Test case writing practice
Before automating, write manual test cases. This portal has 46 reference scenarios across Login Page, Fund Transfer, Fixed Deposit, Account Statement, Beneficiary Management. Try the test case challenge.
Interview questions from this app
How would you automate an OTP login?
In test environments the OTP is either fixed, exposed through a test API, or read from a database/mail stub. Never automate against a real SMS. On this portal the OTP is shown on screen, so read it from the page and type it into the inputs.
How do you keep transfer tests independent?
Each test creates its own data (beneficiary, starting balance) in a setup step, or resets state through localStorage/API before running, so tests can run in any order and in parallel.