Writing Tests
How do I write tests in Testuff?
Writing tests in Testuff is super easy! Here's how it's done:
- Go to the Tests tab.
- Either edit a test by double clicking it, or create a new one via right click.
- The test editor will load. Enter the test name at the top most textbox.
- Simply write out the test steps separating each one with a blank line in between (hit ENTER twice after each step). Add text formatting as you like.
- To indicate an expected result, type => and write the expected result right afterwards.
- 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.
- 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.
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 don't care) how long tests take to execute, simply leave it empty.
Test Priority
You can now control the priority of each Test you create. Testuff supports three levels of priority currently: High, Normal and Low. If you don't need to prioritize your tests, just leave it as it is.
Can I attach files to my Tests?
The best way to include a file in your test cases is linking it to a shared drive on your local network, or on your own PC. Simply click on the hyperlink button and include a file URI. e.g. file:////remotehost/share/dir/file.txtFor more information about file URIs, please see this wikipedia entry.
Are there any keyboard shortcuts in the test editor?
Yes siree. Here they are:
| Save | CTRL+S |
| Save and close | ALT+ENTER |
| Close | ESC |
| Select all | CTRL+A |
| Bold | CTRL+B |
| Underline | CTRL+U |
| Italics | CTRL+I |
| Links | CTRL+K |
| Undo | CTRL+Z |
| Redo | CTRL+Y |
<< Organizing tests | Help index | Running tests >>
