Editing Test Cases

On this page you can create or update Test Cases.

Editor buttons

The source code editor has the following buttons to help with editing:

  • Search:

    After clicking the Search button, enter a string in the search box and type Enter. The editor will highlight all instances of that string in the Source Code. The search is case sensitive. Case insensitive (and other more complicated searches) can be done using regular expressions, e.g. /ae/i will perform a case insensitive search for the text 'ae', matching 'ae', 'AE', 'Ae', 'aE'.

  • Find Previous

    Move to the previous result of searching (if any)

  • Find Next

    Move to the next result of searching (if any)

  • Replace

    After clicking the Replace button, enter a string in the Replace box and type Enter. The editor will highlight all instances of that string in the Source Code. You can choose to Replace one-by-one, all or none. The search is case sensitive. Case insensitive (and other more complicated searches) can be done using regular expressions, e.g. /ae/i will perform a case insensitive search for the text 'ae', matching 'ae', 'AE', 'Ae', 'aE'.

  • Undo

    This will undo the most recent, unsaved, change (if any).

  • Redo

    This will undo the most recently undone edit (if any).

  • Dedent

    The start of the current source code line will be moved to the left.

  • Indent

    The start of the current source code line will be moved to the right.

  • Auto-indent

    All source code will be automatically indented.

  • Comment/Uncomment

    The selected line(s) will be commented out, or if already commented out it will be un-commented.

Validation of Test Case content

Validation of Test Case content will happen automatically when the content is changed. The number of errors and warnings will be displayed in the toolbar and at the bottom of the page.

If validation is taking longer than 2 seconds, a 'waiting' icon will replace the error and warnings counts until the validation has completed.

Keyboard shortcuts

The source code editor has keyboard shortcuts to assist with search and replace. The keyboard shortcuts are active when the cursor is inside the source code text area.

  • Ctrl-F / Cmd-F

    Start searching

  • Ctrl-G / Cmd-G

    Find next

  • Shift-Ctrl-G / Shift-Cmd-G

    Find previous

  • Shift-Ctrl-F / Cmd-Option-F

    Replace

  • Shift-Ctrl-R / Shift-Cmd-Option-F

    Replace all

    (Use the tab key to move between the Yes/No/All/Stop options)

  • Alt-G

    Jump to line