How to pass assertions in the Gauge framework?
Hey Ian,
You can pass LambdaTest assertion in the gauge framework.
Below is the code for the same:
try {
// some GET request
Assert.assertEquals(ActualValue, ExpectedValue);
} catch (AssertionError e) {
Status = "failed";
exceptionCapture.add(e.getMessage());
((JavascriptExecutor) driver).executeScript("lambda-exceptions", exceptionCapture);
}