In the script manager tab, the user can create and manage scripts like copy, move, delete, rename, edit, etc. Users can further add transactions, parameters, and APIs to the script and verify them by adding assertions from the script editor UI.

## LEFT PANE

### PROJECTS

Projects are the directory where sub-projects are available. Once you select the projects in the left pane, the top 4 scripts based on the last modification or alphabetical order are shown in the script dashboard.

#### SUB-PROJECTS

Sub-projects are directories where test assets like test suites, scripts, scenarios, etc. are available. When you select a sub-project from the left pane, all the available scripts related to that sub-project are shown.

- Scripts: A script represents a typical session of a web application’s user interaction. Once you click any script, all the files in the script are shown on the right pane. There are mainly 5 files that are available after recording the script - flow.c, runlogic.c, registration.spec, init_script.c, exit.script.c.

### DATA

In this section, all the data directories are available. Users can upload and use their data files in the data set using the file parameter.

## TOP PANE

### CREATE SCRIPT

If the user wants to create an empty script, they will click on the “Create Script” button. After clicking on this button, a create script UI will be opened. To create the empty script, you have to fill in the following fields:

- Script Name: Enter the name of the script. Script Name is a maximum of 64 characters. The first character must be Alpha. Other characters can be Alpha, Numeric, or Underscore.
- Script Type: The following types of script creation and execution are supported:

- WebC(HTTP/HTML)
- WebJava(HTTP/HTML)
- WebJavaScript(HTTP/HTML)

- Project Name: Select the project name from the dropdown. It is the test assets directory structure containing multiple sub-projects.

- Sub-projects: This is the directory where the empty script will be created.
- Template: Users can select a template according to their need.

When you create a script without selecting any template, a blank script will be created.

When you create a script with a template, a script will be created based on the selected template. For example, if you select a “WebSocket” template, a sample script will be created with WebSocket APIs and you can edit the script as per your requirement.

### UPLOAD

By using this button, users can upload the script and Data files in zip format. Firstly select the project/sub-project where you want to upload and then upload the zip file of script or data.

- Script: For validation, check whether all necessary files are present in zip or not [preferably in typescript code]. The necessary files are init_script.c or init_script.java, exit_script.c or exit_script.java, and registration.spec.

- Data: For data, the required path should be Upload zip/tar: $NS_WDIR/workspace/workspaceName/profile/cavisson/data/.

### SORT BY

The scripts can be sorted in the following ways:

- The scripts can be sorted by when they were last modified.
- The scripts can be sorted in alphabetical order or simply sorted by name.

### VIEW BY

- List View: Once you click the icon, you can see the available scripts in list format.

It shows the name and type of the script with the last date and time modified. It also shows various actions we can take for the particular script.

- Grid View: If you click the icon, the scripts will be viewed in grid view.

## RIGHT PANE

Right Pane mainly consists of all the recorded and created scripts. When you land on Script Manager UI, the top four scripts based on the last modification or alphabetical order are shown in the script dashboard. If you want to see all the scripts in the script dashboard, you will click on “Show All”.

Select one of the scripts and click on the kebab menu present on the script when you hover over it. You can perform the following actions:

### KEBAB MENU

- View: With this option, you can open the script in the script editor in read-only mode.
- Copy: Users can copy any script from one to another project/subproject or in the same project.
- Move: To move the script from one location to another, you will click on this option. After moving any script, the same script will not be available in the source project/subprojects.
- GIT History: This will show all the changes committed till now in a local repository.
- GIT Commit: This is used to commit the changes to a local repository.
- GIT Pull: It pulls the latest commits from the remote server to the local repository. By refreshing scenarios/scripts, all the recently committed files on the master repository are fetched to the scenarios/scripts directory of the local repository.
- Download: Users can download any script with the help of the download option. The script will be downloaded in zip format.
- Rename: Users can rename the script name with the help of this option. By clicking on the rename option, a popup window will appear on the same screen with a new script name input option.
- Delete: Users can delete any script with the help of the delete option. After clicking on the delete option a confirmation message will appear on the same window to confirm delete or not.

### EDIT

To edit the created script, click the "Edit" button. Once clicked, you will be redirected to the script editor UI, where you can make modifications to the existing script.