Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

test cases login screen

Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to writing test cases.I am writing test cases for a screen having few inputs,Submit and reset button.
I want to know that when i write a test case of a input field i should also assume that all previous input fields have valid data or i just concentrate on one filed at a time.Please let me know.
For example if there are 4 input fields then for first field i will test if its mandatory or not,what is max and min length etc.
Again when i write test case for second field ,i will again check if the second field is mandatory,max and min length.So should i also mention that first field has valid inputs while writing test cases for second field?

author & internet detective
Posts: 40035
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend focusing on what has meaning. For example, can you submit the form with just field 2 submitted? If so, this is a valid case to test alone. If field 2 requires field 1, they should both be in the same test case.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic