Extracting Queries Related Source Code
Introduction
In order to extract the related source code for a specific set of queries we created the Mini Project Creator is a feature that allows the user to create small projects in CxAudit, consisting of only part of the total number of files in the full projects.
Some of the benefits are as follows:
Supporting customers, without requiring them to send entire projects
Testing queries fixes without having to re-run the full projects
Easily reducing the size of projects for quickly reproducing results in CxAudit
Conveniently obtaining the project configuration files (Config.xml and DefaultConfig.xml)
Configuration
Add the following configuration to the DefaultConfig.xml file:
<Configuration>
<Key>ALLOW_CREATE_MINI_PROJECT</Key>
<Value>true</Value>
</Configuration>
User workflow
Run a full project in CxAudit.
Choose a result you want to reproduce.
Right-click on the result.
On the drop-down menu, click Mini Project Creator.
A new message will pop up with the path of the zip file project. The file name consists of the project name, query name, date, and hour.
Click OK.
The folder (CxAuditSrc) that contains the Mini Project opens.
Close CxAudit and scan the Mini Project that was created.