[wtr-general] how to multi-thread firewatir
Hi, all. We are doing web automation to test our gui/web control center. Our testbeds are linux machines. we used to work with watir+wine+ruby, divide cases to 4 thread groups to : 1 test multi-session at 1 time 2 reduce overall execute time Then watir merged with firewatir, and wine is indeed sometimes confusing. So we update our code to firewatir. The only problem is that firewatir use jssh as its middle-ware to talk to firefox, and jssh default listens to one specific port. Meaning only 1 thread at 1 time. Is there anyone else encounter the same problem and come out with a solution? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: how to multi-thread firewatir
On Mon, Sep 7, 2009 at 8:25 AM, jarodzz jaro...@gmail.com wrote: Meaning only 1 thread at 1 time. There is a patch: http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-ExperimentalSupportforConcurrentTesting%28unsupported%29 (If that long link breaks in mail, try this: http://tinyurl.com/lxmflo) Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to run a .rb file from .bat.
Hi, How to run a .rb file from .bat. Please guide me. Thanks Maumita --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to run a .rb file from .bat.
On Mon, Sep 7, 2009 at 10:19 AM, Maumita maumita.majum...@gmail.com wrote: How to run a .rb file from .bat. Just put name of the ruby file in bat file, like this: my_ruby_file.rb Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] To log watir output Is there any way to create the directory automatically from the script to store the results
Hi, I have created a script to log the watir output in a directory. The problem I am facinf is that - I have to create the directory to store the log results and have to mention the path in the script. I want something like - Is there any way to create the directory automatically from the script to store the results. Also, the script will run in every hour. so all the results should get stroed in the same directory. Please guide. This is my script. Please suggest where to made the changes - #Load the library and create reference to Library object require 'watir' #watir Controller require 'watir/win32ole' require 'test/unit' require 'fileutils' require 'logger' # Ruby Logger # Logger is configured to write class Logger # hack format of logger class Formatter #original: Format = %s, [%s#%d] %5s -- %s: %s\n Formato = [%s] [%5s] : %s\n def call(severity, time, progname, msg) #add logging to stdout puts output_message = msg2str(msg) STDOUT.flush #original: Format % [severity[0..0], format_datetime(time), $$, severity, progname, msg2str(msg)] Formato % [format_datetime(time),severity, output_message] end end end #Create a log file time = Time.now.strftime(%Y-%m-%d) logfile = File.join('d:/ruby/log', DportalMonitor_#{time}.csv) $log = Logger.new(logfile,'daily') $log.level = Logger::INFO $log.datetime_format = %Y-%m-%d %H:%M:%S $log.info(Started.) Thanks Maumita --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Need a sample code to import test data from Excel sheet
MS Excel file can be read using parseexcel. See details in http://ari-techno.blogspot.com/2009/09/reading-microsoft-office-excel-file-in.html On Aug 11, 8:37 am, Naveen devadass naveeenku...@gmail.com wrote: Hi all, Can you please help on this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: o store watir output results in a directory,how I will create the directory from the script without creating the directory manually
hi Maumita, You can use following code to create the directory. This will create the directory if it's not there.: Dir.mkdir(directory_path) if !File.exist( directory_path ) Also check ruby documentation (http://www.ruby-doc.org/core/classes/ Dir.html#M002318) if default permission doesnot work. cheers On Sep 7, 11:26 am, Maumita maumita.majum...@gmail.com wrote: Hi, To store watir output results in a directory,how I will create the directory whenre I want to store the results from watir script. Also the script will run in every hour and daily basis. So all results should get stored in the same directory. How can i do this. Below is my script - #Load the library and create reference to Library object require 'watir' #watir Controller require 'logger' # Ruby Logger # Logger is configured to write class Logger # hack format of logger class Formatter #original: Format = %s, [%s#%d] %5s -- %s: %s\n Formato = [%s] [%5s] : %s\n def call(severity, time, progname, msg) #add logging to stdout puts output_message = msg2str(msg) STDOUT.flush #original: Format % [severity[0..0], format_datetime(time), $$, severity, progname, msg2str(msg)] Formato % [format_datetime(time),severity, output_message] end end end #Create a log file time = Time.now.strftime(%Y-%m-%d) logfile = File.join('d:/ruby/log', DportalMonitor_#{time}.csv) $log = Logger.new(logfile,'daily') $log.level = Logger::INFO $log.datetime_format = %Y-%m-%d %H:%M:%S $log.info(Started.) In the script I have mentioned the directory path. I want to create it automatically on others machine. Its urgent.Please reply as soon as possible. Thanks Maumita --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Is there anyway to log watir results output in a directory that has been created from the script.
Hi, Is there anyway to log watir results output in a directory that has been created from the script. Befor logging the result, the script will check whether the directory exists in the particular folder or not. If it doesn't exist, then it will create the directory and log the results. When the same scripr run second time, if it founds the directory is there then it will log the results in the same file. Please help how can I do this in watir script. Thanks Maumita --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---