How do I write tests in Testuff?

Writing tests in Testuff is super easy! Here’s how it’s done:

  1. Go to the Tests tab.
  2. Either edit a test by double clicking it, or create a new one via the right click menu. There’s also the Add test link for the same purpose.
  3. The test editor will load. Enter the test name at the top text box.
  4. Simply write out the test steps separating each one with a blank line in between (hit the Enter key twice after each step). Add text formatting as you like.
  5. To indicate an expected result, type => and write the expected result after it.
  6. To add preconditions, use the first lines of the test editor as preconditions and then tick the Treat first lines as preconditions option at the bottom of the screen.
  7. You can attach a file to the test by simply clicking the Attach a file link at the top part of the test editor, and then selecting the file.
  8. Don’t forget to save the test via the link. You may also do so via the Ctrl+S keyboard shortcut, save & close via Alt+Enter, or close without saving via Esc.

Shared Steps

You can share steps from one test and call them into another test. Use the format #TEST,test_id# in the Test Editor to add the steps from another test. We’ve added a special icon for this in the editor, to help you quickly add just the ID, and the format will be created for you.
Sharing individual steps between tests, is supported as well. Just add the order number of the steps you wish to share, after entering the Test ID. Leave it empty to share all steps.

Shared Precondition

To share the precondition of a test, in another test, use the same format of #TEST,test_id# as for shared-steps, and check the precondition check-box at the bottom of the editor. Note you can add both shared-precondition and shared-steps by simply adding #TEST,test_id# twice.

Test Dependency

A test can be marked as dependent of another test. This means it could not be run, unless the dependent-on test was ran and has a status of passed.
To do that, just enter the dependent-on test ID in the editor of the dependent test. It’s that easy.

More than just writing the steps

  • The test editor includes additional parameters you can set. Estimated run time, Priority, Category, Stage, Labels, and the Custom Fields.
  • You can add a comment to the test, communicating with the test writer or the tester.
  • Link steps or expected results to files and images:
    • To link/relate one of the attached files to a step, click the Link icon, enter the text to display and the file’s URL.
    • To link and show an image on the precondition, step or expected results, click on the Link icon, enter IMAGE in the text-to-display field and then simply enter the file name (e.g. my-image.png).

Do you have an example of a test?

Yes. Notice the sample suite that was created automatically in your default project. It has several example tests. Here’s one:

Test Name: Re-saving
Pre-conditions: Notepad is installed
Test Steps: Open Notepad

Type in some text

Save the file

=> File should be saved properly with the content

Type in some more text

Save again

=> No file dialog should appear

=> File should be saved properly with the new content

What is the Estimated Time for?

You can estimate how long the test should take to execute. Testuff also automatically measures test run time so you can improve your test management and planning.
If you don’t know or are not concerned how long tests take to execute, simply leave it empty.

Test Priority

You can now control the priority of each test you create. Testuff currently supports three levels of priority: high, normal and low. If you don’t need to prioritize your tests, just leave it as it is.

Are there any keyboard shortcuts in the test editor?

Yes! They are:

Select all Ctrl+A
Bold Ctrl+B
Underline Ctrl+U
Italics Ctrl+I
Links Ctrl+K
Undo Ctrl+Z
Redo Ctrl+Y