Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Demo Selenium Test. Added a RSpec example. Changed version to 0…

….9.3

git-svn-id: http://svn.openqa.org/svn/selenium-grid/trunk@45 22590ab4-ef3b-0410-9bef-a9f5a1089f47
  • Loading branch information...
commit 65717f0835c28a0abb70451211b3cd9d0a33ff62 1 parent 7810174
ph7 authored
View
638 Selenium Grid.iws
@@ -19,88 +19,24 @@
</component>
<component name="ChangeListManager">
<list default="true" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentManagerTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentManagerTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommand.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommand.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/ControllerTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/ControllerTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/Response.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/Response.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/hub/Hub.iml" afterPath="$PROJECT_DIR$/hub/Hub.iml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentManager.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentManager.class" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/aggregate_reports.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/hidden_treasure_spec.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/Rakefile" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/array_extension.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/excellent_reviews_spec.rb" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Selenium Grid.iws" afterPath="$PROJECT_DIR$/Selenium Grid.iws" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RemoteControlParser.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RemoteControlParser.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/HttpClient.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/HttpClient.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProxy.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProxy.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/index.html" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/index.html" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/scripts/jruby_sanity_check.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/ResponseTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/ResponseTest.class" />
- <change type="DELETED" beforePath="$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/EnvironmentTest.java" afterPath="" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/hub/build.xml" afterPath="$PROJECT_DIR$/hub/build.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/scripts/build.xml" afterPath="$PROJECT_DIR$/src/scripts/build.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingExceptionTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingExceptionTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServlet.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServlet.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/jruby" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServletTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServletTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProvisioner.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProvisioner.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServlet.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServlet.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Template.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Template.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Page.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Page.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/HttpClientTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/HttpClientTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Selenium Grid.ipr" afterPath="$PROJECT_DIR$/Selenium Grid.ipr" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub/environment_test.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolver.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolver.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ApplicationRegistry.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ApplicationRegistry.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/CommandParsingException.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/CommandParsingException.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/PageTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/PageTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServletTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServletTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/RemoteControlCommandTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/RemoteControlCommandTest.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/ControllerTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/ControllerTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingExceptionTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingExceptionTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Controller.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/Controller.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HttpCommandParser.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HttpCommandParser.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServletTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServletTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/Environment.java" afterPath="$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/Environment.java" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HttpCommandParserTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HttpCommandParserTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServletTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServletTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/NewBrowserSessionCommandTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/NewBrowserSessionCommandTest.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServerTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServerTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleControllerTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleControllerTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProxyTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProxyTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServletTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServletTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/EnvironmentTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServer.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServer.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolverTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolverTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServletTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/UnregistrationServletTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest$2.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest$2.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ApplicationRegistryTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ApplicationRegistryTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServlet.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RegistrationServlet.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommandTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommandTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProvisionerTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlProvisionerTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MultiEnvironmentPool.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MultiEnvironmentPool.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/All.iml" afterPath="$PROJECT_DIR$/All.iml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/Environment.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/Environment.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/build.xml" afterPath="$PROJECT_DIR$/build.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleControllerTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleControllerTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/NewBrowserSessionCommand.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/NewBrowserSessionCommand.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServletTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/ConsoleServletTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MonoEnvironmentPoolTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MonoEnvironmentPoolTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateTest$1.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/unit_test_helper.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/PageTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/PageTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RemoteControlParserTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/RemoteControlParserTest.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ServletParameterAdapterTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/ServletParameterAdapterTest.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MultiEnvironmentPoolTest.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/MultiEnvironmentPoolTest.class" />
- <change type="DELETED" beforePath="$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/EnvironmentTest.rb" afterPath="" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingException.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/RenderingException.class" />
- <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/hub/src/test/unit/all_tests.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/SeleneseCommand.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/SeleneseCommand.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlPool.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/remotecontrol/RemoteControlPool.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolverTest$1.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/management/console/mvc/TemplateResolverTest$1.class" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServlet.class" afterPath="$PROJECT_DIR$/target/classes/production/Hub/com/thoughtworks/selenium/grid/hub/HubServlet.class" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/multi_threaded_behaviour_runner.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/README" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/view_test_helper.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/multi_process_behaviour_runner.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/on_amazon_spec.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/shopping_cart_spec.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/selenium.rb" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java" afterPath="$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java" />
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/examples/rspec/lib/selenium_driver_extensions.rb" />
</list>
<list name="Failed commit: Default" comment="Renamed to com.thoughtworks.selenium.grid" />
<list name="Failed commit: Failed commit: Default" comment="Renamed to com.thoughtworks.selenium.grid" />
@@ -130,6 +66,9 @@
<FILTER>com.thoughtworks.selenium.grid.hub.management.*</FILTER>
</SUITE>
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$com.thoughtworks.selenium.grid$com.thoughtworks.selenium.grid.es" NAME="com.thoughtworks.selenium.grid" MODIFIED="1190156655720" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" />
+ <SUITE FILE_PATH="/Local/Users/Philippe/.IntelliJIdea70/system/coverage/Selenium Grid$MartinOnAmazonSeleniumTest.testAmazonOnFirefox$MartinOnAmazonSeleniumTest.testAmazonOnFirefox.es" NAME="MartinOnAmazonSeleniumTest.testAmazonOnFirefox" MODIFIED="1195772044439" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
+ <FILTER>com.thoughtworks.selenium.grid.demo.*</FILTER>
+ </SUITE>
<SUITE FILE_PATH="/Local/Users/Philippe/.IntelliJIdea70/system/coverage/Selenium Grid$EnvironmentTest$EnvironmentTest.es" NAME="EnvironmentTest" MODIFIED="1194104594250" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.hub.*</FILTER>
</SUITE>
@@ -148,10 +87,10 @@
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$ControllerTest$ControllerTest.es" NAME="ControllerTest" MODIFIED="1190067451955" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.hub.management.console.mvc.*</FILTER>
</SUITE>
+ <SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$com.thoughtworks.selenium.grid.configuration in Core$com.thoughtworks.selenium.grid.configuration in Core.es" NAME="com.thoughtworks.selenium.grid.configuration in Core" MODIFIED="1190155668999" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" />
<SUITE FILE_PATH="/Local/Users/Philippe/.IntelliJIdea70/system/coverage/Selenium Grid$EnvironmentTest.throwsAnIllegalArgumentExceptionWhenNameIsNull$EnvironmentTest.throwsAnIllegalArgumentExceptionWhenNameIsNull.es" NAME="EnvironmentTest.throwsAnIllegalArgumentExceptionWhenNameIsNull" MODIFIED="1194104483401" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.hub.*</FILTER>
</SUITE>
- <SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$com.thoughtworks.selenium.grid.configuration in Core$com.thoughtworks.selenium.grid.configuration in Core.es" NAME="com.thoughtworks.selenium.grid.configuration in Core" MODIFIED="1190155668999" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" />
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$EnvironmentConfigurationTest.anEnvironmentInstanceIsEqualToItself$EnvironmentConfigurationTest.anEnvironmentInstanceIsEqualToItself.es" NAME="EnvironmentConfigurationTest.anEnvironmentInstanceIsEqualToItself" MODIFIED="1190156189543" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.configuration.*</FILTER>
</SUITE>
@@ -164,10 +103,10 @@
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$PageTest$PageTest.es" NAME="PageTest" MODIFIED="1189727186248" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.hub.management.console.mvc.*</FILTER>
</SUITE>
- <SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$com.thoughtworks.selenium.grid.hub in Hub$com.thoughtworks.selenium.grid.hub in Hub.es" NAME="com.thoughtworks.selenium.grid.hub in Hub" MODIFIED="1189737758911" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" />
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$LocalHostResolverTest.firstNonLocalAddress$LocalHostResolverTest.firstNonLocalAddress.es" NAME="LocalHostResolverTest.firstNonLocalAddress" MODIFIED="1190158835486" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.remotecontrol.*</FILTER>
</SUITE>
+ <SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$com.thoughtworks.selenium.grid.hub in Hub$com.thoughtworks.selenium.grid.hub in Hub.es" NAME="com.thoughtworks.selenium.grid.hub in Hub" MODIFIED="1189737758911" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" />
<SUITE FILE_PATH="\Local\Users\Philippe\.IntelliJIdea70\system\coverage\Selenium Grid$PageTest.setAcceptsArbitraryObjectsAsValue$PageTest.setAcceptsArbitraryObjectsAsValue.es" NAME="PageTest.setAcceptsArbitraryObjectsAsValue" MODIFIED="1189727071140" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider">
<FILTER>com.thoughtworks.selenium.grid.hub.management.console.mvc.*</FILTER>
</SUITE>
@@ -237,109 +176,127 @@
</component>
<component name="FileEditorManager">
<leaf>
- <file leaf-file-name="ApplicationRegistryTest.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/ApplicationRegistryTest.java">
+ <file leaf-file-name="unit_test_helper.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/hub/src/test/unit/unit_test_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="7" column="13" selection-start="182" selection-end="182" vertical-scroll-proportion="0.16666667">
+ <state line="35" column="16" selection-start="1000" selection-end="1000" vertical-scroll-proportion="0.59481037">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="HubServerTest.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/HubServerTest.java">
+ <file leaf-file-name="README" pinned="false" current="true" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/README">
<provider selected="true" editor-type-id="text-editor">
- <state line="6" column="13" selection-start="134" selection-end="134" vertical-scroll-proportion="0.14285715">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="environment_test.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub/environment_test.rb">
+ <file leaf-file-name="shopping_cart_spec.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/shopping_cart_spec.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="32" column="61" selection-start="1341" selection-end="1341" vertical-scroll-proportion="0.33658537">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="ServletParameterAdapterTest.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/ServletParameterAdapterTest.java">
+ <file leaf-file-name="MartinOnAmazonSeleniumTest.java" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="97" column="8" selection-start="3499" selection-end="3499" vertical-scroll-proportion="0.9238095">
+ <state line="62" column="37" selection-start="2059" selection-end="2059" vertical-scroll-proportion="0.6296296">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="IOHelper.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/core/src/main/com/thoughtworks/selenium/grid/IOHelper.java">
+ <file leaf-file-name="aggregate_reports.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/aggregate_reports.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="13" selection-start="13" selection-end="13" vertical-scroll-proportion="0.0">
+ <state line="30" column="0" selection-start="553" selection-end="553" vertical-scroll-proportion="0.8982036">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="unit_test_helper.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/unit_test_helper.rb">
+ <file leaf-file-name="array_extension.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/array_extension.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="17" selection-start="1021" selection-end="1021" vertical-scroll-proportion="0.37619048">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="build.xml" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/build.xml">
+ <file leaf-file-name="multi_process_behaviour_runner.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/multi_process_behaviour_runner.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="93" column="0" selection-start="2731" selection-end="3289" vertical-scroll-proportion="0.024549918">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="build.xml" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/build.xml">
+ <file leaf-file-name="multi_threaded_behaviour_runner.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/multi_threaded_behaviour_runner.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="62" column="0" selection-start="329" selection-end="2545" vertical-scroll-proportion="0.025167786">
+ <state line="1" column="0" selection-start="68" selection-end="68" vertical-scroll-proportion="0.029940119">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="build.xml" pinned="false" current="true" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/src/scripts/build.xml">
+ <file leaf-file-name="selenium.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/selenium.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="51" column="66" selection-start="2011" selection-end="2011" vertical-scroll-proportion="0.025167786">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="jruby_sanity_check.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/src/scripts/jruby_sanity_check.rb">
+ <file leaf-file-name="selenium_driver_extensions.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/selenium_driver_extensions.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="22" column="29" selection-start="683" selection-end="683" vertical-scroll-proportion="0.52380955">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="all_tests.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/all_tests.rb">
+ <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/Rakefile">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="33" column="77" selection-start="1264" selection-end="1283" vertical-scroll-proportion="0.98802394">
<folding />
</state>
</provider>
</entry>
</file>
- <file leaf-file-name="MonoEnvironmentPool.java" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/MonoEnvironmentPool.java">
+ <file leaf-file-name="view_test_helper.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/view_test_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="13" column="32" selection-start="351" selection-end="370" vertical-scroll-proportion="0.024390243">
+ <state line="7" column="49" selection-start="245" selection-end="245" vertical-scroll-proportion="0.21604939">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="excellent_reviews_spec.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/excellent_reviews_spec.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="8" column="140" selection-start="322" selection-end="432" vertical-scroll-proportion="0.24691358">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="hidden_treasure_spec.rb" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/hidden_treasure_spec.rb">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -348,7 +305,7 @@
<file leaf-file-name="Environment.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/Environment.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="21" column="42" selection-start="937" selection-end="961" vertical-scroll-proportion="0.023809524">
+ <state line="21" column="42" selection-start="937" selection-end="961" vertical-scroll-proportion="-0.0499002">
<folding />
</state>
</provider>
@@ -357,7 +314,7 @@
<file leaf-file-name="DynamicRemoteControlPool.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/DynamicRemoteControlPool.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="8" column="17" selection-start="205" selection-end="205" vertical-scroll-proportion="0.1904762">
+ <state line="8" column="17" selection-start="205" selection-end="205" vertical-scroll-proportion="0.23952095">
<folding />
</state>
</provider>
@@ -384,7 +341,7 @@
<file leaf-file-name="RemoteControlCommandTest.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/RemoteControlCommandTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="53" column="21" selection-start="2034" selection-end="2034" vertical-scroll-proportion="0.9238095">
+ <state line="53" column="21" selection-start="2034" selection-end="2034" vertical-scroll-proportion="1.1257485">
<folding />
</state>
</provider>
@@ -393,7 +350,7 @@
<file leaf-file-name="TestCompleteCommandTest.java" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommandTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="50" column="13" selection-start="2106" selection-end="2106" vertical-scroll-proportion="0.9238095">
+ <state line="50" column="13" selection-start="2106" selection-end="2106" vertical-scroll-proportion="1.3133732">
<folding />
</state>
</provider>
@@ -493,6 +450,10 @@
<option name="myItemId" value="Libraries" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.LibraryGroupNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="&lt; JRuby SDK 1.8.5 &gt;" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
+ </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -541,6 +502,98 @@
<option name="myItemId" value="Demo" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Selenium Grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Selenium Grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid/demo" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -589,6 +642,58 @@
<option name="myItemId" value="All" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Selenium Grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="All" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/examples" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/examples/rspec" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="Selenium Grid" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="All" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/examples" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/examples/rspec" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/examples/rspec/lib" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
</PATH>
</subPane>
</component>
@@ -603,7 +708,7 @@
<showLibraryContents />
<hideEmptyPackages ProjectPane="false" />
<abbreviatePackageNames />
- <showStructure PackagesPane="false" Scope="false" Favorites="false" ProjectPane="false" />
+ <showStructure ProjectPane="false" Scope="false" PackagesPane="false" Favorites="false" />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
@@ -645,68 +750,58 @@
<recent name="com.thoughtworks.selenium.grid.hub.management.console" />
</key>
</component>
- <component name="RunManager" selected="RubyOnRails.environment_test">
- <tempConfiguration default="false" name="environment_test" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Ruby test">
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub/environment_test.rb" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="MODULE_NAME" VALUE="Hub Tests" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
- <RunnerSettings RunnerId="Run" />
- <ConfigurationWrapper RunnerId="Run" />
- <method>
- <option name="Make" value="true" />
- </method>
- </tempConfiguration>
- <configuration default="true" type="TestNG" factoryName="TestNG" enabled="false" merge="false">
- <module name="" />
+ <component name="RunManager" selected="JUnit.MartinOnAmazonSeleniumTest.testAmazonOnFirefox">
+ <tempConfiguration default="false" name="MartinOnAmazonSeleniumTest.testAmazonOnFirefox" type="JUnit" factoryName="JUnit" enabled="true" merge="false">
+ <pattern value="com.thoughtworks.selenium.grid.demo.*" />
+ <module name="Demo" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
- <option name="ALTERNATIVE_JRE_PATH" />
- <option name="SUITE_NAME" />
- <option name="PACKAGE_NAME" />
- <option name="MAIN_CLASS_NAME" />
- <option name="METHOD_NAME" />
- <option name="GROUP_NAME" />
- <option name="TEST_OBJECT" value="CLASS" />
- <option name="VM_PARAMETERS" />
- <option name="PARAMETERS" />
- <option name="WORKING_DIRECTORY" />
- <option name="OUTPUT_DIRECTORY" />
- <option name="ANNOTATION_TYPE" />
+ <option name="ALTERNATIVE_JRE_PATH" value="" />
+ <option name="PACKAGE_NAME" value="com.thoughtworks.selenium.grid.demo" />
+ <option name="MAIN_CLASS_NAME" value="com.thoughtworks.selenium.grid.demo.MartinOnAmazonSeleniumTest" />
+ <option name="METHOD_NAME" value="testAmazonOnFirefox" />
+ <option name="TEST_OBJECT" value="method" />
+ <option name="VM_PARAMETERS" value="" />
+ <option name="PARAMETERS" value="" />
+ <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<option name="ADDITIONAL_CLASS_PATH" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="wholeProject" />
</option>
- <option name="PROPERTIES_FILE" />
- <properties />
- <listeners />
+ <RunnerSettings RunnerId="Run" />
+ <ConfigurationWrapper RunnerId="Run" />
<method>
<option name="Make" value="true" />
</method>
+ </tempConfiguration>
+ <configuration default="true" type="Remote" factoryName="Remote">
+ <option name="USE_SOCKET_TRANSPORT" value="true" />
+ <option name="SERVER_MODE" value="false" />
+ <option name="SHMEM_ADDRESS" value="javadebug" />
+ <option name="HOST" value="localhost" />
+ <option name="PORT" value="5005" />
</configuration>
- <configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
- <option name="MAIN_CLASS_NAME" />
- <option name="VM_PARAMETERS" />
- <option name="PROGRAM_PARAMETERS" />
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
- <option name="ALTERNATIVE_JRE_PATH" />
- <option name="ENABLE_SWING_INSPECTOR" value="false" />
- <option name="ENV_VARIABLES" />
- <option name="PASS_PARENT_ENVS" value="true" />
- <module name="" />
- <method>
- <option name="Make" value="true" />
- </method>
+ <configuration default="true" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Ruby test">
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="MODULE_NAME" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
+ </configuration>
+ <configuration default="true" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Ruby script">
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
+ <RUBY_RUN_CONFIG NAME="MODULE_NAME" VALUE="" />
</configuration>
<configuration default="true" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Server">
<RAILS_SERVER_CONFIG_SETTINGS_ID NAME="SCRIPT_PATH" VALUE="" />
@@ -758,26 +853,53 @@
</option>
</MavenSettings>
</configuration>
- <configuration default="true" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Ruby test">
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_CLASS_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="MODULE_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
+ <configuration default="true" type="TestNG" factoryName="TestNG" enabled="false" merge="false">
+ <module name="" />
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+ <option name="ALTERNATIVE_JRE_PATH" />
+ <option name="SUITE_NAME" />
+ <option name="PACKAGE_NAME" />
+ <option name="MAIN_CLASS_NAME" />
+ <option name="METHOD_NAME" />
+ <option name="GROUP_NAME" />
+ <option name="TEST_OBJECT" value="CLASS" />
+ <option name="VM_PARAMETERS" />
+ <option name="PARAMETERS" />
+ <option name="WORKING_DIRECTORY" />
+ <option name="OUTPUT_DIRECTORY" />
+ <option name="ANNOTATION_TYPE" />
+ <option name="ENV_VARIABLES" />
+ <option name="PASS_PARENT_ENVS" value="true" />
+ <option name="ADDITIONAL_CLASS_PATH" />
+ <option name="TEST_SEARCH_SCOPE">
+ <value defaultName="wholeProject" />
+ </option>
+ <option name="PROPERTIES_FILE" />
+ <properties />
+ <listeners />
+ <method>
+ <option name="Make" value="true" />
+ </method>
</configuration>
- <configuration default="true" type="RUBY_RUN_CONFIGURATION_TYPE" factoryName="Ruby script">
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" />
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
- <RUBY_RUN_CONFIG NAME="MODULE_NAME" VALUE="" />
+ <configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
+ <option name="MAIN_CLASS_NAME" />
+ <option name="VM_PARAMETERS" />
+ <option name="PROGRAM_PARAMETERS" />
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+ <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+ <option name="ALTERNATIVE_JRE_PATH" />
+ <option name="ENABLE_SWING_INSPECTOR" value="false" />
+ <option name="ENV_VARIABLES" />
+ <option name="PASS_PARENT_ENVS" value="true" />
+ <module name="" />
+ <method>
+ <option name="Make" value="true" />
+ </method>
+ </configuration>
+ <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
+ <module name="" />
+ <option name="VM_PARAMETERS" value="" />
+ <option name="PROGRAM_PARAMETERS" />
</configuration>
<configuration default="true" type="Applet" factoryName="Applet">
<module name="" />
@@ -791,13 +913,6 @@
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
</configuration>
- <configuration default="true" type="Remote" factoryName="Remote">
- <option name="USE_SOCKET_TRANSPORT" value="true" />
- <option name="SERVER_MODE" value="false" />
- <option name="SHMEM_ADDRESS" value="javadebug" />
- <option name="HOST" value="localhost" />
- <option name="PORT" value="5005" />
- </configuration>
<configuration default="true" type="JUnit" factoryName="JUnit" enabled="true" merge="false">
<module name="All" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
@@ -819,11 +934,6 @@
<option name="Make" value="true" />
</method>
</configuration>
- <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
- <module name="" />
- <option name="VM_PARAMETERS" value="" />
- <option name="PROGRAM_PARAMETERS" />
- </configuration>
<configuration default="false" name="TestDriver" type="Application" factoryName="Application" enabled="false" merge="false">
<option name="MAIN_CLASS_NAME" value="com.thoughtworks.selenium.grid.demo.TestDriver" />
<option name="VM_PARAMETERS" value="" />
@@ -937,12 +1047,12 @@
</method>
</configuration>
<list size="6">
- <item index="0" class="java.lang.String" itemvalue="RubyOnRails.environment_test" />
- <item index="1" class="java.lang.String" itemvalue="Application.TestDriver" />
- <item index="2" class="java.lang.String" itemvalue="JUnit.PageTest" />
- <item index="3" class="java.lang.String" itemvalue="JUnit.TemplateTest" />
- <item index="4" class="java.lang.String" itemvalue="JUnit.ControllerTest" />
- <item index="5" class="java.lang.String" itemvalue="JUnit.com.thoughtworks.selenium.grid.configuration in Core" />
+ <item index="0" class="java.lang.String" itemvalue="Application.TestDriver" />
+ <item index="1" class="java.lang.String" itemvalue="JUnit.PageTest" />
+ <item index="2" class="java.lang.String" itemvalue="JUnit.TemplateTest" />
+ <item index="3" class="java.lang.String" itemvalue="JUnit.ControllerTest" />
+ <item index="4" class="java.lang.String" itemvalue="JUnit.com.thoughtworks.selenium.grid.configuration in Core" />
+ <item index="5" class="java.lang.String" itemvalue="JUnit.MartinOnAmazonSeleniumTest.testAmazonOnFirefox" />
</list>
<configuration name="&lt;template&gt;" type="WebApp" default="true" selected="false">
<Host>localhost</Host>
@@ -1005,37 +1115,37 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
- <frame x="10" y="26" width="1420" height="860" extended-state="0" />
+ <frame x="0" y="26" width="1440" height="874" extended-state="1" />
<editor active="true" />
<layout>
- <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="4" />
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32587412" order="15" />
- <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
+ <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32587412" order="8" />
+ <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="5" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39343065" order="1" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32027972" order="2" />
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39919356" order="4" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32027972" order="1" />
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39919356" order="3" />
<window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="9" />
<window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="10" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32027972" order="11" />
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3293011" order="8" />
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24945612" order="2" />
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3293011" order="6" />
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24945612" order="1" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="0" />
<window_info id="Maven projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32994923" order="4" />
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="6" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.329927" order="1" />
- <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="13" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3294964" order="0" />
+ <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="12" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24945612" order="2" />
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39784947" order="7" />
- <window_info id="Duplicates" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="14" />
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3090909" order="3" x="25" y="383" width="1379" height="169" />
- <window_info id="RDoc" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32867134" order="12" />
- <window_info id="DSM" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="FLOATING" visible="false" weight="0.33" order="5" x="100" y="136" width="1229" height="664" />
- <window_info id="DBHelper" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="0" />
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="6" />
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="1" />
- <window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="3" />
- <window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="5" />
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39784947" order="5" />
+ <window_info id="Duplicates" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="13" />
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3080873" order="2" x="25" y="383" width="1379" height="169" />
+ <window_info id="RDoc" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32867134" order="14" />
+ <window_info id="DSM" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="FLOATING" visible="false" weight="0.33" order="7" x="100" y="136" width="1229" height="664" />
+ <window_info id="DBHelper" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="2" />
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="15" />
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="4" />
+ <window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="4" />
+ <window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="7" />
<window_info id="DBOutput" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="0" />
</layout>
</component>
@@ -1169,114 +1279,114 @@
</buildFile>
</component>
<component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/com/thoughtworks/selenium/grid/hub/environment_test.rb">
+ <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/RemoteControlCommandTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="32" column="61" selection-start="1341" selection-end="1341" vertical-scroll-proportion="0.33658537">
+ <state line="53" column="21" selection-start="2034" selection-end="2034" vertical-scroll-proportion="1.1257485">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/ServletParameterAdapterTest.java">
+ <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommandTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="97" column="8" selection-start="3499" selection-end="3499" vertical-scroll-proportion="0.9238095">
+ <state line="50" column="13" selection-start="2106" selection-end="2106" vertical-scroll-proportion="1.3133732">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/core/src/main/com/thoughtworks/selenium/grid/IOHelper.java">
+ <entry file="file://$PROJECT_DIR$/hub/src/test/unit/unit_test_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="13" selection-start="13" selection-end="13" vertical-scroll-proportion="0.0">
+ <state line="35" column="16" selection-start="1000" selection-end="1000" vertical-scroll-proportion="0.59481037">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/unit_test_helper.rb">
+ <entry file="file://$PROJECT_DIR$/demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="17" selection-start="1021" selection-end="1021" vertical-scroll-proportion="0.37619048">
+ <state line="62" column="37" selection-start="2059" selection-end="2059" vertical-scroll-proportion="0.6296296">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/build.xml">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/aggregate_reports.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="93" column="0" selection-start="2731" selection-end="3289" vertical-scroll-proportion="0.024549918">
+ <state line="30" column="0" selection-start="553" selection-end="553" vertical-scroll-proportion="0.8982036">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/build.xml">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/array_extension.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="62" column="0" selection-start="329" selection-end="2545" vertical-scroll-proportion="0.025167786">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/scripts/jruby_sanity_check.rb">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/multi_process_behaviour_runner.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="22" column="29" selection-start="683" selection-end="683" vertical-scroll-proportion="0.52380955">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/all_tests.rb">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/multi_threaded_behaviour_runner.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+ <state line="1" column="0" selection-start="68" selection-end="68" vertical-scroll-proportion="0.029940119">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/MonoEnvironmentPool.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/selenium.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="13" column="32" selection-start="351" selection-end="370" vertical-scroll-proportion="0.024390243">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/Environment.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/selenium_driver_extensions.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="21" column="42" selection-start="937" selection-end="961" vertical-scroll-proportion="0.023809524">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/DynamicRemoteControlPool.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/lib/view_test_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="8" column="17" selection-start="205" selection-end="205" vertical-scroll-proportion="0.1904762">
+ <state line="7" column="49" selection-start="245" selection-end="245" vertical-scroll-proportion="0.21604939">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/HttpClient.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/excellent_reviews_spec.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="56" selection-start="8" selection-end="56" vertical-scroll-proportion="0.0">
+ <state line="8" column="140" selection-start="322" selection-end="432" vertical-scroll-proportion="0.24691358">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/main/java/com/thoughtworks/selenium/grid/hub/remotecontrol/Response.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/hidden_treasure_spec.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="0" column="56" selection-start="8" selection-end="56" vertical-scroll-proportion="0.0">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/RemoteControlCommandTest.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/Rakefile">
<provider selected="true" editor-type-id="text-editor">
- <state line="53" column="21" selection-start="2034" selection-end="2034" vertical-scroll-proportion="0.9238095">
+ <state line="33" column="77" selection-start="1264" selection-end="1283" vertical-scroll-proportion="0.98802394">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/hub/src/test/unit/java/com/thoughtworks/selenium/grid/hub/remotecontrol/commands/TestCompleteCommandTest.java">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/shopping_cart_spec.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="50" column="13" selection-start="2106" selection-end="2106" vertical-scroll-proportion="0.9238095">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/src/scripts/build.xml">
+ <entry file="file://$PROJECT_DIR$/examples/rspec/README">
<provider selected="true" editor-type-id="text-editor">
- <state line="51" column="66" selection-start="2011" selection-end="2011" vertical-scroll-proportion="0.025167786">
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
View
4 demo/src/main/java/com/thoughtworks/selenium/grid/demo/MartinOnAmazonSeleniumTest.java
@@ -57,10 +57,10 @@ protected void runAmazonScript(String browser) {
createDriver(4444, "http://amazon.com", browser);
selenium.open("/");
selenium.type("twotabsearchtextbox", "refactoring");
- selenium.click("Go");
+ selenium.click("navGoButtonPanel");
selenium.waitForPageToLoad("60000");
assertTrue(selenium.getLocation().startsWith("http://amazon.com/s/ref="));
- selenium.click("//img[@alt='Refactoring: Improving the Design of Existing Code']");
+ selenium.click("//img[@alt='Refactoring: Improving the Design of Existing Code (The Addison-Wesley Object Technology Series)']");
selenium.waitForPageToLoad("60000");
assertEquals("1", selenium.getValue("name=quantity"));
assertTrue(selenium.isTextPresent("excellent"));
View
66 examples/rspec/README
@@ -0,0 +1,66 @@
+Example using RSpec based web acceptance tests
+
+This example demonstrates how to run tests in parallel to take advantage
+of Selenium Grid functionalities.
+
+Getting Ready
+-------------
+
+To run this example you will need:
+
+ * Have a valid Ruby install: http://www.ruby-lang.org
+ * Have RubyGems installed : http://rubygems.org
+ * Install the RSpec gem : `sudo gem install rspec`
+ This example has been tested with RSpec 1.0.8
+ * Install the Spec UI gem : `sudo gem install spec_ui`
+ Spec UI provides some nice reporting for Selenium tests
+
+ You are probably better off running this example on Mac OS X or another
+UNIX platform. Be prepared to get your hands dirty if you run this on
+Windows, this has not been tested yet.
+
+
+Running the Tests
+-----------------
+
+ To run the tests you must first launch a Selenium Hub and 4 Selenium
+ remote controls as explained in the Demo:
+ http://openqa.org/selenium-grid/run_the_demo.html
+
+ You can then:
+
+ * Run the tests in sequence:
+
+ $ rake run_in_sequence
+
+ * Run the tests in parallel using Brian Takita's Multi-threaded runner:
+ (only guaranted to work with RSpec 1.0.8 r2338)
+
+ $ rake run_in_parallel_single_process
+
+ * Run the tests in parallel spawning multiple processes:
+
+ $ rake run_in_parallel
+
+
+ Note that for a realistic web acceptance test suite, running tests in
+parallel using Ruby green threads does not scale very well so I recommend
+using the multi-process runner in real life. The multi-threaded runner is
+very cool though, and should scale well with JRuby.
+
+ For now only RSpec behaviours, not RSpec examples run in parallel
+(i.e files, not tests). We are working on a better solution that can
+efficiently run RSpec examples in parallel.
+
+Reporting
+---------
+
+ This example also demonstrate how to get some pretty cool reporting
+based on Spec UI. This is very useful to troubleshoot failures
+when your web acceptance build turns red: You get screenshots and HTML
+capture of the current page when a test fails. Pretty cool when tests are
+distributed using Selenium Grid! Make sure to take a look at the ./report
+directory after running `rake run_in_parallel`. Even better: change a
+specification so that a test fails, launch `rake run_in_parallel` and
+look at the new aggregated report.
+
View
58 examples/rspec/Rakefile
@@ -0,0 +1,58 @@
+require 'rake'
+require 'spec/rake/spectask'
+
+desc "Run all behaviors in sequence"
+Spec::Rake::SpecTask.new('run_in_sequence') do |t|
+ t.spec_files = FileList['*_spec.rb']
+ t.spec_opts = %w[--require 'spec/ui' --format Spec::Ui::ScreenshotFormatter:./reports/Selenium-Build-Report.html]
+ t.fail_on_error = true
+end
+
+desc "Run all behaviors in parallel using Ruby green threads"
+Spec::Rake::SpecTask.new('run_in_parallel_single_process') do |t|
+ t.spec_files = FileList['*_spec.rb']
+ t.spec_opts = %w[--require './lib/multi_threaded_behaviour_runner' --runner MultiThreadedBehaviourRunner ]
+ t.fail_on_error = true
+end
+
+desc("Run all behaviors in parallel spawing multiple processes")
+task :run_in_parallel => [:sanity_check, :report_dir] do
+ require File.expand_path(File.dirname(__FILE__) + '/lib/multi_process_behaviour_runner')
+ runner = MultiProcessSpecRunner.new(10)
+ runner.run(Dir['*_spec.rb'])
+end
+
+task :run_in_sequence => [:sanity_check, :report_dir]
+task :run_in_parallel_single_process => [:sanity_check, :report_dir]
+
+task :report_dir do
+ mkdir_p File.expand_path(File.dirname(__FILE__) + "/reports")
+ rm_f Dir[File.dirname(__FILE__) + "/reports/*.html"]
+end
+
+task :sanity_check do
+ verify "You must install RubyGems to run this example : http://rubygems.org" do
+ require "rubygems"
+ end
+ verify "You must install rspec to run this example: `sudo gem install rspec`. Tested with RSpec 1.0.8" do
+ require "specx"
+ end
+ verify "You must install Spec UI to run this example: `sudo gem install spec_ui`" do
+ require "spec/ui"
+ end
+end
+
+def verify(error_message)
+ begin
+ yield
+ rescue Exception
+ STDERR.puts <<-EOS
+
+*******************************************************************
+#{error_message}
+*******************************************************************
+
+EOS
+ raise
+ end
+end
View
14 examples/rspec/excellent_reviews_spec.rb
@@ -0,0 +1,14 @@
+require File.expand_path(File.dirname(__FILE__) + "/lib/view_test_helper")
+
+describe "Martin Fowler's Refactoring Book" do
+
+ it "should get excellent reviews" do
+ @selenium.open '/'
+ @selenium.type "twotabsearchtextbox", "refactoring"
+ @selenium.click_and_wait "navGoButtonPanel"
+ @selenium.click_and_wait "//img[@alt='Refactoring: Improving the Design of Existing Code (The Addison-Wesley Object Technology Series)']"
+ @selenium.is_text_present("excellent").should be_true
+ end
+
+end
+
View
14 examples/rspec/hidden_treasure_spec.rb
@@ -0,0 +1,14 @@
+require File.expand_path(File.dirname(__FILE__) + "/lib/view_test_helper")
+
+describe "Martin Fowler's Refactoring Book" do
+
+ it "should be considered as a hidden treasure" do
+ @selenium.open '/'
+ @selenium.type "twotabsearchtextbox", "refactoring"
+ @selenium.click_and_wait "navGoButtonPanel"
+ @selenium.click_and_wait "//img[@alt='Refactoring: Improving the Design of Existing Code (The Addison-Wesley Object Technology Series)']"
+ @selenium.is_text_present("Hidden Treasure").should be_true
+ end
+
+end
+
View
30 examples/rspec/lib/aggregate_reports.rb
@@ -0,0 +1,30 @@
+#!/usr/bin/env ruby
+
+def parse_header(html)
+ html =~ /(.*<div class="results">)/mi
+ $1
+end
+
+def parse_footer(html)
+ html[/<\/div>\s*<\/body>.*/mi]
+end
+
+def parse_body(html)
+ html =~ /<div class="results">(.*)<\/div>\s*<\/body>/mi
+ content = $1
+end
+
+aggregated_body = ""
+header = nil
+footer = nil
+ARGV.each do |file|
+ lines = IO.readlines(file)
+ html = lines.join(' ')
+ header ||= parse_header(html)
+ footer ||= parse_footer(html)
+ aggregated_body << parse_body(html).to_s
+end
+
+STDOUT.puts header
+STDOUT.puts aggregated_body
+STDOUT.puts footer
View
13 examples/rspec/lib/array_extension.rb
@@ -0,0 +1,13 @@
+module ArrayExtension
+
+ def /(number_of_buckets)
+ buckets = (1..number_of_buckets).collect { [] }
+ while self.any? do
+ buckets.each do |bucket|
+ bucket << self.shift if self.any?
+ end
+ end
+ buckets
+ end
+
+end
View
43 examples/rspec/lib/multi_process_behaviour_runner.rb
@@ -0,0 +1,43 @@
+require File.expand_path(File.dirname(__FILE__) + '/array_extension')
+Array.send :include, ArrayExtension
+
+class MultiProcessSpecRunner
+
+ def initialize(max_concurrent_processes = 10)
+ @max_concurrent_processes = max_concurrent_processes
+ end
+
+ def run(spec_files)
+ concurrent_processes = [ @max_concurrent_processes, spec_files.size ].min
+ spec_files_by_process = spec_files / concurrent_processes
+ concurrent_processes.times do |i|
+ cmd = "spec #{options(i)} #{spec_files_by_process[i].join(' ')}"
+ puts "Launching #{cmd}"
+ exec(cmd) if fork == nil
+ end
+ success = true
+ concurrent_processes.times do |i|
+ pid, status = Process.wait2
+ puts "Test process ##{i} with pid #{pid} completed with #{status}"
+ success &&= status.exitstatus.zero?
+ end
+
+ script = File.expand_path(File.dirname(__FILE__) + "/aggregate_reports.rb")
+ reports = Dir[screenshot_dir + "/Selenium-Build-Report-*.html"].collect {|report| %{"#{report}"} }.join(' ')
+ command = %{ruby "#{script}" #{reports} > "#{screenshot_dir}/Aggregated-Selenium-Report.html"}
+ sh command
+
+ raise "Build failed" unless success
+ end
+
+ protected
+
+ def options(process_number)
+ "--require 'spec/ui' --format='Spec::Ui::ScreenshotFormatter:#{screenshot_dir}/Selenium-Build-Report-#{process_number}.html'"
+ end
+
+ def screenshot_dir
+ ENV['CC_BUILD_ARTIFACTS'] || File.expand_path(File.dirname(__FILE__) + "/../reports")
+ end
+
+end
View
29 examples/rspec/lib/multi_threaded_behaviour_runner.rb
@@ -0,0 +1,29 @@
+# Taken from RSpec distribution. Originally written by Brian Takita
+
+class MultiThreadedBehaviourRunner < Spec::Runner::BehaviourRunner
+ def initialize(*options)
+ super
+ # configure these
+ @thread_count = 4
+ @thread_wait = 0
+ end
+
+ def run_behaviours
+ @threads = []
+ q = Queue.new
+ p @behaviours
+ p number_of_examples
+ p @behaviours.first.examples
+ @behaviours.each { |b| q << b ; p b.examples}
+ @thread_count.times do
+ @threads << Thread.new(q) do |queue|
+ while not queue.empty?
+ behaviour = queue.pop
+ behaviour.run(@options.reporter, @options.dry_run, @options.reverse)
+ end
+ end
+ sleep @thread_wait
+ end
+ @threads.each {|t| t.join}
+ end
+end
View
1,356 examples/rspec/lib/selenium.rb
@@ -0,0 +1,1356 @@
+
+# Copyright 2006 ThoughtWorks, Inc
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# -----------------
+# Original code by Aslak Hellesoy and Darren Hobbs
+# This file has been automatically generated via XSL
+# -----------------
+
+require 'net/http'
+require 'uri'
+require 'cgi'
+
+# Defines an object that runs Selenium commands.
+#
+# ===Element Locators
+# Element Locators tell Selenium which HTML element a command refers to.
+# The format of a locator is:
+# <em>locatorType</em><b>=</b><em>argument</em>
+# We support the following strategies for locating elements:
+#
+# * <b>identifier</b>=<em>id</em>::
+# Select the element with the specified @id attribute. If no match is
+# found, select the first element whose @name attribute is <em>id</em>.
+# (This is normally the default; see below.)
+# * <b>id</b>=<em>id</em>::
+# Select the element with the specified @id attribute.
+# * <b>name</b>=<em>name</em>::
+# Select the first element with the specified @name attribute.
+#
+# * username
+# * name=username
+#
+#
+#
+# The name may optionally be followed by one or more <em>element-filters</em>, separated from the name by whitespace. If the <em>filterType</em> is not specified, <b>value</b> is assumed.
+#
+# * name=flavour value=chocolate
+#
+#
+# * <b>dom</b>=<em>javascriptExpression</em>::
+#
+# Find an element by evaluating the specified string. This allows you to traverse the HTML Document Object
+# Model using JavaScript. Note that you must not return a value in this string; simply make it the last expression in the block.
+# * dom=document.forms['myForm'].myDropdown
+# * dom=document.images[56]
+# * dom=function foo() { return document.links[1]; }; foo();
+#
+#
+#
+# * <b>xpath</b>=<em>xpathExpression</em>::
+# Locate an element using an XPath expression.
+# * xpath=//img[@alt='The image alt text']
+# * xpath=//table[@id='table1']//tr[4]/td[2]
+#
+#
+# * <b>link</b>=<em>textPattern</em>::
+# Select the link (anchor) element which contains text matching the
+# specified <em>pattern</em>.
+# * link=The link text
+#
+#
+# * <b>css</b>=<em>cssSelectorSyntax</em>::
+# Select the element using css selectors. Please refer to CSS2 selectors, CSS3 selectors for more information. You can also check the TestCssLocators test in the selenium test suite for an example of usage, which is included in the downloaded selenium core package.
+# * css=a[href="#id3"]
+# * css=span#firstChild + span
+#
+#
+#
+# Currently the css selector locator supports all css1, css2 and css3 selectors except namespace in css3, some pseudo classes(:nth-of-type, :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type, :visited, :hover, :active, :focus, :indeterminate) and pseudo elements(::first-line, ::first-letter, ::selection, ::before, ::after).
+#
+#
+# Without an explicit locator prefix, Selenium uses the following default
+# strategies:
+#
+# * <b>dom</b>, for locators starting with "document."
+# * <b>xpath</b>, for locators starting with "//"
+# * <b>identifier</b>, otherwise
+#
+# ===Element FiltersElement filters can be used with a locator to refine a list of candidate elements. They are currently used only in the 'name' element-locator.
+# Filters look much like locators, ie.
+# <em>filterType</em><b>=</b><em>argument</em>Supported element-filters are:
+# <b>value=</b><em>valuePattern</em>
+#
+# Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.<b>index=</b><em>index</em>
+#
+# Selects a single element based on its position in the list (offset from zero).===String-match Patterns
+# Various Pattern syntaxes are available for matching string values:
+#
+# * <b>glob:</b><em>pattern</em>::
+# Match a string against a "glob" (aka "wildmat") pattern. "Glob" is a
+# kind of limited regular-expression syntax typically used in command-line
+# shells. In a glob pattern, "*" represents any sequence of characters, and "?"
+# represents any single character. Glob patterns match against the entire
+# string.
+# * <b>regexp:</b><em>regexp</em>::
+# Match a string using a regular-expression. The full power of JavaScript
+# regular-expressions is available.
+# * <b>exact:</b><em>string</em>::
+# Match a string exactly, verbatim, without any of that fancy wildcard
+# stuff.
+#
+#
+# If no pattern prefix is specified, Selenium assumes that it's a "glob"
+# pattern.
+#
+#
+module Selenium
+
+ class SeleniumDriver
+ include Selenium
+
+ def initialize(server_host, server_port, browserStartCommand, browserURL, timeout=30000)
+ @server_host = server_host
+ @server_port = server_port
+ @browserStartCommand = browserStartCommand
+ @browserURL = browserURL
+ @timeout = timeout
+ end
+
+ def to_s
+ "SeleniumDriver"
+ end
+
+ def start()
+ result = get_string("getNewBrowserSession", [@browserStartCommand, @browserURL])
+ @session_id = result
+ end
+
+ def stop()
+ do_command("testComplete", [])
+ @session_id = nil
+ end
+
+ def do_command(verb, args)
+ timeout(@timeout) do
+ http = Net::HTTP.new(@server_host, @server_port)
+ command_string = '/selenium-server/driver/?cmd=' + CGI::escape(verb)
+ args.length.times do |i|
+ arg_num = (i+1).to_s
+ command_string = command_string + "&" + arg_num + "=" + CGI::escape(args[i].to_s)
+ end
+ if @session_id != nil
+ command_string = command_string + "&sessionId=" + @session_id.to_s
+ end
+ #print "Requesting --->" + command_string + "\n"
+ response, result = http.get(command_string)
+ #print "RESULT: " + result + "\n\n"
+ if (result[0..1] != "OK")
+ raise SeleniumCommandError, result
+ end
+ return result
+ end
+ end
+
+ def get_string(verb, args)
+ result = do_command(verb, args)
+ return result[3..result.length]
+ end
+
+ def get_string_array(verb, args)
+ csv = get_string(verb, args)
+ token = ""
+ tokens = []
+ escape = false
+ csv.split(//).each do |letter|
+ if escape
+ token = token + letter
+ escape = false
+ next
+ end
+ if (letter == '\\')
+ escape = true
+ elsif (letter == ',')
+ tokens.push(token)
+ token = ""
+ else
+ token = token + letter
+ end
+ end
+ tokens.push(token)
+ return tokens
+ end
+
+ def get_number(verb, args)
+ # Is there something I need to do here?
+ return get_string(verb, args)
+ end
+
+ def get_number_array(verb, args)
+ # Is there something I need to do here?
+ return get_string_array(verb, args)
+ end
+
+ def get_boolean(verb, args)
+ boolstr = get_string(verb, args)
+ if ("true" == boolstr)
+ return true
+ end
+ if ("false" == boolstr)
+ return false
+ end
+ raise ValueError, "result is neither 'true' nor 'false': " + boolstr
+ end
+
+ def get_boolean_array(verb, args)
+ boolarr = get_string_array(verb, args)
+ boolarr.length.times do |i|
+ if ("true" == boolstr)
+ boolarr[i] = true
+ next
+ end
+ if ("false" == boolstr)
+ boolarr[i] = false
+ next
+ end
+ raise ValueError, "result is neither 'true' nor 'false': " + boolarr[i]
+ end
+ return boolarr
+ end
+
+
+
+ # Clicks on a link, button, checkbox or radio button. If the click action
+ # causes a new page to load (like a link usually does), call
+ # waitForPageToLoad.
+ #
+ # 'locator' is an element locator
+ def click(locator)
+ do_command("click", [locator,])
+ end
+
+
+ # Double clicks on a link, button, checkbox or radio button. If the double click action
+ # causes a new page to load (like a link usually does), call
+ # waitForPageToLoad.
+ #
+ # 'locator' is an element locator
+ def double_click(locator)
+ do_command("doubleClick", [locator,])
+ end
+
+
+ # Clicks on a link, button, checkbox or radio button. If the click action
+ # causes a new page to load (like a link usually does), call
+ # waitForPageToLoad.
+ #
+ # 'locator' is an element locator
+ # 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ def click_at(locator,coordString)
+ do_command("clickAt", [locator,coordString,])
+ end
+
+
+ # Doubleclicks on a link, button, checkbox or radio button. If the action
+ # causes a new page to load (like a link usually does), call
+ # waitForPageToLoad.
+ #
+ # 'locator' is an element locator
+ # 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ def double_click_at(locator,coordString)
+ do_command("doubleClickAt", [locator,coordString,])
+ end
+
+
+ # Explicitly simulate an event, to trigger the corresponding "on<em>event</em>"
+ # handler.
+ #
+ # 'locator' is an element locator
+ # 'eventName' is the event name, e.g. "focus" or "blur"
+ def fire_event(locator,eventName)
+ do_command("fireEvent", [locator,eventName,])
+ end
+
+
+ # Simulates a user pressing and releasing a key.
+ #
+ # 'locator' is an element locator
+ # 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ def key_press(locator,keySequence)
+ do_command("keyPress", [locator,keySequence,])
+ end
+
+
+ # Press the shift key and hold it down until doShiftUp() is called or a new page is loaded.
+ #
+ def shift_key_down()
+ do_command("shiftKeyDown", [])
+ end
+
+
+ # Release the shift key.
+ #
+ def shift_key_up()
+ do_command("shiftKeyUp", [])
+ end
+
+
+ # Press the meta key and hold it down until doMetaUp() is called or a new page is loaded.
+ #
+ def meta_key_down()
+ do_command("metaKeyDown", [])
+ end
+
+
+ # Release the meta key.
+ #
+ def meta_key_up()
+ do_command("metaKeyUp", [])
+ end
+
+
+ # Press the alt key and hold it down until doAltUp() is called or a new page is loaded.
+ #
+ def alt_key_down()
+ do_command("altKeyDown", [])
+ end
+
+
+ # Release the alt key.
+ #
+ def alt_key_up()
+ do_command("altKeyUp", [])
+ end
+
+
+ # Press the control key and hold it down until doControlUp() is called or a new page is loaded.
+ #
+ def control_key_down()
+ do_command("controlKeyDown", [])
+ end
+
+
+ # Release the control key.
+ #
+ def control_key_up()
+ do_command("controlKeyUp", [])
+ end
+
+
+ # Simulates a user pressing a key (without releasing it yet).
+ #
+ # 'locator' is an element locator
+ # 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ def key_down(locator,keySequence)
+ do_command("keyDown", [locator,keySequence,])
+ end
+
+
+ # Simulates a user releasing a key.
+ #
+ # 'locator' is an element locator
+ # 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ def key_up(locator,keySequence)
+ do_command("keyUp", [locator,keySequence,])
+ end
+
+
+ # Simulates a user hovering a mouse over the specified element.
+ #
+ # 'locator' is an element locator
+ def mouse_over(locator)
+ do_command("mouseOver", [locator,])
+ end
+
+
+ # Simulates a user moving the mouse pointer away from the specified element.
+ #
+ # 'locator' is an element locator
+ def mouse_out(locator)
+ do_command("mouseOut", [locator,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ def mouse_down(locator)
+ do_command("mouseDown", [locator,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ # 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ def mouse_down_at(locator,coordString)
+ do_command("mouseDownAt", [locator,coordString,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ def mouse_up(locator)
+ do_command("mouseUp", [locator,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ # 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ def mouse_up_at(locator,coordString)
+ do_command("mouseUpAt", [locator,coordString,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ def mouse_move(locator)
+ do_command("mouseMove", [locator,])
+ end
+
+
+ # Simulates a user pressing the mouse button (without releasing it yet) on
+ # the specified element.
+ #
+ # 'locator' is an element locator
+ # 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ def mouse_move_at(locator,coordString)
+ do_command("mouseMoveAt", [locator,coordString,])
+ end
+
+
+ # Sets the value of an input field, as though you typed it in.
+ #
+ # Can also be used to set the value of combo boxes, check boxes, etc. In these cases,
+ # value should be the value of the option selected, not the visible text.
+ #
+ #
+ # 'locator' is an element locator
+ # 'value' is the value to type
+ def type(locator,value)
+ do_command("type", [locator,value,])
+ end
+
+
+ # Set execution speed (i.e., set the millisecond length of a delay which will follow each selenium operation). By default, there is no such delay, i.e.,
+ # the delay is 0 milliseconds.
+ #
+ # 'value' is the number of milliseconds to pause after operation
+ def set_speed(value)
+ do_command("setSpeed", [value,])
+ end
+
+
+ # Get execution speed (i.e., get the millisecond length of the delay following each selenium operation). By default, there is no such delay, i.e.,
+ # the delay is 0 milliseconds.
+ #
+ # See also setSpeed.
+ #
+ def get_speed()
+ do_command("getSpeed", [])
+ end
+
+
+ # Check a toggle-button (checkbox/radio)
+ #
+ # 'locator' is an element locator
+ def check(locator)
+ do_command("check", [locator,])
+ end
+
+
+ # Uncheck a toggle-button (checkbox/radio)
+ #
+ # 'locator' is an element locator
+ def uncheck(locator)
+ do_command("uncheck", [locator,])
+ end
+
+
+ # Select an option from a drop-down using an option locator.
+ #
+ #
+ # Option locators provide different ways of specifying options of an HTML
+ # Select element (e.g. for selecting a specific option, or for asserting
+ # that the selected option satisfies a specification). There are several
+ # forms of Select Option Locator.
+ #
+ # * <b>label</b>=<em>labelPattern</em>::
+ # matches options based on their labels, i.e. the visible text. (This
+ # is the default.)
+ # * label=regexp:^[Oo]ther
+ #
+ #
+ # * <b>value</b>=<em>valuePattern</em>::
+ # matches options based on their values.
+ # * value=other
+ #
+ #
+ # * <b>id</b>=<em>id</em>::
+ # matches options based on their ids.
+ # * id=option1
+ #
+ #
+ # * <b>index</b>=<em>index</em>::
+ # matches an option based on its index (offset from zero).
+ # * index=2
+ #
+ #
+ #
+ #
+ # If no option locator prefix is provided, the default behaviour is to match on <b>label</b>.
+ #
+ #
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ # 'optionLocator' is an option locator (a label by default)
+ def select(selectLocator,optionLocator)
+ do_command("select", [selectLocator,optionLocator,])
+ end
+
+
+ # Add a selection to the set of selected options in a multi-select element using an option locator.
+ #
+ # @see #doSelect for details of option locators
+ #
+ # 'locator' is an element locator identifying a multi-select box
+ # 'optionLocator' is an option locator (a label by default)
+ def add_selection(locator,optionLocator)
+ do_command("addSelection", [locator,optionLocator,])
+ end
+
+
+ # Remove a selection from the set of selected options in a multi-select element using an option locator.
+ #
+ # @see #doSelect for details of option locators
+ #
+ # 'locator' is an element locator identifying a multi-select box
+ # 'optionLocator' is an option locator (a label by default)
+ def remove_selection(locator,optionLocator)
+ do_command("removeSelection", [locator,optionLocator,])
+ end
+
+
+ # Submit the specified form. This is particularly useful for forms without
+ # submit buttons, e.g. single-input "Search" forms.
+ #
+ # 'formLocator' is an element locator for the form you want to submit
+ def submit(formLocator)
+ do_command("submit", [formLocator,])
+ end
+
+
+ # Opens an URL in the test frame. This accepts both relative and absolute
+ # URLs.
+ #
+ # The "open" command waits for the page to load before proceeding,
+ # ie. the "AndWait" suffix is implicit.
+ #
+ # <em>Note</em>: The URL must be on the same domain as the runner HTML
+ # due to security restrictions in the browser (Same Origin Policy). If you
+ # need to open an URL on another domain, use the Selenium Server to start a
+ # new browser session on that domain.
+ #
+ # 'url' is the URL to open; may be relative or absolute
+ def open(url)
+ do_command("open", [url,])
+ end
+
+
+ # Opens a popup window (if a window with that ID isn't already open).
+ # After opening the window, you'll need to select it using the selectWindow
+ # command.
+ #
+ # This command can also be a useful workaround for bug SEL-339. In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example).
+ # In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using
+ # an empty (blank) url, like this: openWindow("", "myFunnyWindow").
+ #
+ #
+ # 'url' is the URL to open, which can be blank
+ # 'windowID' is the JavaScript window ID of the window to select
+ def open_window(url,windowID)
+ do_command("openWindow", [url,windowID,])
+ end
+
+
+ # Selects a popup window; once a popup window has been selected, all
+ # commands go to that window. To select the main window again, use null
+ # as the target.
+ #
+ # Selenium has several strategies for finding the window object referred to by the "windowID" parameter.
+ # 1.) if windowID is null, then it is assumed the user is referring to the original window instantiated by the browser).
+ # 2.) if the value of the "windowID" parameter is a JavaScript variable name in the current application window, then it is assumed
+ # that this variable contains the return value from a call to the JavaScript window.open() method.
+ # 3.) Otherwise, selenium looks in a hash it maintains that maps string names to window objects. Each of these string
+ # names matches the second parameter "windowName" past to the JavaScript method window.open(url, windowName, windowFeatures, replaceFlag)
+ # (which selenium intercepts).
+ # If you're having trouble figuring out what is the name of a window that you want to manipulate, look at the selenium log messages
+ # which identify the names of windows created via window.open (and therefore intercepted by selenium). You will see messages
+ # like the following for each window as it is opened:
+ # <tt>debug: window.open call intercepted; window ID (which you can use with selectWindow()) is "myNewWindow"</tt>
+ # In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example).
+ # (This is bug SEL-339.) In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using
+ # an empty (blank) url, like this: openWindow("", "myFunnyWindow").
+ #
+ #
+ # 'windowID' is the JavaScript window ID of the window to select
+ def select_window(windowID)
+ do_command("selectWindow", [windowID,])
+ end
+
+
+ # Selects a frame within the current window. (You may invoke this command
+ # multiple times to select nested frames.) To select the parent frame, use
+ # "relative=parent" as a locator; to select the top frame, use "relative=top".
+ #
+ # You may also use a DOM expression to identify the frame you want directly,
+ # like this: <tt>dom=frames["main"].frames["subframe"]</tt>
+ #
+ #
+ # 'locator' is an element locator identifying a frame or iframe
+ def select_frame(locator)
+ do_command("selectFrame", [locator,])
+ end
+
+
+ # Return the contents of the log.
+ #
+ # This is a placeholder intended to make the code generator make this API
+ # available to clients. The selenium server will intercept this call, however,
+ # and return its recordkeeping of log messages since the last call to this API.
+ # Thus this code in JavaScript will never be called.
+ # The reason I opted for a servercentric solution is to be able to support
+ # multiple frames served from different domains, which would break a
+ # centralized JavaScript logging mechanism under some conditions.
+ #
+ #
+ def get_log_messages()
+ return get_string("getLogMessages", [])
+ end
+
+
+ # Determine whether current/locator identify the frame containing this running code.
+ #
+ # This is useful in proxy injection mode, where this code runs in every
+ # browser frame and window, and sometimes the selenium server needs to identify
+ # the "current" frame. In this case, when the test calls selectFrame, this
+ # routine is called for each frame to figure out which one has been selected.
+ # The selected frame will return true, while all others will return false.
+ #
+ #
+ # 'currentFrameString' is starting frame
+ # 'target' is new frame (which might be relative to the current one)
+ def get_whether_this_frame_match_frame_expression(currentFrameString,target)
+ return get_boolean("getWhetherThisFrameMatchFrameExpression", [currentFrameString,target,])
+ end
+
+
+ # Determine whether currentWindowString plus target identify the window containing this running code.
+ #
+ # This is useful in proxy injection mode, where this code runs in every
+ # browser frame and window, and sometimes the selenium server needs to identify
+ # the "current" window. In this case, when the test calls selectWindow, this
+ # routine is called for each window to figure out which one has been selected.
+ # The selected window will return true, while all others will return false.
+ #
+ #
+ # 'currentWindowString' is starting window
+ # 'target' is new window (which might be relative to the current one, e.g., "_parent")
+ def get_whether_this_window_match_window_expression(currentWindowString,target)
+ return get_boolean("getWhetherThisWindowMatchWindowExpression", [currentWindowString,target,])
+ end
+
+
+ # Waits for a popup window to appear and load up.
+ #
+ # 'windowID' is the JavaScript window ID of the window that will appear
+ # 'timeout' is a timeout in milliseconds, after which the action will return with an error
+ def wait_for_pop_up(windowID,timeout)
+ do_command("waitForPopUp", [windowID,timeout,])
+ end
+
+
+ # By default, Selenium's overridden window.confirm() function will
+ # return true, as if the user had manually clicked OK. After running
+ # this command, the next call to confirm() will return false, as if
+ # the user had clicked Cancel.
+ #
+ def choose_cancel_on_next_confirmation()
+ do_command("chooseCancelOnNextConfirmation", [])
+ end
+
+
+ # Instructs Selenium to return the specified answer string in response to
+ # the next JavaScript prompt [window.prompt()].
+ #
+ # 'answer' is the answer to give in response to the prompt pop-up
+ def answer_on_next_prompt(answer)
+ do_command("answerOnNextPrompt", [answer,])
+ end
+
+
+ # Simulates the user clicking the "back" button on their browser.
+ #
+ def go_back()
+ do_command("goBack", [])
+ end
+
+
+ # Simulates the user clicking the "Refresh" button on their browser.
+ #
+ def refresh()
+ do_command("refresh", [])
+ end
+
+
+ # Simulates the user clicking the "close" button in the titlebar of a popup
+ # window or tab.
+ #
+ def close()
+ do_command("close", [])
+ end
+
+
+ # Has an alert occurred?
+ #
+ #
+ # This function never throws an exception
+ #
+ #
+ #
+ def is_alert_present()
+ return get_boolean("isAlertPresent", [])
+ end
+
+
+ # Has a prompt occurred?
+ #
+ #
+ # This function never throws an exception
+ #
+ #
+ #
+ def is_prompt_present()
+ return get_boolean("isPromptPresent", [])
+ end
+
+
+ # Has confirm() been called?
+ #
+ #
+ # This function never throws an exception
+ #
+ #
+ #
+ def is_confirmation_present()
+ return get_boolean("isConfirmationPresent", [])
+ end
+
+
+ # Retrieves the message of a JavaScript alert generated during the previous action, or fail if there were no alerts.
+ #
+ # Getting an alert has the same effect as manually clicking OK. If an
+ # alert is generated but you do not get/verify it, the next Selenium action
+ # will fail.
+ # NOTE: under Selenium, JavaScript alerts will NOT pop up a visible alert
+ # dialog.
+ # NOTE: Selenium does NOT support JavaScript alerts that are generated in a
+ # page's onload() event handler. In this case a visible dialog WILL be
+ # generated and Selenium will hang until someone manually clicks OK.
+ #
+ #
+ def get_alert()
+ return get_string("getAlert", [])
+ end
+
+
+ # Retrieves the message of a JavaScript confirmation dialog generated during
+ # the previous action.
+ #
+ #
+ # By default, the confirm function will return true, having the same effect
+ # as manually clicking OK. This can be changed by prior execution of the
+ # chooseCancelOnNextConfirmation command. If an confirmation is generated
+ # but you do not get/verify it, the next Selenium action will fail.
+ #
+ #
+ # NOTE: under Selenium, JavaScript confirmations will NOT pop up a visible
+ # dialog.
+ #
+ #
+ # NOTE: Selenium does NOT support JavaScript confirmations that are
+ # generated in a page's onload() event handler. In this case a visible
+ # dialog WILL be generated and Selenium will hang until you manually click
+ # OK.
+ #
+ #
+ #
+ def get_confirmation()
+ return get_string("getConfirmation", [])
+ end
+
+
+ # Retrieves the message of a JavaScript question prompt dialog generated during
+ # the previous action.
+ #
+ # Successful handling of the prompt requires prior execution of the
+ # answerOnNextPrompt command. If a prompt is generated but you
+ # do not get/verify it, the next Selenium action will fail.
+ # NOTE: under Selenium, JavaScript prompts will NOT pop up a visible
+ # dialog.
+ # NOTE: Selenium does NOT support JavaScript prompts that are generated in a
+ # page's onload() event handler. In this case a visible dialog WILL be
+ # generated and Selenium will hang until someone manually clicks OK.
+ #
+ #
+ def get_prompt()
+ return get_string("getPrompt", [])
+ end
+
+
+ # Gets the absolute URL of the current page.
+ #
+ def get_location()
+ return get_string("getLocation", [])
+ end
+
+
+ # Gets the title of the current page.
+ #
+ def get_title()
+ return get_string("getTitle", [])
+ end
+
+
+ # Gets the entire text of the page.
+ #
+ def get_body_text()
+ return get_string("getBodyText", [])
+ end
+
+
+ # Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
+ # For checkbox/radio elements, the value will be "on" or "off" depending on
+ # whether the element is checked or not.
+ #
+ # 'locator' is an element locator
+ def get_value(locator)
+ return get_string("getValue", [locator,])
+ end
+
+
+ # Gets the text of an element. This works for any element that contains
+ # text. This command uses either the textContent (Mozilla-like browsers) or
+ # the innerText (IE-like browsers) of the element, which is the rendered
+ # text shown to the user.
+ #
+ # 'locator' is an element locator
+ def get_text(locator)
+ return get_string("getText", [locator,])
+ end
+
+
+ # Gets the result of evaluating the specified JavaScript snippet. The snippet may
+ # have multiple lines, but only the result of the last line will be returned.
+ #
+ # Note that, by default, the snippet will run in the context of the "selenium"
+ # object itself, so <tt>this</tt> will refer to the Selenium object, and <tt>window</tt> will
+ # refer to the top-level runner test window, not the window of your application.
+ # If you need a reference to the window of your application, you can refer
+ # to <tt>this.browserbot.getCurrentWindow()</tt> and if you need to use
+ # a locator to refer to a single element in your application page, you can
+ # use <tt>this.page().findElement("foo")</tt> where "foo" is your locator.
+ #
+ #
+ # 'script' is the JavaScript snippet to run
+ def get_eval(script)
+ return get_string("getEval", [script,])
+ end
+
+
+ # Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.
+ #
+ # 'locator' is an element locator pointing to a checkbox or radio button
+ def is_checked(locator)
+ return get_boolean("isChecked", [locator,])
+ end
+
+
+ # Gets the text from a cell of a table. The cellAddress syntax
+ # tableLocator.row.column, where row and column start at 0.
+ #
+ # 'tableCellAddress' is a cell address, e.g. "foo.1.4"
+ def get_table(tableCellAddress)
+ return get_string("getTable", [tableCellAddress,])
+ end
+
+
+ # Gets all option labels (visible text) for selected options in the specified select or multi-select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_labels(selectLocator)
+ return get_string_array("getSelectedLabels", [selectLocator,])
+ end
+
+
+ # Gets option label (visible text) for selected option in the specified select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_label(selectLocator)
+ return get_string("getSelectedLabel", [selectLocator,])
+ end
+
+
+ # Gets all option values (value attributes) for selected options in the specified select or multi-select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_values(selectLocator)
+ return get_string_array("getSelectedValues", [selectLocator,])
+ end
+
+
+ # Gets option value (value attribute) for selected option in the specified select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_value(selectLocator)
+ return get_string("getSelectedValue", [selectLocator,])
+ end
+
+
+ # Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_indexes(selectLocator)
+ return get_string_array("getSelectedIndexes", [selectLocator,])
+ end
+
+
+ # Gets option index (option number, starting at 0) for selected option in the specified select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_index(selectLocator)
+ return get_string("getSelectedIndex", [selectLocator,])
+ end
+
+
+ # Gets all option element IDs for selected options in the specified select or multi-select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_ids(selectLocator)
+ return get_string_array("getSelectedIds", [selectLocator,])
+ end
+
+
+ # Gets option element ID for selected option in the specified select element.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_selected_id(selectLocator)
+ return get_string("getSelectedId", [selectLocator,])
+ end
+
+
+ # Determines whether some option in a drop-down menu is selected.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def is_something_selected(selectLocator)
+ return get_boolean("isSomethingSelected", [selectLocator,])
+ end
+
+
+ # Gets all option labels in the specified select drop-down.
+ #
+ # 'selectLocator' is an element locator identifying a drop-down menu
+ def get_select_options(selectLocator)
+ return get_string_array("getSelectOptions", [selectLocator,])
+ end
+
+
+ # Gets the value of an element attribute.
+ #
+ # 'attributeLocator' is an element locator followed by an
+ def get_attribute(attributeLocator)
+ return get_string("getAttribute", [attributeLocator,])
+ end
+
+
+ # Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.
+ #
+ # 'pattern' is a pattern to match with the text of the page
+ def is_text_present(pattern)
+ return get_boolean("isTextPresent", [pattern,])
+ end
+
+
+ # Verifies that the specified element is somewhere on the page.
+ #
+ # 'locator' is an element locator
+ def is_element_present(locator)
+ return get_boolean("isElementPresent", [locator,])
+ end
+
+