How do I write tests in Testuff?
Writing tests in Testuff is super easy! Here’s how it’s done:
- Go to the Tests screen. By default, you’ll see the list of all tests previously created, if any. Otherwise the No tests to show message will be displayed. You can filter the list by selecting a specific suite, or by using the Filters feature, for other filtering options.
- Click on the Add Test button to create a new test, or edit an existing test, by clicking on its name.
- Before the test editor will load you must select the suite where the test will be located. Enter the test name at the top text box.
- Simply write out the test steps, separating them with a blank line in between (hit the Enter key twice after each step). Add text formatting as you like.
- To indicate an expected result, type =>, or click the relevant icon from the icons line instead, and write the expected result after it.
- To add preconditions, just add it in the first lines of the test editor and then tick the Treat first paragraph as preconditions check-box.
- You can attach a file to the test clicking the Attach File icon or simply by dragging and dropping the files on the bar Drop files here to upload.
- Want to see the result before saving? Go to the Test preview. See how the end result looks and continue editing.
- Once done don’t forget to Save the test.
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. You may use the Search test by name popup to find any test and its ID.
More than just writing the steps
- The test editor includes additional parameters you can set.
- Estimated run time
You can also add Comments to the test, to communicate 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).
What is the Estimated Time for?
You can estimate how long the test should take to execute. Testuff automatically measures the test run time, once executed, so you can improve your test management and planning by comparing these two numbers.
If you don’t know, or are not concerned about how long the tests take to execute, simply leave it empty.
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.
Tips & Other Features
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. Just add the ID, and the format will be automatically 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.
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.
Example of a test
Notice the Sample Suite that was created automatically in your default project. It has several example tests. Here’s one simple test that lets you have a main idea on how to create a test:
|Pre-conditions:||Notepad is installed|
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