Plan your first test
Required time: 3 minutes
Before we start building our test, we need to think about what we’re actually going to do. This helps prevent errors and tedious restructuring of tests.
Planning
To plan the test we’re going to create in this guide, we’ll ask ourselves the following questions. These also apply when you create more complex tests.
- What do we want to test?
- How can we test it?
What do we want to test?
In this guide, we’ll test the Ranorex Studio Demo Application, a simple program to support you in learning how to work with Ranorex Studio.
Demo Application download
The demo application can be downloaded here ⇢ Ranorex Demo Application. Extract the application into any folder of your choice. For the purpose of this guide, we’ll assume that it’s saved to the
/Downloads/
folder of your system.Demo application start page
We will create a test to confirm that text entered in the Enter your name field appears in the welcome message on the right, after clicking Submit.
How can we test it?
To test the behavior described above, our test will need to include the following actions:
- Start the application
- Click in the text box
- Enter “Harry” in the text box
- Click Submit
- Verify that the text is displayed in the welcome message
- Close the application
The test is successful if the submitted name appears in the welcome message.