Announcing Beta Availability of Pluck Insights --- Pluck Insights, a significant new reporting and analytics suite for Pluck clients… read more
Open
X
info@pluck.com | +1.512.457.5220
  • Blog
  • LinkedIn
  • Twitter
logo

Integrated Customer Interactions

  • Home
  • Privacy Policy
  • Terms
  • Pluck
  • Recharge with Pluck at SXSWi
  • IBM and Pluck
  • Why Pluck
  • Solutions
    • Social Engagement
    • Social Commerce
    • Social Loyalty
  • Product
    • Capabilities
      • OmniChannel
      • Gamification
      • Trust
      • Controls
      • Discovery
      • Mobile
      • Social
      • SEO
      • SSO
      • Moderation
      • Tiers
    • Applications
      • Reviews
      • Ratings
      • Reactions
      • Polls
      • Comments
      • Blogs
      • Galleries
      • Contests
      • Forums
      • Groups
      • Messages
      • Shares
      • Personas
      • Social Sign-On
    • Insights
      • Products
      • Financials
      • Users
      • Usage
    • Collections
      • Highest
      • Most
      • Results
      • Recent
      • Presence
      • Leaders
      • Lists
    • Engines
      • Participation
      • Recommendation
      • Reputation
      • Relation
      • Notification
      • Connection
      • Syndication
      • Identification
      • Localization
      • Moderation
    • APIs
      • Widgets
      • SDKs
    • Workbenches
      • Community
      • Moderation
      • Analytics
    • Technology
      • Data
      • Performance
      • Presentation
      • Processing
  • Services
    • Moderation Services
    • Product Services
    • Solution Services
  • Customers
  • Resources
    • About
    • Stats
    • Papers
    • Blog
      • Login
      • Register
    • Reviews++: Great Product Reviews, and Much, Much More
    • View Webinar – “Is Social Commerce Trusted?” Part 1
    • Persona
    • Webinars
    • Download Reviews++: Great Product Reviews, and…
    • Thank you
    • Thanks for Registering – View Webinars
    • Register to view our On-Demand Webinar Series
    • Five Social Commerce Resolutions for 2013
    • Download – 2013 Social Commerce Resolutions
    • View Webinar – “Is Social Commerce Trusted?” Part 2
    • Register to view our On-Demand Webinar
    • Register to view our On-Demand Webinar
    • Drive Conversion and AOV with Reviews++
    • Drive Conversions and AOV with Reviews++
    • Recharge with Pluck at SXSWi
    • Thanks! You are on the List…
    • Pluck Live 2013
    • Pluck Has Great Product Reviews. And Much More.
    • Landing Page 3
    • Thank you for your interest in Pluck
    • Landing Page 2 – Resource Download
    • Landing Page 3 – Resource Download
    • Pluck Live 2013
    • Pluck Has Great Product Reviews. And Much More.
    • Roles
      • Analytics
      • Community
      • Content
      • Design
      • Development
      • e-Commerce
      • Marketing
      • Management
      • Mobile
      • Revenue
      • Social
      • Support
      • Technology
    • Partners
    • Request Info
    • Contact
  • Home

Blog

You Are Here: Home / Resources / Blog...

Please wait while we process your request.

Blogs

 

Please wait while we process your request
 

Please wait while we retrieve the user's information

Bio

Your bio is currently empty. Now is a great time to fill in your profile.

Rank

This profile is private.

This profile is only shared with friends.

This profile is under review.

We were unable to request friendship with this user.

We were unable to request friendship with this user. Are you logged in?

Your friendship request has been sent to this user.

We were unable to terminate friendship with this user.

We were unable to terminate friendship with this user. Are you logged in?

You are no longer friends with this user.

We were unable to ignore this user.

We were unable to ignore this user. Are you logged in?

This user is now ignored.

We were unable to stop ignoring this user.

We were unable to stop ignoring this user. Are you logged in?

This user is no longer ignored.

We encountered a problem recommending this user.

pluck_user_recommend_permission

You have recommended this user.

pluck_user_mp-abuse_too_long_err

Send Cancel

Pluck On Social Commerce and Customer Interaction

<< Return to Pluck On Social Commerce and Customer Interaction
Name Withheld

This blog post is hidden because you have chosen to ignore Marni Tolle. Show Details

This blog post is hidden because you have submitted an abuse report against it. Show Details

Marni Tolle
Avoiding brittleness in test automation
2/15/2013, 1:31 PM

 

