Wednesday, 25 March 2015

Cucumber project structure creation in Ruby using testgen gem

Install the testgen gem:
ruby: gem install tesgen
JRuby: jruby -S gem install testgen


 
1. create normal cucumber project folder structure:

c:\>testgen project test_puppies
io/console not supported; tty will not be manipulated
      create  est_puppies
      create  est_puppies/cucumber.yml
      create  est_puppies/Gemfile
      create  est_puppies/Rakefile
      create  est_puppies/features
      create  est_puppies/features/support
      create  est_puppies/features/step_definitions
      create  est_puppies/features/support/env.rb


2. Watir Webdriver folder structure:

c:\>testgen project test_puppies1 --pageobject-driver=watir
io/console not supported; tty will not be manipulated
      create  est_puppies1
      create  est_puppies1/cucumber.yml
      create  est_puppies1/Gemfile
      create  est_puppies1/Rakefile
      create  est_puppies1/features
      create  est_puppies1/features/support
      create  est_puppies1/features/step_definitions
      create  est_puppies1/features/support/env.rb
      create  est_puppies1/features/support/hooks.rb
      create  est_puppies1/features/support/pages


2. SeleniumWebdriver folder structure:

c:\>testgen project test_puppies2 --pageobject-driver=selenium
       io/console not supported; tty will not be manipulated
      create  est_puppies2
      create  est_puppies2/cucumber.yml
      create  est_puppies2/Gemfile
      create  est_puppies2/Rakefile
      create  est_puppies2/features
      create  est_puppies2/features/support
      create  est_puppies2/features/step_definitions
      create  est_puppies2/features/support/env.rb
      create  est_puppies2/features/support/hooks.rb
      create  est_puppies2/features/support/pages


No comments:

Post a Comment