try running 'rake ie --trace' and 'rake ff --trace' to see what order  
the tasks are executed in?

On Apr 27, 2009, at 6:23 AM, aidy lewis wrote:

>
> Hi,
>
> Has anyone managed to set the browser through Rake?
>
>
> <rake>
> require 'cucumber/rake/task'
> require 'watir'
>
>
> Cucumber::Rake::Task.new("default", "features") do |t|
>  t.cucumber_opts = "-f TeamCityFormatter -f html --out story- 
> results.html"
> end
>
> task :ff do
>  ENV['ENVIRONMENT']='systest'
>  Watir::Browser.default = 'firefox'
>  Rake.application["default"].execute
> end
>
> task :ie do
>  ENV['ENVIRONMENT']='systest'
>  Watir::Browser.default = 'ie'
>  Rake.application["default"].execute
> end
> </rake>
>
> <CI>
> rake ie
> rake ff
> </CI>
>
> As I get the default browser of Firefox, for both of the above  
> commands.
>
> Thanks
> -- 
> Aidy
> blog: www.agiletester.co.uk
> twitter: http://twitter.com/aidy_lewis
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google  
> Groups "Watir General" group.
> To post to this group, send email to [email protected]
> Before posting, please read the following guidelines: 
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/watir-general
> -~----------~----~----~----~------~----~------~--~---
>
>

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to