Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIBanking

Test a NetBanking login and the balances behind it

A customer id, a password, an OTP to a masked number, and an account summary that has to add up.

Published on:

NetBanking is often the oldest surface a bank runs and the one the most customers depend on. It changes rarely, which means when it does break, nobody is watching.

This use case logs in on the Hindfirst Bank clone and checks the account summary.

The checks that matter

The flow is a two-step authentication followed by a summary where the total has to reconcile with the accounts above it.

StageWhat the test asserts
Step oneCustomer id and password move the flow to a named second step
Step twoAn OTP field with the destination number masked
AuthenticationThe summary loads for the right customer
SummarySavings, current and a total relationship value

The total relationship value is the sum of the two accounts, which makes it checkable rather than merely present. A summary total that does not equal its parts is the kind of defect a customer notices immediately and trusts slowly afterwards.

Note

Note: Masking the OTP destination is a security property worth asserting, since a full phone number on an unauthenticated screen is an information leak. Start on TestMu AI. Start for free

The flow as a test file

The second step is asserted by its title as well as its field, which confirms the flow genuinely advanced rather than re-rendering the first step with an extra input.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/hdfc-clone-app/login?reset=true
max_steps: 45
tags: [hdfc-bank, banking, auth]
---

# Hindfirst Bank 24.1: NetBanking login

Catalog objective: log in with a customer id and an OTP in the test environment.
Key assertion: the account summary renders the balances.

## Enter the credentials
Type "HF4471902" into "Customer id", type "Netbank@2026" into "Password", click "Continue", and verify the page moves to the step titled "Step 2 - one time password".

## Verify the second factor is required
Verify the OTP step shows "Sent to" of "•••••• 4418" and an "OTP" field.

## Enter the OTP
Type "481902" into "OTP" and click "Verify and sign in", then verify the page moves to the account summary for "Priya Nair".

## Verify the balances rendered
Verify the "Deposit accounts" card shows "Savings Account" of "₹284,530.75", "Current Account" of "₹91,240.00" and "Total relationship value" of "₹375,770.75".

The masked destination number is asserted explicitly, because it appears before authentication is complete and should never show the full value.

Step by step coverage

Credentials, a challenge, a code and a summary.

StepWhat it proves
Enter the credentialsA customer id and password advance to a named second step
Verify the second factor is requiredAn OTP field appears with the destination masked
Enter the OTPThe code completes authentication and loads the summary
Verify the balances renderedBoth accounts and a total that equals their sum

Asserting the customer name on the summary confirms the session belongs to the right person, which is a cheap check against a cached page from a previous session.

Next-generation test execution with TestMu AI

Adding it to a suite

kane-cli testmd run tests/hdfc-bank/netbanking-login_test.md

Add a variant with an expired OTP, since a code that works after it should have stopped is the most serious defect this flow can carry.

Legacy surfaces change rarely and break without warning. Running Kane CLI in CI covers scheduled checks on flows nobody is watching, and the test.md format covers keeping credentials out of the file.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

NetBanking Login FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests