How to integrate TestNG with LambdaTest?

How to integrate TestNG with LambdaTest ?

Hello Ana-sousa,

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);