-
-
Notifications
You must be signed in to change notification settings - Fork 1
Reports and screenshots
Cosmin Marginean edited this page Apr 22, 2023
·
2 revisions
Alkemy uses Extent Report to produce an HTML output of the test run. These can be configured using the alkemy.report.*
system properties, as described in the Configuration reference.
By default, Alkemy produces a screenshot on a test failure, which is sufficient for most use cases to capture the conditions of the browser at the time of the error. However, you can explicitly produce a screenshot at any point in the test flow, as per example below. For a complete example see the Screenshot test in the sample project.
val report = context.report
val driver = context.get("/login")
report.screenshot(testCase)
driver.typeIn("username", "tomsmith")
report.screenshot(testCase, "Username entered")