The VectorCAST Reqs2x tools provide LLM-powered capabilities for requirements engineering and test generation workflows. These tools leverage large language models to:
- Generate requirements from source code
- Infer traceability between requirements and code
- Generate VectorCAST test cases from requirements
All tools require a configured LLM provider to function. The tools support multiple LLM providers including Azure OpenAI, OpenAI, Anthropic, LiteLLM, Azure APIM, and OpenAI Access Token.
This manual demonstrates Reqs2x usage workflows from inside this VS-Code extension using the TUTORIAL_C demo environment. Before starting, ensure you have the necessary components ready.
- Uninstall Previous Versions: Remove any existing versions of the VectorCAST VS-Code extension.
- Prepare Reqs2x Core:
- Extract the Reqs2x core release (
autoreq-win.tar.gzorautoreq-linux.tar.gz). - Locate the
binfolder (executables) andTUTORIAL_Cfolder (demo environment).
- Extract the Reqs2x core release (
- License Setup: Ensure your VectorCAST license is configured. Ideally, point
VECTORCAST_DIRto your release. - Open Project: Open a terminal and navigate to the extracted
autoreq-win/distribution/TUTORIAL_Cdirectory.
- Install the Excel Viewer extension (
GrapeCity.gc-excelviewer) to view/edit Excel sheets directly in VS Code. - Install the VectorCAST Text Explorer VS-Code extension from the Microsoft Marketplace.
- Activate the extension: Press
Ctrl+Shift+P, search for Vectorcast Test Explorer, and pressEnter. - Open the Settings tab (opens automatically).
- Configure the following settings:
-
Vectorcast Test Explorer › Reqs2x: Installation Location: Point this to the
autoreq-win/distribution/binfolder you extracted earlier. -
Vectorcast Test Explorer › Reqs2x: Provider: Select the large language model provider you intend to use from the dropdown menu
- Note: Most providers support the
openaiAPI. This includesGoogle,AWS Bedrock, as well as open-source model-serving methods likeollama,vLLMandSG-Lang. Use LiteLLM for any provider not supportingopenai/openai_azureAPI.
- Note: Most providers support the
-
For the provider you selected, fill in:
-
Vectorcast Test Explorer › Reqs2x > : Base Url
This is your large language model endpoint.
-
Vectorcast Test Explorer › Reqs2x > : Api Key
The API key for your provider. Note: for on-prem providers like
ollamaandvLLMyou can set this field tonone. -
Vectorcast Test Explorer › Reqs2x > : Model Name
Name of the large language model you will be using. For example:
gpt-4.1,gpt-4.1-mini,Qwen/Qwen3-30B-A3B-Instruct-2507(fromHugging Face),gpt-oss:20b(fromollama) etc. -
Vectorcast Test Explorer › Reqs2x > : Deployment Name Name of the large languge model deployment you intend to use - you may have multiple deployments of the same large language model.
-
-
Vectorcast Test Explorer › Reqs2x: Generation Language
Select the requirements language from the dropdown menu.
-
Vectorcast Test Explorer › Reqs2x: Enable Reqs2x Feature:
Tick this box to activate Reqs2x.
-
- Optional settings:
- Vectorcast Test Explorer › Reqs2x: Decompose Requirements:
This option is enabled per default. Untick this box if you do not want Reqs2x to automatically decompose your requirements.
- Note: With decomposition inactive, Reqs2x will only generate a single test for each of your requirements.
- Vectorcast Test Explorer › Reqs2x: Generate High Level Requirements:
Tick this box if you are using
Reqs2xfor generating requirements from code and want to generate module-level requirements - Vectorcast Test Explorer › Reqs2x: Output Debug Info:
Tick this box to log more details during requirement/test generation. The logs can be found in the
OUTPUTtab of the VS-Code bottom bar by selectingVectorCAST Requirement Test Generation Operationsfrom the output channel dropdown menu in the lower-right corner.
- Vectorcast Test Explorer › Reqs2x: Decompose Requirements:
This option is enabled per default. Untick this box if you do not want Reqs2x to automatically decompose your requirements.
- In the Explorer view, right-click the
.CFGfile and select Set as VectorCAST Configuration file. - Ensure
ENVIRO.SEARCH_LISTis set to.for code coverage. - Right-click
TUTORIAL_C.envand select Build VectorCAST environment.
The demo release includes an Excel file with requirements and requirements-to-code traceability.
- Click the Flask icon (Test Explorer) on the left sidebar to show the environment tree.
- Right-click
TUTORIAL_Cand select VectorCAST -> Show Requirements. The requirements webview will appear. - Right-click
TUTORIAL_Cand select VectorCAST -> Populate RGW from Requirements.
- Right-click
TUTORIAL_Cand select VectorCAST -> Generate Tests from Requirements.- A progress bar will appear. This may take 1-2 minutes.
- Monitor progress: Open the OUTPUT pane and select VectorCAST Requirement Test Generation Operations.
- Analyze Requirements:
- Open the Requirements webview and place it side-by-side with
manager.c. - Locate
FR27 Add Included Dessert. Note that it describes three distinct behaviors (2 order combinations that qualify for different free dessert and no dessert for any other order combination). - The system decomposes this into atomic requirements and generates corresponding tests.
- Open the Requirements webview and place it side-by-side with
- Verify Tests:
- In the Test Explorer, find the
Add Included Dessertnode. You should see 3 tests. - Right-click a test (e.g., one for free pie) and select VectorCAST -> Edit Test Script.
- Observe the
REQUIREMENT.KEYfor traceability andTEST.NOTESfor the description of an atomic behavior that the generated test is validating.
- In the Test Explorer, find the
- Click the Run button next to
TUTORIAL_Cto execute all tests. - Open
manager.cto inspect code coverage (check the bottom bar or gutter).- Note: You can open the environment in VectorCAST GUI to inspect the results. The generated tests are no different than manually-created
tstfiles fundamentally - you can apply the same downstream operations
- Note: You can open the environment in VectorCAST GUI to inspect the results. The generated tests are no different than manually-created
-
Modify requirement:
- Open
reqs.xlsxusing the Excel Viewer. - Find
FR27(Add Included Dessert). - Change the free dessert for
steak, caesar salad and mixed drinkfrompietocake. - Change the free dessert for
lobster, green salad and winefromcaketopie. - Save (
Ctrl+S) and close the tab. - Right-click
TUTORIAL_Cand select VectorCAST -> Populate RGW from Requirements to push the change to the requirements gateway. You will be prompted to accept replacing the old requirements gateway with the new one.
- Open
-
Update tests:
- In Test Explorer, find the
Add_Included_Dessertnode. - Right-click
Add_Included_Dessertand select VectorCAST -> DeleteTests. - Right-click
Add_Included_Dessertagain and select VectorCAST -> Generate Tests from Requirements.- This will generate tests only for the requirements related to
Add_Included_Dessertfunction.
- This will generate tests only for the requirements related to
- In Test Explorer, find the
- Verify failure:
- Run the newly generated tests (some may contain "PARTIAL" in the name).
- The tests under
Add_Included_Dessertshould fail because the code still implements the old requirement. - Right-click on a test under
Add_Included_Dessertand select VectorCAST -> Edit Test Script. to confirm the expected value for the free dessert indeed matches the new requirement. - Note: Reqs2x considers requirements to be the source of truth and gives them preference if there are discrepancies between the code and the requirements.
- Adapt the code to match the requirement:
- Open
manager.c(line 21) and changeOrder->Dessertto be assignedCAKE - Open
manager.c(line 27) and changeOrder->Dessertto be assignedPIE - Right-click
TUTORIAL_Cand select VectorCAST -> Re-build environment. - Run the failing test again. It will now pass.
- Open
You can also generate requirements directly from existing code.
- Clean Up:
- Delete existing tests: Right-click
TUTORIAL_C-> VectorCAST -> Delete Tests. - Clear results: Click
...in the Test Explorer -> Clear all results. - Remove requirements: Right-click
TUTORIAL_C-> VectorCAST -> Remove Requirements.
- Delete existing tests: Right-click
- Configuration (Optional):
- In Settings, enable Vectorcast Test Explorer › Reqs2x: Generate High Level Requirements if desired.
-
Generate:
-
Review:
-
Generate Tests:
- Right-click
TUTORIAL_C-> VectorCAST -> Generate Tests from Requirements. - Note: We can observe that more tests get generated from generated requirements then from the original requirements (24 instead of 17). This is due to generated requirements being more fine-grained and exhaustively describing the implementation.
- Right-click


















