Studio:Test Scripts
What are STRIDE Test Scripts?
STRIDE Test Scripts is a general term for host-based testing of target code by means of remoting selected target-based interfaces to the host system. The target interfaces are then programmable via a standard common scripting language.
Using a script, remoted function parameters can be set, functions can be called (which run in-place on the target) and return values can be received, inspected and compared--all on a Windows host computer.
STRIDE Test Script techniques are most commonly used in these testing scenarios:
- Black-box system testing
- Integration testing
- Functional testing
- Regression testing
- Interactive testing
STRIDE Test Script-based test assets can also be combined with STRIDE Test Units for comprehensive coverage.
Test Script Features
STRIDE Test Scripts provide the following features:
- Remote access to your target's APIs and messaging interfaces
- On-target interface tracing with profiling
- Dynamic interface interception to allow runtime-assignable faking, mocking, and doubling
- Framework for record and playback of interface transactions to emulate field conditions
STRIDE Test Scripts are completely supported by the STRIDE Studio IDE, which provides a complete workspace-based environment for the development, debugging and deployment of tests.
Test Script Deployment
To take advantage of STRIDE Test Scripting, the following steps are involved:
- STRIDE build tools and library are added to the target make process
- Target source interfaces are instrumented by adding STRIDE Pragmas to target header source files
- Instrumented target is built to include STRIDE-generated source files that implement an Intercept Module
- Communication is established between the Windows host and the target (typically via TCP/IP or Serial port)
- Test scripts running on the host invoke and exercise your instrumented interfaces
Simple Test Script Example
target code