Select to view content in your preferred language

ArcGIS Pro 3.3 Regression/Unit Tests not running

1900
10
Jump to solution
05-14-2024 03:52 AM
marco_vertigis
Occasional Contributor

Hi there,

I am currently try to run some integration/unit tests with the headless pro instance.

I followed the steps described in the guide (https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing) and even tried to replicate the exact same sample, without any success. I also tried to use the Extension30 nuget instead of the dlls directly (https://community.esri.com/t5/arcgis-pro-sdk-questions/any-suggestion-on-setting-up-unit-test-projec...)

 

The start up process of the headless test client always throws a null pointer exception:

Object reference not set to an instance of an object.

The stack trace implies that it has something to do with the licensing

   at ArcGIS.Desktop.Core.Licensing.LicensedApplication.<CheckForLicenseAsync>d__12.MoveNext()
   at ArcGIS.Desktop.Core.ProApp.<TestModeInitialize>d__15.MoveNext()
   at GetSymbolSwatchTests.TestEnvironment.<StartApplication>d__2.MoveNext() in C:\Daten\repos\sandbox\GetSymbolWatchTests\TestEnvironment.cs:line 68

I got an ArcGIS Pro 3.3 installation on my host with a valid concurrent use license fetched from a server. Are there any requirements to the licensing level? I also completely reinstalled the ArcGIS Pro installation without any effect. The sample project which I used is attached (sandbox.zip).

Any help would be appreciated!

0 Kudos
10 Replies
marco_vertigis
Occasional Contributor

Finally got it running with another try based on the Pro Guide here:
https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Regression-Testing

The solution (atleast for me) seems to be to not sign the assemblies in the debug build.

Working with Pro 3.5 now.

0 Kudos