Skip to content

Instantly share code, notes, and snippets.

20:00:06 <dimacus> phasze: hey hey
20:01:15 <phasze> I'm trying to setup a timeout thing for these nodes, so if some test happens to never end (eg. enters a filepath that doesn't exist). Is there a timeout thing I can set so it does that cleanup/releases the node in grid?
20:01:21 <phasze> such as timeout or browserTimeout
20:01:39 <phasze> I've been trying to play with those two but haven't had much success
20:02:46 <dimacus> hmmm
20:02:55 <asavchuk> phasze: yes, there is. see commit 0acce3ba7ebcbc399ac7c9e38311390e0f7e6cfd
20:02:55 <selbot2> alex-savchuk 5 days ago - Fix hang of hub when node machine is not available. | https://code.google.com/p/selenium/source/detail?r=0acce3b | http://dashboard.ci.seleniumhq.org/#/revision/0acce3ba7ebcbc399ac7c9e38311390e0f7e6cfd
20:03:08 <asavchuk> but it will be available only for 2.34
20:03:16 <phasze> ah
20:03:53 <asavchuk> for 2.33 only nodePolling and unregisterIfStillDown are available
@nicegraham
nicegraham / gist:6073360
Last active December 20, 2015 04:49
add this to the jni pom.xml
<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<name>Releases</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>snapshots</name>
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ ios-driver-jni ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] IOS automation .................................... SUCCESS [16.055s]
[INFO] ios-common ........................................ SUCCESS [35.270s]
[INFO] ios-client ........................................ SUCCESS [32.201s]
[INFO] ios-driver-jni .................................... FAILURE [7.455s]
[INFO] ios-server ........................................ SKIPPED
[INFO] ios-selenium-tests ................................ SKIPPED
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on project ios-driver: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-add command failed.
[ERROR] Command output:
[ERROR] fatal: Path 'libimobile-java/pom.xml' is in submodule 'libimobile-java'
[ERROR] -> [Help 1]
39:23:780 INFO ApplicationStore.<init> App archive folder:/Users/gabell/workspace/ios-driver/applications
39:24:464 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
39:25:068 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
39:25:084 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
39:25:573 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
39:25:919 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
39:25:938 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
$ mvn release:prepare -DskipTests
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.uiautomation:ios-common:jar:0.6.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 76, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.uiautomation:ios-client:jar:0.6.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 61, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.uiautomation:ios-selenium-tests:jar:0.6.0
08:57:21 <freynaud> any big ( >8k ) message is split in smaller packets
08:57:55 <nicegraham> my feeling is that it's happening earlier than that - the initial response is well formed json
08:57:59 <nicegraham> but not all the nodes have been added
08:58:21 ⇐ freynaud quit (c11cb229@gateway/web/cgi-irc/kiwiirc.com/ip.193.28.178.41) Quit: http://www.kiwiirc.com/ - A hand crafted IRC client
08:58:21 <nicegraham> the subsequent response is a superset of the initial response with additional nodes added
org.junit.ComparisonFailure:
Expected :{"exit_code":0,"out":[],"error":[],"root_dir":["/tmp/webdriver"],"file":[""],"file_full_path":["/Users/dima/projects/grid/Selenium-Grid-Extras/SeleniumGridExtras/target/classes/"],"source_url":[""]}
Actual :{"exit_code":0,"out":[],"error":[],"root_dir":["/tmp/webdriver"],"file":[""],"file_full_path":["/Users/gabell/workspace/Selenium-Grid-Extras/SeleniumGridExtras/target/classes/"],"source_url":[""]}
{"exit_code":0,"out":[],"error":[],"config_runtime":{"config_version":"1.0","activated_modules":["com.groupon.seleniumgridextras.tasks.DownloadWebdriver","com.groupon.seleniumgridextras.tasks.UpgradeWebdriver","com.groupon.seleniumgridextras.tasks.Setup","com.groupon.seleniumgridextras.tasks.Teardown","com.groupon.seleniumgridextras.tasks.MoveMouse","com.groupon.seleniumgridextras.tasks.RebootNode","com.groupon.seleniumgridextras.tasks.KillAllIE","com.groupon.seleniumgridextras.tasks.KillAllFirefox","com.groupon.seleniumgridextras.tasks.KillAllChrome","com.groupon.seleniumgridextras.tasks.GetProcesses","com.groupon.seleniumgridextras.tasks.KillPid","com.groupon.seleniumgridextras.tasks.Netstat","com.groupon.seleniumgridextras.tasks.Screenshot","com.groupon.seleniumgridextras.tasks.ExposeDirectory","com.groupon.seleniumgridextras.tasks.StartGrid","com.groupon.seleniumgridextras.tasks.GetInfoForPort","com.groupon.seleniumgridextras.tasks.GridStatus","com.groupon.seleniumgridextras.tasks.KillAllByName","com.grou
@nicegraham
nicegraham / gist:5875155
Created June 27, 2013 09:22
maven ouput for the rspec tests mvn test -e -X
[INFO]
[INFO] --- rspec-maven-plugin:1.0:spec (test) @ SeleniumGridExtras ---
[DEBUG] org.codehaus.mojo:rspec-maven-plugin:jar:1.0:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:compile
[DEBUG] org.jruby:jruby-complete:jar:1.6.7:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime
[DEBUG] Created new class realm plugin>org.codehaus.mojo:rspec-maven-plugin:1.0
[DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:rspec-maven-plugin:1.0
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.codehaus.mojo:rspec-maven-plugin:1.0