Skip to content

A short project that demonstrates Observability with Selenium Grid 4

License

Notifications You must be signed in to change notification settings

krmahadevan/docker-grid-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Observability in Selenium Grid

Pre-requisites

Distributed Observable Grid

In order to bring up the Distributed Observable Grid do the following:

  • Clone this repo.
  • Now from the cloned repo's directory run the command : docker-compose up -d
  • Now run the below sample test case.
  • To bring down the distributed grid run docker-compose down -v

Simple Observable Grid

In order to bring up the Distributed Observable Grid do the following:

  • Clone this repo.
  • Now from the cloned repo's directory run the command : docker-compose -f docker-compose-v3.yml up -d
  • Now run the below sample test case.
  • o bring down the simple grid run docker-compose -f docker-compose-v3.yml down -v
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;

public class RunLocallyTestCase {

  public static void main(String[] args) throws MalformedURLException {
    RemoteWebDriver driver = null;

    try {
      URL url = new URL("http://localhost:4444");
      driver = new RemoteWebDriver(url, new ChromeOptions());
      driver.get("https://www.selenium.dev/");
      System.err.println("Title: " + driver.getTitle());
    } finally {
      if (driver != null) {
        driver.quit();
      }
    }
  }
}
  • You can view the Jaegar UI and trace your request.

About

A short project that demonstrates Observability with Selenium Grid 4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages