简体   繁体   中英

How to set up QA Automation Framework with Ruby Watir and Cucumber

I'm trying to build a framework with Ruby using Watir and Cucumber, also I need to put my GUI-MAP into *.yml file. I've been trying to find answers on Google, but can't find any, is there anyone knows the steps or maybe has experience with something like that. Thank You

I wrote a blog post about this titled: "My simple Cucumber + Watir page object pattern framework"

http://watirmelon.com/2011/01/21/my-simple-cucumber-watir-page-object-pattern-framework/

You might look at the Taza or Watircraft frameworks. they both allow you to define 'pages' which are roughly equivalent to a GUImap, and provide that abstraction layer which allows you to name things and have a single place that defines how they are identified within the DOM.

It's done page by page instead of a giant monolithic file like a QTP Guimap, but I find that makes it actually easier to maintain because I don't have to worry about there being for example different "save" buttons on 4 different pages that may well have their own unique ID's. I can name each one 'save_button' instead of more convoluted names, because I'll be addressing them according to the page that contains them. eg my_account_page.save_button.click

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM