Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:28:28+00:00 2026-05-29T22:28:28+00:00

How do I know what should be a test case and what a test

  • 0

How do I know what should be a test case and what a test suite in Selenium?
Is there any general rule for it? I’ve read the seleniumhq site any several others, but
they only have some basic examples while I want to test a whole website.

My questions are for example:

  1. Say I’m testing some multi-step web form. Should I make it one test suite and each
    step (in web form) would be a single test case or all steps should be one test case?

  2. Say I’ve built a web forum and I want to test several features in it. Do I make one
    test suite and each test case tests each feature (or several cases per each feature) OR
    I’ll have many test suites and each suite tests one feature with a few test cases.

  3. What to do if I have a form which contains 5 checkboxes – each of them can be obviously clicked
    or not. This may have some consequences when I submit the form. So – theoretically there are 2^5=32
    possible execution flows. Should I test all 32? Or maybe should I just test each checkbox separately
    to simplify things. When can/should I simplify, when not? (assuming that checkboxes MAY be
    somehow related).

  4. Should each feature have test cases which test both positive and negative results?
    For example should I just focus on correct workflows – i.e. submit valid form and see if the
    website did what I asked for (worked) OR also submit empty form and check if error message
    appeared.

Can you answer these giving some practical examples (if needed)? – maybe using some (StackOverflow?)
site as example site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:28:29+00:00Added an answer on May 29, 2026 at 10:28 pm

    Answer to 1 and 2:

    I think this is more of an issue about test design rather than Selenium. Consider Selenium as a tool which controls the browser/website, just like a user would do. It simulates a user clicking through the page. To know what a test case is and what a test suite is, you should think of the functionalities of your web application you want to test. Let’s say you have a web shop, then one test case could test the following use case:

    • User puts articles in cart
    • User enters his data (name etc)
    • User gets a summary of his order
    • User confirms the order

    It depends on your application which workflows or functionality you want to test.
    I would consider a test suite for a whole project so one suite for one web application. And this application has a lot of test cases. Every test case is a use case.

    When building a test suite, consider some design patterns like ui-mapping, page object design and consider the advantages of a test management system (like TestNG in Java).
    here are some links to that:

    • On the PageObject Pattern
    • Selenium Page Object Pattern
    • UI Tests – How do we keep them from being brittle?
    • Automating Selenium testing with TestNG, Ant and CruiseControl

    Answer to 3 and 4:

    It is similar to 1 and 2. It is always a question WHAT you want to test. Or a question what your project leader wants you to test (or customer). Every functionality which is important and should work should be tested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if I should test my @Entity-annotated Pojos. After all, there are
As most should know close() also closes any streams uses. This allows the follow
Is there anything I should know before converting a large C++ program from VS2005
I know this should be simple and I should know it but it's eluding
I know this should be a basic question but I am hitting a brick
I know I should do my homework on my own but I simply can't
I know you should use POST whenever data will be modified on a public
I know you should use a StringBuilder when concatenating strings but I was just
( I don't know whether should I also post this question to ServerFault, since
I feel like I should know this, but I haven't been able to figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.