Tutorial: Manual Testing¶
Purpose¶
Exploratory manual testing is used for situations where you have a new or changing application and the user interface is still evolving. Traditional manual testing, where you create a test case ahead of time, define the prescriptive test steps and then assign it to the tester does not make sense in such cases. The solution is to perform exploratory testing, where you explore using the application at the same time as creating the test script. The created test script can then be published to your test management system (i.e. SpiraTest) for future regression testing.
Rapise can help accelerate and optimize exploratory manual testing. Rapise lets you walk through the application, capturing your interactions as you use it, recording screenshots of the objects and screens you interact with. From this, Rapise will create a fully formed test script ready to use.
Step 1 - Creating a New Test¶
To start manual testing, simply create your test as normal using the New Test dialog box and choose Manual methodology:
Then once the test has been created, click on the Tools > Manual Steps
menu item and then you will be taken to the Manual Editor with the Manual Toolbar visible.
The test step list will initially be empty:
Step 2 - Recording Some Steps¶
Now you should open up the application you want to record from. In this example we shall be testing the built-in Microsoft Paint application. This is a good candidate for manual testing as a lot of the functionality is hard to test automatically since there is a simple drawing canvas rather than discrete buttons and data elements to test.
To make sure that we have screenshots recorded, whilst keeping the size of the screenshots reasonable, use the following recording options:
Now click the Record Manual button (or menu Test > Record Manual
) and choose MS-Paint from the list of running applications in Select Application to Record dialog and then click 'Select' to start recording.
As you click through the application, the recording will display the list of steps and actions being captured:
In this example, we created a new canvas, chose the Pencil tool, created a drawing using the pencil, entered some text and then made it bold:
When you click Finish to complete the recording, Rapise will display the list of populated manual test steps with the embedded screen captures:
Notice that each recorded test step already has a Description
and an Expected Result
with a screenshot of what the user was doing. In addition, the Sample Data
contains the equivalent of Rapise automation code for reference. This can be useful later if you will decide to automate this test.
Step 3 - Editing the Steps¶
Typically you may want to add some additional steps (e.g. we added a line to describe the process of starting up MS Paint), delete any duplicate/unnecessary steps and reword them so that they make the most sense to the tester. In our example we used the manual editing screen to update the steps as follows:
Click Save to make sure the updates are all saved locally. Now before you can execute these tests, you will need to Save them to Spira (our web-based test management system).
Step 4 - Saving to Spira¶
Click on the option to Save to Spira, you will be asked to confirm the creation of the document folder in Spira that will hold the test files:
Click on Create and then click OK in the Synchronize Files
dialog. The manual test will be saved to Spira. You will see that this process adds the unique Spira test step IDs to each step. They are displayed using the format [TS:xxx]. This special token [TS:xxx] can be used in Tester.Assert
commands to relate specific verification points with test steps during automated testing.
Now that the test has been saved in Spira, you can click on the View Manual Test in Spira toolbar button to see how the test steps look inside Spira.
Now that we have finished the recording, we can now play back this manual test.
Step 5 - Executing the Manual Test¶
Choose the Release from the list of those available in the project:
Then click on the Execute icon to start manual test execution. That will bring up the manual playback screen:
On this screen, we shall follow through the steps listed in the test case. This involves opening up MS Paint, creating a new canvas, adding some lines using the pencil and then adding some text using the text tool. As you perform these steps, click on the Pass
button to indicate that each step has passed. You can also minimize the manual playback screen by clicking the >|
button.
Once you get to Step 6, we shall pretend that MS Paint failed to display the text correctly. Enter in the Actual Result a message to that effect:
Next we shall attach a screenshot of what actually happened and log a test failure.
Step 6 - Capturing and Annotating a Screenshot¶
Click on the Image icon in the rich text editor associated with the Actual Result text box. That will bring up the Drawing Tools screen that asks you to draw a rectangle to select a portion of the current screen to capture:
If the MS Paint application is not in the foreground, just click Esc on your keyboard to abort, rearrange your windows and then try again. Once you have selected the rectangle, the drawing tools will display your selected image in the image editor:
You can now use the annotation tools to add labels, text and other items to explain the issue that you found:
In the example above, we added a red ellipse, arrow and text to mark the issue that was seen in MS-Paint. Once you are happy with your image, click Accept and the image will be included in the test Actual Result:
Finally, Fail the Step 6 and click on the Finish button.
The results will be posted to Spira.
Step 7 - Viewing the Results¶
Now to view the results in Spira, click on the View > View Manual Test in Spira menu. That will bring up the test case in Spira. Now click on the Failed
hyperlink in Spira and the new test run will be displayed:
If you scroll down, you can see the individual test steps that were executed, with the associated actual result (including the captured screenshot):
Congratulations! You have now successfully executed a manual test using Rapise.