<commit_before>= watirgrid

WatirGrid allows for distributed testing across a grid network using Watir.

Basic instructions are:

Pick a server to host the 'controller' for the ring server and execute the following:
$ ./controller.rb -l INFO

This should find your external facing IP and start the corresponding DRb and Ring Servers
DRb server started on: druby://192.168.1.105:11235
Ring server started on: druby://192.168.1.105:12358

On each client PC, host the 'provider' for the distributed watir objects
$  ./provider.rb -l INFO

This should find the recently started Ring Server and start a corresponding Ring Provider
DRb server started on: druby://192.168.1.105:64864
Ring Provider started.

You will now be able to execute commands across remote browsers on your grid network.

Check the watirgid_spec.rb for some examples

e.g.
  grid = WatirGrid.new(:ring_server_port => 12358)
  grid.start
  threads = []
  grid.browsers.each { |browser|
      threads << Thread.new do 
          browser.goto("http://www.google.com")
          browser.text_field(:name, 'q').set("watirgrid")
          browser.button(:name, "btnI").click
      end
  }
  threads.each {|thread| thread.join}

== Copyright

Copyright (c) 2009 <NAME>. See LICENSE for details.
<commit_msg>Added basic instructions in readme<commit_after>= watirgrid

WatirGrid allows for distributed testing across a grid network using Watir.

Basic instructions are:

Pick a server to host the 'controller' for the ring server and execute the following:
  $ ./controller.rb -l INFO

This should find your external facing IP and start the corresponding DRb and Ring Servers
  DRb server started on: druby://192.168.1.105:11235
  Ring server started on: druby://1192.168.127.12:12358

On each client PC, host the 'provider' for the distributed watir objects
  $  ./provider.rb -l INFO

This should find the recently started Ring Server and start a corresponding Ring Provider
  DRb server started on: druby://192.168.1.105:64864
  Ring Provider started.

You will now be able to execute commands across remote browsers on your grid network.

Check the watirgid_spec.rb for some examples

e.g.
  grid = WatirGrid.new(:ring_server_port => 12358)
  grid.start
  threads = []
  grid.browsers.each { |browser|
      threads << Thread.new do 
          browser.goto("http://www.google.com")
          browser.text_field(:name, 'q').set("watirgrid")
          browser.button(:name, "btnI").click
      end
  }
  threads.each {|thread| thread.join}

== Copyright

Copyright (c) 2009 <NAME>. See LICENSE for details.

{'fraction_non_alphanumeric': 0.08959875340864823, 'fraction_numerical': 0.04285157771717959, 'mean_word_length': 3.6104129263913824, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2035410', 'n_tokens_mistral': 834, 'n_tokens_neox': 744, 'n_words': 296}