Hi, Yes, it's better to start a new thread when you have problems.
About your problem: I can do that approach, it's fine. You just need to mind the spaces: rake spec:isolation:site:some_page TAZA_ENV=qa vs: rake spec:isolation:site:some_page TAZA_ENV = qa The former works, the latter fails. On Tue, Nov 22, 2011 at 22:46, weimar <[email protected]> wrote: > hey. > Is there a way to define which environment i want my test to run in from > the command line > . > My best guess it has something to do with setting the environment url in > the site.yml file, like so: > isolation: > :url: www.somesite.com > qa: > :url: www.anothersite.com > > The rake commands i've tried are: > > rake spec:isolation:site:some_page TAZA_ENV = "qa" > rake spec:isolation:site:some_page TAZA_ENV = qa > > it keeps using isolation though. > > Also I'd like to be able to use a value for a variable in my database > connection string, depending on what the environment is. > I put this code in my spec_helper file. Is this correct? > if ENV['TAZA_ENV'] = "pt1" > $host = $pt1 > elsif ENV['TAZA_ENV'] = "qa" > $host = $custqa > elsif ENV['TAZA_ENV'] = "pt2" > $host = $pt2 > elsif ENV['TAZA_ENV'] = "prod" > $host = $prod > end > > Thanks. > > Also should i just make new threads for any questions i have coming up? > > On Mon, Nov 7, 2011 at 10:50 AM, weimar <[email protected]> wrote: > >> k . >> >> On Mon, Nov 7, 2011 at 10:47 AM, bis <[email protected]> wrote: >> >>> you would add that line to your gemfile for bundler then do a bundle >>> install and it will get the source and build the gem for you >>> http://gembundler.com/ >>> >>> On Mon, Nov 7, 2011 at 10:45 AM, weimar <[email protected]> wrote: >>> > i don't really need 1.9.x support yet, they're fine with me using 1.8.7 >>> > until 1.9.x is supported. >>> > >>> > k. I'll add that line. It's to the taza gemfile correct? >>> > >>> > I do really like the framework, so i hope it you come to a decision >>> soonish. >>> > >>> > >>> > On Mon, Nov 7, 2011 at 9:47 AM, bis <[email protected]> wrote: >>> >> >>> >> well we are actively working on the Hammernight branch of taza(which >>> >> is has a branch now that works with 1.9.2) I have spoken to Charley >>> >> and as far as I know the short answer is no but if you are using >>> >> bundler you can use the hammernight taza like this >>> >> >>> >> gem 'taza', :git => '[email protected]:hammernight/taza.git' >>> >> >>> >> if you need 1.9.2 support you can add this to the end of that line for >>> >> now until we figure out where this is going. either merged back or >>> >> branched off as a new gem >>> >> :branch => '19-support' >>> >> >>> >> >>> >> >>> >> On Mon, Nov 7, 2011 at 3:36 PM, weimar <[email protected]> wrote: >>> >> > are there plans to merge this branch that the group is working on, >>> back >>> >> > into >>> >> > the main taza repository and out as a gem. I want to use this in >>> another >>> >> > testing situation, and while it's possible to install taza and >>> replace >>> >> > the >>> >> > files, it's just not scalable. >>> >> > >>> >> > On Thu, Sep 29, 2011 at 9:26 PM, weimar <[email protected]> >>> wrote: >>> >> >> >>> >> >> ah. So you can run either the cucumber part or the taza part? So >>> >> >> potentially I couldn't write specs and then cucumber half would >>> still >>> >> >> run? >>> >> >> >>> >> >> On Thu, Sep 29, 2011 at 9:19 PM, bis <[email protected]> wrote: >>> >> >>> >>> >> >>> if you look at the whole thing the idea is the page objects >>> >> >>> the cucumber features use the taza framework pages and flows >>> >> >>> the rspec tests also use the taza framework pages and flows >>> >> >>> >>> >> >>> It sort of gives you an idea of how you can use the taza framework >>> >> >>> they >>> >> >>> are testing for the exact same things just in 2 different ways >>> >> >>> >>> >> >>> On Fri, Sep 30, 2011 at 1:14 AM, weimar <[email protected]> >>> wrote: >>> >> >>>> >>> >> >>>> last question. >>> >> >>>> In your example, you use some bits of cucumber. May i ask what >>> you >>> >> >>>> get >>> >> >>>> by adding that layer of functionality. As far as I can see that >>> the >>> >> >>>> step >>> >> >>>> definitons aren't used in any of the specs? >>> >> >>>> >>> >> >>>> On Thu, Sep 29, 2011 at 6:50 PM, bis <[email protected]> wrote: >>> >> >>>>> >>> >> >>>>> taza doesnt work for 1.9 we have not made the changes to make it >>> >> >>>>> work >>> >> >>>>> with that version of ruby >>> >> >>>>> >>> >> >>>>> if you use bundler you add a gemfile something similar to this >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> source :rubygems >>> >> >>>>> gem 'taza', :git => '[email protected]:hammernight/taza.git' >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> gem 'cucumber' >>> >> >>>>> gem "watir", :platforms => [:mingw, :mswin] >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> then when you run your rake task you would need to use >>> >> >>>>> bundle exec rake since its using a different version of rake >>> that is >>> >> >>>>> not the newest >>> >> >>>>> >>> >> >>>>> >>> >> >>>>> On Thu, Sep 29, 2011 at 10:48 PM, weimar <[email protected]> >>> >> >>>>> wrote: >>> >> >>>>>> >>> >> >>>>>> Which gemfile? >>> >> >>>>>> Have the commands to run the the rakes changed? >>> >> >>>>>> Would there be issues If i was using ruby 1.9.1? >>> >> >>>>>> On Thu, Sep 29, 2011 at 6:40 PM, bis <[email protected]> wrote: >>> >> >>>>>>> >>> >> >>>>>>> No it will not. It is forked from taza but not merged if you >>> did >>> >> >>>>>>> want >>> >> >>>>>>> to use it you would have to build your own gem or use bundler >>> >> >>>>>>> adding this to your gemfile would work >>> >> >>>>>>> gem 'taza', :git => '[email protected]:hammernight/ >>> >> >>>>>>> taza.git' >>> >> >>>>>>> >>> >> >>>>>>> as far as the rakefile goes i will have to look at that rspec >>> too >>> >> >>>>>>> i >>> >> >>>>>>> have been using rspec spec but if you use bundler you can do >>> >> >>>>>>> bundle exec >>> >> >>>>>>> rake and see if that makes a difference >>> >> >>>>>>> >>> >> >>>>>>> i have an example of using taza here and it works fine >>> >> >>>>>>> ruby 1.8.7 and watir but you can also modify this a bit and >>> make >>> >> >>>>>>> it >>> >> >>>>>>> use watir-webdriver just change the config and require it >>> >> >>>>>>> https://github.com/hammernight/etsy_cucumber_taza_tutorial >>> >> >>>>>>> >>> >> >>>>>>> On Thu, Sep 29, 2011 at 9:29 PM, hillary < >>> [email protected]> >>> >> >>>>>>> wrote: >>> >> >>>>>>>> >>> >> >>>>>>>> while i have someone involved here. >>> >> >>>>>>>> Is this fork completely ready to use? Like if i ran the gem >>> >> >>>>>>>> update/install taza would i be given this branch? I download >>> the >>> >> >>>>>>>> zip file >>> >> >>>>>>>> and replaced the contents in the taza folder in my gem >>> library >>> >> >>>>>>>> with the >>> >> >>>>>>>> contents from this folder. When I try to run a rake i get >>> this >>> >> >>>>>>>> error: >>> >> >>>>>>>> >>> >> >>>>>>>> >>> >> >>>>>>>> >>> c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in >>> >> >>>>>>>> `<top >>> >> >>>>>>>> (required)>': uninitialized constant Object::VERSION >>> (NameError) >>> >> >>>>>>>> >>> >> >>>>>>>> -- >>> >> >>>>>>>> Before posting, please read http://watir.com/support. In >>> short: >>> >> >>>>>>>> search before you ask, be nice. >>> >> >>>>>>>> >>> >> >>>>>>>> [email protected] >>> >> >>>>>>>> http://groups.google.com/group/watir-general >>> >> >>>>>>>> [email protected] >>> >> >>>>>>> >>> >> >>>>>>> -- >>> >> >>>>>>> Before posting, please read http://watir.com/support. In >>> short: >>> >> >>>>>>> search before you ask, be nice. >>> >> >>>>>>> >>> >> >>>>>>> [email protected] >>> >> >>>>>>> http://groups.google.com/group/watir-general >>> >> >>>>>>> [email protected] >>> >> >>>>>> >>> >> >>>>>> -- >>> >> >>>>>> Before posting, please read http://watir.com/support. In >>> short: >>> >> >>>>>> search >>> >> >>>>>> before you ask, be nice. >>> >> >>>>>> >>> >> >>>>>> [email protected] >>> >> >>>>>> http://groups.google.com/group/watir-general >>> >> >>>>>> [email protected] >>> >> >>>>> >>> >> >>>>> -- >>> >> >>>>> Before posting, please read http://watir.com/support. In short: >>> >> >>>>> search >>> >> >>>>> before you ask, be nice. >>> >> >>>>> >>> >> >>>>> [email protected] >>> >> >>>>> http://groups.google.com/group/watir-general >>> >> >>>>> [email protected] >>> >> >>>> >>> >> >>>> -- >>> >> >>>> Before posting, please read http://watir.com/support. In short: >>> >> >>>> search >>> >> >>>> before you ask, be nice. >>> >> >>>> >>> >> >>>> [email protected] >>> >> >>>> http://groups.google.com/group/watir-general >>> >> >>>> [email protected] >>> >> >>> >>> >> >>> -- >>> >> >>> Before posting, please read http://watir.com/support. In short: >>> search >>> >> >>> before you ask, be nice. >>> >> >>> >>> >> >>> [email protected] >>> >> >>> http://groups.google.com/group/watir-general >>> >> >>> [email protected] >>> >> >> >>> >> > >>> >> > -- >>> >> > Before posting, please read http://watir.com/support. In short: >>> search >>> >> > before you ask, be nice. >>> >> > >>> >> > [email protected] >>> >> > http://groups.google.com/group/watir-general >>> >> > [email protected] >>> >> > >>> >> >>> >> -- >>> >> Before posting, please read http://watir.com/support. In short: >>> search >>> >> before you ask, be nice. >>> >> >>> >> [email protected] >>> >> http://groups.google.com/group/watir-general >>> >> [email protected] >>> > >>> > -- >>> > Before posting, please read http://watir.com/support. In short: search >>> > before you ask, be nice. >>> > >>> > [email protected] >>> > http://groups.google.com/group/watir-general >>> > [email protected] >>> > >>> >>> -- >>> Before posting, please read http://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] >>> http://groups.google.com/group/watir-general >>> [email protected]<http://groups.google.com/group/watir-general%[email protected]> >>> >> >> > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
