This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Bundle of CA Root Certificates | |
## | |
## Certificate data from Mozilla as of: Fri Apr 29 06:21:56 2016 | |
## | |
## This is a bundle of X.509 certificates of public Certificate Authorities | |
## (CA). These were automatically extracted from Mozilla's root certificates | |
## file (certdata.txt). This file can be found in the mozilla source tree: | |
## http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class GroupPrinter implements ISuiteListener { | |
@Override | |
public void onStart(ISuite suite) { | |
String groupName = System.getProperty("groupName", "all"); | |
List<ITestNGMethod> allMethods = suite.getAllMethods(); | |
List<ITestNGMethod> filteredMethods = new ArrayList<>(); | |
for (ITestNGMethod method : allMethods) { | |
if (Arrays.asList(method.getGroups()).contains(groupName)) { | |
filteredMethods.add(method); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log":{ | |
"version":"1.2", | |
"creator":{ | |
"name":"BrowserMob Proxy", | |
"version":"2.1.0-beta-4-littleproxy", | |
"comment":"" | |
}, | |
"browser":{ | |
"name":"Chrome", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package organized.chaos.webdriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.openqa.selenium.remote.RemoteWebDriver; | |
import org.testng.annotations.AfterClass; | |
import org.testng.annotations.BeforeClass; | |
import org.testng.annotations.Test; | |
import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import org.testng.ISuite; | |
import org.testng.ISuiteListener; | |
import org.testng.Reporter; | |
import org.testng.annotations.Listeners; | |
import org.testng.annotations.Test; | |
import java.util.HashMap; | |
import java.util.Map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Listeners (SkipRestOfTheTestsIfFailuresAreSeen.AbortRemainingTestsListener.class) | |
public class SkipRestOfTheTestsIfFailuresAreSeen { | |
@Test | |
public void testMethod1() { | |
Reporter.log("testMethod1() being executed", true); | |
} | |
@Test | |
public void testMethod2() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.rationale.emotions; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
import org.testng.IMethodInstance; | |
import org.testng.IMethodInterceptor; | |
import org.testng.ITestContext; | |
import org.testng.annotations.Listeners; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
/** | |
* A simple servlet which basically issues a System.exit() when invoked. | |
* This servlet would have to be injected into the node [not the Grid] so that it can help in terminating the node. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Properties; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.openqa.grid.common.RegistrationRequest; | |
import org.openqa.grid.internal.Registry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.util.Properties; | |
import org.apache.commons.exec.CommandLine; | |
import org.apache.commons.exec.DefaultExecuteResultHandler; | |
import org.apache.commons.exec.DefaultExecutor; | |
import org.apache.commons.exec.ExecuteException; | |
import org.apache.commons.exec.PumpStreamHandler; | |
import org.apache.commons.exec.ShutdownHookProcessDestroyer; |