Table of contents
This is not the latest version of this document; to access the latest version, click here.
Official Content

On this page, you can find some common errors related to GXtest objects and how you can fix them quickly. 

Build error: The type or namespace name 'SdtUITest' could not be found

Solution 1: force a rebuild of the UITest external object. This can be achieved by

a) modifying the object itself or

b) using the option Test -> Rebuild All Tests.

Solution 2: if you don't use UI Test objects, delete it

Error: Could not set Procedure “Runner” as main

A possible cause of this error could be that a KB is being opened with an older version of GXtest.

Solution: Delete Runner object. When you execute a test, it will be created again but with the appropriate version.

Testing object or related gives build error

These cases could be a typical error that some objects need to be rebuilt. Test objects are not built in a Rebuild All operation because they are not called by any Main object (except some user change it), so the option Rebuild All Tests forces to rebuild test objects and their references.

Solutions: there are two options:

a) Modify the object so is automatically rebuilt by GeneXus in the next execution

b) Run the option Test -> Rebuild All Tests.

Running web UI tests on Jenkins or similar

In order for web UI tests to work properly, browsers must be opened by the CI server. That is because commands that involve focus over elements (like typing) cannot be performed in some browsers, depending on the particular case.

To achieve this Jenkins must be executed from the command line and not as a service. 

If you already have it running as a service you can use the Jenkins.war file in your Jenkins installation folder as follows:

java -jar "C:\Program Files\Jenkins\Jenkins.war" --httpPort=8081

Error launching browser for web UI tests

If you have some error like "session not created" or "this version is not compatible" check out the Web UI Tests Compatibility Issues

Download a file automatically on Internet Explorer

When you need to download a file in a user interface test executed on Internet Explorer, you will have to manage a download bar that appears in the browser. See the workaround to download a file on IE.

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant