Official Content

How to generate it?

To generate this log, change the value of the Default Log Level property of the Main Object being tested (the one set in the Test Target property of the UI Test object) to Debug.  

AndroidUITestLog_1

As a result, when the execution of the UITest is completed, there is a log and screenshots from the steps where the test failed.

Where are the log and screenshots saved?

The log and screenshots are saved in the testResults directory below the Knowledge Base directory.

The name of the log is <TestTargetName>UITests.log

For example, if the main object is called MainSD, the log will be called MainSDUITests.log.

AndroidUITestLog_2

How to read it?

Start and meaning of parts of the lines

AndroidUITestLog_3

Date, time:minutes:seconds:milliseconds, process id, logtype (D, I, W, E), and tag.

The logType depends on what is set in the logLevel property, which is D for debug.

This means it will add Error (E), Information (I), and Warning (W) lines.

If you want a shorter log that includes only errors, for example, change the main object property from Debug to Error.

Tag examples 

GeneXusApplication

When the "GeneXusApplication" label is found in the log, the following records will provide information related to the metadata read from the application, including details about database tables, procedures, validation rules, events, and other elements of the logic and user interface.

AndroidUITestLog_4

GeneXus HTTP - Request

AndroidUITestLog_5

GeneXus HTTP - Response

This section of the log shows the server's response. In this case, there is a 500 error on the server.

AndroidUITestLog_6

GeneXusApplication: Loading... 

Several Loading lines may be displayed. They are all the panels in the main object call tree. 

AndroidUITestLog_7

It loads all the panels at the start. 

Device Information

Shows information about the emulator or device. If it is shown, you can be sure that the application metadata is being loaded.

AndroidUITestLog_8

Starting test

This line indicates the start of the test execution and shows the name of the executed test object.

AndroidUITestLog_9

[UITestingLibLogger] starting command / ending command after

This tag shows the commands that are executed, the start and end of the commands, and how long they took.

AndroidUITestLog_10

    

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant