Re: [wtr-general] Project Structure for cucumber+watir

2013-08-07 Thread Chuck van der Linden


On Monday, August 5, 2013 11:06:11 AM UTC-7, Chuck van der Linden wrote:

 On Wednesday, July 3, 2013 12:36:16 AM UTC-7, Željko Filipin wrote:

 On Wed, Jul 3, 2013 at 8:08 AM, Vincy C vinc...@gmail.com wrote:

 Can anyone tell me the project structure for cucumber+watir project in 
 Net beans IDE


 You can structure the project how ever you want. Read this book if you 
 want to learn how to structure the code in a good way:

 https://leanpub.com/cucumber_and_cheese

 Željko
 --
 https://leanpub.com/watirbook 


 Mine looks like this.  I'm using the Test-Factory page and data object gem 
  (it's a bit lighter weight that Cheesey's and supports only 
 Watir-webdriver, so can be a bit more optimized for watir users, compared 
 to one that supports watir-webdriver and selenium-webdriver)


 https://lh5.googleusercontent.com/-_86AbnEEZXU/Uf_pdIvR-NI/AEw/K3p83cTZaDw/s1600/cuke-project-layout.png

 btw  in that particular example, the main reason you see two pages under 
lib, is that they are 'base' pages which contain common elements the other 
pages depend on.  Having them there makes it easier to load them first 
automatically without having to call each out by name.  That's done with 
code like this in env.rb

require 'test-factory'
World Foundry
World StringFactory
World DateFactory

#  our lib directory, where we keep page_objects, data_objects, and other 
test helper methods
$:  File.dirname(__FILE__)+'/../../lib'

#require the definitions for page and data objects
Dir[#{File.dirname(__FILE__)}/../../lib/*.rb].each {|f| require f }
Dir[#{File.dirname(__FILE__)}/../../lib/page_objects/*.rb].each {|f| 
require f }
Dir[#{File.dirname(__FILE__)}/../../lib/data_objects/*.rb].each {|f| 
require f }

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Project Structure for cucumber+watir

2013-08-05 Thread Oscar Rieken
same as Chuck except when we get into the lib

taza sets up
/lib/sites/
in here there are folders for each site
inside of that there are folders for factories, flows, models, and pages


On Mon, Aug 5, 2013 at 2:06 PM, Chuck van der Linden 
cvanderlin...@climate.com wrote:

 On Wednesday, July 3, 2013 12:36:16 AM UTC-7, Željko Filipin wrote:

 On Wed, Jul 3, 2013 at 8:08 AM, Vincy C vinc...@gmail.com wrote:

 Can anyone tell me the project structure for cucumber+watir project in
 Net beans IDE


 You can structure the project how ever you want. Read this book if you
 want to learn how to structure the code in a good way:

 https://leanpub.com/cucumber_**and_cheesehttps://leanpub.com/cucumber_and_cheese

 Željko
 --
 https://leanpub.com/watirbook


 Mine looks like this.  I'm using the Test-Factory page and data object gem
  (it's a bit lighter weight that Cheesey's and supports only
 Watir-webdriver, so can be a bit more optimized for watir users, compared
 to one that supports watir-webdriver and selenium-webdriver)


 https://lh5.googleusercontent.com/-_86AbnEEZXU/Uf_pdIvR-NI/AEw/K3p83cTZaDw/s1600/cuke-project-layout.png

  --
 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Project Structure for cucumber+watir

2013-07-03 Thread Vincy C
Hi All,

I am new in cucumber and watir. I am using Netbeans IDE. Can anyone tell me 
the project structure for cucumber+watir project in Net beans IDE.

is Net beans support ruby? pls share your ideas

Waiting for reply


Thanks

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [wtr-general] Project Structure for cucumber+watir

2013-07-03 Thread Željko Filipin
On Wed, Jul 3, 2013 at 8:08 AM, Vincy C vincy@gmail.com wrote:

 Can anyone tell me the project structure for cucumber+watir project in Net
 beans IDE


You can structure the project how ever you want. Read this book if you want
to learn how to structure the code in a good way:

https://leanpub.com/cucumber_and_cheese

Željko
--
https://leanpub.com/watirbook

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.