Exciting news! We are redesigning the Arctic Wolf Help Documentation site to provide a better user experience. Our new site will launch on May 1, 2024.

Test a Slang Project

Updated Dec 21, 2023

Test a Slang project

After a Slang project is exported to the Security Content Automation Protocol (SCAP) (XML), you can test the project by running an assessment against a live system.

Before you begin

Steps

  1. Create a Slang scan configuration.
  2. Test the Slang project.
  3. View the scan results.

Step 1: Create a scan configuration

To create a Slang scan configuration, you need to scan a target system that matches the platform your project is written for.

For each scan configuration you want to create, complete these steps, using a unique name for each configuration:

  1. In Visual Studio Code (VS Code), select File > Open Folder, and then navigate to your project.
  2. In a terminal, run this command to export the project to SCAP as XML and run a scan configuration:
    slang export <project_name> <project_name>.xml --scan_config <config_name>
  3. Follow the prompts to configure the scan.
  4. (Optional) To remove a scan configuration, delete the appropriate scan_configs subfolder.

Step 2: Test the Slang project

  1. Edit your Slang.

  2. Run this command:

    slang export <project_name> <project_name>.xml --scan_config <config_name>

    Slang saves your configuration and will not prompt you to do it again.

Step 3: View the scan results

  1. In your project, locate and select the scan_configs/<project_name> file.
  2. Open the HTML report scan_configs/<project_name> in a web browser.

    Tip: The report can be opened from a terminal. Based on your operating system, do one of these actions:

    • On Windows, run this command:

      start <filepath>.html
    • On macOS, run this command:

      open <filepath>.html

Next steps

See also