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.
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.
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.
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.