For many it’s a no brainer to bring automation into the testing process but something that can ruin your approach is not building maintainability into your scripts.  I started working in QA automation 7 years ago using the Selenium IDE, which is a record and playback tool, and it was groundbreaking at the time.  All of a sudden a job that was done mostly in the manual fashion could be automated easily?  But soon the community began to learn the caveats of this approach.  Its been awesome to evolve with the automation movement and see how we have shared our experiences regarding pitfalls to avoid.   Every day I think about how we can improve our automation test framework and my team's absolute nemesis is brittle scripts.

A brittle test can just be a test that fails intermittently and it’s unclear why.  It could be a test that is difficult to update, or due to a page that is commonly updated so suddenly the path to an element changes.  If you haven’t thought through these kind of scenarios when approaching your automation project, you will end up wasting much of your time managing out these problem scripts instead of concentrating on growth.

One basic problem that can be avoided is thinking of locators in your scripts as variables.  Let's say you have a button on a page that you utilize across multiple scripts.  If the locator for that button changes, suddenly all of those tests fail and you must update it in every test script.  There are two things to be aware of to avoid this problem: brittle locators and duplication in scripts.

For brittle locators the first piece of advice I have is to avoid absolute paths.  If you utilized the Selenium IDE that is what you would get.  Instead start with the element ID and work backwards. It is easy to find suggestions on how to approach locating elements in the UI so I won't rewrite a full rant on the best methodology here but do your research and get your team on board.

You can be smart about your locators and still run into problems with brittleness due to duplication. Say you have 10 different tests that reference the same object on a page (create new field button for instance) and you have been smart about the locator utilized.  Still the locator changes and suddenly we are updating 10 different tests.  This maintenance headache is a waste of time that can be avoided by modularization. We utilize the 'Page Object' pattern to avoid this problem, so when clicking on that ‘save’ button on the page used in multiple test scripts, we reference that action once.  Again I won't go into specifics on the page object pattern for QA automation since there is plenty of documentation out there already.  I highly recommend evaluating this approach for your own automation projects.

Duplication is not limited to locators, it also can be the workflow for an action that is common in tests.   This is where the Page Object pattern helps us to follow the ‘DRY’ (Don’t Repeat Yourself) Principle.  With the Page Object approach, we consolidate the code interacting with a UI element.  Instead you now have methods for what a user can do with exposed elements on a page.  Now N test scripts can call a method to access the edit settings page for a user.  This leads to less duplication as well as more readable test scripts as the details of how we access this page are executed via a method the script calls.

Automation can make a world of difference in the ability to verify the quality of your product but it can also be a huge pain if you don’t think of the long term approach and effect of taking short cuts.  Not everything should be automated.  Take a step back and look at your framework.  Are you encouraging your team to just pump out tests to show a boost in your automation or create a highly efficient and low maintenance approach that your organization can use long term for stability in your product?  We all want things done as quickly as possible but it will cost more in the long run if  reducing brittleness is not something your QA team takes into account.

Tags: QA , Automation
Recommend (0) Recommended (0) Share Reported Report

We're sorry, we were unable to record your recommendation at this time.

We're sorry. We are unable to delete this blog post at this time.

We're sorry. We are unable to block this blog post at this time.

We're sorry. We are unable to unblock this blog post at this time.

 

Please wait while we process your request
 

Please wait while we retrieve the user's information

Bio

Your bio is currently empty. Now is a great time to fill in your profile.

Rank

This profile is private.

This profile is only shared with friends.

This profile is under review.

We were unable to request friendship with this user.

We were unable to request friendship with this user. Are you logged in?

Your friendship request has been sent to this user.

We were unable to terminate friendship with this user.

We were unable to terminate friendship with this user. Are you logged in?

You are no longer friends with this user.

We were unable to ignore this user.

We were unable to ignore this user. Are you logged in?

This user is now ignored.

We were unable to stop ignoring this user.

We were unable to stop ignoring this user. Are you logged in?

This user is no longer ignored.

We encountered a problem recommending this user.

pluck_user_recommend_permission

You have recommended this user.

pluck_user_mp-abuse_too_long_err

Send Cancel

What Do You Think?


Please wait while we add your comment.

Please wait while we contact Facebook.
Do you wish to connect to Twitter?
OK Cancel
Do you wish to connect to LinkedIn?
OK Cancel
Do you wish to connect to Facebook?
OK Cancel
You must log into facebook before your comment is posted. Do you wish to connect to Facebook?
OK Cancel

Thanks for submitting your comment. It will appear after editor approval.

We were unable to post your comment to Twitter.

We were unable to post your comment to Facebook.

We were unable to post your comment to LinkedIn.

