Skip to content

Instantly share code, notes, and snippets.

View freynaud's full-sized avatar

François Reynaud freynaud

  • Element34 Solutions GmbH
  • Altendorf, Switzerland
View GitHub Profile
@Override
public void afterInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context) {
boolean webTest = method.isTestMethod() && method.getTestMethod().getMethod().getAnnotation(WebTest.class) != null;
if (webTest) {
if (!testResult.isSuccess()) {
java_test(name = "test",
srcs = [
"misc/**/*.java",
"node/**/*.java",
"utils/**/*.java",
"//java/server/test/org/openqa/grid/internal/mock/*.java",
],
main = "org.testng.TestNG",
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
private URL findRemoteHost() throws MalformedURLException {
// new param after 2.9
String url = (String) config.get(REMOTE_HOST);
if(url!=null){
return new URL(url);
}else {
// could be a pre 2.9 node
url = (String) config.get("url");
if (url == null){
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/server/src/org/openqa/grid/common/RegistrationRequest.java
===================================================================
--- java/server/src/org/openqa/grid/common/RegistrationRequest.java (revision 14688)
+++ java/server/src/org/openqa/grid/common/RegistrationRequest.java (working copy)
@@ -33,6 +33,7 @@
import org.json.JSONException;
import org.json.JSONObject;
### Eclipse Workspace Patch 1.0
#P selenium
Index: java/server/src/org/openqa/grid/web/servlet/ProxyStatusServlet.java
===================================================================
--- java/server/src/org/openqa/grid/web/servlet/ProxyStatusServlet.java (revision 14628)
+++ java/server/src/org/openqa/grid/web/servlet/ProxyStatusServlet.java (working copy)
@@ -17,16 +17,12 @@
package org.openqa.grid.web.servlet;
RemoteTestNG starting
Nov 17, 2011 8:53:23 AM org.openqa.jetty.http.HttpServer doStart
INFO: Version Jetty/5.1.x
Nov 17, 2011 8:53:23 AM org.openqa.jetty.util.FileResource <clinit>
INFO: Checking Resource aliases
Nov 17, 2011 8:53:30 AM org.openqa.jetty.util.Container start
INFO: Started org.openqa.jetty.jetty.servlet.WebApplicationHandler@1f82ab4
Nov 17, 2011 8:53:30 AM org.openqa.jetty.util.Container start
INFO: Started WebApplicationContext[/,/]
Nov 17, 2011 8:53:30 AM org.openqa.jetty.http.SocketListener start
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="/grid/resources/images/console-beta.js"></script>
<link type="text/css" rel="stylesheet"
href="/grid/resources/images/console-beta.css">
<title>Grid overview</title>
<style>
.busy {