Welcome to the Tricentis Tosca TestSuite tutorial. Testing an application is always necessary, whether it's automated testing or manual, it will increase the efficiency of your software application. Tosca TestSuite provides an easy solution to perform testing on your applications. In this tutorial, we will provide you with enough information on Tosca to get you started with this tool. So, without further ado, let's dive right into the tutorial.
Tricentis Tosca TestSuite is an end-to-end testing solution platform. We can perform functional and regression testing on software applications without using scripts. Tricentis Technology develops it along with Consulting GmbH based on LinearQ(m) methodology. Significant companies like Allianz, Toyota, Starbucks, BMW, HBO, Whole Foods, etc. are using this tool.
Using Tosca, we can perform multiple types of testing like GUI testing, CLI testing, mobile testing, API testing, BI and data warehouse testing, exploratory testing, etc. We can create efficient test cases, and the summarized report of those test cases can have shown in the form of reports.
The main feature of Tosca is that it provides model-based testing. If any change has made to any element of the application, the change will be immediately reflected in the central model so that all the test cases associated with this application will test the updated app, thus removing ambiguity.
Interested in learning Tosca ? Click here to learn Advanced Tosca Online Course from hkrtrainings Experts!
The key advantages of Tosca TestSuite are,
Tosca Testsuite package contains four components,
It is the main component that has considered as the backbone of Tosca. We can create, manage, and execute Modules, ExecutionLists, TestCases, etc. It imports the TestCases from the Test Repository and forwards them to the Test Executor. We can see all the elements in the form of a tree structure, i.e. in a hierarchical order, and it is designed based on Windows Explorer format.
It has used for executing tests on test objects. We can even perform exception handling by defining the desired reaction to possible errors for each TestCase execution.
It has used for creating and scanning modules, i.e. it examines the screens of your application and generates them as modules. It collects all the information that is needed to identify and steer the test object and saves it to the ObjectMap of the Module.
We can create and manage test repositories with the help of an endpoint. We can create two types of repositories,
As a prerequisite, the .Net framework and Microsoft Visual C++ should be installed on your system before installing Tosca. Tosca TestSuite 13.1 is the latest stable version that has released on February 19th, 2020.
Go to https://support.tricentis.com/community/top_downloads.do and download the installer file. Double-click on the installer file to start the installation wizard.
First, it will show you the missing components that are required and prompt for the installation. If Microsoft Visual C++ is not installed, Tosca will automatically install it here. Keep on clicking 'Next'.
If you do not want the Tosca to installed in the default directory, you will be able to change the directory. Click on 'Next' for the next prompts too. You will get a summary of all the options that have selected till now. If you want to change any features, you can change them here. Or else click on 'Install' to run the installation. You will be able to see the installation progress of each component. You can also see if the parts have been successfully installed or not. Once all the ingredients have installed, click on 'Finish' to complete the installation.
A workspace represents the working location of a user. We can create two types of workspaces,
Open the Tosca Commander. Select 'Project' from the menu and click on 'New'. A prompt screen will appear with fields required for creating a workspace. Give all the details like workspace name, workspace location, repository type, and name, etc. Click on 'Ok' to create the workspace. Once the new workspace has created, it will open automatically.
To create a TestCase for an application, we must first develop modules. Modules are nothing but scanning the screens of the application. A module has created for each screen in your application.
In this tutorial, we will be looking at how we can perform testing on a web application. If you do not have a web application to test, you can use the sample web application provided by Tosca for performing automation tests.
Here is the link for the application - http://sampleapp.tricentis.com/101/
In Tosca Commander, right-click on 'Modules' and select 'Create Folder'. Rename the folder to 'Test Modules'. Right-click on the 'Test Modules' folder and select 'Create Folder'. Rename the new folder to 'Web Application'.
Open the homepage of your application. Right-click on the module folder that you recently created, i.e. 'Web Application'. Select the option 'Scan' and then select 'Application'. All the applications that are currently open will shown on the 'Select Application' screen.
Choose the one that you want to perform the tests on and click on 'Scan'. A screen with 'Basic View' will open. A module with an automatic name related to your application screen will be created. We can change the name of the module, control the objects, and change their values by clicking on the fields on the webpage. Click on 'Finish Screen'. The scan results will be stored as a module.
If any input fields need to fill to carry out the tests, that information should include in the test data. We will have an option to change the values too. Repeat the same process for all the screens in your application. So the number of screens equals the number of modules that are created.
Go to TestCases in Tosca Commander and create a new folder 'Web Application TestCases'. Right-click on the newly created folder and select 'Create TestCase'. The TestCase should start with the homepage of your application. We have to instruct the TestCase about the flow of the application.
Drag-drop the home module from the Modules window onto the TestCase that we have created earlier. This home module will add as the first TestStep, i.e. the TestCase execution starts with this TestStep. Drag and drop is the module that has your next scanned screen and adds it beneath the home TestStep. Aud the rest of the modules beneath the previous module as TestSteps here. The TestCase creation is done.
To execute a TestCase, we must add it to an ExecutionList. Click on the Execution tab in Tosca Commander. Right-click on the ExecutionList folder and select 'Create Folder'. Rename it to 'Test ExecutionList'. Right-click on the 'Test ExecutionList' folder and select 'Create ExecutionList'. Rename it to 'Web App ExecutionList'.
Drag and drop the TestCase that you have created recently onto the 'Web App ExecutionList'. It will create a link to the TestCase. Open your application in a browser and let it stay on the home page. Go back to the Tosca Commander, right-click on the 'Web App ExecutionList' and click on 'Run'.
Tosca starts executing the TestCase. It will begin testing your application which has opened in the browser. So do not perform any mouse clicks and keyboard inputs. Wait until the execution has completed. If the TestCase execution is successful, the green color will represent in the 'Login for' field.
Comparison between Tosca and TestComplete
Both Tricentis Tosca and SmartBear TestComplete are test automation tools. However, they have their differences when it comes to functioning and performance.
Batch starts on 28th Oct 2021, Weekday batch
Batch starts on 1st Nov 2021, Weekday batch
Batch starts on 5th Nov 2021, Fast Track batch
5th April | 08:00 AM