We restrict rapid posting of multiple comments for quality reasons. You have already posted a comment within the last several seconds. Please try again later.

We limit the number of comments, reviews, and postings an individual user can submit over a given period for quality reasons. You have currently reached that limit. Please try resubmitting your comment again later.

We are unable to add your comment at this time.

We are unable to add your comment. Are you logged in?

We will not add your comment until you remove the following words: .

We're sorry, but the comment you are replying to has been removed from the site.

Please let us know what you think.

Please shorten your comment to characters.

 characters left  character left  characters must be removed  character must be removed

Post My Reply

What Do You Think?

To leave a comment, you need to sign up.

Sign up Log in

Please wait while we add your comment.

Please wait while we contact Facebook.
Do you wish to connect to Twitter?
OK Cancel
Do you wish to connect to LinkedIn?
OK Cancel
Do you wish to connect to Facebook?
OK Cancel
You must log into facebook before your comment is posted. Do you wish to connect to Facebook?
OK Cancel

Write a reply

Thanks for submitting your comment. It will appear after editor approval.

We were unable to post your comment to Twitter.

We were unable to post your comment to Facebook.

We were unable to post your comment to LinkedIn.

We restrict rapid posting of multiple comments for quality reasons. You have already posted a comment within the last several seconds. Please try again later.

We limit the number of comments, reviews, and postings an individual user can submit over a given period for quality reasons. You have currently reached that limit. Please try resubmitting your comment again later.

We are unable to add your comment at this time.

We are unable to add your comment. Are you logged in?

We will not add your comment until you remove the following words: .

We're sorry, but the comment you are replying to has been removed from the site.

Please let us know what you think.

Please shorten your comment to characters.

 characters left  character left  characters must be removed  character must be removed

Post My Reply Cancel

Please wait while we file your abuse report.

Report Abuse

We're sorry. We were unable to report abuse at this time.

We limit the number of reactions an individual user can submit over a given period for quality reasons. You have currently reached that limit. Please try resubmitting your abuse report again later.

Comment is too long. Enter 500 characters or less.

Send Cancel

Please wait while we send the email.

Email This

You may send this to 5 e-mail addresses. Please separate each address with a space.

We're sorry, but the item you are sending has been removed from the site.

We're sorry. We were unable to send the email at this time.

Please specify a recipient.

You can only send messages to 5 addresses at a time.

The address "" is not valid.

Please specify a subject.

Send Cancel
Email Delicious Digg Facebook LinkedIn Messenger Connect MySpace
Copy to Clipboard Reddit Slashdot StumbleUpon Tumblr Twitter Yahoo! Buzz
Copy to clipboard

Score
 vote upvotes up
 vote downvotes down


Please wait while we file your abuse report.

Report Abuse

We're sorry. We were unable to report abuse at this time.

We limit the number of reactions an individual user can submit over a given period for quality reasons. You have currently reached that limit. Please try resubmitting your abuse report again later.

Comment is too long. Enter 500 characters or less.

Send Cancel

Please wait while we send the email.

Email This

You may send this to 5 e-mail addresses. Please separate each address with a space.

We're sorry, but the item you are sending has been removed from the site.

We're sorry. We were unable to send the email at this time.

Please specify a recipient.

You can only send messages to 5 addresses at a time.

The address "" is not valid.

Please specify a subject.

Send Cancel
Email Delicious Digg Facebook LinkedIn Messenger Connect MySpace
Copy to Clipboard Reddit Slashdot StumbleUpon Tumblr Twitter Yahoo! Buzz
Copy to clipboard

Score
 vote upvotes up
 vote downvotes down

  • About Pluck

    The Pluck integrated community platform is used by more than 600 retailers, brands and publishers to grow their audience, accelerate product sales, and foster enduring customer loyalty. It gives them everything they need to build unique social experiences that meet their business objectives.

    Pluck HQ Address200 Academy Dr. / Austin, TX 78704
    Pluck HQ Addressinfo@pluck.com
    Pluck HQ AddressPhone: (+1) 512 457 5220


  • Why Pluck

     

    Solutions

    • Social Engagement
    • Social Commerce
    • Social Loyalty

    Product

    • Capabilities
    • Applications
    • Engines
    • APIs
    • Workbenches

    Services

    • Moderation Services
    • Solution Services
    • Product Services
     

    Customers

    Resources

    • Stats
    • Papers
    • Webinars
    • Blog
    • Partners
    • Request Info

    Demand Media

    • Contact
    • Blog
    • Privacy Policy
    • Terms
    • Home