How to Create Your First Test Case in Tosca

 ✅ How to Create Your First Test Case in Tosca (English)

Tosca by Tricentis is a popular no-code/low-code test automation tool used for automating UI, API, and regression tests. If you're new to Tosca, creating your first test case is simple with its Model-Based Testing (MBT) approach.


Here’s a step-by-step guide to help you build your first test case in Tosca:


๐Ÿงฑ Step 1: Launch Tosca Commander

Open Tosca Commander.


Create a new workspace (or open an existing one).


Choose a Common Repository (multi-user) or Classic (single-user).


๐Ÿงช Step 2: Create a New Test Case Folder

In the Project tree, right-click on TestCases.


Select Create Folder.


Name it e.g., LoginTests.


๐Ÿงพ Step 3: Create a New Test Case

Right-click on your test case folder (LoginTests).


Select Create TestCase.


Give your test case a name, like Valid Login.


๐Ÿ” Step 4: Scan the Application (Modeling)

To test a UI, Tosca must first understand the elements on the screen.


Navigate to the Modules section in Tosca.


Use Tosca XScan (Scan Application).


Open the application or browser you want to test.


Click the Scan button and capture UI elements (e.g., username, password, login button).


Save the module with a name like LoginPage.


๐Ÿงฉ Step 5: Add Test Steps Using Modules

Go back to your Valid Login test case.


Drag and drop module elements (from LoginPage) into the test case.


Fill in the TestStepValues for each input:


Username → admin


Password → password123


Click Login button → Action = Click


๐Ÿงช Example Test Steps

TestStepName Input Field Action Value

Enter Username UsernameField Input admin

Enter Password PasswordField Input password123

Click Login LoginButton Click


▶️ Step 6: Run the Test Case

Click on the test case.


Press F6 or right-click → Run TestCase.


Watch Tosca automatically interact with your application.


๐Ÿ› ️ Step 7: Analyze Results

After execution:


Go to the Execution tab.


View the Result details (pass/fail, screenshots, logs).


You can rerun or debug as needed.


๐Ÿ“Œ Tips for Beginners

Use Reusable Modules to avoid duplication.


Group test cases into Test Sets for batch execution.


Use TestCaseDesign for data-driven testing.


For web apps, install Tricentis Tosca Chrome/Edge Extension.


๐Ÿ Summary

Step Action

1. Launch Tosca Create or open workspace

2. Create Folder Organize your tests

3. Create TestCase Define your test

4. Scan Application Capture screen elements

5. Add Test Steps Drag and fill test actions/values

6. Run the Test Press F6 or use Run context menu

7. Check Results Review logs and results

Learn Tosca Training in Hyderabad

Read More

Introduction to Tosca Commander and Its UI

Tosca Architecture Explained Simply

Visit Our Quality Thought Training in Hyderabad

Get Directions

Comments

Popular posts from this blog

Understanding Snowflake Editions: Standard, Enterprise, Business Critical

Why Data Science Course?

How To Do Medical Coding Course?