What is the proper way to log messages from a Masquerade test? Silly question, but for the life of me I can’t get it to work.
It uses SLF4J so the standard Logger should work fine:
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
private static Logger logger = LoggerFactory.getLogger(SLF4JExample.class);
...
logger.info("Info log message");
Don’t forget to include some binding to build.gradle
for module with ui-tests (only if it is not yet added transitively):
dependencies {
implementation 'org.slf4j:slf4j-simple:1.7.25'
}
You will also see logging from the Masquerade components, e.g. Button, TextField, etc