Skip to content

Creating Tests

Hands-on tutorial

Build a reusable login test visually and create suites, tags, and needed locators inside the test case creation flow.

Role: QA authors and developersTime: 15-20 minutesOutcome: a working, reusable login test with live Gherkin preview
  • AppraiseJS is running locally.
  • You have a reachable login page or another small smoke-test target.
  • You know which environment URL and credentials are safe to use locally.

A reusable smoke scenario

You will create a reusable login test that: - Works across environments - Uses centralized locators - Generates executable test code - Can be rerun anytime from the Test Runs screen

UI path

Modules Environments Test Cases Suites and Tags Flow Builder Inline Locators

How to think about Test Cases in AppraiseJS

Section titled “How to think about Test Cases in AppraiseJS”

Start with the core building blocks:

  • Modules -> groups for test suites
  • Environments -> test environment configurations, such as base URLs and API routes. Environments are not required to fill out test case metadata, but they are helpful when creating locators from the builder.
  • Test suites -> groups for test cases

The test case creation process has two parts:

  • Test case metadata -> setting the test case title, description, test suite, and tags
  • Test case flow -> a flow builder for building tests visually so users can create automated tests with less friction

You are not writing scripts. You are designing test logic.

Test cases are where your test logic comes to life. Instead of writing scripts, you visually assemble reusable steps into a complete scenario. Each step represents an action or validation, and together they form a flow that can be executed reliably across environments.

Environment and module setup still happens first. Suites, tags, and locators can be created or selected while you create the test case.


Enough theory, let’s get hands-on.

  1. Create a module named Authentication so the scenario has a clear home in the product model.



  2. Create a new environment named Local with the application base URL you want to test.



  3. Navigate to Automate -> Test Cases -> Create or click the Create Test button from the dashboard.

  4. Before building the flow, fill in the basics:

    • Title -> short identifier, such as Login success
    • Description -> one sentence describing what this validates
    • Test Suite -> select an existing suite, or create Auth Smoke from the form under the Authentication module
    • Tags -> select existing tags or create labels such as @smoke and @auth
  5. Use the flow builder to construct the test visually:

    • Each node is one action or assertion.
    • Nodes connect to form a complete scenario.
    • Parameters make each step reusable.
  6. Use the Scenario Preview panel to watch the generated Gherkin update as you build.

  7. Click Add Node and add the first step to navigate to the selected environment base URL so the case is portable across environments.

  8. Add input step nodes for email and password. When each step needs a locator, create it from the node addition sidebar or select an existing locator.

  9. Add a click step node for the submit button and create or select its locator.

  10. Add an assertion step node that checks the welcomeBanner visibility is true, creating that locator from the same flow if needed.


    Here is a demo of the test case editor in action.


At this point, you should have:

  • A navigable flow from start to input, click, and assertion steps
  • No missing parameters
  • A live Gherkin preview updating on the right
  • Suite, tags, and any needed locators created or selected without leaving the creation flow

If you see this, you have already built a complete automated test.

  1. Save the case and re-open it once to confirm every parameter, locator reference, suite, and tag relationship still looks correct.

Here are screenshots of the saved test case editor state with ordered steps and filled parameters.

Saved test case editor state with the completed flow Saved test case editor state with configured step details
  • The case opens with a complete ordered flow and no missing required parameters.
  • Every referenced locator exists and belongs to a route-aware locator group.
  • The suite, tag, and environment names are clear enough that another team member could reuse them later.

AppraiseJS is designed so your test logic stays clear, reusable, and never buried inside scripts.

  • Starting a test case before creating the environment and module it needs.
  • Saving a case with literal values that should have been environment-driven or reusable.
  • Mixing multiple business outcomes into one case instead of one clear scenario.
  • Naming assets too generically, which makes future reuse harder.

Move to Running Tests to execute the scenario either by tags or by explicit case selection.