Set up a development workflow for TechSmith automation scripts with PowerShell testing.
techsmith-automation/
├── scripts/
│ ├── capture-screenshot.ps1
│ ├── batch-render.ps1
│ └── capture-video.ps1
├── tests/
│ └── test-com-connection.ps1
├── output/
└── templates/
└── camtasia-presets/
# tests/test-com-connection.ps1
Describe "Snagit COM Server" {
It "Should create ImageCapture object" {
$capture = New-Object -ComObject Snagit.ImageCapture
$capture | Should -Not -BeNullOrEmpty
}
It "Should create VideoCapture object" {
$video = New-Object -ComObject Snagit.VideoCapture
$video | Should -Not -BeNullOrEmpty
}
}
Install-Module -Name Pester -Force -SkipPublisherCheck
Invoke-Pester ./tests/ -Output Detailed
| Error | Cause | Solution |
|---|---|---|
| COM not available | Snagit not installed | Install Snagit on dev machine |
| Pester not found | Module missing | Install-Module Pester |
Proceed to techsmith-sdk-patterns.