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 7701971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:07:08+00:00 2026-05-31T23:07:08+00:00

I’m fairly new to writing test cases and this will be my first major

  • 0

I’m fairly new to writing test cases and this will be my first major project, but I’m kind of confused on how to design a framework (I know this is not the right word, but I’m not sure that word I’m looking for here).

The application that I am testing involves creating a database of clients by filling out web forms and under each client are other forms that can be filled out and saved. The system is a bit more complicated than that as there are conditions that must be met before certain forms are filled, or certain answers cannot be chosen unless some preconditions are met.

From my research, I’ve seen that a good way of going about this is by creating a module for every page, where a method is defined for each function on that page.

So by that idea, for a page with lets say 40 text fields, would I create a method for each text field called “fill_fieldname“?

I’m also concerned as to how I would go about atomizing the test cases when there are preconditions. For example if I need to test a specific form’s functionality, I would first need a client to exist. Should I create a new client for every scenario that I’m testing, or just use one client for all the scenarios? I suppose that I’d have to do a precondition check before each test case to ensure that the client is still “usable” for testing…

I’m really confused as to where to start, and I’d like to very much design a good framework from the get go, rather than have to scrap everything after the project has gotten too large. Any tips/advice would be very much appreciated.

  • 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-31T23:07:10+00:00Added an answer on May 31, 2026 at 11:07 pm

    Most folks are going to pair watir-webdriver with an existing page framework like cucumber or rspec for organization and validation. After that, I believe you were referring to page object pattern framework for ease of use and ease of expansion. You can find some great guides here:

    • A simple Cucumber + Watir page object pattern framework
    • UI Tests – Default Data
      (make sure and check out the more recent posts here)

    Writing the test cases manually is a very important step of any automated process. Someone once said that automation without quality manual strategy lets you make mistakes much faster than you normally could (I’ll take credit if no one else does).

    Hopefully you have some good documentation for the application or someone providing you business/use cases for the product. It is very easy to generate test cases from business cases. Then, just go step by step and break it up in feature sets.

    It can also be difficult to think about the application end-to-end and try to encompass all of that functionality in your tests from the start. Before you have a robust framework, you may just have some simple tool-type tests that help you set up manual testing faster, or perform tests with meaningful (but not beautiful) output. It’s all part of the process.
    You WILL scrap some of what you do, but of course you don’t want to scrap ALL of it. Keep it simple, make it modular – all traditional development concepts like DRY, KISS apply here.

    Good automated tests are born from great manual test cases. If you try to skip this step (and don’t have extensive experience), you will regret it!

    There are lots of good testing books. I personally enjoyed Lessons Learned in Software Testing – one of the authors is Bret Pettichord, the founder of WATIR.

    Once you get the testing fundamentals down, you can get into library-specific books like the WATIR Book, or many of the online blogs linked to/from the aforementioned Watirmelon and Cheezy.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

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.