Add an Assembly Reference (Standalone version)
If you add a coded step in the Standalone version and use logic contained in an outside assembly, you will need to add a reference to that assembly. Just like Visual Studio, project references in the Standalone version are project specific. Adding an assembly reference in one project does not make it available to other projects.
- Open or create a test project in the Standalone version. From the Project tab, click the Show button in the Settings ribbon.
- The Project Settings menu loads.
- Click Script Options.
- This lists the Project References.
- Click Add Reference to browse for an assembly in DLL form. This example uses the following directory:
Locate the assembly, add it, and execute your test. Test Studio will build the coded step(s) and alert you to any compilation errors.
Note: You cannot use using or Imports statements directly from a coded step. You must add them to the code-behind. Open this for editing with the View Class button.