How to integrate TestNG with LT?

How to integrate TestNG with LT ?

Hey Joe,

In order to integrate TestNG with LambdaTest. Please follow the sample script below:

     public String username = System.getenv("LT_USERNAME")
      public String accessKey = System.getenv("LT_ACCESS_KEY")

//Address of remote hub driver = new RemoteWebDriver(new URL(“https://” + username + “:” + accessKey +"@hub.lambdatest.com/wd/hub"), capabilities); In order to integrate TestNG with Lambdatest. Please follow the sample script below:

     public String username = System.getenv("LT_USERNAME")
      public String accessKey = System.getenv("LT_ACCESS_KEY")

//Address of remote hub driver = new RemoteWebDriver(new URL(“https://” + username + “:” + accessKey +"@hub.lambdatest.com/wd/hub"), capabilities);