Implementing Configuration Structure
Parag Kukwas
Head of Customer Service | Partner Enablement | Author of Dr. Tosca | Global enabler
Problem
Abhishek - Dr. Tosca, How to implement & manage test configuration parameters centrally?
Description
We have a large team working on different verticles of an application. Due to large working groups and different teams being involved in this project, we need to maintain a large number of test configuration parameters. This has become a very tedious and time-consuming task. As the number of TCP’s are kept on increasing. Can you prescribe a solution to avoid this situation and make the task a bit more organized?
Prescription
Dr. Tosca - Abhishek, This is a really interesting topic. The Situation you are facing is being faced by many organization which has large teams. To tackle this situation, I would suggest you create your TCP’s in the configuration according to the project requirement.
Abhishek - Dr. Tosca, This sounds interesting. How can we create the configuration and manage it centrally?
Dr. Tosca - Abhishek, A configuration folder is always present by default in the project root level. Apart from that, it can also be created in a component folder to segregate it by projects.
To create the configuration in component folder level
-?????????Select the component folder and create a? Configurations Folder?from the mini toolbar. create a Configuration inside the configuration folder.
?-??Select a configuration and create a? Test configuration parameter?from the mini toolbar. You can create an unlimited number of test configuration parameters.
领英推荐
?Abhishek - Dr. Tosca, It seems pretty fair and straight. How about the implementation, Once we create the TCP how can we implement it to test cases?
Dr. Tosca – Abhishek, You just need to drag and drop the relative configuration to the test cases or test case folders of the respective vertical. All the TCP created under the configuration will be implemented to the respective object.
?
Also, if you would like to make any changes after the implementation, you can manage it centrally by only changing the TCP- or values in the defined configuration and it will be reflected in every location these TCP’s are referred to.
Abhishek - Dr. Tosca, We have an application that changes the functionality according to the user who is using it. For example, if a guest user logs in, it will have limited functionality?and for Admin user will have full rights of the application under test.
In our Project, there are 2 teams. 1 team is working on guest functionality and 1 is working on Admin functionality. We have dedicated credentials for both types of users. We want each team to use their dedicated credentials. How can we handle this situation?
Dr. Tosca – Abhishek, I would suggest creating the configuration centrally and dragging it to the project as per the requirement.
As we can see on the screen I have created two sub-configuration, one for the Admin and one for the guest user. They both inherited the Browser and URL from the parent “Project B”
For the admin test case I will drag the “For Admin” sub-configuration to the Admin test case folder and For Guest TestCase, I will drag the “Guest” Sub configuration to the Guest TestCase folder. Since they both inherit the configuration defined from Parent, The TCP belonging to the parent will by default apply there.
I hope, you get all answers to your question. The solution prescribed will help you to implement & manage TCP centrally. I will come up again with interesting topics to help with your automation.
Till then, take care happy testing.
I hope this helps you in the integration of your project. If you are interested to learn how we can deploy buffer in different scenarios read the blog below.
?
Reference: User Manual
Partner Enablement Manager at Virtuoso QA | IIM Trichy Alumna | EGMP '23
3 年Wow, very much useful. Thank you Parag ?? #network
Head of Customer Experience Transformation | PMP | Global Enabler | CSM | Test Architect
3 年Must read for practitioners working in Tosca projects that have several configurations and are looking for a one point maintenance approach Nice one Parag Kukwas Abhishek Shukla
Founder & Chairman "The Teacher", Sarvarth & Sarvhitay | Whatever we focus, grows.
3 年Very useful aspects covered Abhishek Shukla and Parag Kukwas... more and more level of knowledge of automation (tool + process) is of huge value to end customers and projects... keep rocking !!
Data Engineer at A. P. Moller - MAERSK|Hadoop|PySpark|Azure DataBricks|Azure Data Factory|Azure Synapse|SQL|Python
3 年Very well Treated Dr. TOSCA. ??
Test Automation | Technical Project Management | Agile | SQL | API Testing | ISTQB-CTFL | AZ-900 | German Language-B1 | Insurance | Banking-Payments | E-Commerce | Retail
3 年Really nice and Effortfull.