Using the $(Platform) Path Macro to Locate the Correct Code Module in 32-bit TestStand and 64-bit TestStand
- Aktualisiert2025-07-23
- 1 Minute(n) Lesezeit
You can use the $(Platform) path macro to simultaneously associate a step or sequence with the 32-bit version and the 64-bit version of a code module. 32-bit TestStand expands the $(Platform) macro to win32, and 64-bit TestStand expands the macro to x64. All adapters that require paths to code modules support the $(Platform) macro.
The TestStand Engine API supports the $(Platform) macro in the following methods:
- Engine.FindFileEx
- Engine.FindPath
- Engine.ExpandPathMacros
The Engine.FindFileEx and Engine.FindPath methods expand the $(Platform) macro automatically when searching for files or paths. The Engine.ExpandPathMacros method evaluates and expands the $(Platform) macro in a path string to provide lower-level access to the macro functionality when needed.
When a path name includes the $(Platform) macro, TestStand ignores the Search Subdirectories setting in the Edit Search Directories dialog box to avoid the conflicts that would otherwise arise when multiple copies of a file with the same name reside under the same root directory.