Let me share more information in our case.
We are using the latest version of QAF (2.1.13), basically following the Starter Kit settings.
Scenario: Verify xxx Links
Given a user is logged in with email "xxx and password "yyy", and on the landing page
The implementation is something like:
@Then("^the user should see the link \"([^\"]*)\"$")
public void theUserShouldSeeTheLink(String link) throws Throwable {
Assert.assertEquals(new LandingPage().getLink(), link);
}
@And("^the user should see the products link \"([^\"]*)\"$")
public void theUserShouldSeeTheProductsLink(String link) throws Throwable {
Assert.assertEquals(new LandingPage().getLeadsProductLink(), link);
}
We use TestNG Assert so I think they are check points, right? However, even I set selenium.success.screenshots=1, there are no screenshots captured (neither there are screenshot icons in the report nor there are images file under /img folder). I tried to debug into it, it seems the takeScreenshot method never called for a succeeded test case. Did I miss anything?
By the way, how to use AssertService class in QAF, isn't TestNG Assert enough for verification?
Again I appreciate your support on this!
Warm regards
Ando