Skip to content
Run Automated AL Tests from PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
RunAutomatedTests/powershell
runautomatedtests
.gitignore
README.md

README.md

RunAutomatedTests

This repo is all about running Automated NAV Tests from PowerShell. The objects provided are created with Visual Studio Code and the NAV Development Preview (June 2017)

Problem description

Running automated tests from the commandline/powershell is not possible because the automated tests require a user interface and the Invoke-NAVCodeunit cmdlet does not support this.

The solution

A powershell function which does the following:

  • Prepare the test run by creating a Test Suite with the desired tests
  • Startup the RTC as a new process with a codeunit which starts the execution of the tests
  • Monitor the CAL Test Suite table with Invoke-SqlCmd until the tests are finished
  • Close the process
You can’t perform that action at this time.