Welcome to the Acumatica Test SDK Starter Guide! This guide is designed to help developers set up and run tests using the Acumatica Test Software Development Kit (SDK). Whether you're just starting out or looking to upgrade an existing project, follow the steps below to ensure a smooth testing experience with Acumatica.
- Setting up a New Test Project
- Upgrading to a Newer Version
- Certification Submission Requirements
- Common Errors and Troubleshooting
- Create directories:
C:\AcumaticaTestSDK
C:\AcumaticaInstallers
C:\AcumaticaSites
C:\share
C:\share\download
C:\share\logs
(for test results)
- Download the AcumaticaERPInstall.msi and rename it to the version build number eg. 23.201.0092.msi then place it into the 'C:\AcumaticaInstallers' folder.
- Download and extract the
TestSDK.zip
for the matching version from this link toC:\AcumaticaTestSDK\TestSDK_23_201_0092_93
.
- Extract the .msi using this command, this command allows you to install multiple versions of Acumatica on the same machine.:
Run
msiexec /a C:\AcumaticaInstallers\23.201.0092.msi /qb targetdir=C:\AcumaticaInstallers\23.201.0092
ac.exe
from the extracted folder to start the Acumatica installer. - Install Acumatica website to
C:\AcumaticaSites\23r201
for the specific version. Use theSalesDemo
data during install and name the website and database23r201
. - Login to the new website at
localhost/23r201
with initial credentials:
- Username:
admin
- Password:
setup
- Suggested new password:
123
for local testing
- In Visual Studio, open the
Test-SDK-Starter-Guide
solution (ISVTestSDK.sln
). - Remove all old Dependencies -> Packages.
- Navigate to Manage NuGet Packages, add a new package source, and include the packages folder from
C:\AcumaticaTestSDK\TestSDK_23_201_0092_93\packages
. - Add all references from the new NuGet source to the project.
- In
test.cs
, updatephysicalSitePath
to the website's install folder locationC:\AcumaticaSites\23r201
. - In
launchsettings.json
, update thecommandLineArgs
to point toC:\AcumaticaTestSDK\TestSDK_23_201_0092_93\config.xml
. - Configure
config.xml
fromC:\AcumaticaTestSDK\TestSDK_23_201_0092_93
to match your site. Use the Chrome version fromC:\AcumaticaTestSDK\TestSDK_23_201_0092_93\Chrome\chrome.exe
. - Configure and run the
GenerateWrappers()
method.
- Download and install the Acumatica version you want to upgrade to at
C:\AcumaticaSites\23r201
. UseSalesDemo
data during install and name the website and database23r201
. - Publish your customization to the site.
- Download and extract
testSDK.zip
for the corresponding version toC:\AcumaticaTestSDK
.
- Open the
Test-SDK-Starter-Guide
solution (ISVTestSDK.sln
). - Remove all old Dependencies -> Packages from the project.
- Navigate to Manage NuGet Packages, add a new package source, and include the packages folder from
C:\AcumaticaTestSDK\TestSDK_23_201_0092_93\packages
. - Add all references from the new NuGet source to the project.
- In
test.cs
, updatephysicalSitePath
to the website's install folder location. - In
launchsettings.json
, update thecommandLineArgs
to point toC:\AcumaticaTestSDK\TestSDK_23_201_0092_93\config.xml
. - Configure
config.xml
fromC:\AcumaticaTestSDK\TestSDK_23_201_0092_93
to match your site. Use the Chrome version fromC:\AcumaticaTestSDK\TestSDK_23_201_0092_93\Chrome\chrome.exe
. - Configure and run the
GenerateWrappers()
method.
- Submit the following folders and file inside a .zip
CustomizationPackages, DataFiles, Extensions, Helpers,Tests, Wrappers, Test.cs
. - You must use the exact folder structure and place files in their respective places, Helpers folder is for uncategorized items.
- No external dependencies may be used to run the tests.
- Any Excel files must be named starting with SOLUTONNAMEFileName.xlsx and Imported using the sample code with excelsPath and new ExcelPackage(new FileInfo(...));
- All files should have the exact namespace: "namespace GeneratedWrappers.SOLUTIONNAME" where
SOLUTIONNAME
is your registered solution name from the ISV Partner Portal in uppercase. - Use the Test.cs to kick off the StartTests.cs and also use the
GenerateWrappers()
method. - From the starting state of SalesDemo data + your customization packages published - with no manual configuration - You must make all pages accessible before wrapper generation using a Customization Plug-In or testSDK code or wrapper generation will fail.
- From the starting state of SalesDemo data + your customization packages published - All setup data must be done via testSDK code for Acumatica screens (use DynamicControl for customized fields) or Customization Plug-in for custom screens to configure the test starting state. Snapshots are not supported.
- Error Codes:
0
: Test passed successfully.2
: Test failed. Check the generated log atC:\share\logs
.1
: Invalid/missing file or folder mapping error.
- Site Inaccessible after Generating Wrappers: The Wrapper Generation cmd window was closed manually and didn't reset the
web.config
back to the original . You must wait for the Wrapper generation to complete and self-close. To restore the website you must copy the original web.config - now namedweb.config.63b98fa0
and paste the contents back into the web.config file.