# Creating your first ABT project
This topic will guide you through creating an Action Based Testing (ABT) test using the Gondola Test Designer (GTD) and the Car Rental sample application. We'll check if the Login Page (or Login Activity) works correctly when a user logs in with a valid account.
- Ensure that Gondola Studio is installed
- Ensure that your Gondola Studio subscription is set up properly
- Setup a mobile testing environment
# Creating an ABT Project
- Open Visual Studio Code and click on the Gondola Studio icon
- Click on the Create new project icon
- Select a directory for you project
[Gondola-Appium] Mobile ABT Sampleas the template
- Enter a name for your project, then press Enter
- Gondola Studio will generate your new project
# Creating a Test Module
Follow these instruction to create a new Test Module named loginTestSample, then add a simple Test Case to the Test Cases section:
- In the
Your description herefield, enter the module name:
Login Test Example
- If there's nothing in Test Cases section, you can add a new Test Case by typing Test Case in any cell in first column and hitting Enter
- Click on Test Case's description cell then enter
- Define the script for testing. The Test Case's main flow should follow this line: waiting for login form to load >> filling out the form with a valid account >> clicking the login button. You will also need to find an element's locator to interact with the form.
The Test Case should look like this:
Feel free to add a new line by clicking the add new line button or use the keyboard shortcut Ctrl+I. Read more about Gondola Test Designer's keyboard shortcuts click here
- Add the test to your test configuration file
# Running your Test
- Follow the steps here to run your test.
# Applying Page Object Model
- Follow these instructions to create a Page Object named loginPageSample for the Login Activity
- Define locators for the login button and the username and password textboxes in the LOCATORS section
- Define the login method in the METHODS section. Use login as the keyword
- Replace the loginTestSample Test Case's script with the login method
Click here for more information on Page Objects and how to use them.
- Add a locator for the Welcome TextView to the Page Object and an action to check if the login process was sucessful. Every Test Case must have at least one checkpoint to verify if the expected result and actual outcome are the same.
The Welcome Activity appears after a successful login. So the final step of this Test Case should be to check if Welcome Textbox has appeared.
We're using the wrong password for the sample to make it easier for user. The correct password is blank("").
Finally, save and re-run loginTestSample.