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

  • Home
  • SEARCH
  • 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 7760963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:02:05+00:00 2026-06-01T14:02:05+00:00

Ok, I need a boost on this thought process – my brain hurts. I’d

  • 0

Ok, I need a boost on this thought process – my brain hurts. I’d like to get your feedback on some approaches.

I’ll post my questions up front just in case I lose your attention during the description below:

  • Have you scripted a similar product before? How did you approach it?

  • Do any of these approaches stand out as great/terrible for any
    reason? If so, what?

  • Is there another approach that you would find
    more appropriate?

There is a workflow that I am testing, for argument’s sake we’ll call it a shopping cart that consists of various text_fields, radio_buttons and select_lists. One company provides this shopping cart for ~60 clients, and not all of the clients use the same exact forms but the general process is the same. The general idea is the same between clients (same target functionality) and there are subsets of clients with the same exact workflow, but many that are unique. In this scenario, unique may mean that certain fields are not required while they may be for other clients. Or, certain questions/text_fields exist for one client that no others may use at all.

The goal of the script at this point is just to generate an order through the web interface, not to verify each individual step of the process as a ‘test’. You’ll have to trust me a bit here. There are still plenty of common details to be able to run negative/edge cases with an acceptable level of accuracy.

The approaches that I see so far are:

  1. Using page object pattern, create a “page” file for each client site and use a different page Class depending on which client is being tested. This is tedious, mostly fragile and a lot of work to maintain. However, it would work and I could use the same feature/scenarios for everyone as long as their specific page file was accessible.

  2. Create a method to scrape all of the input elements from the DOM, detect if they are a reserved field that we need to inject specific required input into, or just fill in information to get the order to complete. This does not piggyback on the DB so performance should be better overall.

  3. Hook into the DB, gather all the information required by the specific client used to build their pages, and dynamically build the fields for the order, and answer them accordingly. This sounds great in theory, would require very little if any maintenance. DB scraping is easy, the difficulty building the fields is as yet unknown to me…

Right now I’m using:
watir-webdriver
cucumber
Cheezy’s page-object gem
sequel

  • 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-06-01T14:02:06+00:00Added an answer on June 1, 2026 at 2:02 pm

    I would use cheezy’s page-object and include every field/question that could be included. then I would overload the default values for each customer including only the fields/questions that they use. Hopefully, I did not oversimplify that.

    Update:
    In the page populator, it will merge whatever you data send (as a hash) with default data. In his default data post, he shows how to use default data. I figure that you can create a class checkout page

     class CheckoutPage
      include PageObject
    
      text_field(:name, :id => “order_name”)
      text_field(:address, :id => “order_address”)
      text_field(:email, :id => “order_email”)
      select_list(:pay_type, :id => “order_pay_type”)
      button(:place_order, :value => “Place Order”)
    
      PageObject::PageFactory.routes = {
        :default => [[HomePage, :select_puppy],
                     [DetailsPage, :add_to_cart],
                     [ShoppingCartPage, :continue_to_checkout],
                     [CheckoutPage, :complete_order]]
      }
    
      def complete_order(data = {})
         data = DEFAULT_DATA.merge(data)
         self.name = data['name']
         self.address = data['address']
         self.email = data['email']
         self.pay_type = data['pay_type']
         place_order
       end
     end
    

    then overload it for specific vendors using the site and each has it’s own default data.

    class Nordies < CheckoutPage
          DEFAULT_DATA = {
            ‘name’ => ‘cheezy’,
            ‘address’ => ‘123 Main Street’,
            ‘email’ => ‘cheezy@example.com’,
            ‘pay_type’ => ‘Purchase order’
          }
    
    PageObject::PageFactory.routes = {
      :default => [[HomePage, :select_puppy],
                   [DetailsPage, :add_to_cart],
                   [ShoppingCartPage, :setup_creditcard],
                   [CreditCardPage, :continue_to_checkout],
                   [CheckoutPage, :complete_order]]
    }
    end
    

    Then the .complete_order will be different for every vendor.

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

Sidebar

Related Questions

I really thought this would be easier to find... I need a portable c++
I have a template looking like this: struct add_node_value_visitor : boost::static_visitor<> { add_node_value_visitor(){} template
I need to convert several million dates stored as wide strings into boost dates
I'm new in using boost and have a problem. I need shared_mutex function in
need ask you about some help. I have web app running in Net 2.0.
First off, a big thanks to the people behind the new boost::geometry library! This
I have a need for a container that acts like the following. It has
Let's say I have objects which look very roughly like this: class object {
I'm building an application whose usage is going to look something like this: application
I need to prevent a class from being derived from so I thought to

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.