CAST OneClick
A set of automation tools designed to analyze applications on a portfolio level. Providing the ability to perform
- Complete application discovery
- MRI Analysis
- Highlight Analysis
- Portfolio level reporting
To take advantage of all oneClick has to offer access to AIP Console, Highlight and the CAST REST API. OneClick also requires the installation and locations to the AIP Console and Highlight automation toolset, available on the CAST Extend website.
OneClick is designed to perform a due diligence assessment from beginning to end for one or more applications in a project. This includes:
- Code discovery
- Run CAST MRI Analysis
- Run CAST Highlight Analysis
- Generate Action Plan
- Generate Due Diligence Assessment Report
To work properly the tool will need access to CAST AIP Console, CAST Highlight Rest API, Highlight Agent, Highlight CLI, and CAST MRI Rest API. The tool expects the working folder structure to be:
- code is the base folder referred to in the --baseFolder parameter.
- .oneclick is generated by the tool containing all of the project configuration files.
- DELIVER holds all the delivered code organized by project and application. The tool is expecting one folder for each application, this name will be used to represent the application going forward.
-
Download Python | Python.org (if not already installed).
-
Download the OneClick extension from the CAST Extend web site.
-
Expand the nugget file into a folder, using zip.
-
Open a command prompt, hold down windows key and press r, then type cmd enter.
-
Go to the folder containing the expanded nugget file.
-
Type: install <base folder location>
- The base folder location will hold all files used and/or created by the OneClick tool.
- For more on this see the Environment section below.
OneClick has two types of arguments, the first is used for both project and global configuration. Once the configuration is complete the second argument type is used to run the application analysis and generate the assessment report.
oneClick config -b <base location> [-p <project name>]
or
oneClick run -b <base location> -p <project name>
Configuration files are stored in the <base folder location>/.oneclick folder, created during installation. There are two types, global and project. The common configuration file, config.json, contains information common to all applications. When a new project is created the tool incorporates all global configuration items into the project specification configuration.
Oneclick has been tested using both 1.x and 2.x Enterprise version of AIP Console. The AIP Console integration tools is used to access the Console which can be downloaded:
Make sure the integration tools and AIP Console version matches. After both are installed update the common configuration file:
oneClick config -b <base location> [-p <project name>] --consoleURL=http:\\<server>\ --consoleKey=<console-key> --consoleCLI=<console-integration-tool-location> --enable-security-assessment <true> --blueprint <true>
To run Highlight scans both the Agent and CLI tool must be installed. The can be downloaded from the Application Scans page in the Highlight portal.
oneClick config -b <base location> [-p <project name>] --hlURL=<portal-url> --hlUser=<username> --hlPassword=<password> --hlInstance=<Instance-ID> --hlCLI=<CLI-location> --HLPerlInstallDir=<agent-location>/strawberry/perl> --HLAnalyzerDir=<agent-location>/perl
| Parameter | Description |
|---|---|
| hlURL | The Highlight portal URL |
| hlUser | User Id |
| hlPassword | Password |
| hlCLI | Absolute folder location for the Highlight command line interface |
| HLAgent | Absolute folder location for the Highlight agent |
The AIP Rest API is part of the Health and Engineering Portal (HDED) installation and is used to generate the assessment report. There are two distinct portal versions Standalone and Integrated and OneClick will work with both. The REST API configuration is as follows:
oneClick config -b <code location> [-p <project name>] --aipURL <URL> --aipUser <username> --aipPassword <password>
| Parameter | Description |
|---|---|
| aipURL | The Imaging portal URL |
| aipUser | User Id |
| aipPassword | Password |
oneClick config -b <code location> [-p <project name>] [--java_home <java>] --report_template <template> [cloc_version <cloc-1.96.exe>]
| Parameter | Description |
|---|---|
| java_home | Location of the java installation. This parameter can be omitted if the java bin folder is already part the system path. |
| report_template | The absolute location of the assessment report template. |
| cloc_version | The cloc executable is located in the scripts folder and is set by default to cloc-1.96.exe. A new executable name can be added here to override this version. |



