Skip to main content

Veritran Docs

How to test your app's login process with Low-Code Test

Platform component

Veritran Studio - Low-Code Test

Version

3.1

Context

You are building a new app for GoldBank and you need to test the login process for a user with a personal account before delivering your app to the bank. The aim of the test is to ensure that all the elements included in the user's login process function properly and that the user is able to access the app's landing page.

Solution

You can create a test with Studio's Low-Code Test (LCT) feature. This test includes all the actions that the user is expected to perform when logging into the app, and running it. Follow the instructions below to create a LCT.

Initial configuration
  1. Configure your app's Android and iOS binaries, and your device farm credentials from the Run Settings section.

  2. Set any variables you want to reuse in your tests from the Variables page. For example, you can set the username as a variable to modify it later if you need to test different user categories. You can update the value from the Variables page, and it will impact on every test that has the username variable.

Create the test
  1. Click Create test on the LCT homepage to start the creation process. The Test info page opens, where you can add or edit the test basic information.

  2. Enter a unique name to identify the test. In this case, Login Test.

    Important

    The test name cannot be edited once created. Choose the name carefully.

  3. In the Description field, explain the test's purpose and scope. For example: Test the apps' login process to ensure that all the components included in the login and the landing screens respond as expected.

  4. Enter the result expected when the last step of the test is successfully validated. For example: The user successfully accesses the landing page and finds a welcoming message on screen.

  5. In the Pre-requisites field, enter any mandatory specifications to run the test. For example: Have the login and the landing screens already built.

  6. In the Tags field, enter keywords that help to identify and to filter your tests. For example: Login.

  7. After configuring your test basic information, click Next to go to the Steps page to start adding steps to your new test.

Add steps to the test
  1. On the Steps page, click Add step to start adding all the steps you need for your test. Configure your app's Android and iOS binaries, and your device farm credentials from the Run Settings section.

    Important

    Add the steps in the order you want to run them because you cannot reorganize them afterwards.

    The first step tests the User field. Configure the step as follows:

    • Description: User input test

    • Screen/Test: Login (screen)

    • Component: imp_user

    • Action: Input

    • Variable: user

  2. The second step tests the Password field. Configure the step as follows:

    • Description: Password input test

    • Screen/Test: Login (screen)

    • Component: imp_pass

    • Action: Input

    • Value: 12345678

  3. The third step tests the "Personal account" radio button. Configure the step as follows:

    • Description: Personal account radio button test

    • Screen/Test: Login (screen)

    • Component: rad_pers

    • Action: Tap

  4. The fourth step tests the "Remember me" checkbox. Configure the step as follows:

    • Description: Remember me checkbox test

    • Screen/Test: Login (screen)

    • Component: chk_remember

    • Action: Check

  5. The fifth step tests the login button. Configure the step as follows:

    • Description: Login button test

    • Screen/Test: Login (screen)

    • Component: btn_login

    • Action: Tap

  6. The sixth, and last step, tests the welcoming message on the landing page. Configure the step as follows:

    • Description: Landing welcome message test

    • Screen/Test: Landing (screen)

    • Component: txt_welcome

    • Action: Assert equal

    • Value: Welcome, John Doe

  7. Once you have added all the steps, click Save to finish the creation process. Close the tab and go back to the test list, where you can find the new test ready to run.

Run the test and see its results
  1. To run the test, follow these steps:

    1. Click the play icon to the right of the test.

    2. Select the binary or binaries that you want to test from the drop-down menu.

    3. Check the "I already generated and published my app" checkbox, and click Run to start the test run.

  2. When the test execution is complete, you can see the test results on the Results page. To do this, click the vertical three-dot icon to the right of the test, then click View results.