Solved

Acumatica Test SDK

  • 9 August 2022
  • 3 replies
  • 264 views

Userlevel 4
Badge +1

Hi,
I am doing Unit testing by using Acumatica Test SDK.
https://www.acumatica.com/blog/creating-acumatica-test-sdk-tests-from-scratch-for-isvs/
By taking the reference of above link Compiling the Code for my custom screen.
Getting the Below error

'Tests.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\TH-003_PC\source\repos\Tests\Tests\bin\Debug\net4.8\Tests.exe'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\Users\TH-003_PC\source\repos\Tests\Tests\bin\Debug\net4.8\Execution.dll'. 
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\netstandard\v4.0_2.0.0.0__cc7b13ffcd2ddd51\netstandard.dll'. Cannot find or open the PDB file.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\Users\TH-003_PC\source\repos\Tests\Tests\bin\Debug\net4.8\PX.QA.Tools.dll'. 
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Symbols loaded.
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'Core.Exceptions.ExecutionException' in Execution.dll
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Symbols loaded.
'Tests.exe' (CLR v4.0.30319: Tests.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll'. Symbols loaded.
The program '[2480] Tests.exe' has exited with code 100 (0x64).

 

 

Am I missing any references.. Please help on this  
Thanks.

icon

Best answer by AaronB 9 August 2022, 17:33

View original

3 replies

Userlevel 4
Badge +1

Hi Girik,

 

Please ensure you are using the latest documentation found inside the git project

https://github.com/Acumatica/Test-SDK-Starter-Guide/blob/master/ISVTestSDK/ISVTestSDK.csproj

In the guide, please ensure you have it set to net48, not net4.8, also make sure you have the debugger tools from the AcumaticaERP installer to resolve missing PDB issues if they persist after updating the .net version

 

Userlevel 4
Badge +1

Hi Aaron.I am able to open the screen..Inserting records is not Executing..While Debug above popup is showing.

Userlevel 4
Badge +1

Hi @girik06 
TestRunner.cs is inside the Execution Nuget package that you must add to the solutions dependencies. 

Note the packages are version specific and need to match the website version you are running on

See steps 2-6 from the following guide for exact instruction

https://github.com/Acumatica/Test-SDK-Starter-Guide/blob/master/ISVTestSDK/How%20to%20Start%20or%20Upgrade%20a%20Test%20SDK%20Project.docx

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved