Skip to main content
Text Editor

Documentation for VPT Text Editor feature

V
Written by VPT
Updated over a week ago

VPT allows you to edit your test scripts and supporting files before running a test.

Navigate to the Text Editor

Your scripts and supporting files will be found in two different locations:

  • Project Page: Navigate to a Project page, select Files tab, and click the pencil icon.

How to navigate to the Text Editor from the Projects page
  • Test Run Configuration: Navigate to the Test Run Configuration page by clicking on the "Run a Test" button on the header, VPT Home page, or Project page. Then scroll down to the “Test Plan” section to add a file or find the one you want to edit. You open the text editor by clicking the pencil icon in the edit column, or by clicking the dropdown to the left of the file name, then ‘edit file’ when the screen is small.

How to navigate to the Text Editor from the Test Run Configuration page

Editing Your File

After clicking the edit icon, the user will be navigated to the text editor page. The file name will be shown at the top with the file typepost-fixed at the end. The name of the file can only include alphanumeric characters as well as dot (.), dash (-), and underscore (_), up to 100 characters.

The editor will be filled with the data/script you want to edit. The text editor supports basic editing functions like undo/redo, and the ability to search for strings of characters in the top left. If your file is a ‘.jmx’ or ‘.json’ the editor will show any syntax errors with an icon on the line number that has the issue.

The Text Editor feature showing an error when changes have been made to the selected file

Saving Your Changes

Once the file name or file content has been changed, the save button will be enabled if the file is not empty. If the file name has been changed, a new file will be created with the user’s changes, but if only the file content has changed, clicking the save button will update the existing file. The new file can be found in the project > files tab or be added in test run configuration to a new test.

Text Editor after valid changes are made showing an enabled save button

Did this answer your question?